A list of data frames containing metadata that will be used for the application. The metadata will be merged with with raw data. It controls the variables that will be used in the application, and in which tab the variables will be shown. The goal is that most, if not all, study-specific data will be captured in the metadata, leaving the scripts to run the application largely unaltered between studies.
Format
metadata
A list with the following data frames:
events
: Contains the columnsevent_number
,event_name
, andevent_label
. Used to create a simple timeline in the application, with predefined number of planned visits.common_forms
: Contains the columnsvar
,suffix
,item_name
,item_type
,item_group
. Used to select and rename the variables of interest in the common forms.study_forms
: Contains the same columns as the data framecommon_forms
, and in addition the columnsunit
,lower_limit
,uppter_limit
. Used to select and rename the variables of interest in the common forms.general
: Contains the same columns ascommon_forms
.form_level_data
: For specifying form-level data. When reading in metadata from the Excel format, this table will created and sanitized if needed, creating the minimum columnsitem_group
,item_scale
,use_unscaled_limits
, andreview_required
. The columnitem_group
contains the name of the forms to which the settings apply. Columnsitem_scale
anduse_unscaled_limits
are used inmod_study_forms_server()
to specify the scaling of the figures. It is recommended to set the required values here; by default, they are both set to FALSE inmod_study_forms_server()
. The last column that is expected here isreview_required
, which can be used to specify whether review is required for a form. Will default to TRUE for each form it is unset for a form.