map_ICD10_CCS | R Documentation |
Map ICD-10 codes to clinically meaningful
categories within the Clinical Classifications Software (ccs
)
and the Clinical Classifications Software Refined (ccsr
).
map_ICD10_CCS(df, icd_column)
map_ICD10_CCSR(df, icd_column)
df |
a data frame containing ICD-10 codes |
icd_column |
a variable name or column number in |
This function is designed to be compatible with both ICD-10 and ICD-10-CM versions.
The input data frame with additional CCS/CCSR classifications. CCS categories are mutually exclusive. CCSR categories are not.
ccs
, ccsr
.
mock_icd_data <- data.frame(
list(icd10_code = c("J44", "J44X", "J440")),
stringsAsFactors = FALSE)
mock_icd_data <- map_ICD10_CCS(mock_icd_data, "icd10_code")
mock_icd_data <- map_ICD10_CCSR(mock_icd_data, "icd10_code")
str(mock_icd_data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.