Agentic Pipeline for Large-Scale Clinical Data Queries in Enterprise Electronic Health Records
K. Pawar, N. Tavabi, A. Kalepalli, N. Kalepalli, M. Blackmon, A. Williamson, A. Kiapour
Key points
From the paper's conclusion- We developed an agentic large language model (LLM) pipeline that decomposes investigator-authored requests into source-specific tasks, generates and executes SQL on EHR, integrates structured and unstructured EHR evidence, and applies study-specific clinical note adjudication.
Abstract
Using electronic health record (EHR) data to answer clinical research questions is challenging. It requires understanding the research question, finding relevant information across different sources, and combining that information to produce meaningful results. We developed an agentic large language model (LLM) pipeline that decomposes investigator-authored requests into source-specific tasks, generates and executes SQL on EHR, integrates structured and unstructured EHR evidence, and applies study-specific clinical note adjudication. We evaluated this workflow against data analyst-identified cohorts across 50 pediatric orthopedic clinical data query requests. Of these, 43 were included in manual-review-adjusted performance analyses. The median adjusted positive predictive value, sensitivity among patients identified by either approach, and corresponding F1 score were 0.93 (95% CI, 0.88-0.98), 0.92 (95% CI, 0.90-0.95) and 0.90 (95% CI, 0.87-0.94), respectively. These findings support the feasibility of translating natural-language research intent into executable, autonomous multi-stage EHR workflows.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- The EHRNavigator multi-agent system for patient-level clinical question answering over heterogeneous electronic health records.npj health systems · 2026
- M3: Conversational LLMs simplify secure clinical data access, understanding, and analysis.PLOS digital health · 2026
- Exploratory Implementation and Feasibility Report of CLASS (Clinical LLM Abstraction & Structuring System), A Large Language Model Pipeline for Extracting Unstructured Data From Clinical Notes.Journal of medical systems · 2026
- Large Language Models for Structured Clinical Data Analysis: Dual-Agent Grounding and ValidationarXiv · 2026
- rendehR: a cohort-first, provenance-aware, agentic-ready pipeline for harmonizing multi-source electronic health recordsmedRxiv · 2026
- Natural-language cohort queries on a hospital data platform: accuracy and provenance in a real-world evaluationmedRxiv · 2026