Leveraging Large Language Models to Extract and Translate Medical Information in Doctors' Notes for Health Records and Diagnostic Billing Codes
Not on the map. Why?
Abstract (arXiv)
Physician burnout in the United States has reached critical levels, driven in part by the administrative burden of Electronic Health Record (EHR) documentation and complex diagnostic codes. To relieve this strain and maintain strict patient privacy, this thesis explores an on-device, offline automatic medical coding system. The work focuses on using open-weight Large Language Models (LLMs) to extract clinical information from physician notes and translate it into ICD-10-CM diagnostic codes without reliance on cloud-based services. A privacy-focused pipeline was developed using Ollama, LangChain, and containerized environments to evaluate multiple open-weight models, including Llama 3.2, Mistral, Phi, and DeepSeek, on consumer-grade hardware. Model performance was assessed for zero-shot, few-shot, and retrieval-augmented generation (RAG) prompting strategies using a novel benchmark of synthetic medical notes. Results show that strict JSON schema enforcement achieved near 100% formatting compliance, but accurate generation of specific diagnostic codes remains challenging for smaller local models (7B-20B parameters). Contrary to common prompt-engineering guidance, few-shot prompting degraded performance through overfitting and hallucinations. While RAG enabled limited discovery of unseen codes, it frequently saturated context windows, reducing overall accuracy. The findings suggest that fully automated unsupervised coding with local open-source models is not yet reliable; instead, a human-in-the-loop assisted coding approach is currently the most practical path forward. This work contributes a reproducible local LLM architecture and benchmark dataset for privacy-preserving medical information extraction and coding.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 4 of its 30 references that are in the map. First posted on arXiv 14 Jan 2026.
Builds on
4 of 30 references.
References · 4
- 2023A Study of Generative Large Language Model for Medical Research and Healthcarecited by 160
- 2021Deep Learning-based Patient Re-identification Is able to Exploit the Biometric Nature of Medical Chest X-ray Datacited by 38
- 2023TCM-GPT: Efficient Pre-training of Large Language Models for Domain Adaptation in Traditional Chinese Medicinecited by 7
- 2024Developing Healthcare Language Model Embedding Spacescited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Training a Large Language Model for Medical Coding Using Privacy-Preserving Synthetic Clinical Data
- 2024Rephrasing Electronic Health Records for Pretraining Clinical Language Models
- 2024PrecLLM: A Privacy-Preserving Framework for Efficient Clinical Annotation Extraction from Unstructured EHRs using Small-Scale LLMs
- 2025Leveraging LLMs for Structured Data Extraction from Unstructured Patient Records
- 2025Leveraging Open-Source Large Language Models for Clinical Information Extraction in Resource-Constrained Settings
- 2025SynLLM: A Comparative Analysis of Large Language Models for Medical Tabular Synthetic Data Generation via Prompt Engineering
- 2025Scalable Medication Extraction and Discontinuation Identification from Electronic Health Records Using Large Language Models
- 2026Institution-Specific LLM Prompting Recovers PHI That De-identification Systems and Their Gold Standards Both Miss