validateConceptSetArgument {omopgenerics} | R Documentation |
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()
)
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. |
Value
A codelist object.
Examples
conceptSet <- list(disease_x = c(1L, 2L))
validateConceptSetArgument(conceptSet)
[Package omopgenerics version 1.2.0 Index]