Re-used by ICD-9 and ICD-10 versions which have the same rules.
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)
matrix or data.frame of comorbidities
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.
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.
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.