doc_id stringlengths 9 9 | text stringlengths 1.46k 26.9k | spans listlengths 9 65 | negatives listlengths 0 22 | metadata unknown | qc dict |
|---|---|---|---|---|---|
doc_00000 | Universitätsklinikum Berg
Klinik für Gastroenterologie, Hepatologie und Infektiologie
Tel: 0221 9115804 | Fax: 030 667238 | BSNR: 843235605
Praxis für Allgemeinmedizin
Internistische Praxis Dr. med. univ. F. Lauer
Leopoldstraße 120
99428 Weimar
Patientendaten:
Name: Cem Çam
Geburtsdatum: 03.11.1960 (Alter: 62 Jahre a... | [
{
"start": 0,
"end": 25,
"label": "INSTITUTION",
"tier": "QUASI",
"entity_id": "institution",
"form": null,
"case": null
},
{
"start": 91,
"end": 103,
"label": "PHONE",
"tier": "DIRECT",
"entity_id": "telefon",
"form": "default",
"case": null
},
{
... | [
{
"start": 2201,
"end": 2215,
"label": "EPONYM",
"tier": "NONPII",
"entity_id": "eponym_2",
"form": null,
"case": null
},
{
"start": 2403,
"end": 2413,
"label": "LOOKALIKE",
"tier": "NONPII",
"entity_id": "lookalike_1",
"form": null,
"case": null
},
{
... | {
"doc_id": "doc_00000",
"seed": 1000000,
"style": "Standard-Klinik",
"difficulty": "hard",
"difficulty_tags": [
"eponym_trap",
"initial_mentions",
"multiple_institutions",
"quasi_identifier",
"tricky_location"
],
"sections": [
"Anamnese",
"Diagnosen",
"Aufnahmebefund",
... | {
"flagged": false,
"reasons": [],
"leaks": [],
"negative_findings": [],
"missing_planned_persons": [],
"red_team": {
"status": "ok",
"agreement": {
"n_redteam_findings": 0,
"n_review_items": 0
},
"review_items": []
}
} |
doc_00001 | Diakonissenkrankenhaus Dortmund
Klinik für Kardiologie
Elbchaussee 26c, 44137 Dortmund
Tel: 0231 06909920 | Fax: 0231 60450601
Patientenstammdaten:
Name: Wulf Koch
Geburtsdatum: 20.01.1929
Adresse: Maximilianstraße 45, 44137 Dortmund
Nationalität: deutsch
Stationärer Aufenthalt vom 03.08.2025 bis 14.08.2025
Sehr geeh... | [
{
"start": 0,
"end": 31,
"label": "INSTITUTION",
"tier": "QUASI",
"entity_id": "institution",
"form": null,
"case": null
},
{
"start": 55,
"end": 70,
"label": "ADDRESS",
"tier": "DIRECT",
"entity_id": "adresse_klinik",
"form": null,
"case": null
},
{
... | [
{
"start": 781,
"end": 795,
"label": "EPONYM",
"tier": "NONPII",
"entity_id": "eponym_0",
"form": null,
"case": null
}
] | {
"doc_id": "doc_00001",
"seed": 1000001,
"style": "Standard-Klinik",
"difficulty": "medium",
"difficulty_tags": [
"age_extreme",
"eponym_trap",
"extra_persons",
"initial_mentions",
"nonstandard_placement",
"quasi_identifier"
],
"sections": [
"Anamnese",
"Diagnosen",
"E... | {
"flagged": false,
"reasons": [],
"leaks": [],
"negative_findings": [],
"missing_planned_persons": [],
"red_team": {
"status": "ok",
"agreement": {
"n_redteam_findings": 0,
"n_review_items": 0
},
"review_items": []
}
} |
doc_00002 | Vivantes Klinikum Chemnitz
Klinik für Orthopädie und Unfallchirurgie
Tel: 0371 127676 | Fax: 0371 108987
Patientenstammdaten:
Name: Ortrud Meister, geb. Müller
Geburtsdatum: 01.01.1968 (Alter: 57 Jahre alt)
Versichertennummer: S471221940 | Kostenträger: KKH Kaufmännische Krankenkasse
Patienten-ID: 119328 | Fallnummer:... | [
{
"start": 0,
"end": 26,
"label": "INSTITUTION",
"tier": "QUASI",
"entity_id": "institution",
"form": null,
"case": null
},
{
"start": 74,
"end": 85,
"label": "PHONE",
"tier": "DIRECT",
"entity_id": "telefon",
"form": "default",
"case": null
},
{
"... | [
{
"start": 1095,
"end": 1100,
"label": "NONPII_ID",
"tier": "NONPII",
"entity_id": "nonpii_id_5",
"form": null,
"case": null
},
{
"start": 3003,
"end": 3022,
"label": "EPONYM",
"tier": "NONPII",
"entity_id": "eponym_1",
"form": null,
"case": null
},
{
... | {
"doc_id": "doc_00002",
"seed": 1000002,
"style": "Standard-Klinik",
"difficulty": "hard",
"difficulty_tags": [
"eponym_trap",
"extra_persons",
"initial_mentions",
"maiden_name",
"needle_in_haystack",
"nonpii_id_trap",
"quasi_identifier",
"unstructured_text"
],
"sections":... | {
"flagged": false,
"reasons": [],
"leaks": [],
"negative_findings": [],
"missing_planned_persons": [],
"red_team": {
"status": "ok",
"agreement": {
"n_redteam_findings": 0,
"n_review_items": 0
},
"review_items": []
}
} |
doc_00003 | Sana Kliniken Leer
Klinik für Urologie und Transplantationschirurgie
Am Stadtpark 162, 26789 Leer
Tel.: 0201 335044 | Fax: 089 41035545 | Web: www.sana-kliniken-leer.org
PATIENTENDATEN:
Name: Pi Qi
Geburtsdatum: 17.04.1929 (Alter: 85 Jahre alt)
Nationalität: bulgarisch | Beruf: Rentner
Anschrift: Marktplatz 72, 26789 ... | [
{
"start": 0,
"end": 18,
"label": "INSTITUTION",
"tier": "QUASI",
"entity_id": "institution",
"form": null,
"case": null
},
{
"start": 69,
"end": 85,
"label": "ADDRESS",
"tier": "DIRECT",
"entity_id": "adresse_klinik",
"form": null,
"case": null
},
{
... | [
{
"start": 2297,
"end": 2311,
"label": "LOOKALIKE",
"tier": "NONPII",
"entity_id": "lookalike_1",
"form": null,
"case": null
},
{
"start": 2513,
"end": 2529,
"label": "EPONYM",
"tier": "NONPII",
"entity_id": "eponym_2",
"form": null,
"case": null
},
{
... | {
"doc_id": "doc_00003",
"seed": 1000003,
"style": "Telegrammstil-Kompakt",
"difficulty": "hard",
"difficulty_tags": [
"eponym_trap",
"extra_persons",
"initial_mentions",
"quasi_identifier",
"tricky_location"
],
"sections": [
"Anamnese",
"Aufnahmebefund",
"Körperliche Unter... | {
"flagged": false,
"reasons": [],
"leaks": [],
"negative_findings": [],
"missing_planned_persons": [],
"red_team": {
"status": "ok",
"agreement": {
"n_redteam_findings": 0,
"n_review_items": 0
},
"review_items": []
}
} |
doc_00004 | Städtisches Klinikum Kassel
Wiesenweg 104c
34119 Kassel
Tel: 0561 3166817 | Fax: 0561 61791844
IK: 403466117
Praxis für Allgemeinmedizin
Karsten Münch
Praxis für Kardiologie K. Münch
Fichtenweg 142
26122 Oldenburg
Datum: 23.01.2011
Patientendaten:
Name: Songül Taş
Geburtsdatum: 15.04.1979
Stationärer Aufenthalt: vom... | [
{
"start": 0,
"end": 27,
"label": "INSTITUTION",
"tier": "QUASI",
"entity_id": "institution",
"form": null,
"case": null
},
{
"start": 28,
"end": 42,
"label": "ADDRESS",
"tier": "DIRECT",
"entity_id": "adresse_klinik",
"form": null,
"case": null
},
{
... | [] | {
"doc_id": "doc_00004",
"seed": 1000004,
"style": "Akademisch-Ausführlich",
"difficulty": "easy",
"difficulty_tags": [],
"sections": [
"Anamnese",
"Verlauf",
"Interventionen",
"Epikrise",
"Mikrobiologie",
"Zitierter Vorbefund"
],
"fachabteilung": "Gynäkologie",
"patient_surnam... | {
"flagged": false,
"reasons": [],
"leaks": [],
"negative_findings": [],
"missing_planned_persons": [],
"red_team": {
"status": "ok",
"agreement": {
"n_redteam_findings": 0,
"n_review_items": 0
},
"review_items": []
}
} |
doc_00005 | Fachklinik Leipzig für Onkologie
Klinik für Innere Medizin – Hämatologie und Internistische Onkologie
Schillerstraße 170, 04317 Leipzig
Tel.: 0341 74703796 | Fax: 0341 41068012 | Web: www.fachklinik-leipzig-fuer.de
Patient: Tilman Dahl
Geburtsdatum: 22.11.1947
Anschrift: Feldweg 59, 04317 Leipzig
Fallnummer: 7736109 |... | [
{
"start": 0,
"end": 32,
"label": "INSTITUTION",
"tier": "QUASI",
"entity_id": "institution",
"form": null,
"case": null
},
{
"start": 102,
"end": 120,
"label": "ADDRESS",
"tier": "DIRECT",
"entity_id": "adresse_klinik",
"form": null,
"case": null
},
{... | [] | {
"doc_id": "doc_00005",
"seed": 1000005,
"style": "Akademisch-Ausführlich",
"difficulty": "easy",
"difficulty_tags": [],
"sections": [
"Anamnese",
"Diagnosen",
"Diagnostik",
"Verlauf",
"Therapie",
"Bildgebung",
"Histologie"
],
"fachabteilung": "Onkologie",
"patient_surname... | {
"flagged": false,
"reasons": [],
"leaks": [],
"negative_findings": [],
"missing_planned_persons": [],
"red_team": {
"status": "ok",
"agreement": {
"n_redteam_findings": 0,
"n_review_items": 0
},
"review_items": []
}
} |
doc_00006 | Vivantes Klinikum Dortmund
Klinik für Nephrologie, Rheumatologie und Internistische Intensivmedizin
Schillerplatz 7, 44339 Dortmund
Telefon: 0231 538213 | Telefax: 0231 16613022 | BSNR: 584210771
Patient: Roland Breuer, geb. am 20.04.1958
Wohnhaft: Höhenweg 127a, 44339 Dortmund
Krankenkasse: DKV Deutsche Krankenversic... | [
{
"start": 0,
"end": 26,
"label": "INSTITUTION",
"tier": "QUASI",
"entity_id": "institution",
"form": null,
"case": null
},
{
"start": 100,
"end": 115,
"label": "ADDRESS",
"tier": "DIRECT",
"entity_id": "adresse_klinik",
"form": null,
"case": null
},
{... | [
{
"start": 1235,
"end": 1254,
"label": "EPONYM",
"tier": "NONPII",
"entity_id": "eponym_0",
"form": null,
"case": null
},
{
"start": 1649,
"end": 1663,
"label": "EPONYM",
"tier": "NONPII",
"entity_id": "eponym_1",
"form": null,
"case": null
},
{
"s... | {
"doc_id": "doc_00006",
"seed": 1000006,
"style": "Akademisch-Ausführlich",
"difficulty": "medium",
"difficulty_tags": [
"eponym_trap",
"initial_mentions",
"quasi_identifier"
],
"sections": [
"Anamnese",
"Diagnosen",
"Körperliche Untersuchung",
"Diagnostik",
"Therapie",
... | {
"flagged": false,
"reasons": [],
"leaks": [],
"negative_findings": [],
"missing_planned_persons": [],
"red_team": {
"status": "ok",
"agreement": {
"n_redteam_findings": 0,
"n_review_items": 0
},
"review_items": []
}
} |
doc_00007 | "Rehaklinik Potsdam\nRheinstraße 175a, 14469 Potsdam\nTel: 0331 411502 | Fax: 0331 990381 | IK: 406(...TRUNCATED) | [{"start":0,"end":18,"label":"INSTITUTION","tier":"QUASI","entity_id":"institution","form":null,"cas(...TRUNCATED) | [] | {"doc_id":"doc_00007","seed":1000007,"style":"Akademisch-Ausführlich","difficulty":"easy","difficul(...TRUNCATED) | {"flagged":false,"reasons":[],"leaks":[],"negative_findings":[],"missing_planned_persons":[],"red_te(...TRUNCATED) |
doc_00008 | "Vivantes Klinikum Berlin\nKlinik für Urologie und Uroonkologie\nHinter der Mauer 58, 10969 Berlin\(...TRUNCATED) | [{"start":0,"end":24,"label":"INSTITUTION","tier":"QUASI","entity_id":"institution","form":null,"cas(...TRUNCATED) | [{"start":5535,"end":5554,"label":"EPONYM","tier":"NONPII","entity_id":"eponym_0","form":null,"case"(...TRUNCATED) | {"doc_id":"doc_00008","seed":1000008,"style":"Akademisch-Ausführlich","difficulty":"medium","diffic(...TRUNCATED) | {"flagged":false,"reasons":[],"leaks":[],"negative_findings":[],"missing_planned_persons":[],"red_te(...TRUNCATED) |
doc_00009 | "Fachklinik München für Unfallchirurgie\nKlinik für Orthopädie\nSchillerplatz 119a, 81373 Münch(...TRUNCATED) | [{"start":0,"end":38,"label":"INSTITUTION","tier":"QUASI","entity_id":"institution","form":null,"cas(...TRUNCATED) | [] | {"doc_id":"doc_00009","seed":1000009,"style":"Telegrammstil-Kompakt","difficulty":"easy","difficulty(...TRUNCATED) | {"flagged":false,"reasons":[],"leaks":[],"negative_findings":[],"missing_planned_persons":[],"red_te(...TRUNCATED) |
SPARCLING-DE: Synthetic German Clinical Discharge Letters with PHI Labels by Construction
SPARCLING-DE is a benchmark and training dataset of 1,019 synthetic German hospital discharge letters (Arztbriefe) containing 837,713 tokens and 34,712 character-exact Protected Health Information (PHI) span annotations across 25 PHI classes and 3 non-PII negative trap classes.
It accompanies the paper:
Generating Diverse and Verified Synthetic Clinical Notes with Labels by Construction
Matthias Lehmann, Madeleine Werthebach
GenAI for Health Workshop @ NeurIPS 2026
Code: https://github.com/Matt00n/phi_discharge_letter_generator
Dataset Summary
Evaluating and training clinical de-identification models requires benchmarks with:
- Exact and complete character-level PHI span annotations
- Surface plausibility sufficient to embed PHI in realistic clinical context
- Pervasive yet controlled diversity across document styles, clinical specialties, demographic distributions, and adversarial edge cases.
SPARCLING (Synthetic, Provenance-Annotated, Red-teamed, CLINical data Generation engine) generates discharge letters through a four-stage pipeline:
- Structured Attribute Sampling: Patient demographics, clinical cases (3,046 unique ICD-10-GM codes), document styles, and adversarial configurations are sampled hierarchically and deterministically from curated distributions ($z_i \sim P(z)$).
- Controlled Template Authoring: A masked specification ($\tilde{z}_i$) is passed to an LLM (
gemini-3.7-flash), which authors a clinical narrative using typed, grammatically inflected placeholders ([[ref form=... case=...]]) without ever seeing raw PHI values. - Deterministic Rendering: Placeholders are deterministically substituted with morphologically inflected values while tracking exact character offsets $(x_i, Y_i) = g_{\text{fill}}(t_i, z_i)$, yielding character-exact gold spans by construction.
- Dual Quality Control: Every generated document is audited by (a) a deterministic known-PHI leak and negative-trap scanner and (b) an adversarial red-teaming LLM on the masked text to catch any hallucinated residual PHI. Any flagged document is excluded.
Configurations & Files
This repository provides two Hugging Face datasets configurations as well as the full provenance artifacts:
| File / Config | Records | Description |
|---|---|---|
dataset.jsonl (default config) |
1,019 | Full verified SPARCLING-DE benchmark and training corpus |
subsample63.jsonl (subsample63 config) |
63 | Size-matched representative subsample (matching GraSCCo's $N=63$ for corpus-size-sensitive lexical Comparisons) |
review_queue.jsonl |
114 | Documents excluded by Stage-4 Dual Quality Control (for QC analysis / Ablation 1) |
failures.jsonl |
17 | Stage 1–3 generation/rendering drops |
provenance.json |
— | Full yield chain, exclusion counts by mechanism, deterministic vs. red-team overlap |
diversity.json |
— | 6-dimension diversity audit report |
subsample63_meta.json |
— | Total-variation distance (TVD) and Kolmogorov–Smirnov (KS) representativeness checks for subsample63 |
Quick Load
from datasets import load_dataset
# Load full SPARCLING-DE corpus (1,019 documents)
ds = load_dataset("Matt00n/SPARCLING-DE", name="default", split="train")
# Load the N=63 representative subsample
ds_63 = load_dataset("Matt00n/SPARCLING-DE", name="subsample63", split="test")
To use directly with the SPARCLING evaluation & benchmark repo, download the files into experiments/datasets/sparcling-de/:
huggingface-cli download Matt00n/SPARCLING-DE \
--repo-type dataset \
--local-dir experiments/datasets/sparcling-de
Data Schema
Each record in dataset.jsonl and subsample63.jsonl has the following structure:
{
"doc_id": "doc_00000",
"text": "Universitätsklinikum Berg\nKlinik für Gastroenterologie...",
"spans": [
{
"start": 0,
"end": 25,
"label": "INSTITUTION",
"tier": "QUASI",
"entity_id": "institution",
"form": "default",
"case": null
}
],
"negatives": [
{
"start": 2201,
"end": 2215,
"label": "EPONYM",
"tier": "NONPII",
"entity_id": "eponym_2",
"form": null,
"case": null
}
],
"metadata": {
"doc_id": "doc_00000",
"seed": 1000000,
"style": "Standard-Klinik",
"difficulty": "hard",
"difficulty_tags": ["needle", "quasi"],
"sections": ["Anamnese", "Diagnosen", "Aufnahmebefund", "..."],
"fachabteilung": "Innere Medizin – Gastroenterologie",
"patient_surname": "Çam",
"patient_origin": "turkish",
"patient_age": 62,
"marital_status": "verheiratet",
"pii_density": 0.642,
"code_style": "none",
"opening_style": "bericht",
"framing": {
"briefkopf": true,
"anrede": true,
"patientenstammdaten": true,
"schlussformel": true
},
"has_medications": true,
"n_spans": 38,
"n_negatives": 4,
"quasi": ["beruf", "alter"],
"splits": {
"by_domain": "train",
"by_difficulty": "hard",
"by_surface": "train"
}
},
"qc": {
"flagged": false,
"reasons": []
}
}
Label Ontology (25 PHI Labels + 3 Non-PII Negative Traps)
| Tier | Family | Labels |
|---|---|---|
| Direct Identifiers (17) | Names | PATIENT_NAME, RELATIVE_NAME, STAFF_NAME, OTHER_PERSON_NAME |
| Dates | DATE_BIRTH, DATE_ADMISSION, DATE_DISCHARGE, DATE_OTHER |
|
| Location | ADDRESS |
|
| Contact | PHONE, FAX, EMAIL, URL |
|
| Identifiers | ID_INSURANCE (KVNR), ID_CASE (Fallnr.), ID_PATIENT, ID_OTHER (LANR/BSNR/IK) |
|
| Quasi-Identifiers (8) | Location | ZIP, CITY |
| Organizations | INSTITUTION, INSURER |
|
| Demographics | AGE, PROFESSION, EMPLOYER, NATIONALITY |
|
| Non-PII Negatives (3) | Decoy Traps | EPONYM (e.g., Morbus Crohn), LOOKALIKE (e.g., Swan-Ganz-Katheter), NONPII_ID (e.g., PZN) |
Important:
negativesare non-PHI clinical terms and codes that resemble personal identifiers. They must not be redacted and are used to measure clinical over-redaction (false positives).
Ethical Considerations
All documents and patient profiles in SPARCLING-DE are 100% synthetically generated from scratch using curated distributions and public medical catalogs (ICD-10-GM, OPS). No real patient data or clinical records were used at any stage. Because generation prioritizes benchmark diversity and stress-testing edge cases over deep clinical validity, the texts should not be used as a source of clinical medical knowledge.
Citation
@inproceedings{lehmann2026sparcling,
title = {Generating Diverse and Verified Synthetic Clinical Notes with Labels by Construction},
author = {Lehmann, Matthias and Werthebach, Madeleine},
booktitle = {GenAI for Health Workshop at NeurIPS 2026},
year = {2026}
}
- Downloads last month
- 102