use this to create an interface to cohort diagnostics results data NOTE: I think this would make a good R6 class for other objects in this package so you could query them outside of a shiny app. E.g. if you wanted to make a custom R markdown template

createCdDatabaseDataSource(
  connectionHandler,
  resultDatabaseSettings,
  dataModelSpecificationsPath = system.file("cohort-diagnostics-ref",
    "resultsDataModelSpecification.csv", package = utils::packageName()),
  dataMigrationsRef = system.file("cohort-diagnostics-ref", "migrations.csv", package =
    utils::packageName()),
  displayProgress = FALSE
)

Arguments

connectionHandler

An instance of a ResultModelManager::connectionHander - manages a connection to a database.

resultDatabaseSettings

a list containing the result schema and prefixes

dataModelSpecificationsPath

The path to a file containing specifications for the data model used by the database.

dataMigrationsRef

The path to a file listing all migrations for the data model that should have been applied

displayProgress

display a progress messaage (can only be used inside a shiny reactive context)

Value

An object of class `CdDataSource`.