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, events)

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.

events

Data frame containing all events. Used to extract the right labels for the visits in the compact timeline in the header_widgets. See fig_timeline().

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.