Beyond Billing Codes: An Agentic Large Language Model Pipeline for Extracting Glaucoma Procedural Data from Free-Text Clinical Notes
Purpose: To evaluate the accuracy of a large language model (LLM)-based agentic workflow to extract procedural data from free-text glaucoma clinical notes in the electronic health record (EHR). Design: Cross-sectional. Subjects: 1,250 subjects in the Bascom Palmer Ophthalmic Repository. Methods: Randomly sampled clinical notes from glaucoma encounters dated 2014 to 2024 were labeled by two glaucoma specialists (with an adjudicator as needed) for prior glaucoma-related procedures (name, date, details) and recommended future procedures (name, details). Notes were split into development (10%), validation (10%), and test (80%) sets. Five LLMs (Claude Opus 4.6, DeepSeek-V4 Pro, GPT-5.5, Grok 4.1, and Qwen3.6-35B-A3B) were accessed in Microsoft Foundry through HIPAA-compliant containers. The extraction pipeline comprised a three-step agentic workflow (extraction, validation, and conditional revision) followed by text standardization. Detection of procedure data was evaluated using accuracy, sensitivity, specificity, precision, and F1-score. Among positive cases, performance was evaluated using exact-match accuracy and Jaccard Index (JI). Prior procedure labels were also compared with EHR glaucoma-related Current Procedural Terminology (CPT) codes. Main Outcome Measures: Accuracy, exact-match accuracy, JI. Results: A total of 1,984 (992 notes 2 eyes) labels were evaluated for each task in the test set. Prior and future procedures were identified in 1,057 (53.3%) and 152 (7.7%) eyes, respectively. Accuracy ranged from 0.965 (Grok) to 0.996 (Claude) for prior procedures and 0.969 (DeepSeek, Qwen)-0.978 (Claude) for future procedures. Among positive cases, exact-match accuracy ranged from 0.681 (Grok) to 0.890 (Claude) for prior procedures and 0.704 (Grok)-0.849 (Claude) for future procedures; JI ranged from 0.827 (Grok) to 0.956 (Claude) and 0.734 (Grok) to 0.883 (Claude), respectively.
- Link
- https://doi.org/10.64898/2026.10.29.26366154
- Found by
- Crossref
- Authors
- Janet Kang, Nicholas Solages, Gustavo Samico, Naomi Gutkind, Rafael Scherer, Felipe Medeiros, Swarup Swaminathan
- Organizations
- University of Miami;, Bascom Palmer Eye Institute;, Universidade Federal de Sao Paulo;, University of California Los Angeles
- Categories
- benchmark, evaluation, agentic
- Published
- 2026-10-30
- Last seen by the radar
- 2026-10-31
- Citations
- 0
- Radar score
- 49.81 / 100 (how it is scored)
- Why it scored so
- Matched: agentic~evaluate, evaluat, test set; Primary record: Crossref