Extraction of clinical information from faxed medical records using a small local large language model pipeline on consumer hardware
Journal:
medRxiv
Published Date:
Oct 5, 2026
Abstract
Objective Specialty referral packets often arrive by fax and clinicians must manually read and organize a large amount of disparate information to affect continuity of care. Commercial large language models (LLMs) can organize packet information, but protected health information (PHI) must be secured. We evaluated whether an open-weight pipeline running entirely on one consumer graphics card can accurately extract clinical information from faxed referral packets. Materials and Methods We generated 200 synthetic colorectal cancer referral packets from simulated patient records, rendered them as faxes without a text layer. A local pipeline transcribed each packet with an optical character recognition model (OvisOCR2) and extracted structured data with an open-weight LLM (Qwen3.8 27B). Twenty outcomes spanning patient identifiers, laboratory results, dates, diagnoses, procedures, medications, imaging, and event chronology were scored against ground truth on 140 validation packets. Results Laboratory values were extracted exactly in 98.9% of 7879 instances, dates in 99.7%, diagnoses in 100%, and procedures in 92.9%. Timeline recall was 96.7% and precision 99.4%. Weighted accuracy was 0.990 (95% CI 0.987 - 0.992). None of 11,993 extracted facts were fabricated. Median processing time was 90 seconds per packet. Conclusion An open-weight pipeline on consumer hardware accurately extracted multi-domain clinical information from synthetic faxed referrals.