Review configuration - Shiny module Server
Source:R/mod_review_config.R
mod_review_config_server.Rd
A Shiny module. Used to set the desired review configuration for the active user.
Arguments
- id
Character string, used to connect the module UI with the module Server.
- r
Common reactiveValues. Used to pass on filtered data and filtered subjects (based on selected sites/regions) to the main server. Expects to contain
r$filtered_data
,r$filtered_tables
,r$filtered_subjects
andr$subject_id
(the ' active/current subject id'). The latter is needed because ther$subject_id
needs to be set to the first ID in the filtered selection to prevent a non-selected subject_id to be active.- app_data
List of data frames with the app data.
- app_tables
List of data frames with the app data in wide table format.
- sites
A data frame with columns "site_code", with all unique site identifiers, and "region", the region of the study site.
- subject_ids
Character vector containing all subject ids. Used for filtering subject ids. Using this string so that the correct order will be retained. Dependency could be removed in future version.
Details
When the module is called from the main server, it will show options to select regions and sites of interest to the user. The user sets these filters at the beginning of their session, to select the study sites that need review. After selecting the appropriate filter settings and confirming the review by clicking on the confirm review button, the internal data sets will be filtered on the selected filter settings and only the selected data will be shown in the application.