This module allows users to interact with REDCap Projects from within a Shiny application. REDCap instruments are translated into native Shiny controls/widgets and allow for the capture of abstracted information from within the R Shiny environment. Additionally, error prone fields such as MRN and reviewer information are populated automatically, based on user configured information, thus reducing the potential for error in abstracted information.
This module consists of the following components:
redcap_setup_ui
: The REDCap setup/configuration UI
redcap_instrument_ui
: A shiny representation of a REDCap
Instrument
redcap_server
: The logic
This module also provides a keyboard shortcut to assist with saving abstracted patient data. The "meta" key refers to "ctrl" on Windows and "Cmd" on Mac.
Save current instrument data: “alt + meta + s”
redcap_setup_ui(id) redcap_instrument_ui(id) redcap_server(id, subject_id)
id | The module namespace |
---|---|
subject_id | A shiny::reactive expression containing a subject identifier. |
redcap_setup_ui:
The REDCap setup/configuration UI
A shiny representation of a REDCap Instrument
all_review_status: A dplyr::tibble containing the review status of all previously reviewed individuals.
instrument_ui: The module instrument ui function
is_configured: A string, with module configuration status. Valid statuses are yes' or 'no'.
is_connected: A string, with module connection status. Valid statuses are 'yes' or 'no'.
moduleName: A string, containing the module moniker.
moduleType: A string, with the module type (what does it do?)
previous_selected_instrument_complete_val: A character ("0","1","2", NA_character) representing a REDCap review status.
setup_ui: The module setup ui function