get_icd_labels | R Documentation |
A utility function to get or query icd_meta_codes, returning a limited selection of ICD-10 codes and labels.
get_icd_labels(year = NULL, icd3 = NULL, search = NULL, ...)
year |
Year or years to get (numeric or character vector) |
icd3 |
A character vector of three-digit ICD-10 codes to select |
search |
(optional) A string to search for in the label column using fuzzy matching (agrep) |
... |
(optional) Further arguments passed to agrep when searching with icd_label |
If an ICD code is provided as argument icd3
, all
corresponding codes and subcodes are returned. If a search
term is provided, all codes are returned whose label matches
the string approximately.
Returns a data frame with ICD metadata, consisting of year, ICD code and label. Optional arguments allow selection of entries by year, code or label. This is beneficial because the entire history is relatively large and rarely required in full.
data.frame(year, icd3, icd_code, icd_normcode, icd_sub, label), see icd_labels
get_icd_labels(year = 2019, icd3 = "I25")
get_icd_labels(year = 2019, search = "Asthma")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.