# MIMIC-Note-Extract: A Large-Scale Structured Dataset Extracted from MIMIC-IV-Note Discharge Summaries

Hybrid rules and LLMs turn MIMIC discharge summaries into structured tables

Kristian Schwethelm, Jonas Kuntzer, Conrad Ketzer, Eva Wende, Moritz Schlager, Daniel Rueckert and 3 more · arXiv · 2026-11-3

- **Problem** Clinical details in MIMIC discharge summaries stay as free text, so every project writes its own extraction scripts. That duplicates effort and the results rarely get shared.
- **Method** MNE routes each summary section to deterministic rules, an LLM, or both. Rules handle simple sections, while the LLM fills complex ones under a fixed schema with validation.
- **Results** Three medical doctors scored item-level extraction accuracy from 92.2% to 99.8% across sections.

## Why discharge summaries stay hard to use

MIMIC has supported thousands of peer-reviewed papers, yet its structured tables leave out much of what clinicians wrote. Past medical history, allergies and pertinent findings sit in free text, mostly in discharge summaries and radiology reports. Turning that text into something a study can query takes preprocessing that is hard to scale.

So each project writes its own scripts for the variables it needs, and those scripts are seldom shared. The outcome is duplicated engineering and uneven extraction quality from one group to the next. Even a well-built extraction tends to be tailored to one project's questions, which limits its reuse. The authors argue that the community needs information conversion, which keeps the source content and makes it queryable.

Manually annotated corpora exist, but they are small, with CLIP at 718 notes, DiReCT at 511 and MedDec at 451. Automated efforts usually keep the text verbatim or target one task, such as the 500 to 9k cases built by regex-based CDM benchmarks. The gap is a general set of tables covering every section of every summary, which is what this paper targets.

## Converting narratives into relational tables

The key idea is to convert each discharge summary into rows of defined tables instead of pulling out one variable at a time. Each section gets a fixed schema, so users query named fields rather than parse prose. The authors reason that the simplest tool able to handle a section should do the work, so rules take the easy cases and LLMs take the hard ones.

Simple, highly structured sections go to deterministic rules such as regular expressions and string matching. Complex narratives go to LLMs, because they need the contextual understanding that rules lack. Because deterministic rules are cheap and auditable, the design spends LLM calls only where the structure needs them.

For Discharge Condition, the pipeline extracts and validates status indicators deterministically, and any residual text triggers LLM fallback. The authors also map long clinical identifiers to short codes, such as subject to s, so the model emits cheaper output tokens. Schema design took most of the effort, since fields had to stay concise enough for human checking yet cover real clinical depth.

The schemas also keep temporal context, such as whether a fact is current or historical. Clinicians shaped them, because attempts to design schemas automatically with an LLM in the loop didn't give satisfactory results.

The authors checked the bet with a manual review by three medical doctors, run after the pipeline was frozen. Rule-based extractions were excluded from that review because their deterministic, auditable nature made it unnecessary.

## How the pipeline runs, step by step

A raw summary first passes through a deterministic splitter, then each section is routed, extracted and validated. Figure 1 follows one synthetic summary through these steps, from the raw text to the relational rows.

