View source: R/CohortQueries.R
getCohortDefinitions | R Documentation |
This function extracts all cohort definitions for the targets of interest.
getCohortDefinitions(
connectionHandler,
schema,
cgTablePrefix = "cg_",
targetIds = NULL
)
connectionHandler |
A connection handler that connects to the database and extracts sql queries. Create a connection handler via 'ResultModelManager::ConnectionHandler$new()'. |
schema |
The result database schema (e.g., 'main' for sqlite) |
cgTablePrefix |
The prefix used for the cohort generator results tables |
targetIds |
A vector of integers corresponding to the target cohort IDs |
Specify the connectionHandler, the schema and the target cohort IDs
Returns a data.frame with the cohort details
Other Cohorts:
getCohortSubsetDefinitions()
,
processCohorts()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
cohortDef <- getCohortDefinitions(
connectionHandler = connectionHandler,
schema = 'main'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.