get_icd_history: Get ICD history metadata

View source: R/data.R

get_icd_historyR Documentation

Get ICD history metadata

Description

A utility function to query the icd_meta_transition table.

Usage

get_icd_history(years = NULL, icd3 = NULL)

Arguments

years

Year or years to get (numeric or character vector)

icd3

(optional) ICD codes to select (regular expression, matched exactly using grep)

Details

Returns a data frame with ICD transition history, consisting of year, ICD code and label. Optional arguments allow selection of entries by year or ICD code. This is beneficial because the entire history is relatively large and rarely required in full.

Value

data.frame, see icd_hist

Examples

get_icd_history(years = 2009:2010, icd3 = "K52")

edonnachie/ICD documentation built on Oct. 1, 2023, 6:30 p.m.