classify_ccsr_dx1 | R Documentation |
Converts a vector of ICD-10 principal diagnosis codes to the default Clinical Classifications Software Refined (CCSR) category based on the inpatient or outpatient setting
classify_ccsr_dx1(icd_10_dx1, setting = NULL)
icd_10_dx1 |
A vector of principal ICD diagnosis codes (without decimals) |
setting |
Either " |
The Clinical Classifications Software Refined (CCSR) software
provides both one-to-one mapping (see classify_ccsr_dx1
)
and one-to-many (see ccsr_dx
) mapping of ICD-10-CM
diagnosis codes to CCSR categories. The one-to-many mapping is
necessary because many ICD-10 codes span multiple meaningful
categories, and the identification of all conditions related to
a diagnosis code would be lost by categorizing some ICD-10-CM
codes into a single category.
For example, consider the code I11.0 (Hypertensive heart disease with heart failure) which encompasses both heart failure (CCSR category CIR019) and hypertension with complications (CIR008). Classifying this code as heart failure alone would miss meaningful information, but on the other hand, some analyses require mutually exclusive categorization.
CCSR accomplishes this by providing a "default" CCSR category based on the principal diagnosis (for inpatient data) and the first-listed diagnosis (for outpatient data); see page 16 of the CCSR DX user guide for details.
This function addresses identifying the default CCSR category
based on the principal/first-listed diagnosis. For applications
utilizing all ICD-10-CM codes, such as risk adjustment and
identification of comorbidities, please use the
ccsr_dx
function.
A vector of the default CCSR categories
ccsr_dx
for identifying all CCSR categories in a
non-mutually exclusive method
classify_ccsr_dx1("I110", setting = "inpatient")
library(dplyr)
dplyr::tibble(ICD10 = c("G4730", "L563", "A001")) %>%
mutate(CCSR_ip = classify_ccsr_dx1(ICD10, setting="inpatient"),
CCSR_op = classify_ccsr_dx1(ICD10, setting="outpatient"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.