Abstract
A significant fraction of real-world patient information resides in unstructured clinical text. Medical abstraction extracts and normalizes key structured attributes from free-text clinical notes, which is the prerequisite for a variety of important downstream applications, including registry curation, clinical trial operations, and real-world evidence generation. Prior medical abstraction methods typically resort to building attribute-specific models, each of which requires extensive manual effort such as rule creation or supervised label annotation for the individual attribute, thus limiting scalability. In this paper, we show that existing frontier models already possess the universal abstraction capability for scaling medical abstraction to a wide range of clinical attributes. We present UniMedAbstractor (UMA), a unifying framework for zero-shot medical abstraction with a modular, customizable prompt template and the selection of any frontier large language models. Given a new attribute for abstraction, users only need to conduct lightweight prompt adaptation in UMA to adjust the specification in natural languages. Compared to traditional methods, UMA eliminates the need for attribute-specific training labels or handcrafted rules, thus substantially reducing the development time and cost. We conducted a comprehensive evaluation of UMA in oncology using a wide range of marquee attributes representing the cancer patient journey. These include relatively simple attributes typically specified within a single clinical note (e.g. performance status), as well as complex attributes requiring sophisticated reasoning across multiple notes at various time points (e.g. tumor staging). Based on a single frontier model such as GPT-4o, UMA matched or even exceeded the performance of state-of-the-art attribute-specific methods, each of which was tailored to the individual attribute.
Introduction
Real-world patient data is predominantly stored in unstructured formats. While electronic health records (EHRs) provide a digital foundation, the most critical clinical details—such as treatment response, tumor histology, and functional performance status—are often buried within free-text progress notes, pathology reports, and imaging summaries. To utilize this data for clinical research or trial operations, it must be "abstracted" into structured formats.
Historically, medical abstraction has been a major bottleneck. Traditional AI approaches rely on "one-model-per-attribute" strategies, requiring thousands of hours of manual labeling by clinicians to train specialized supervised models. This paradigm is inherently unscalable and brittle; a change in clinical guidelines can render a specialized model obsolete, necessitating a new cycle of data collection and training.
The UniMedAbstractor (UMA) Framework
To address these challenges, we introduce UniMedAbstractor (UMA), a "one-model-for-all" framework that leverages the zero-shot capabilities of frontier Large Language Models (LLMs) like GPT-4o. Instead of attribute-specific training, UMA utilizes a modular, customizable prompt template to guide the model through the abstraction process.
Modular Prompt Architecture
The UMA framework is built around a structured prompt template that includes:
- AI Assistant Role Definition: Establishing the persona and expertise of the model.
- General Extraction Instructions: High-level rules for data handling and reasoning.
- Attribute Definitions: Natural language descriptions of the target data points.
- Output Format Specifications: Strict JSON schemas to ensure downstream compatibility.
Handling Complexity at Scale
For complex clinical attributes like cancer staging, which require synthesizing information across months of patient history, UMA incorporates an attribute-specific summarization module. This module condenses dozens of notes into a chronological, relevant summary, effectively managing the LLM's context window while filtering out noise. Furthermore, UMA can ingest structured snippets from clinical manuals (e.g., the AJCC Cancer Staging Manual) to ensure adherence to the latest medical standards.
Experimental Evaluation
We evaluated UMA in the oncology domain using data from two major health systems: Providence Health System (for primary testing) and Johns Hopkins University (as a held-out dataset to test cross-institutional generalization).
Key Results
- State-of-the-Art Performance: UMA matched or exceeded the performance of supervised models across a variety of tasks. Notably, in pathologic T-staging—a complex reasoning task—UMA outperformed supervised baselines by over 20 absolute points in accuracy.
- Superior Generalization: Supervised models often suffer from "distribution shift" when applied to new hospitals with different note-writing styles. UMA demonstrated significantly higher robustness, achieving 77.7% accuracy on the Johns Hopkins dataset compared to 66.6% for the supervised model trained on Providence data.
- Operational Efficiency: UMA achieved a 10x reduction in both cost and human labor. Defining a new attribute in UMA requires less than an hour of prompt engineering, whereas the supervised baseline for case finding required over 10,000 hours of manual curation.
Discussion and Future Directions
The success of UMA suggests that frontier models possess a "universal abstraction" capability that can be unlocked through clear, guideline-driven prompting rather than intensive fine-tuning. However, challenges remain. Fragmented patient records and missing information in source notes create a natural ceiling for any abstraction method.
Future work will explore more advanced prompting strategies, such as self-verification and chain-of-thought reasoning, as well as the evaluation of emerging open-source models. While UMA significantly automates the abstraction process, human-in-the-loop validation remains essential for ensuring safety and accuracy in clinical applications.
Code Availability: The UMA framework code is available at: https://github.com/microsoft/ua_oncophenotype
Summary updated