Skip to contents

Get the concept classes used in a given set of domains

Usage

getConceptClassId(cdm, standardConcept = "Standard", domain = NULL)

Arguments

cdm

A cdm reference via CDMConnector.

standardConcept

Character vector with one or more of "Standard", "Classification", and "Non-standard". These correspond to the flags used for the standard_concept field in the concept table of the cdm.

domain

Character vector with one or more of the OMOP CDM domains. The results will be restricted to the given domains. Check the available ones by running getDomains(). If NULL, all supported domains are included: Condition, Drug, Procedure, Device, Observation, and Measurement.

Value

The concept classes used for the requested domains.

Examples

# \donttest{
cdm <- mockVocabRef()
#> Warning: There are observation period end dates after the current date: 2025-04-11
#>  The latest max observation period end date found is 2025-12-31
getConceptClassId(cdm = cdm, domain = "drug")
#> [1] "Clinical Drug Form" "Drug"               "Ingredient"        
# }