Piloting an automated query and scoring system to facilitate APDS patient identification from health systems

Front Immunol. 2025 Jan 21:15:1508780. doi: 10.3389/fimmu.2024.1508780. eCollection 2024.

Abstract

Introduction: Patients with activated PI3Kδ syndrome (APDS) may elude diagnoses for nearly a decade. Methods to hasten the identification of these patients, and other patients with inborn errors of immunity (IEIs), are needed. We sought to demonstrate that querying electronic health record (EHR) systems by aggregating disparate signs into a risk score can identify these patients.

Methods: We developed a structured query language (SQL) script using literature-validated APDS-associated clinical concepts mapped to ICD-10-CM codes. We ran the query across EHRs from 7 large, US-based medical centers encompassing approximately 17 million patients. The query calculated an "APDS Score," which stratified risk for APDS for all individuals in these systems. Scores for all known patients with APDS (n=46) were compared.

Results: The query identified all but one known patient with APDS (98%; 45/46) as well as patients with other complex disease. Median score for all patients with APDS was 9 (IQR = 5.75; range 1-25). Sensitivity analysis suggested an optimal cutoff score of 7 (sensitivity = 0.70).

Conclusion: Disease-specific queries are a relatively simple method to foster patient identification across the rare-disease spectrum. Such methods are even more important for disorders such as APDS where an approved, pathway-specific treatment is available in the US.

Keywords: AI; APDS; EHR query; IEI diagnosis; diagnostic delay; inborn errors of immunity.

MeSH terms

  • Class I Phosphatidylinositol 3-Kinases* / genetics
  • Electronic Health Records*
  • Humans
  • Primary Immunodeficiency Diseases* / diagnosis

Substances

  • Class I Phosphatidylinositol 3-Kinases

Grants and funding

The author(s) declare financial support was received for the research, authorship, and/or publication of this article. The authors declare that this study received funding from Pharming Healthcare, Inc. The funder was not involved in the study design, collection, analysis, interpretation of data, the original writing of this article, or the decision to submit it for publication.