convertConceptSetDataFrameToExpression: Convert concept set expression in a data frame format convert...

View source: R/ConvertConceptSetDataFrameToExpression.R

convertConceptSetDataFrameToExpressionR Documentation

Convert concept set expression in a data frame format convert to R (list) expression

Description

Convert concept set expression in a data frame format convert to R (list) expression

Usage

convertConceptSetDataFrameToExpression(
  conceptSetExpressionDataFrame,
  selectAllDescendants = FALSE,
  updateVocabularyFields = FALSE,
  connectionDetails = NULL,
  connection = NULL,
  vocabularyDatabaseSchema = NULL
)

Arguments

conceptSetExpressionDataFrame

Concept set expression in data frame format with required fields conceptId. If includeMapped, isExcluded or includeDescendants are missing value or is not existent - it is assumed to be FALSE. All column names should be in camelCase format.

selectAllDescendants

Do you want to over ride the concept set expression by add select descendants for concept ids in concept set expression.

updateVocabularyFields

Do you want to update the details about concepts from the vocabulary tables such as domain, vocabulary, concept name? If yes, then connection or connectionDetails to a remote db with OMOP vocabulary tables is needed.

connectionDetails

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

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.

vocabularyDatabaseSchema

The schema name of containing the vocabulary tables.

Value

Returns a R list object


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