Description Usage Arguments Details Value Author(s) References Examples
View source: R/calculate-rsi.R
ICD-9-CM codes must have periods removed. Diagnostic codes are prefixed with
'D' while procedure codes are prefixed with 'P'. So, diagnostic code
404.03
should be "D40403"
.
1 | icd9cm_sessler_rsi(icd9)
|
icd9 |
a unique character vector of ICD-9-CM codes |
Note: A subsequent publication (Sigakis, 2013) found the following: "Calibration "in-the-large" for RSI in-hospitalmortality illustrated a discrepancy between actual (1.5 identified a regression constant (-2.198) in the published RSI "all-covariates.xls" file that was not used in the published SPSS implementation macro."
The risk stratification index score
Tom Joseph <thomas.joseph@mountsinai.org>, Patrick McCormick <patrick.mccormick@mountsinai.org>
1. Sessler DI, Sigl JC, Manberg PJ, Kelley SD, Schubert A, Chamoun NG. Broadly applicable risk stratification system for predicting duration of hospitalization and mortality. Anesthesiology. 2010 Nov;113(5):1026-37. doi: 10.1097/ALN.0b013e3181f79a8d.
2. Sigakis MJG, Bittner EA, Wanderer JP: Validation of a risk stratification index and risk quantification index for predicting patient outcomes: in-hospital mortality, 30-day mortality, 1-year mortality, and length-of-stay. Anesthesiology 2013; 119:525-40
1 2 3 4 5 6 | # Calculate RSI for each patient ("id") in dataframe
cases <- data.frame(id=c(1,1,1,2,2,2),
icd9cm=c("D20206","D24220","D4439","D5064","DE8788","D40403"),
stringsAsFactors=TRUE)
library(plyr)
ddply(cases, .(id), function(x) { icd9cm_sessler_rsi(x$icd9cm) } )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.