hierarchy: Applies the comorbidity hierarchy to the comorbidity groups

Description Usage Arguments Value See Also Examples

Description

The hierarchy functions generally remove less complicated diseases when more complicated diseases are present. For instance if a metastasis code is present then the solid tumor code is obsolete.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13

Arguments

out

A matrix/data.frame/vector with the comorbidity groups outputted from the cmrbdt.finder.*() functions

Value

out Returns the same as the input but with the hierarchy applied

See Also

cmrbdt.finder.numeric.ahrq

cmrbdt.finder.numeric.elixhauser_Elixhauser1998

cmrbdt.finder.regex.elixhauser_Quan2005

cmrbdt.finder.numeric.charlson_Deyo1992

cmrbdt.finder.regex.charlson_Quan2005

cmrbdt.finder.regex.charlson_Sundarajan2004

cmrbdt.finder.regex.charlson_Armitage2010

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# AHRQ example
out <- cmrbdt.finder.numeric.ahrq("31323")
out[c("DM.COMP", "DM.UNCOMP")] <-TRUE
hierarchy.ahrq(out)
# Deyo example
out <- cmrbdt.finder.numeric.charlson_Deyo1992("31323")
out[grep("LIVER", names(out))] <-TRUE
hierarchy.charlson_Deyo1992(out)
# Armitage example
out <- cmrbdt.finder.regex.charlson_Armitage2010("I252")
out[grep("LIVER", names(out))] <-TRUE
hierarchy.charlson_Armitage2010(out)

gforge/comorbidities.icd10 documentation built on May 17, 2019, 2:12 a.m.