Applying CMS Hierarchical Condition Categories comorbid_hcc
works
differently from the rest of the comorbidity assignment functions. This is
because CMS publishes a detailed ICD to Condition Category mapping including
all child ICD codes. While these mappings were the same for 2007-2012, after
2013 there are annual versions, so date must be taken into consideration.
Also, there is a many:many linkage between ICD and Condition Categories (CC).
Once CCs are assigned, a series of hierarchy rules (which can also change
annually) are applied to create the HCCs.
comorbid_hcc( x, date_name = "date", visit_name = get_visit_name(x), icd_name = get_icd_name(x) ) icd9_comorbid_hcc(x, date_name = "date", visit_name = NULL, icd_name = NULL) icd10_comorbid_hcc(x, date_name = "date", visit_name = NULL, icd_name = NULL)
x | data frame with columns for patient/visit ID, ICD code and date |
---|---|
date_name | the name of the column representing the date of each record. Needed because each year there is a different ICD9/10 to CC mapping). Default value is 'date'. |
visit_name | The name of the column in the data frame which contains the
patient or visit identifier. Typically this is the visit identifier, since
patients come leave and enter hospital with different ICD-9 codes. It is a
character vector of length one. If left empty, or |
icd_name | The name of the column in the |
icd9_comorbid_hcc
: Get HCCs from a data frame of ICD-9 codes
icd10_comorbid_hcc
: Get HCCs from a data frame of ICD-10 codes
Other comorbidity computations:
comorbid()
Other comorbidities:
comorbid()
,
icd10_map_ahrq_pcs
,
icd9_map_ahrq
,
icd9_map_elix
,
icd9_map_hcc
,
icd9_map_pccc
,
icd9_map_quan_deyo
,
icd9_map_quan_elix
,
icd9_map_single_ccs