
Recode ICD-10 3-letter codes into broad classification groups
Source:R/data_handling.R
recode_icd10_class.RdMaps 3-letter ICD-10 codes into standard ICD-10 chapter ranges (e.g., "A00–B99", "C00–D48").
Value
A character vector indicating the ICD-10 classification range, or `NA` if `DGREG` is not "ICD10".
Examples
diagnoses <- diagnoses_raw |>
dplyr::mutate(
ICD10_3LETTERS = recode_icd10_3letters(DG, DGREG = DGREG),
ICD10_CLASS = recode_icd10_class(ICD10_3LETTERS, DGREG = DGREG)
)
#> Error: object 'diagnoses_raw' not found