Learn R Programming

icd (version 3.3)

parse_leaf_descriptions_all: Get billable codes from all available years

Description

For versions 23 to 32, those which are on the CMS web site, get any codes with long or short descriptions. Earlier years only have abbreviated descriptions.

Usage

parse_leaf_descriptions_all(save_data = TRUE, offline = TRUE)

Arguments

save_data

single logical value, if TRUE the source text or CSV file will be saved in the raw data directory, otherwise (the default) the data is simply returned invisibly.

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.

Value

data frame with icd9, short_desc and long_desc columns. NA is placed in long_desc when not available.

Examples

Run this code
# NOT RUN {
  # To populate the raw data directory with the ICD-9 source:
  # not included in installed package, run using the full source from github,
  # e.g. using devtools::load_all()
  
# }
# NOT RUN {
  parse_leaf_descriptions_all(save_data = TRUE, offline = TRUE)
  
# }

Run the code above in your browser using DataLab