forked from ohdsi-studies/ExampleStrategusStudy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.R
44 lines (40 loc) · 1.38 KB
/
app.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
################################################################################
# INSTRUCTIONS: The code below assumes you uploaded results to a PostgreSQL
# or SQLite database per the UploadResults.R script.This script will launch a
# Shiny results viewer to analyze results from the study.
#
# Make sure you have set the connection details to your results database in
# scriptsForStudyCoordinator/SetConnectionDetails.R.
# ##############################################################################
library(ShinyAppBuilder)
library(OhdsiShinyModules)
source("scriptsForStudyCoordinator/SetConnectionDetails.R")
shinyConfig <- initializeModuleConfig() |>
addModuleConfig(
createDefaultAboutConfig()
) |>
addModuleConfig(
createDefaultDatasourcesConfig()
) |>
addModuleConfig(
createDefaultCohortGeneratorConfig()
) |>
addModuleConfig(
createDefaultCohortDiagnosticsConfig()
) |>
addModuleConfig(
createDefaultCharacterizationConfig()
) |>
addModuleConfig(
createDefaultPredictionConfig()
) |>
addModuleConfig(
createDefaultEstimationConfig()
)
# now create the shiny app based on the config file and view the results
# based on the connection
ShinyAppBuilder::createShinyApp(
config = shinyConfig,
connectionDetails = resultsConnectionDetails,
resultDatabaseSettings = createDefaultResultDatabaseSettings(schema = resultsDatabaseSchema)
)