README.md

icd10us

R-CMD-check

The goal of icd10us is to make it easier to work with ICD-10 codes typically found in U.S. electronic health record (EHR) and insurance claims datasets. This is primarily a data package that includes the most recent ICD-10-CM diagnosis and ICD-10-PRC procedure codes provided by the U.S. Centers for Medicare and Medicaid Services (CMS). The version of the package reflects the version of the CMS ICD-10 codes.

Installation

You can install the development version of icd10us from GitHub with:

# install.packages("devtools")
devtools::install_github("vcastro/icd10us")

Examples

library(icd10us)
library(dplyr)

#display ICD-10-CM codes
icd10cm 

#show only chronic diagnosis codes (based on AHRQ chronic indicator)
icd10cm %>% 
  filter(chronic_indicator == "C")

#show all ICD-10 codes between two codes
codes_between("F32", "F33")



vcastro/icd10us documentation built on Dec. 23, 2021, 3:02 p.m.