resolveConceptSetsInCohortExpression: Given a cohort definition expression, get the resolved...

View source: R/ResolveConceptSetsInCohortExpression.R

resolveConceptSetsInCohortExpressionR Documentation

Given a cohort definition expression, get the resolved concepts for all concept sets

Description

Given a cohort definition expression, get the resolved concepts for all concept sets

Usage

resolveConceptSetsInCohortExpression(
  cohortExpression,
  connection = NULL,
  connectionDetails = NULL,
  vocabularyDatabaseSchema = "vocabulary"
)

Arguments

cohortExpression

A R-object (list) that represents cohort definition expression. This is derived from cohort expression json using RJSONIO::fromJSON(content = json, digits = 23). Note: it is important to use digits = 23, otherwise numerical precision may be lost for large integer values like conceptId's in cohort definition. The cohort expression JSON is commonly generated using OHDSI tools like Atlas or CapR.

connection

An object of type connection as created using the connect function in the DatabaseConnector package. Can be left NULL if connectionDetails is provided, in which case a new connection will be opened at the start of the function, and closed when the function finishes.

connectionDetails

An object of type connectionDetails as created using the createConnectionDetails function in the DatabaseConnector package. Can be left NULL if connection is provided.

vocabularyDatabaseSchema

The schema name of containing the vocabulary tables.


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