Learn R Programming

CodelistGenerator (version 4.0.0)

availableConceptClassIds: Get the available concept classes used in a given set of domains

Description

Get the available concept classes used in a given set of domains

Usage

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

Value

The concept classes

Arguments

cdm

A cdm reference to an OMOP CDM dataset. If data is held within a database, the vocabulary tables should be in the same schema as the clinical tables (person, observation period, and so on).

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 availableDomains(). If NULL, all supported domains are included: Condition, Drug, Procedure, Device, Observation, and Measurement.

Examples

Run this code
# \donttest{
library(CodelistGenerator)
library(omock)

# Create CDM object
cdm <- mockCdmFromDataset(datasetName = "GiBleed")

# Get all available concept_class_ids in the CDM
availableConceptClassIds(cdm,
                         standardConcept = "Standard")

# Get all available concept_class_ids in the CDM for a specific domain
availableConceptClassIds(cdm,
                         standardConcept = "Standard",
                         domain = "Condition")

# Notice that this corresponds to the information provided by `concept_class_id`
# column in the `concept` table
# }

Run the code above in your browser using DataLab