extractConceptSetsInCohortDefinitionSet: Extract concept sets from cohort definition set

View source: R/ExtractConceptSetsInCohortDefinitionSet.R

extractConceptSetsInCohortDefinitionSetR Documentation

Extract concept sets from cohort definition set

Description

given a cohort definition set (data frame with cohortId, json), this function extracts the concept set json and sql for all cohorts, compares concept sets across cohort definitions, assigns unique id.

Usage

extractConceptSetsInCohortDefinitionSet(cohortDefinitionSet)

Arguments

cohortDefinitionSet

The cohortDefinitionSet argument must be a data frame with at least the following columns.

cohortId

The cohort Id is the id used to identify a cohort definition. This is required to be unique. It is usually used to create file names.

cohortName

The full name of the cohort.

json

The JSON cohort definition for the cohort.

sql

The SQL of the cohort definition rendered from the cohort json.

Value

Returns a tibble data frame.


OHDSI/ConceptSetDiagnostics documentation built on Feb. 26, 2023, 1:31 a.m.