Skip to contents

A shiny module. Used to show user information of the active user in value boxes on the top of the screen.

Usage

mod_header_widgets_server(
  id,
  r,
  rev_data,
  navinfo,
  timeline_data,
  available_data
)

Arguments

id

Character string, used to connect the module UI with the module Server.

r

Common reactive values.

rev_data

common reactive values with review data.

navinfo

Reactive values created with shiny::reactiveValues(). Used to send back information about the page change to the server, when clicking on the adverse event box.

timeline_data

A reactive with a data frame containing the timeline data. Used to create the timeline figure. Created with get_timeline_data().

available_data

A data frame containing all available data, usually created with the function get_available_data().

Details

The value boxes in this module contain information about the active user. They show the patient id, the patient status (active/inactive participant), the number of adverse events (with a color code showing whether any new or updated data is available), the number of forms that need a review, and a timeline figure showing the number of visits that the patient performed. The value box with adverse events also serves as a link to the adverse events form. Furthermore, clicking on the box with forms to review will trigger mod_navigate_review_server(), opening a modal that shows the forms that need review and the queries that are open of the active participant, to which you can directly navigate to.