![Figure 1: A raw discharge summary flowing through our extraction pipeline, showing a representative subset](https://refivu.com/papers/c3134221-3727-4425-a2de-b05c03c5f21c/figures/figure-83c494cfa6f927a66ff307c9edbe6ead.png?thumb=512)

**Figure 1** : A raw discharge summary flowing through our extraction pipeline, showing a representative subset

[Original paper](https://arxiv.org/abs/2611.04685v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Kristian Schwethelm, Jonas Kuntzer, Conrad Ketzer, Eva Wende, Moritz Schlager, Daniel Rueckert, Georgios Kaissis, Friederike Jungmann, Paul Hager · MIMIC-Note-Extract: A Large-Scale Structured Dataset Extracted from MIMIC-IV-Note Discharge Summaries · Original paper figure · Extracted the figure area from page 3 of the original PDF.

The splitter identifies 24 distinct section types and drops the 8 that are fully redacted. Redaction can blur headers, so 'Discharge \_\_\_' might mean Condition or Disposition. Header variants and the consistent section order resolve most cases, and the authors manually settled 5,461 remaining ambiguous headers.

Each section then falls into one of three modes: rules only, LLM only, or hybrid. Rules use regular expressions and string matching, and the hybrid mode tries them first. The LLM is called only when validation criteria fail, which keeps processing cost down. For Discharge Condition, the status indicators are pulled out and validated first, and any leftover text sends the whole section to the LLM.

For LLM sections, a formal schema constrains the output and post-hoc validation checks it. Output that breaks a structural or custom rule triggers a retry, and the authors describe the result as a guaranteed fit to the data model. Gemini 2.5 Flash and Gemini 3.1 Flash-Lite ran through Vertex AI with zero data retention.

Output tokens cost far more than input tokens, so the authors shortened JSON keys and enum codes during inference and restored them afterward. Across the whole cohort, the hybrid pipeline cost 14.5% less than a naive LLM-only baseline. The authors note the saving depends on the section, since it is largest when keys are long relative to the values.

Coverage shows what the pipeline actually fills, and it varies a lot by section. Gender and Services reach 100.0% of admissions, while Pertinent Results covers 80.3% and Major Procedures 53.1%. The low figure for procedures reflects how often procedures are documented in the source, not a pipeline failure.

![Table 1: Clinical sections, key concepts, extraction methodologies, and cohort-wide coverage in MNE across](https://refivu.com/papers/c3134221-3727-4425-a2de-b05c03c5f21c/figures/figure-87daaa24a4f51dce819c264085d80e25.png?thumb=512)

**Table 1** : Clinical sections, key concepts, extraction methodologies, and cohort-wide coverage in MNE across

[Original paper](https://arxiv.org/abs/2611.04685v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

## Did the extraction hold up under expert review

Three medical doctors reviewed the LLM-based extractions side by side with the source text, item by item. Rule-based sections were excluded because their deterministic, auditable output doesn't need manual review. The review ran after the pipeline was frozen, and reviewed extractions were not manually corrected. So the scores reflect the output as it was delivered.

The sample size came from the standard normal approximation for binomial proportions. The authors assumed an expected accuracy of p = 0.80, a 95% confidence level and a 6% margin of error. That setup gave a minimum of 171 unique cases per section. For inter-annotator agreement, 121 cases were single-annotated and 50 were dual-annotated. The authors reported Gwet's AC1 because raw agreement is inflated when most extractions are correct.

Item-level accuracy ranges from 92.2% to 99.8% across sections. Allergies reached 99.8 ± 0.32, while Pertinent Results was lowest at 92.2 ± 3.81. Agreement exceeds 95% in seven of the ten sections. Pertinent results (88.4%), past medical history (90.1%) and physical examination (90.4%) fall below that level. These three sections carry the lowest agreement, so their accuracy figures call for more caution.

Realized margins of error stay between 0.32% and 3.81%, inside the 6% target. That method treats each case as the unit of analysis, so two annotators' disagreement enters as 0.5. The item-level accuracy is a Jaccard index, TP / (TP + FP + FN), rather than conventional accuracy. A true negative has no category in the taxonomy, because the task is to extract everything present in the source.

## What MNE adds beside existing MIMIC tables

MNE doesn't simply duplicate MIMIC's tables, because each of its sections is compared with its closest MIMIC counterpart. The authors sort the sections by whether they validate, extend, or add to existing data. Exact one-to-one matching is unrealistic, since MNE fields come from unstructured text while MIMIC tables hold coded events. Three sections, Gender, Services and Discharge Disposition, largely reproduce an existing MIMIC field.

For these three, the overlap works as a cross-check that can flag mismatching records.

![Table 3: Relationship of extracted sections to](https://refivu.com/papers/c3134221-3727-4425-a2de-b05c03c5f21c/figures/figure-230b419e4dacff8a46b30592d39e3d9c.png?thumb=512)

**Table 3** : Relationship of extracted sections to

[Original paper](https://arxiv.org/abs/2611.04685v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Gender values match the MIMIC hospital patients table for 99.96% of documented admissions. That leaves 122 admissions with differences, and most of them trace back to transgender, gender-identity, or transition-related documentation. Services are compared with the last MIMIC service entry, because MIMIC stores transfer-level codes such as MED, SURG, and NSURG.

Among 300,221 comparable admissions, 99.16% match exactly, and allowing any mapped service adds only 175 cases. Discharge disposition adds about 44k values that MIMIC leaves missing, which is a gain rather than a check.

The remaining sections either extend a related MIMIC table or have no MIMIC counterpart at all. Past medical history contains 10 times more history rows than MIMIC's ICD codes, covering family, substance, and functional history. Medications on admission cover more than twice as many admissions as MIMIC, with dose, route, frequency, PRN, and hold status.

Allergies appear in 98.6% of admissions, and the allergy list covers far more admissions than MIMIC's ICD codes. The authors treat the overlap as a sanity check on extraction, and the new fields as the real gain.

## Rebuilding the MIMIC-CDM context from MNE fields

MIMIC-CDM starts from patient history and asks an agent to choose which examinations and tests to request before diagnosing. The agent requests each item through tools and receives the corresponding findings. That parsing was laborious, so the test asks whether MNE can supply the same context with less curation.

The full-information setting gives the LLM every patient item in one message instead of letting it request items through tools. The message holds the history of present illness, physical examinations, laboratory tests, and radiology reports. Hager et al. (2024) had to preprocess discharge summaries to build this context, whereas the authors query the relevant fields from MNE.

Simple filters cover the remaining cases where a filter is needed. The timepoint column in MNE's physical-examination table separates admission from discharge examinations. Keeping only admission rows removes findings that appeared only after the diagnosis had been made, as in Figure 1.

Accuracy matched or improved for every evaluated model when MNE replaced the regex-derived data. Gemini 3.1 Flash Lite minimal rose from 87.4 with a gain of +0.7 over the regex-derived data. Qwen3.5 2B reached 82.0 on full information, a gain of +0.9 over the regex-derived baseline. Because the models match or improve under MNE inputs, the authors conclude that MNE reproduces the original context through simple table queries.

The authors frame this as replacing a laborious parsing step with queries that lower the curation effort.

The agentic benchmark goes further, because the agent names the exact item it wants and receives only that part. The original MIMIC-CDM tools returned entire verbatim text blocks, which didn't allow this granularity.

## The agentic benchmark and what drives its scores

The agentic benchmark asks the agent to request each piece of evidence through a tool call instead of reading a full case up front. The agent names the exact item it wants, such as one examination system or one patient-record section, and receives only that part. The agent gets at most ten tool-calling rounds before it must commit to a final diagnosis.

Each case runs separately, and the agent keeps no memory between cases.

The authors built 10,000 cases over 19 pathologies, while MIMIC-CDM used four pathologies and 2,400 cases. A clinician first selected the pathologies that the available tools could diagnose. Filters over the MIMIC and MNE tables then selected 10,000 admissions automatically. Admissions need sufficient diagnostic evidence, so the case selection can require an ECG for a myocardial infarction diagnosis.

The larger models reached 82 to 88% accuracy, while Qwen3.5 2B scored 51.3%. For most models, the agentic benchmark is harder than the full-information benchmark.

Reasoning reduced accuracy for Qwen3.6 and improved it for Gemini 3.1 Flash Lite. The authors connect this mixed result to prior findings that chain-of-thought doesn't reliably improve clinical performance. Reasoning was toggled per model in Table 4, so each pair is its own comparison, not a full sweep.

## What the dataset and benchmark cannot show yet

De-identification is over-inclusive, so it sometimes removes tokens that carry no identifying information, including words within section headers. That redaction removes clinically relevant content, so some information is lost from the extracted text. Dates and times were removed, which limits temporal reconstruction for the authors. Discharge summaries reflect the clinicians' retrospective selection, so they may omit competing hypotheses and uncertainty present during care.

The authors didn't standardize clinical terminology, because they wanted to preserve clinician wording. Diagnoses and procedures keep source wording and abbreviations, so identifying patient cohorts may need terminology mapping or extra filters. Brief Hospital Course, History of Present Illness, and Discharge Instructions stay as free text, since the authors found no reliable splitting pattern.

Extraction quality wasn't systematically compared with open-weight or specialized medical models. The released pipeline, schemas, prompts, and model configurations are meant to support such comparisons in future work.

Manual validation covered only the LLM-based extractions, because rule-based extractions were excluded from review as deterministic and auditable. So the accuracy of rule-based sections rests on the rules themselves rather than on the reviewed sample. The review sample was 171 unique cases per section, with an expected accuracy of 0.80 and a 6% margin of error.

Inter-annotator agreement used 121 single-annotated and 50 dual-annotated cases.

## Paper info

- **Authors**: Kristian Schwethelm, Jonas Kuntzer, Conrad Ketzer, Eva Wende, Moritz Schlager, Daniel Rueckert, Georgios Kaissis, Friederike Jungmann, Paul Hager
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-3
- **Added**: 2026-11-5
- **Updated**: 2026-11-3
- **Version**: v1
- **arXiv**: 2611.04685
- **Category**: cs.CL
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.04685v1) · [PDF ↗](https://arxiv.org/pdf/2611.04685v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

MIMIC is one of the most widely used public hospital datasets for machine learning on electronic health records, yet clinically important information, such as past medical history, allergies, and diagnostic findings, remains confined to free-text discharge summaries. Studies requiring this information must therefore build their own extraction pipelines, duplicating substantial effort across projects. We release MIMIC-Note-Extract (MNE), a large-scale dataset that uses a hybrid extraction pipeline combining deterministic parsing with schema-guided large language model generation to transform 16 sections from 300,720 discharge summaries into structured tables. MNE adds information that has no structured MIMIC counterpart and enriches related tables with broader coverage and greater clinical detail, including 10 times more patient-history entries and medication histories for more than twice as many admissions. Validation by medical doctors confirms extraction accuracy above 92% across sections. Using MNE, we construct a clinical decision-making benchmark for LLM agents, demonstrating how reusable structured representations of clinical narratives reduce data curation effort.

## Quote from the paper

Kristian Schwethelm, Jonas Kuntzer, Conrad Ketzer, Eva Wende, Moritz Schlager, Daniel Rueckert, Georgios Kaissis, Friederike Jungmann, Paul Hager (2026). MIMIC-Note-Extract: A Large-Scale Structured Dataset Extracted from MIMIC-IV-Note Discharge Summaries. arXiv:2611.04685v1. https://arxiv.org/abs/2611.04685v1

**BibTeX**

```
@misc{schwethelm2026mimic,
  title = {{MIMIC-Note-Extract: A Large-Scale Structured Dataset Extracted from MIMIC-IV-Note Discharge Summaries}},
  author = {Kristian Schwethelm and Jonas Kuntzer and Conrad Ketzer and Eva Wende and Moritz Schlager and Daniel Rueckert and Georgios Kaissis and Friederike Jungmann and Paul Hager},
  year = {2026},
  eprint = {2611.04685},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.04685v1}
}
```

## Other paper commentary

- [Swapping the Judge Changes the Ranking: A Preregistered Study of Cross-Provider Replication in LLM-Judged System Comparisons](https://refivu.com/en/papers/6c9bfa99-d071-4087-8678-28e83c0ec9a3-swapping-the-judge-changes-the-ranking-a-preregistered.md)
- [Automated, auditable dating of the Babylonian Astronomical Diaries with language models and astronomical tools](https://refivu.com/en/papers/51aebcff-2cce-44cd-b0eb-96190a580ff4-automated-auditable-dating-of-the-babylonian-astronomical.md)
- [PaLM-E: An Embodied Multimodal Language Model](https://refivu.com/en/papers/c14507e3-43e7-434d-adc8-94f0d2c42b5f-palm-e-an-embodied-multimodal-language-model.md)
- [Large Language Models are Zero-Shot Reasoners](https://refivu.com/en/papers/6b8a675c-a686-4e78-8256-301472d5cac2-large-language-models-are-zero-shot-reasoners.md)
- [Generative Agents: Interactive Simulacra of Human Behavior](https://refivu.com/en/papers/3638efc4-db4a-48d9-bc16-5a758d9198fd-generative-agents-interactive-simulacra-of-human-behavior.md)
- [SWE-bench: Can Language Models Resolve Real-World GitHub Issues?](https://refivu.com/en/papers/1cf41e87-39dc-4e23-9d0c-22ab7bc2a24b-swe-bench-can-language-models-resolve-real-world.md)
- [Say the Same, Act Differently: Diagnosing and Steering Text-Action Divergence in Reasoning VLAs](https://refivu.com/en/papers/cac7c2cc-d173-4450-af97-53df160a9316-say-the-same-act-differently-diagnosing-and-steering.md)
- [The Price of List Replicability: Tight Bounds for Bias Estimation](https://refivu.com/en/papers/d12a9795-fbe0-403c-8324-fc89beb04f1a-the-price-of-list-replicability-tight-bounds-for.md)
- [Found by Search, Broken by a Shortcut: Transfer and Tampering of Searched Intrinsic Rewards](https://refivu.com/en/papers/e45d5c00-cbbc-4b4e-a424-b50917f1f6b1-found-by-search-broken-by-a-shortcut-transfer.md)
- [$τ$-Rec-Books: A Disclosure-Controlled Benchmark for Requirement Elicitation in Agentic Recommender Systems](https://refivu.com/en/papers/a203d096-8af2-4668-aef9-d3d9e4812a81-rec-books-a-disclosure-controlled-benchmark-for-requirement.md)
- [One Assistant, Many Memories: Benchmarking Real-World Group Assistance When Recall Is Not Enough](https://refivu.com/en/papers/c0b982cf-b1ad-4e02-af36-701d1d3f6acd-one-assistant-many-memories-benchmarking-real-world-group.md)
- [Length Is Cheap, Competition Is Not: Attention Predicts Context Rot in Retrieval](https://refivu.com/en/papers/ec71fd66-c7ba-4bf5-b0d5-423b35b3bf5c-length-is-cheap-competition-is-not-attention-predicts.md)

## Terms in this paper

- [Jaccard index](https://refivu.com/en/terms/c2a7049ebc65-jaccard-index)
- [cluster bootstrap](https://refivu.com/en/terms/4643ff5f8e99-cluster-bootstrap)
- [Gemini 2.5 Flash](https://refivu.com/en/terms/eb64f692e66e-gemini-2-5-flash)
- [LLM agent](https://refivu.com/en/terms/10d208c2328c-llm-agent)
- [Gemini 3.1 Flash-Lite](https://refivu.com/en/terms/e4111ce0737b-gemini-3-1-flash-lite)
- [MIMIC-IV-Note](https://refivu.com/en/terms/8e8b145d815c-mimic-iv-note)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/c3134221-3727-4425-a2de-b05c03c5f21c-mimic-note-extract-a-large-scale-structured-dataset)
