Learn R Programming

OhdsiReportGenerator (version 2.0.2)

getCohortSubsetDefinitions: Extract the cohort subset definition details

Description

This function extracts all cohort subset definitions for the subsets of interest.

Usage

getCohortSubsetDefinitions(
  connectionHandler,
  schema,
  cgTablePrefix = "cg_",
  subsetIds = NULL
)

Value

Returns a data.frame with the cohort subset details

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

Details

Specify the connectionHandler, the schema and the subset IDs

See Also

Other Cohorts: getCohortCounts(), getCohortDefinitions(), getCohortInclusionRules(), getCohortInclusionStats(), getCohortInclusionSummary(), getCohortMeta(), processCohorts()

Examples

Run this code
conDet <- getExampleConnectionDetails()

connectionHandler <- ResultModelManager::ConnectionHandler$new(conDet)

subsetDef <- getCohortSubsetDefinitions(
  connectionHandler = connectionHandler, 
  schema = 'main'
)

Run the code above in your browser using DataLab