An R package for converting ICD-10 diagnosis codes and ICD-10-PCS procedure codes into human-readable descriptions.
This package was developed while working with NIS (National Inpatient Sample) data, where ICD codes are difficult to interpret and require repetitive manual lookup.
During research, manually mapping ICD codes to descriptions was time-consuming and error-prone. This package automates that process for vectors, data frames, and association rule outputs.
An R package for converting ICD-10 diagnosis codes and ICD-10-PCS procedure codes into descriptions.
This package helps you:
install.packages(“devtools”)
devtools::install_github(“nishasheshashayee/icdhelper”)
library(icdhelper)
icd_desc(“I10”)
icd_desc(c(“I10”,“E11”))
df <- data.frame(code = c(“I10”,“E11”))
df2 <- add_icd_desc(df, “code”)
df2 <- add_icd_desc_df(df, “code”)
proc_desc(“0DJ07ZZ”)
df_proc <- data.frame(proc = c(“0DJ07ZZ”))
df_proc2 <- add_proc_desc_df(df_proc, “proc”)
rules_with_desc(rules)
proc_rules_with_desc(rules)
Dictionaries are stored inside the package (inst/extdata)
Nisha Sheshashayee