View source: R/CohortQueries.R
getCohortSubsetDefinitions | R Documentation |
This function extracts all cohort subset definitions for the subsets of interest.
getCohortSubsetDefinitions(
connectionHandler,
schema,
cgTablePrefix = "cg_",
subsetIds = 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 |
subsetIds |
A vector of subset cohort ids or NULL |
Specify the connectionHandler, the schema and the subset IDs
Returns a data.frame with the cohort subset details
Other Cohorts:
getCohortDefinitions()
,
processCohorts()
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
subsetDef <- getCohortSubsetDefinitions(
connectionHandler = connectionHandler,
schema = 'main'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.