Appl Clin Inform 2025; 16(05): 1588-1594
DOI: 10.1055/a-2720-5448
Case Report

A FHIR-Powered Python Implementation of the SENECA Algorithm for Sepsis Subtyping

Authors

  • Andrew J. King

    1   University of Pittsburgh School of Medicine, Critical Care Medicine, Pittsburgh, Pennsylvania, United States
  • Christopher M. Horvat

    1   University of Pittsburgh School of Medicine, Critical Care Medicine, Pittsburgh, Pennsylvania, United States
  • David Schlessinger

    2   Kaiser Permanente LLC, Research and Evaluation, Oakland, California, United States
  • Harry Hochheiser

    3   University of Pittsburgh School of Medicine, Biomedical Informatics, Pittsburgh, Pennsylvania, United States
  • Kevin V. Bui

    3   University of Pittsburgh School of Medicine, Biomedical Informatics, Pittsburgh, Pennsylvania, United States
  • Jason N. Kennedy

    1   University of Pittsburgh School of Medicine, Critical Care Medicine, Pittsburgh, Pennsylvania, United States
  • Emily B. Brant

    1   University of Pittsburgh School of Medicine, Critical Care Medicine, Pittsburgh, Pennsylvania, United States
  • James Shalaby

    4   Elimu Informatics, El Cerrito, California, United States
  • Derek C. Angus

    1   University of Pittsburgh School of Medicine, Critical Care Medicine, Pittsburgh, Pennsylvania, United States
  • Vincent X. Liu

    2   Kaiser Permanente LLC, Research and Evaluation, Oakland, California, United States
  • Christopher W. Seymour

    1   University of Pittsburgh School of Medicine, Critical Care Medicine, Pittsburgh, Pennsylvania, United States

Funding This work was supported in part by the Gordon and Betty Moore Foundation. Additional funding support through the National Institutes of Health was provided for E.B. (grant no.: 2-T32-HL007820-21), C.W.S. (grant no.: K23GM104022), V.L. (grant no.: R35GM128672), C.M.H. (grant nos.: K23HD099331 and R01NS118716), H.H. (grant no.: R01NS118716), and J.N.K. (grant no.: R35GM119519).

Abstract

Background

Sepsis is a heterogeneous syndrome with high morbidity and mortality. Despite extensive clinical trials, therapeutic progress remains limited, in part due to the absence of actionable sepsis subtypes.

Objectives

This study aimed to evaluate the feasibility of using HL7 Fast Healthcare Interoperability Resources (FHIR) for prerandomization sepsis subtyping to support clinical trial enrichment across multiple health systems.

Methods

Data from 765 encounters at two academic medical centers were analyzed. FHIR-based resources were extracted from both research data warehouses (RDWs) and electronic health records (EHRs). A Python implementation of the Sepsis Endotyping in Emergency Care (SENECA) sepsis subtyping algorithm was developed to query and assemble FHIR resources for subtype classification.

Results

Open-source Python code for the SENECA algorithm is provided on GitHub. Experiments demonstrated: (1) successful sepsis subtyping across both health systems; (2) concordance between the original R implementation and the new Python implementation; and (3) discrepancies when comparing RDW-derived versus EHR-integrated FHIR APIs, primarily due to query and filtering limitations. Missing data were common and influenced by both clinical practice and FHIR API constraints. We provide five recommendations to address these challenges.

Conclusion

FHIR can support multi-institutional sepsis subtyping and trial enrichment, though technical and governance challenges remain.

Protection of Human and Animal Subjects

This study was approved by the Institutional Review Boards (IRBs) at the University of Pittsburgh (approval #21080005) and Kaiser Permanente (approval #1533936). As a retrospective analysis of de-identified data, informed consent was waived.


Authors' Contributions

Conceptualization: V.X.L., C.W.S., and D.C.A. Methodology and writing—review and editing: all authors. Software: C.M.H., D.S., K.B., J.N.K., and J.S. Data curation: A.J.K., C.M.H., D.S., H.H., K.B., J.N.K., E.B.B., and J.S. Visualization and writing—original draft: A.J.K. Funding acquisition: V.X.L. and C.W.S.




Publication History

Received: 09 February 2025

Accepted: 09 October 2025

Article published online:
07 November 2025

© 2025. Thieme. All rights reserved.

Georg Thieme Verlag KG
Oswald-Hesse-Straße 50, 70469 Stuttgart, Germany