Extract the cohort subset definition details
Source:R/CohortQueries.R
getCohortSubsetDefinitions.RdThis function extracts all cohort subset definitions for the subsets of interest.
Usage
getCohortSubsetDefinitions(
connectionHandler,
schema,
cgTablePrefix = "cg_",
subsetIds = NULL
)Arguments
- 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
See also
Other Cohorts:
getCohortCounts(),
getCohortDefinitions(),
getCohortInclusionRules(),
getCohortInclusionStats(),
getCohortInclusionSummary(),
getCohortMeta(),
processCohorts()
Examples
conDet <- getExampleConnectionDetails()
connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)
#> Connecting using SQLite driver
subsetDef <- getCohortSubsetDefinitions(
connectionHandler = connectionHandler,
schema = 'main'
)