Learn R Programming

icd (version 3.3)

icd9_parse_ahrq_ccs: parse AHRQ CCS for mapping

Description

Data is downloaded from AHRQ website. ICD9 codes were frozen so no updates are needed. CCS codes are available in a Multi level format and a Single level format. Single level is most common for risk adjustment (Ex. CMS Readmission metric)

Usage

icd9_parse_ahrq_ccs(single = TRUE, save_data = FALSE, offline = TRUE)

Arguments

single

a logical value, if TRUE then use single level CCS, otherwise use multi level

save_data

logical whether to save the result in the source tree. Defaults to FALSE.

offline

single logical, if TRUE then don't pull the file from internet, only return path and file name if the file already exists in the raw data directory. This is helpful for testing without using the internet.

Examples

Run this code
# NOT RUN {
  icd:::icd9_parse_ahrq_ccs(single = TRUE, offline = FALSE)
  icd:::icd9_parse_ahrq_ccs(single = TRUE, offline = TRUE)
  icd:::icd9_parse_ahrq_ccs(single = FALSE, offline = FALSE)
  icd:::icd9_parse_ahrq_ccs(single = FALSE, offline = TRUE)
# }

Run the code above in your browser using DataLab