mod_redcap {ReviewR} | R Documentation |
REDCap Abstraction Module
Description
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:
Module UI functions
redcap_setup_ui
: The REDCap setup/configuration UIredcap_instrument_ui
: A shiny representation of a REDCap Instrument
Module Server function
redcap_server
: The logic
Keyboard Shortcuts
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”
Usage
redcap_setup_ui(id)
redcap_instrument_ui(id)
redcap_server(id, subject_id)
Arguments
id |
The module namespace |
subject_id |
A shiny::reactive expression containing a subject identifier. |
Value
redcap_setup_ui:
tagList |
The REDCap setup/configuration UI |
redcap_instrument_ui:
tagList |
A shiny representation of a REDCap Instrument |
redcap_server:
reactiveValues |
|