Learn R Programming

OhdsiReportGenerator (version 2.0.2)

getCohortMeta: Extract the cohort meta

Description

This function extracts all cohort meta for the cohorts of interest.

Usage

getCohortMeta(
  connectionHandler,
  schema,
  cgTablePrefix = "cg_",
  databaseTable = "database_meta_data",
  cohortIds = NULL
)

Value

Returns a data.frame with the cohort inclusion rules

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

databaseTable

The name of the table with the database details (default 'database_meta_data')

cohortIds

Optionally a list of cohortIds to restrict to

Details

Specify the connectionHandler, the schema and the cohort IDs

See Also

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

Examples

Run this code
conDet <- getExampleConnectionDetails()

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

cohortMeta <- getCohortMeta(
  connectionHandler = connectionHandler, 
  schema = 'main'
)

Run the code above in your browser using DataLab