View source: R/classify_ccsr_pr.R
classify_ccsr_pr | R Documentation |
Converts a vector of ICD-10 procedure codes into a vector of Clinical Classifications Software Refined categories for procedures using the HCUP's software
classify_ccsr_pr(icd_pr)
icd_pr |
A vector of ICD-10-PCS procedure codes, without decimals |
A vector of CCSR categories for procedures
HCUP page for CCSR for procedures
See explain_ccsr
to convert the CCSR category into a
description of the category
CCSR_PR_mapping
in the
hcup.data
package for the dataset
classify_ccsr_pr("0016070")
icd_10_pr <- c("04L04DZ", "009Y40Z", "0F7C7DZ", "GZ2ZZZZ")
classify_ccsr_pr(icd_10_pr)
# Vectorized using `mutate()`
library(dplyr)
dplyr::tibble(icd_10 = icd_10_pr) %>%
mutate(CCSR = classify_ccsr_pr(icd_10),
explained = explain_ccsr(CCSR))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.