Reliable Curation of EHR Dataset via Large Language Models under Environmental Constraints
Raymond M. Xiong, Panyu Chen, Tianze Dong, Jian Lu, Louis Hu, Nathan Yu, Benjamin Goldstein, Danyang Zhuo, Anru R. Zhang

TL;DR
This paper presents CELEC, an LLM-based framework that enables secure, accurate, and efficient natural language querying of EHR databases, facilitating biomedical research without compromising patient privacy.
Contribution
Introduces CELEC, a novel LLM-powered system that translates natural language to SQL for EHR data extraction, ensuring privacy and high accuracy with a robust prompting strategy.
Findings
CELEC achieves accuracy comparable to existing systems.
CELEC maintains strict privacy by only accessing metadata.
Ablation studies highlight the importance of few-shot demonstrations.
Abstract
Electronic health records (EHRs) are central to modern healthcare delivery and research; yet, many researchers lack the database expertise necessary to write complex SQL queries or generate effective visualizations, limiting efficient data use and scientific discovery. To address this barrier, we introduce CELEC, a large language model (LLM)-powered framework for automated EHR data extraction and analytics. CELEC translates natural language queries into SQL using a prompting strategy that integrates schema information, few-shot demonstrations, and chain-of-thought reasoning, which together improve accuracy and robustness. CELEC also adheres to strict privacy protocols: the LLM accesses only database metadata (e.g., table and column names), while all query execution occurs securely within the institutional environment, ensuring that no patient-level data is ever transmitted to or shared…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMachine Learning in Healthcare · Scientific Computing and Data Management · Electronic Health Records Systems
