Comorbidity Burden and Length of Stay After Myocardial Infarction: A Retrospective Study Using Large Language Model-Assisted Chart Abstraction in a Tertiary Cardiac Hospital

Am J Cardiol. 2026 Jul 1:270:54-59. doi: 10.1016/j.amjcard.2026.04.019. Epub 2026 Apr 16.

Abstract

Patients' length of stay (LOS) during admission for myocardial infarction (MI) represents a closely tracked outcome metric for Cardiology services, which has declined over time. Charlson Comorbidity Index (CCI) is a validated tool for assessing overall disease burden, but its abstraction is laborious. Large language models (LLMs) have emerged as an attractive option for chart abstraction, with limited uptake so far. We studied n = 6,129 MI admissions at a tertiary cardiac hospital from May 2018 to August 2024. An LLM was used to derive CCI from clinical case notes with manual validation by expert auditors in 10% of patients (R-squared 0.81). Fine and Gray survival analysis was performed to study time-to-discharge in mixed survival models with clustering on individual patients and in-hospital death as competing outcome, adjusting for covariates not already included in CCI (e.g., age, race, smoking, MI type, atrial fibrillation, revascularization). We found an increase in CCI over time (0.09 (CI95: 0.06 to 0.12) points per year) due to more diabetes, hypertension, renal failure, lymphomas and metastatic solid tumors) and a concomitant rise in mean LOS by 6.5 (CI95: 3.9 to 9.1) hours annually. CCI emerged as the strongest predictor of LOS (p < 2e-16), with no significant effect by calendar year to suggest a residual secular trend after full adjustment (p = 0.17). These results validate the use of an LLM for chart abstraction and indicate that rising patient complexity is reversing the earlier downtrend in LOS in MI patients.

Keywords: artificial intelligence; coronary artery disease; myocardial infarction; natural language processing.

MeSH terms

  • Aged
  • Comorbidity
  • Female
  • Hospital Mortality
  • Humans
  • Large Language Models
  • Length of Stay* / statistics & numerical data
  • Male
  • Middle Aged
  • Myocardial Infarction* / epidemiology
  • Myocardial Infarction* / therapy
  • Retrospective Studies
  • Tertiary Care Centers