Learn R Programming

omopgenerics (version 1.1.1)

validateConceptSetArgument: Validate conceptSet argument. It can either be a list, a codelist, a conceptSetExpression or a codelist with details. The output will always be a codelist.

Description

Validate conceptSet argument. It can either be a list, a codelist, a conceptSetExpression or a codelist with details. The output will always be a codelist.

Usage

validateConceptSetArgument(
  conceptSet,
  cdm = NULL,
  validation = "error",
  call = parent.frame()
)

Value

A codelist object.

Arguments

conceptSet

It can be either a named list of concepts or a codelist, codelist_with_details or conceptSetExpression object.

cdm

A cdm_reference object, needed if a conceptSetExpression is provided.

validation

How to perform validation: "error", "warning".

call

A call argument to pass to cli functions.

Examples

Run this code
conceptSet <- list(disease_x = c(1L, 2L))
validateConceptSetArgument(conceptSet)

Run the code above in your browser using DataLab