availableVocabularies: Get the available vocabularies available in the cdm

View source: R/availableVocabularies.R

availableVocabulariesR Documentation

Get the available vocabularies available in the cdm

Description

Get the available vocabularies available in the cdm

Usage

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

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.

Value

Names of available vocabularies.

Examples


library(CodelistGenerator)
library(omock)

# Create CDM object
cdm <- mockCdmReference()

# Get all vocabularies available in the CDM
availableVocabularies(cdm)

# Get all vocabularies available in the CDM for `Standard` and `Condition` concepts
availableVocabularies(cdm,
                      standardConcept = "Standard",
                      domain = "Condition")


CodelistGenerator documentation built on Dec. 17, 2025, 5:06 p.m.