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

Description Usage Arguments Value Examples

View source: R/icd-cm-ver.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
8
# 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)

icd documentation built on July 2, 2020, 4:07 a.m.