Learn R Programming

icd (version 4.0.6)

get_icd10cm_available: Get the ICD-10-CM versions available in this package

Description

Get the ICD-10-CM versions available in this package

Usage

get_icd10cm_available(dx = TRUE, return_year = FALSE)

Arguments

dx

Single logical value, if TRUE the default, diagnostic codes will be retrieved and processed. If FALSE, procedure codes will be used. Note that most ICD-10 schemes around the world do not add procedure codes. The US uses them extensively, and these form the basis of the Belgian version of ICD-10.

return_year

Logical, which, if TRUE, will result in only a character vector of year (or year-like version) being returned.

Value

By default, the names of all the data available, for diagnostic ICD-10-CM codes, e.g. icd10cm2019.

Examples

Run this code
# NOT RUN {
# Diagnostic codes:
get_icd10cm_available()
# Just get the years avaiable for ICD-10-CM procedure codes
get_icd10cm_available(dx = FALSE, return_year = TRUE)
# 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)
# }

Run the code above in your browser using DataLab