apply_hier: Apply hierarchy and choose naming for each comorbidity map

Description Usage Arguments Details

Description

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

Usage

1
2
3
4
5
6
7
apply_hier_elix(x, abbrev_names, hierarchy = TRUE)

apply_hier_quan_elix(cbd, abbrev_names, hierarchy = TRUE)

apply_hier_quan_deyo(cbd, abbrev_names, hierarchy = TRUE)

apply_hier_ahrq(cbd, abbrev_names, 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.


icd documentation built on July 2, 2020, 4:07 a.m.