explain_ccs: Look up CCS category descriptions

View source: R/explain.R

explain_ccsR Documentation

Look up CCS category descriptions

Description

Look up CCS category descriptions

Usage

explain_ccs(ccs, detailed = FALSE)

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 to TRUE, it will return a list of named character vectors

Examples

# Explain the CCS for diagnosis categories
explain_ccs("DX37")

# The same function works for procedures
explain_ccsr("PR28")

# 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))

HunterRatliff1/hcup documentation built on Aug. 6, 2023, 6:10 p.m.