Learn R Programming

icd (version 3.3)

apply_hier: Apply hierarchy and choose naming for each comorbidity map

Description

Re-used by ICD-9 and ICD-10 versions which have the same rules.

Usage

apply_hier_elix(x, abbrev_names = TRUE, hierarchy = TRUE)

apply_hier_quan_elix(cbd, abbrev_names = TRUE, hierarchy = TRUE)

apply_hier_quan_deyo(cbd, abbrev_names = TRUE, hierarchy = TRUE)

apply_hier_ahrq(cbd, abbrev_names = TRUE, hierarchy = TRUE)

Arguments

x

matrix or data.frame of comorbidities

abbrev_names

single logical value that defaults to TRUE, in which case the shorter human-readable names stored in e.g. ahrqComorbidNamesAbbrev are applied to the data frame column names.

hierarchy

single logical value that defaults to TRUE, in which case the hierarchy defined for the mapping is applied. E.g. in Elixhauser, you can't have uncomplicated and complicated diabetes both flagged.

Details

For Deyo's Charlson comorbidities, strictly speaking, there is no dropping of more e.g. uncomplicated DM if complicated DM exists, however, this is probably useful, in general and is essential when calculating the Charlson score.