mod_redcap | R Documentation |
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:
tagList |
The REDCap setup/configuration UI |
redcap_instrument_ui:
tagList |
A shiny representation of a REDCap Instrument |
redcap_server:
reactiveValues |
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.