R/icd-cm-ver.R
get_icd10cm_available.Rd
Get the ICD-10-CM versions available in this package
get_icd10cm_available(dx = TRUE, return_year = FALSE)
dx | Single logical value, if |
---|---|
return_year | Logical, which, if |
By default, the names of all the data available, for diagnostic
ICD-10-CM codes, e.g. icd10cm2019
.
# Diagnostic codes: get_icd10cm_available()#> [1] "icd10cm2014" "icd10cm2015" "icd10cm2016" "icd10cm2017" "icd10cm2018" #> [6] "icd10cm2019"# Just get the years avaiable for ICD-10-CM procedure codes get_icd10cm_available(dx = FALSE, return_year = TRUE)#> [1] "2014" "2015" "2016" "2017" "2018" "2019"# How to use the data name - most are not package data, due to severe CRAN # package size limitations, so they are retrieved and cached as needed. # The latest ICD-10-CM is included. tail(get_icd10cm_available(), n = 1)#> [1] "icd10cm2019"