A Clinically Grounded Rule-Based Phenotyping Framework for Identifying Immune-Related Adverse Events in Structured Electronic Health Record Data: A Retrospective EHR Study.
Natalya Alekhina, Kathi Mooney, Katherine Sward, Bob Wong, Wallace Akerley
Key points
From the paper's conclusion- We propose a clinically grounded, generalizable framework for phenotyping irAEs in structured data, using immune-mediated diarrhea and colitis (IMDC) as a representative use case.
Abstract
Background Accurate identification of immune-related adverse events (irAEs) in structured electronic health record (EHR) data remains a major challenge due to the lack of specific diagnostic codes and inconsistent documentation. We propose a clinically grounded, generalizable framework for phenotyping irAEs in structured data, using immune-mediated diarrhea and colitis (IMDC) as a representative use case. Methods Using a large, curated EHR-derived dataset of adults with advanced non-small cell lung cancer (NSCLC) treated with immune checkpoint inhibitors (ICIs), we developed a rule-based phenotyping framework informed by clinical practice guidelines and the clinical course of irAEs. The approach integrates (1) treatment exposure, (2) temporally anchored immunosuppressive therapy, and (3) diagnostic code patterns to identify moderate-to-severe irAEs, with IMDC used to enhance specificity. Results We developed and demonstrated a guideline-informed framework for identifying complex treatment-related toxicities in structured EHR data, using immune-mediated diarrhea and colitis (IMDC) as a representative use case. Among 14,659 eligible patients treated with immune checkpoint inhibitors, 576 (3.93%) met criteria for potential grade 2-4 immune-related adverse events (irAEs). Of these, 58 (0.40%) were further classified as IMDC based on temporally aligned diagnostic codes. The framework demonstrated the feasibility of identifying clinically meaningful adverse events using structured data elements and guideline-informed temporal relationships. Conclusions This study presents a scalable, clinically interpretable, and generalizable framework for phenotyping complex clinical outcomes in structured EHR data without reliance on advanced computational methods. By leveraging treatment patterns, diagnostic codes, and guideline-informed temporal relationships, the approach enhances reproducibility and portability across datasets and healthcare settings. Clinically grounded, rule-based phenotyping may serve as a practical complement to machine learning and natural language processing approaches when developing computable phenotypes for complex treatment-related toxicities.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- An agentic AI system enhances clinical detection of immune-related adverse events in a multi-phase validation study.Nature cancer · 2026
- irAE-GPT: leveraging large language models to identify immune-related adverse events in electronic health records and clinical trial datasetsEBioMedicine · 2026
- Comprehensive safety analysis of the clinical spectrum of adverse events associated with immune checkpoint inhibitors based on FAERSFrontiers in Immunology · 2026
- Human-in-the-loop large language model framework for identification of cutaneous immune-related adverse eventsnpj Precision Oncology · 2026
- Retrieval-Augmented Large Language Models for Clinically Aligned Adverse Event Coding in Acute Myeloid Leukemia Clinical TrialsmedRxiv · 2026
- Five latent patterns of immune checkpoint inhibitor-related adverse event reporting across cancer types: an integrated pharmacovigilance and transcriptomic analysisFrontiers in Immunology · 2026