EHRmonize: A Framework for Medical Concept Abstraction from Electronic Health Records using Large Language Models

João Matos, Jack Gallifant, Jian Pei, A. Ian Wong
6/28/2024
cs.CL

No official code found. Best implementation: aiwonglab/ehrmonize (7 stars, MIT, last commit 2024-07-27).

Abstract

Electronic health records (EHRs) contain vast amounts of complex data, but harmonizing and processing this information remains a challenging and costly task requiring significant clinical expertise. While large language models (LLMs) have shown promise in various healthcare applications, their potential for abstracting medical concepts from EHRs remains largely unexplored. We introduce EHRmonize, a framework leveraging LLMs to abstract medical concepts from EHR data. Our study uses medication data from two real-world EHR databases to evaluate five LLMs on two free-text extraction and six binary classification tasks across various prompting strategies. GPT-4o's with 10-shot prompting achieved the highest performance in all tasks, accompanied by Claude-3.5-Sonnet in a subset of tasks. GPT-4o achieved an accuracy of 97% in identifying generic route names, 82% for generic drug names, and 100% in performing binary classification of antibiotics. While EHRmonize significantly enhances efficiency, reducing annotation time by an estimated 60%, we emphasize that clinician oversight remains essential. Our framework, available as a Python package, offers a promising tool to assist clinicians in EHR data abstraction, potentially accelerating healthcare research and improving data harmonization processes.

View on arXivView PDF

Code Implementations(1)

aiwonglab/ehrmonizeCommunity100%
MIT

EHRmonize: a Python package to abstract medical concepts with LLMs

72Shell, PythonJun 15, 20242 years agoMIT

Similar Papers

Cite this paper

@article{matos2024ehrmonize,
  title  = {EHRmonize: A Framework for Medical Concept Abstraction from Electronic Health Records using Large Language Models},
  author = {João Matos and Jack Gallifant and Jian Pei and A. Ian Wong},
  year   = {2024},
  eprint = {2407.00242},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.00242v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.00242.svg)](https://codeofpaper.com/paper/2407.00242)

Discussion