Shiny module development for DiagnosticsExplorer #820
azimov
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The development of the DiagnosticsExplorer is likely daunting to newer developers due to the complexity of the codebase.
Consequently and new side branch - shiny-modules - is being developed with the intention of simplifying the codebase and making it easier for others to use and contribute.
The simplest example of how a module will work is in the Cohort Counts Module.
Sourcing this file there are two steps to utilize a module.
A big problem with the usability with these modules outside of CohortDiagnotics is the
.. bootstrap code ...
section (which intentionally left vague here). This loads required base tables (such as the cohortTable that contains all cohorts and the list of available databases).Currently, these are not well typed objects. A
dbplyr
lazy loaded table solution but, currently, dbplyr is not yet supported byDatabaseConnector
and any implemented solution may not work well with pooled database connections.The steps this process takes are to load the required data model assets that are used within the diagnostics explorer. These are currently a large set of internally used functions that were not intended to be used outside of the shiny application.
Beta Was this translation helpful? Give feedback.
All reactions