Skip to contents

A shiny module. Used to display figures and tables of a study-specific form and will be accessible in through the study form tab on the main page.

Usage

mod_study_forms_ui(id, form, form_items)

Arguments

id

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

form

A character string with the name of the form to display.

form_items

A named character vector with the names of the expected variables defined in the applicable form. Used in the UI to create a filter with drop-down menu, to select the desired variables in a figure. Used in the module Server to make sure that all expected columns are always created, even if some variables are implicitly missing (which might occur if there are not yet any values available for a specific variable). Also, implicitly missing variables might give errors if part of the script relies on the variables' presence. See also the parameter expected_columns in create_table.default().

Details

The module displays tables and figures, and shows data of the currently active subject. In the figures, the data can easily be compared with data of other study participants. Data that is new or updated will have large points, so that the reviewer can focus on new data. By default, all items of a form will be shown, but the reviewer can select single or multiple variables to focus on in the figure. There is also an option to switch from graphical view to table view. In a table view, the same data will be shown in wide-table format, with new/updated data shown in bold. If the values contain units, the original units will be shown. The Study forms module is used in the main app_server to create all applicable study form pages.