Skip to content
Open access

Release-aware, SAS-equivalent Elixhauser comorbidity scoring in R: cross-implementation validation and application to Texas inpatient discharges

Oct 2026 · medRxiv · 0 citations
Medicine

TL;DR

An open-source R package is developed covering all eleven releases of both families of Elixhauser comorbidity measures, with a browser-based application over the same functions, and validated it against AHRQ's own SAS programs over 40,027,114 value-level comparisons with zero disagreements.

Abstract

The Elixhauser comorbidity measures are among the most widely used risk adjusters in administrative health data. Their reference implementation, published by the Agency for Healthcare Research and Quality (AHRQ) as SAS programs, has eleven annual releases in two families, one screening pre-existing conditions on the present-on-admission (POA) indicator and the earlier one on Medicare Severity Diagnosis-Related Group, and no implementation of every release existed outside SAS. We developed `ecsr10`, an open-source R package covering all eleven releases of both families, with a browser-based application over the same functions, and validated it against AHRQ's own SAS programs over 40,027,114 value-level comparisons with zero disagreements. Two existing open-source reimplementations scored on the same dataset showed reproducible defects. We then used the package to quantify two choices AHRQ's software leaves to the analyst and studies seldom report, the release and the handling of diagnoses not present on admission, on the Texas Inpatient Public Use Data File, 2016 Q1-2019 Q4 (8,585,244 adult discharges from 726 hospitals), scoring one predefined cohort under every release and pre-existing-condition setting. POA handling dominated: disabling POA changed the comorbidity profile of 56.7% of admissions, and a POA-naive mortality index scored higher on discrimination (area under the curve 0.807 versus 0.789; difference 0.0183, 95% confidence interval 0.0161-0.0204) by counting in-hospital complications as pre-existing disease. POA reporting was bimodal across hospitals, so pooled hospital comparisons on such a file partly compare documentation practice. Because the cohort predates every release compared, the release contrast is a lower bound: the release chosen between v2022.1 and v2026.1 changed at least one comorbidity flag for 0.0036% of admissions, yet a single revision of ten mortality weights changed the comorbidity index for 42.4% of them. An exactly validated implementation makes such choices measurable; release, POA handling and the implementation used should be reported as study characteristics.

Read PDF

Similar papers

Open access Sep 2026

Derivation and Validation of Charlson, Elixhauser and RxRisk Cost-Based Comorbidity Indices: A Register-Based Study of 350,000 Individuals Over 11 Years.

BACKGROUND Comorbidity indices are widely applied to adjust for confounding in observational research. However, health economic analyses often adjust for comorbidity using mortality-based indices, despite health conditions being likely associated differently, both in terms of magnitude and direction, to resource use th...

Camilla Nystrand, Naimi Johansson, J. Blom · 0 citations
Open access Sep 2026

An American Hospital Association-informed weighting framework for Oracle Health Real-World Data: validation against National Healthcare Cost and Utilization Project encounter databases

Abstract Objective To develop and validate a weighting framework to improve representativeness of Oracle Health Real-World Data (OHRWD). Materials and Methods We conducted cross-sectional analyses of OHRWD encounters in 2019 and 2022. The primary method (M1) applied design weights based on American Hospital Association...

F. Qeadan, Benjamin Tingey, Mirjana Glisovic-Bensa et al. · 0 citations
Review Open access Sep 2026

Development and validation of a prior-to-admission medication list risk scoring tool.

PURPOSE To develop, validate, and implement an admission predictive model that estimates the likelihood and expected number of changes to the prior-to-admission (PTA) medication list, to help triage pharmacy-led medication histories. METHODS We performed a retrospective study of adult admissions at a large academic m...

S. Nelson, M. Hobensack, L. M. Fleenor et al. · 0 citations
Open access Sep 2026

Do established comorbidity scores predict in-hospital mortality equally well in women and men? A nationwide validation in 166.7 million German inpatient cases, 2010-2024

Applied with a single formula to both sexes, three established comorbidity scores are calibrated differently in women and men, whereas their discrimination differs only marginally, which supports sex-specific recalibration.

J. Decker, H. Mirbagheri, S. Hellbrueck et al. · 0 citations
Aug 2026

Restricting Claims Data to 25 ICD-10-CM Codes Leads to Underestimation of Elixhauser Comorbidities.

OBJECTIVE The Centers for Medicare and Medicaid Services (CMS) inpatient claims data include up to 25 International Classification of Diseases Clinical Modification (ICD-10-CM) diagnosis codes per encounter, which are relied upon for comparing hospitals' risk-adjusted outcomes. Because hospital billing frequently inclu...

S. Anderson, Bryan P. Hull, Sean C. Dowdy et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.