medicalrisk: Medical Risk and Comorbidity Tools for ICD-9-CM Data

Generates risk estimates and comorbidity flags from ICD-9-CM codes available in administrative medical datasets. The package supports the Charlson Comorbidity Index, the Elixhauser Comorbidity classification, the Revised Cardiac Risk Index, and the Risk Stratification Index. Methods are table-based, fast, and use the 'plyr' package, so parallelization is possible for large jobs. Also includes a sample of real ICD-9 data for 100 patients from a publicly available dataset.

Install the latest version of this package by entering the following in R:
install.packages("medicalrisk")
AuthorPatrick McCormick [aut, cre], Thomas Joseph [aut]
Date of publication2016-01-24 15:45:31
MaintainerPatrick McCormick <patrick.mccormick@alum.mit.edu>
LicenseGPL-3 | file LICENSE
Version1.2
https://github.com/patrickmdnet/medicalrisk

View on CRAN

Man pages

charlson_list: List of Charlson comorbidities

charlson_weights: Map of Charlson comorbidity categories to revised weights

charlson_weights_orig: Map of Charlson comorbidity categories to weights

elixhauser_list: List of Elixhauser comorbidities

generate_charlson_index_df: Calculate the Charlson Comorbidity Index

generate_comorbidity_df: Generate a comorbidity dataframe

icd9cm_charlson_deyo: Create Deyo map of ICD-9-CM to Charlson comorbidities

icd9cm_charlson_quan: Create Quan map of ICD-9-CM to Charlson comorbidities

icd9cm_charlson_romano: Create Romano map of ICD-9-CM to Charlson comorbidities

icd9cm_elixhauser_ahrq37: Create AHRQ v3.7 map of ICD-9-CM to Elixhauser comorbidities

icd9cm_elixhauser_quan: Create Quan map of ICD-9-CM to Elixhauser comorbidities

icd9cm_list: List of ICD-9-CM diagnostic and procedural codes

icd9cm_rcri: Create Map of ICD-9-CM to Revised Cardiac Risk Index classes

icd9cm_sessler_rsi: Returns composite Sessler risk stratification index, given a...

melt_icd9list: Convert ICD-9-CM code list to dataframe

merge_icd9_dx_and_procs: Merge ICD-9-CM diagnostic and procedure codes

rsi_beta_1yrpod: Values for calculating RSI for 1 year mortality

rsi_beta_30dlos: Values for calculating RSI for 30-day length of stay

rsi_beta_30dpod: Values for calculating RSI for 30-day mortality

rsi_beta_inhosp: Values for calculating RSI for in-hospital mortality.

rsi_sample_data: Sample data for validating RSI

rsi_sample_results: Sample results for validating RSI

sessler_get_single_beta: Returns the covariate coefficient for a particular diagnosis...

verify_sessler_rsi: Validates this Sessler RSI implementation against reference...

vt_inp_sample: First 100 patients and their ICD-9-CM codes from the Vermont...

Functions

charlson_list Man page
charlson_weights Man page
charlson_weights_orig Man page
elixhauser_list Man page
generate_charlson_index_df Man page
generate_comorbidity_df Man page
icd9cm_charlson_deyo Man page
icd9cm_charlson_quan Man page
icd9cm_charlson_romano Man page
icd9cm_elixhauser_ahrq37 Man page
icd9cm_elixhauser_quan Man page
icd9cm_list Man page
icd9cm_rcri Man page
icd9cm_sessler_rsi Man page
melt_icd9list Man page
merge_icd9_dx_and_procs Man page
rsi_beta_1yrpod Man page
rsi_beta_30dlos Man page
rsi_beta_30dpod Man page
rsi_beta_inhosp Man page
rsi_sample_data Man page
rsi_sample_results Man page
sessler_get_single_beta Man page
verify_sessler_rsi Man page
vt_inp_sample Man page

Files

inst
inst/tests
inst/tests/test-melt_icd9list.R
inst/sql
inst/sql/sql_example.sql
inst/doc
inst/doc/advanced.Rmd
inst/doc/medicalrisk.Rmd
inst/doc/advanced.R inst/doc/medicalrisk.R
inst/doc/advanced.html
inst/doc/medicalrisk.html
tests
tests/test-all.R
NAMESPACE
NEWS
data
data/elixhauser_list.rda
data/rsi_beta_inhosp.rda
data/rsi_beta_1yrpod.rda
data/charlson_weights_orig.rda
data/rsi_beta_30dpod.rda
data/icd9cm_list.rda
data/rsi_sample_data.rda
data/charlson_weights.rda
data/rsi_beta_30dlos.rda
data/rsi_sample_results.rda
data/vt_inp_sample.rda
data/charlson_list.rda
R
R/data.R R/icd9cm.R R/calculate-rsi.R
vignettes
vignettes/advanced.Rmd
vignettes/medicalrisk.Rmd
vignettes/medicalrisk.bib
README.md
MD5
build
build/vignette.rds
DESCRIPTION
man
man/charlson_weights.Rd man/melt_icd9list.Rd man/icd9cm_rcri.Rd man/icd9cm_sessler_rsi.Rd man/rsi_beta_30dpod.Rd man/icd9cm_elixhauser_quan.Rd man/icd9cm_elixhauser_ahrq37.Rd man/merge_icd9_dx_and_procs.Rd man/icd9cm_list.Rd man/vt_inp_sample.Rd man/generate_charlson_index_df.Rd man/icd9cm_charlson_quan.Rd man/generate_comorbidity_df.Rd man/rsi_sample_data.Rd man/verify_sessler_rsi.Rd man/rsi_beta_30dlos.Rd man/sessler_get_single_beta.Rd man/charlson_list.Rd man/rsi_sample_results.Rd man/rsi_beta_1yrpod.Rd man/charlson_weights_orig.Rd man/icd9cm_charlson_deyo.Rd man/icd9cm_charlson_romano.Rd man/elixhauser_list.Rd man/rsi_beta_inhosp.Rd
LICENSE

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.