Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Fei, Zhe, Turali, Mehmet Yigit, Rajesh, Shreyas, Dai, Xinyang, Pham, Huyen, Holur, Pavan, Zhu, Yuhui, Mooney, Larissa, Hser, Yih-Ing, Roychowdhury, Vwani
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2510.21027
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915573695250432
author Fei, Zhe
Turali, Mehmet Yigit
Rajesh, Shreyas
Dai, Xinyang
Pham, Huyen
Holur, Pavan
Zhu, Yuhui
Mooney, Larissa
Hser, Yih-Ing
Roychowdhury, Vwani
author_facet Fei, Zhe
Turali, Mehmet Yigit
Rajesh, Shreyas
Dai, Xinyang
Pham, Huyen
Holur, Pavan
Zhu, Yuhui
Mooney, Larissa
Hser, Yih-Ing
Roychowdhury, Vwani
contents Harmonizing medication data across Electronic Health Record (EHR) systems is a persistent barrier to monitoring medications for opioid use disorder (MOUD). In heterogeneous EHR systems, key prescription attributes are scattered across differently formatted fields and freetext notes. We present a practical framework that customizes open source large language models (LLMs), including Llama, Qwen, Gemma, and MedGemma, to extract a unified set of MOUD prescription attributes (prescription date, drug name, duration, total quantity, daily quantity, and refills) from heterogeneous, site specific data and compute a standardized metric of medication coverage, \emph{MOUD days}, per patient. Our pipeline processes records directly in a fixed JSON schema, followed by lightweight normalization and cross-field consistency checks. We evaluate the system on prescription level EHR data from five clinics in a national OUD study (25{,}605 records from 1{,}257 patients), using a previously annotated benchmark of 10{,}369 records (776 patients) as the ground truth. Performance is reported as coverage (share of records with a valid, matchable output) and record-level exact-match accuracy. Larger models perform best overall: Qwen2.5-32B achieves \textbf{93.4\%} coverage with \textbf{93.0\%} exact-match accuracy across clinics, and MedGemma-27B attains \textbf{93.1\%}/\textbf{92.2\%}. A brief error review highlights three common issues and fixes: imputing missing dosage fields using within-drug norms, handling monthly/weekly injectables (e.g., Vivitrol) by setting duration from the documented schedule, and adding unit checks to prevent mass units (e.g., ``250 g'') from being misread as daily counts. By removing brittle, site-specific ETL and supporting local, privacy-preserving deployment, this approach enables consistent cross-site analyses of MOUD exposure, adherence, and retention in real-world settings.
format Preprint
id arxiv_https___arxiv_org_abs_2510_21027
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Customizing Open Source LLMs for Quantitative Medication Attribute Extraction across Heterogeneous EHR Systems
Fei, Zhe
Turali, Mehmet Yigit
Rajesh, Shreyas
Dai, Xinyang
Pham, Huyen
Holur, Pavan
Zhu, Yuhui
Mooney, Larissa
Hser, Yih-Ing
Roychowdhury, Vwani
Artificial Intelligence
Machine Learning
Harmonizing medication data across Electronic Health Record (EHR) systems is a persistent barrier to monitoring medications for opioid use disorder (MOUD). In heterogeneous EHR systems, key prescription attributes are scattered across differently formatted fields and freetext notes. We present a practical framework that customizes open source large language models (LLMs), including Llama, Qwen, Gemma, and MedGemma, to extract a unified set of MOUD prescription attributes (prescription date, drug name, duration, total quantity, daily quantity, and refills) from heterogeneous, site specific data and compute a standardized metric of medication coverage, \emph{MOUD days}, per patient. Our pipeline processes records directly in a fixed JSON schema, followed by lightweight normalization and cross-field consistency checks. We evaluate the system on prescription level EHR data from five clinics in a national OUD study (25{,}605 records from 1{,}257 patients), using a previously annotated benchmark of 10{,}369 records (776 patients) as the ground truth. Performance is reported as coverage (share of records with a valid, matchable output) and record-level exact-match accuracy. Larger models perform best overall: Qwen2.5-32B achieves \textbf{93.4\%} coverage with \textbf{93.0\%} exact-match accuracy across clinics, and MedGemma-27B attains \textbf{93.1\%}/\textbf{92.2\%}. A brief error review highlights three common issues and fixes: imputing missing dosage fields using within-drug norms, handling monthly/weekly injectables (e.g., Vivitrol) by setting duration from the documented schedule, and adding unit checks to prevent mass units (e.g., ``250 g'') from being misread as daily counts. By removing brittle, site-specific ETL and supporting local, privacy-preserving deployment, this approach enables consistent cross-site analyses of MOUD exposure, adherence, and retention in real-world settings.
title Customizing Open Source LLMs for Quantitative Medication Attribute Extraction across Heterogeneous EHR Systems
topic Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2510.21027