Skip to contents

Get all ATC codes from the cdm

Usage

availableATC(cdm, level = c("ATC 1st"))

Arguments

cdm

cdm_reference via CDMConnector

level

ATC level. Can be one or more of "ATC 1st", "ATC 2nd", "ATC 3rd", "ATC 4th", and "ATC 5th"

Value

A vector list of all ATC codes for the chosen level(s) found in the concept table of cdm.

Examples

# \donttest{
cdm <- mockVocabRef()
#> Warning: There are observation period end dates after the current date: 2025-02-19
#>  The latest max observation period end date found is 2025-12-31
availableATC(cdm)
#> [1] "ALIMENTARY TRACT AND METABOLISM"
# }