Look up CCS category descriptions
explain_ccs.Rd
Look up CCS category descriptions
Arguments
- ccs
Vector of CCS codes to be explained. Can be a mix of diagnosis and/or procedure CCS groups.
- detailed
Single logical value which indicates if more details should be returned. The default is
FALSE
, in which case only the description of the CCS category is returned. If set toTRUE
, it will return a list of named character vectors
Examples
# Explain the CCS for diagnosis categories
explain_ccs("DX37")
#> [1] "Hodgkin`s disease"
# The same function works for procedures
explain_ccsr("PR28")
#> Warning: No CCSR category found for PR28
#> NULL
# Vectorized using `mutate()`
library(dplyr)
dplyr::tibble(
CCS = c("DX37", "PR28", "PR-5.6", "DX-9.6.3"),
Type = c("DX", "PR", "PR", "DX")) %>%
mutate(explained = explain_ccs(CCS))
#> # A tibble: 4 × 3
#> CCS Type explained
#> <chr> <chr> <chr>
#> 1 DX37 DX Hodgkin`s disease
#> 2 PR28 PR Plastic procedures on nose
#> 3 PR-5.6 PR Other non-OR therapeutic procedures on nose; mouth and pharynx…
#> 4 DX-9.6.3 DX Intestinal obstruction without hernia [145.]