mod_data_model_detection | R Documentation |
This module will interrogate a user connected database, comparing it with known common data models to determine the both the data model and version (when applicable) of the user's database.
It informs the rest of the application how to interpret and display the data stored in the connected database, when possible. If an unsupported data model is detected, the user is informed and given the opportunity to connect to a different database.
This module consists of the following components:
These functions return a Shiny tagList
containing various UI elements of the
ReviewR application. UI components are calculated by the
data_model_detection_server
function of this module.
data_model_detection_ui
: A server defined uiOutput
describing the detected data model and version.
patient_chart_ui
: The "Patient Chart," with the appropriate display
elements based on the detected data model. Appears on the "Chart Review" tab
of ReviewR.
The server function of this module is responsible for calculating the display elements included in the UI functions of this module as well as returning a reactiveValues object containing various other objects used by other modules.
data_model_detection_server
: Contains the data model detection logic
and calculates UI elements. Returns a reactiveValues object containing variables
used in other modules.
data_model_detection_ui(id)
patient_chart_ui(id)
data_model_detection_server(id, database_vars, navigation_vars, parent_session)
id |
The Module namespace |
database_vars |
A reactiveValues object as returned by mod_database_setup. |
navigation_vars |
A reactiveValues object as returned by mod_navigation. |
parent_session |
The session information from the parent environment of this module. |
data_model_detection_ui:
tagList |
A uiOutput describing the detected data model and version. |
patient_chart_ui:
tagList |
The "Patient Chart" on the "Chart Review" tab of ReviewR. |
data_model_detection_server:
reactiveValues |
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.