Learn R Programming

icd (version 3.3)

icd10_parse_ahrq_ccs: parse AHRQ CCS for mapping - ICD10

Description

Data is downloaded from AHRQ website. ICD10 codes are continually being updated so a parameter for version is provided. This parameter should mimic those found in https://www.hcup-us.ahrq.gov/toolssoftware/ccs10/ccs10.jsp#archive. These are in the format of YYYY.1, YYYY.2 etc.

Usage

icd10_parse_ahrq_ccs(version = "2018.1", save_data = FALSE,
  offline = TRUE)

Arguments

version

string in format like "2018.1" where 1 is the version number as shown on the website

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:::icd10_parse_ahrq_ccs(version = "2018.1",
      save_data = FALSE, offline = FALSE)
  icd:::icd10_parse_ahrq_ccs(version = "2018.1",
      save_data = FALSE, offline = TRUE)
# }

Run the code above in your browser using DataLab