PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
May 9, 2026PLOS Digital Health0 citationsOpen Access

Large language models are poor clinical administrators: An evaluation of structured queries in real-world electronic health records

View Full Paper
EKEyal KlangVSVera SorinPKPanagiotis Korfiatis

Key Points

  • This research aims to evaluate the accuracy of large language models on administrative tasks in structured electronic health records.
  • Evaluated nine large language models using a dataset of 50,000 emergency department visits.
  • Tested across 25 combinations of table sizes to assess performance with direct prompting, chain-of-thought reasoning, and tool-based code generation.
  • Measured accuracy as the proportion of model outputs that matched validated references.
  • Performance varied significantly across models, tasks, and prompting strategies.
  • Direct prompting resulted in uniformly low accuracies, while CoT prompting moderately improved results but degraded with larger tables.
  • Tool-based prompting achieved significantly higher accuracy and output formatting compliance.

Abstract

Large language models (LLMs) have shown promise in interpreting clinical free-text like provider notes. There is limited evidence on tabular electronic health record (EHR) tasks. Our objective was to evaluate the accuracy of LLMs on structured EHR administrative tasks using direct prompting, chain-of-thought (CoT) reasoning, and tool-enabled code generation. We evaluated nine LLMs randomly sampling from a real-world sampled dataset of 50,000 emergency department (ED) visits. Tasks were tested across 25 combinations of table sizes (5–25 rows and columns). Models were prompted directly or with CoT reasoning to return numerical answers. In the tool setting, models generated Python code, which was executed to retrieve answers. Accuracy was defined as the proportion of model outputs matching validated references. We also assessed JSON format compliance. Across 32,950 model queries, performance varied by model, task type, and prompting strategy. Direct prompting produced uniformly low accuracies. CoT prompting moderately improved performance, particularly for logical filtering, but results degraded significantly as table size increased. The tool-based strategy substantially improved accuracy. Smaller models and distilled reasoning variants had more frequent formatting and execution errors. In conclusion, for structured EHR tabular data extraction, direct and CoT prompting strategies resulted in limited accuracy and poor scalability, particularly as table size increased. Tool-based prompting, where models generated and executed Python code, achieved higher accuracy and valid output formatting. Structured data tasks in clinical workflows may require hybrid approaches that combine LLMs with code execution to ensure accuracy and consistency.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Klang et al. (2026) studied this question.

synapsesocial.com/papers/69fecfafb9154b0b82876a10https://doi.org/10.1371/journal.pdig.0001326
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Large Language Models Are Poor Medical Coders — Benchmarking of Medical Code Querying2024 · 133 citations
  2. 2Privacy-preserving large language models for structured medical information retrieval2024 · 128 citations
  3. 3Evaluating the accuracy of a state-of-the-art large language model for prediction of admissions from the emergency room2024 · 85 citations
  4. 4LLM-Based Framework for Administrative Task Automation in Healthcare2024 · 52 citations
  5. 5A critical assessment of using ChatGPT for extracting structured data from clinical notes2024 · 273 citations