Dataset Viewer
Auto-converted to Parquet Duplicate
doc_id
stringlengths
23
23
patient_id
stringclasses
10 values
pdf_bytes
pdf
markdown_text
stringlengths
1.37k
6.14k
patient_name
stringclasses
10 values
patient_profile
stringclasses
3 values
patient_sex
stringclasses
2 values
patient_dob
stringdate
1943-07-09 00:00:00
2000-01-31 00:00:00
anchor_icd10
stringclasses
10 values
clinical_hook
stringclasses
10 values
encounter_id
stringclasses
4 values
encounter_kind
stringclasses
5 values
encounter_title
stringlengths
22
59
encounter_date
stringdate
2025-11-12 10:30:00
2026-06-18 11:15:00
provider_name
stringlengths
13
18
provider_role
stringlengths
21
36
provider_facility
stringclasses
6 values
gt_spans
stringlengths
178
2.5k
distractor_spans
stringlengths
2
232
structured_entities
stringlengths
2
12.6k
patient_01/encounter_01
patient_01
St Mary's General Hospital International Patient Summary (IPS) Patient ID: PT-926073 Date: 2025-11-12 Setting: outpatient ## Patient Details | Name: | Donald Wilson | | --- | --- | | Date of Birth: | 14 Jan 1957 | | Address: | 9 Lakeview Terrace, Wellington 6011 | | Patient ID: | PT-926073 | ## Encounter Encounte...
Donald Wilson
typical
M
1957-01-14
E11.9 · I10 · E78.5
Long-standing T2DM with cardiovascular risk
encounter_01
initial_consult
Outpatient Internal Medicine — New Patient Consultation
2025-11-12T10:30:00
Dr. James Hartwell
MD, Internal Medicine
St Mary's General Hospital
[{"surface": "type 2 diabetes", "label": "Condition", "start": 1461, "end": 1476, "kg_id": "E11.9", "canonical": "Type 2 diabetes mellitus without complication", "section_kind": "hpi"}, {"surface": "essential hypertension", "label": "Condition", "start": 1550, "end": 1572, "kg_id": "I10", "canonical": "Essential (prima...
[{"surface": "anomalous pulmonary venous return", "label": "Condition", "start": 2853, "end": 2886, "kg_id": "Q26.3", "canonical": "Partial anomalous pulmonary venous connection", "section_kind": "social_history"}]
[{"block": "problem_list", "entity_kind": "problem", "name": "Type 2 diabetes mellitus without complication", "status": "active", "display_text": "Type 2 diabetes mellitus without complication (E11.9)", "icd10": "E11.9", "label": "Condition"}, {"block": "problem_list", "entity_kind": "problem", "name": "Essential (prim...
patient_01/encounter_02
patient_01
# PATIENT SUMMARY International Patient Summary (IPS) ## PATIENT DETAILS Name: Donald Wilson Date of Birth: 14 Jan 1957 Sex: M Address: 9 Lakeview Terrace, Wellington 6011 Patient ID: PT-926073 Encounter Date: 2026-05-09 14:00 • Care Setting: outpatient • Facility: St Mary's General Hospital • Attending Physici...
Donald Wilson
typical
M
1957-01-14
E11.9 · I10 · E78.5
Long-standing T2DM with cardiovascular risk
encounter_02
follow_up
Internal Medicine — 6-Month Review
2026-05-09T14:00:00
Dr. James Hartwell
MD, Internal Medicine
St Mary's General Hospital
[{"surface": "simvastatin", "label": "Medication", "start": 2019, "end": 2030, "kg_id": "C10AA01", "canonical": "simvastatin", "section_kind": "clinical_observation"}, {"surface": "lisinopril", "label": "Medication", "start": 1981, "end": 1991, "kg_id": "C09AA03", "canonical": "lisinopril", "section_kind": "clinical_ob...
[]
[{"block": "medications", "entity_kind": "medication", "name": "metformin", "display_text": "metformin 500 mg twice daily oral", "atc": "A10BA02", "label": "Medication"}, {"block": "medications", "entity_kind": "medication", "name": "lisinopril", "display_text": "lisinopril 10 mg once daily oral", "atc": "C09AA03...
patient_01/encounter_03
patient_01
# Cardiology Outpatient Department, St Mary's General Hospital Patient ID: PT-926073 Date: 2026-06-18 International Patient Summary (IPS) Setting: outpatient Patient Details Name: Donald Wilson Address: 9 Lakeview Terrace, Wellington 6011 Date of Birth: 14 Jan 1957 Patient ID: PT-926073 • Sex: M ## Encounter ...
Donald Wilson
typical
M
1957-01-14
E11.9 · I10 · E78.5
Long-standing T2DM with cardiovascular risk
encounter_03
specialist_letter
Cardiology Outpatient Letter — Annual Valvular Surveillance
2026-06-18T11:15:00
Dr. Margaret Chen
MD, FRCP, Consultant Cardiologist
Cardiology Outpatient Department, St Mary's General Hospital
[{"surface": "combined mitral and aortic valve disease", "label": "Condition", "start": 666, "end": 706, "kg_id": "I08.8", "canonical": "Other multiple valve diseases", "section_kind": "hpi"}, {"surface": "diabetes mellitus", "label": "Condition", "start": 983, "end": 1000, "kg_id": "E11.9", "canonical": "Type 2 diabet...
[{"surface": "anomalous pulmonary venous drainage", "label": "Condition", "start": 2189, "end": 2224, "kg_id": "Q26.3", "canonical": "Partial anomalous pulmonary venous connection", "section_kind": "clinical_observation"}]
[]
patient_02/encounter_01
patient_02
# PATIENT SUMMARY International Patient Summary (IPS) ## PATIENT DETAILS Name: Kimberly Hernandez Address: 47 Oakwood Avenue, Manchester M1 4ET Date of Birth: 31 Jan 2000 Patient ID: PT-623369 • Sex: F ## ENCOUNTER Encounter Date: 2026-02-14 09:00 Care Setting: outpatient Facility: Mercy Community Hospital A...
Kimberly Hernandez
minimal
F
2000-01-31
J45.9 · J30.4
Exercise-triggered asthma with seasonal rhinitis
encounter_01
initial_consult
GP Initial Consultation — Respiratory Symptoms
2026-02-14T09:00:00
Dr. Amelia Brooks
MBBS, General Practice
Mercy Community Hospital
[{"surface": "asthma", "label": "Condition", "start": 1445, "end": 1451, "kg_id": "J45.9", "canonical": "Asthma, unspecified", "section_kind": "hpi"}, {"surface": "allergic rhinitis", "label": "Condition", "start": 1508, "end": 1525, "kg_id": "J30.4", "canonical": "Allergic rhinitis, unspecified", "section_kind": "hpi"...
[{"surface": "no vitreous haemorrhage", "label": "Condition", "start": 2220, "end": 2243, "kg_id": "H43.1", "canonical": "Vitreous haemorrhage", "section_kind": "social_history"}]
[{"block": "problem_list", "entity_kind": "problem", "name": "Asthma, unspecified", "status": "active", "display_text": "Asthma, unspecified (J45.9)", "icd10": "J45.9", "label": "Condition"}, {"block": "problem_list", "entity_kind": "problem", "name": "Allergic rhinitis, unspecified", "status": "active", "display_text"...
patient_02/encounter_02
patient_02
Mercy Community Hospital PATIENT SUMMARY [LOGO] International Patient Summary (IPS) ## Patient Details | Name: | Kimberly Hernandez | | --- | --- | | Date of Birth: | 31 Jan 2000 | | Address: | 47 Oakwood Avenue, Manchester M1 4ET | | Patient ID: | PT-623369 | Encounter Date: 2026-05-20 11:30 • Care Setting: outpa...
Kimberly Hernandez
minimal
F
2000-01-31
J45.9 · J30.4
Exercise-triggered asthma with seasonal rhinitis
encounter_02
follow_up
GP Review — Asthma Control
2026-05-20T11:30:00
Dr. Amelia Brooks
MBBS, General Practice
Mercy Community Hospital
[{"surface": "blue reliever", "label": "Medication", "start": 528, "end": 541, "kg_id": "R03AC02", "canonical": "salbutamol", "section_kind": "hpi"}, {"surface": "antihistamine", "label": "Medication", "start": 629, "end": 642, "kg_id": "R06AE07", "canonical": "cetirizine", "section_kind": "hpi"}, {"surface": "asthma",...
[]
[{"block": "medications", "entity_kind": "medication", "name": "salbutamol", "display_text": "salbutamol 100 microg as needed inhaled", "atc": "R03AC02", "label": "Medication"}, {"block": "medications", "entity_kind": "medication", "name": "cetirizine", "display_text": "cetirizine 10 mg once daily oral", "atc": "...
patient_03/encounter_01
patient_03
St Mary's General Hospital PATIENT SUMMARY [LOGO] International Patient Summary (IPS) ## Patient Details Name: Charles Lopez Address: 47 Oakwood Avenue, Manchester M1 4ET Date of Birth: 09 Jul 1943 Patient ID: PT-341730 • Sex: M Encounter Date: 2026-02-04 13:00 • Care Setting: outpatient • Facility: St Mary's G...
Charles Lopez
complex
M
1943-07-09
I50.9 · I49.9 · E11.9
Heart failure with rate-controlled arrhythmia, diuretic uptitration
encounter_01
initial_consult
Cardiology Outpatient — Heart Failure Reassessment
2026-02-04T13:00:00
Dr. Margaret Chen
MD, FRCP, Consultant Cardiologist
St Mary's General Hospital
[{"surface": "heart failure", "label": "Condition", "start": 493, "end": 506, "kg_id": "I50.9", "canonical": "Heart failure, unspecified", "section_kind": "hpi"}, {"surface": "arrhythmia", "label": "Condition", "start": 572, "end": 582, "kg_id": "I49.9", "canonical": "Cardiac arrhythmia, unspecified", "section_kind": "...
[{"surface": "no toxic refrigerant inhalation", "label": "Condition", "start": 3625, "end": 3656, "kg_id": "T53.5", "canonical": "Chlorofluorocarbons", "section_kind": "social_history"}]
[{"block": "problem_list", "entity_kind": "problem", "name": "Heart failure, unspecified", "status": "active", "display_text": "Heart failure, unspecified (I50.9)", "icd10": "I50.9", "label": "Condition"}, {"block": "problem_list", "entity_kind": "problem", "name": "Cardiac arrhythmia, unspecified", "status": "active",...
patient_03/encounter_02
patient_03
# PATIENT SUMMARY International Patient Summary (IPS) ## Patient Details | Patient Details | | --- | | **Name:** | Charles Lopez | | **Date of Birth:** | 09 Jul 1943 | | **Sex:** | M | | **Address:** | 47 Oakwood Avenue, Manchester M1 4ET | | **Patient ID:** | PT-341730 | ## Narrative ## Interval History Returns ...
Charles Lopez
complex
M
1943-07-09
I50.9 · I49.9 · E11.9
Heart failure with rate-controlled arrhythmia, diuretic uptitration
encounter_02
follow_up
Cardiology Clinic — 4-Week Review
2026-03-05T10:00:00
Dr. Margaret Chen
MD, FRCP, Consultant Cardiologist
St Mary's General Hospital
[{"surface": "heart failure", "label": "Condition", "start": 637, "end": 650, "kg_id": "I50.9", "canonical": "Heart failure, unspecified", "section_kind": "assessment"}, {"surface": "AF", "label": "Condition", "start": 665, "end": 667, "kg_id": "I49.9", "canonical": "Cardiac arrhythmia, unspecified", "section_kind": "a...
[]
[{"block": "medications", "entity_kind": "medication", "name": "lisinopril", "display_text": "lisinopril 10 mg once daily oral", "atc": "C09AA03", "label": "Medication"}, {"block": "medications", "entity_kind": "medication", "name": "apixaban", "display_text": "apixaban 5 mg twice daily oral", "atc": "B01AF02", "...
patient_03/encounter_03
patient_03
# PATIENT SUMMARY International Patient Summary (IPS) ## Patient Details Name: Charles Lopez Date of Birth: 09 Jul 1943 Sex: M Address: 47 Oakwood Avenue, Manchester M1 4ET Patient ID: PT-341730 ## Encounter Encounter Date: 2026-04-18 14:30 Care Setting: outpatient Facility: St Mary's General Hospital Atten...
Charles Lopez
complex
M
1943-07-09
I50.9 · I49.9 · E11.9
Heart failure with rate-controlled arrhythmia, diuretic uptitration
encounter_03
specialist_letter
Letter to GP — Endocrine Co-management
2026-04-18T14:30:00
Dr. Raj Patel
MD, Consultant Endocrinologist
St Mary's General Hospital
[{"surface": "type 2 diabetes mellitus", "label": "Condition", "start": 569, "end": 593, "kg_id": "E11.9", "canonical": "Type 2 diabetes mellitus without complication", "section_kind": "hpi"}, {"surface": "atrial fibrillation", "label": "Condition", "start": 605, "end": 624, "kg_id": "I49.9", "canonical": "Cardiac arrh...
[{"surface": "delusional or psychotic features", "label": "Condition", "start": 1196, "end": 1228, "kg_id": "F22.9", "canonical": "Persistent delusional disorder, unspecified", "section_kind": "assessment"}]
[]
patient_04/encounter_01
patient_04
Northern District Health Service # PATIENT SUMMARY International Patient Summary (IPS) ## PATIENT DETAILS Name: Jennifer Martin Date of Birth: 23 Nov 1978 Sex: F Address: 47 Oakwood Avenue, Manchester M1 4ET Patient ID: PT-989408 ## ENCOUNTER Encounter Date: 2026-01-22 15:00 Care Setting: outpatient Facilit...
Jennifer Martin
typical
F
1978-11-23
F32.1 · F41.1
MDD on SSRI, GAD layered, recent dose change
encounter_01
initial_consult
Psychiatry Outpatient — Initial Assessment
2026-01-22T15:00:00
Dr. Rebecca Allen
MD, Consultant Psychiatrist
Northern District Health Service
[{"surface": "moderate depression", "label": "Condition", "start": 2110, "end": 2129, "kg_id": "F32.1", "canonical": "Moderate depressive episode", "section_kind": "hpi"}, {"surface": "generalised anxiety disorder", "label": "Condition", "start": 2143, "end": 2171, "kg_id": "F41.1", "canonical": "Generalised anxiety di...
[{"surface": "forearm tenosynovitis", "label": "Condition", "start": 3010, "end": 3031, "kg_id": "M65.93", "canonical": "Unspecified synovitis and tenosynovitis, forearm", "section_kind": "social_history"}]
[{"block": "problem_list", "entity_kind": "problem", "name": "Moderate depressive episode", "status": "active", "display_text": "Moderate depressive episode (F32.1)", "icd10": "F32.1", "label": "Condition"}, {"block": "problem_list", "entity_kind": "problem", "name": "Generalised anxiety disorder", "status": "active", ...
patient_04/encounter_02
patient_04
Northern District Health Service # PATIENT SUMMARY International Patient Summary (IPS) ## PATIENT DETAILS | Name: | Jennifer Martin | | --- | --- | | Date of Birth: | 23 Nov 1978 | | Address: | 47 Oakwood Avenue, Manchester M1 4ET | | Patient ID: | PT-989408 | Encounter Date: 2026-03-19 10:30 • Care Setting: outpa...
Jennifer Martin
typical
F
1978-11-23
F32.1 · F41.1
MDD on SSRI, GAD layered, recent dose change
encounter_02
follow_up
Psychiatry Clinic — Medication Review
2026-03-19T10:30:00
Dr. Rebecca Allen
MD, Consultant Psychiatrist
Northern District Health Service
[{"surface": "sertraline", "label": "Medication", "start": 513, "end": 523, "kg_id": "N06AB06", "canonical": "sertraline", "section_kind": "hpi"}, {"surface": "alprazolam", "label": "Medication", "start": 1150, "end": 1160, "kg_id": "N05BA12", "canonical": "alprazolam", "section_kind": "hpi"}, {"surface": "SSRI", "labe...
[]
[{"block": "medications", "entity_kind": "medication", "name": "sertraline", "display_text": "sertraline 50 mg once daily oral", "atc": "N06AB06", "label": "Medication"}, {"block": "medications", "entity_kind": "medication", "name": "alprazolam", "display_text": "alprazolam 0.5 mg three times daily as needed oral...
patient_04/encounter_03
patient_04
# Northern District Health Service # Patient Summary # International Patient Summary (IPS) ## Patient Details Name: Jennifer Martin Date of Birth: 23 Nov 1978 Address: 47 Oakwood Avenue, Manchester M1 4ET Patient ID: PT-989408 • Sex: F ## Encounter Encounter Date: 2026-05-14 16:00 Care Setting: outpatient Fa...
Jennifer Martin
typical
F
1978-11-23
F32.1 · F41.1
MDD on SSRI, GAD layered, recent dose change
encounter_03
follow_up
Psychiatry Clinic — 4-Month Review
2026-05-14T16:00:00
Dr. Rebecca Allen
MD, Consultant Psychiatrist
Northern District Health Service
[{"surface": "sertraline", "label": "Medication", "start": 962, "end": 972, "kg_id": "N06AB06", "canonical": "sertraline", "section_kind": "assessment"}, {"surface": "alprazolam", "label": "Medication", "start": 1005, "end": 1015, "kg_id": "N05BA12", "canonical": "alprazolam", "section_kind": "assessment"}]
[]
[{"block": "medications", "entity_kind": "medication", "name": "sertraline", "display_text": "sertraline 50 mg once daily oral", "atc": "N06AB06", "label": "Medication"}, {"block": "medications", "entity_kind": "medication", "name": "alprazolam", "display_text": "alprazolam 0.5 mg three times daily as needed oral...
patient_05/encounter_01
patient_05
## PATIENT SUMMARY ## International Patient Summary (IPS) ## PATIENT DETAILS | Name: | Patricia Moore | | --- | --- | | Date of Birth: | 19 Jun 1965 | | Address: | 9 Lakeview Terrace, Wellington 6011 | | Patient ID: | PT-309850 | Encounter Date: 2026-01-08 11:00 • Care Setting: outpatient • Facility: Westmead Gener...
Patricia Moore
typical
F
1965-06-19
M17.9 · M54.5 · E78.5
Knee OA, chronic low back pain, statin-treated dyslipidaemia
encounter_01
initial_consult
Orthopaedics Outpatient — Knee Assessment
2026-01-08T11:00:00
Dr. Henry Wallace
MD, FRACS, Orthopaedic Surgeon
Westmead General Hospital
[{"surface": "chronic low back pain", "label": "Condition", "start": 1527, "end": 1548, "kg_id": "M54.5", "canonical": "Low back pain", "section_kind": "hpi"}, {"surface": "primary osteoarthritis of the knee", "label": "Condition", "start": 1717, "end": 1751, "kg_id": "M17.9", "canonical": "Gonarthrosis, unspecified", ...
[{"surface": "heat-exhaustion features", "label": "Condition", "start": 2491, "end": 2515, "kg_id": "T67.5", "canonical": "Heat exhaustion, unspecified", "section_kind": "clinical_observation"}]
[{"block": "problem_list", "entity_kind": "problem", "name": "Gonarthrosis, unspecified", "status": "active", "display_text": "Gonarthrosis, unspecified (M17.9)", "icd10": "M17.9", "label": "Condition"}, {"block": "problem_list", "entity_kind": "problem", "name": "Low back pain", "status": "active", "display_text": "Lo...
patient_05/encounter_02
patient_05
PATIENT SUMMARY # Westmead General Hospital International Patient Summary (IPS) ## Patient Details Name: Patricia Moore Address: 9 Lakeview Terrace, Wellington 6011 Date of Birth: 19 Jun 1965 Patient ID: PT-309850 • Sex: F ## Encounter Encounter Date: 2026-04-02 08:45 Care Setting: outpatient Facility: Westm...
Patricia Moore
typical
F
1965-06-19
M17.9 · M54.5 · E78.5
Knee OA, chronic low back pain, statin-treated dyslipidaemia
encounter_02
acute_visit
GP Walk-in — Acute Back Spasm
2026-04-02T08:45:00
Dr. Olivia Patel
MBBS, General Practice
Westmead General Hospital
[{"surface": "low-back pain", "label": "Condition", "start": 451, "end": 464, "kg_id": "M54.5", "canonical": "Low back pain", "section_kind": "hpi"}, {"surface": "lumbar pain", "label": "Condition", "start": 767, "end": 778, "kg_id": "M54.5", "canonical": "Low back pain", "section_kind": "assessment"}, {"surface": "bac...
[]
[{"block": "medications", "entity_kind": "medication", "name": "ibuprofen", "display_text": "ibuprofen 400 mg every 8 hours oral", "atc": "M01AE01", "label": "Medication"}, {"block": "medications", "entity_kind": "medication", "name": "baclofen", "display_text": "baclofen 10 mg three times daily oral", "atc": "M0...
patient_05/encounter_03
patient_05
Westmead General Hospital # Patient Summary International Patient Summary (IPS) ## Patient Details | Name: | Patricia Moore | | --- | --- | | Date of Birth: | 19 Jun 1965 | | Address: | 9 Lakeview Terrace, Wellington 6011 | | Patient ID: | PT-309850 | Encounter Date: 2026-05-26 09:30 • Care Setting: outpatient • F...
Patricia Moore
typical
F
1965-06-19
M17.9 · M54.5 · E78.5
Knee OA, chronic low back pain, statin-treated dyslipidaemia
encounter_03
follow_up
GP Review — Annual Health Check
2026-05-26T09:30:00
Dr. Olivia Patel
MBBS, General Practice
Westmead General Hospital
[{"surface": "hyperlipidaemia", "label": "Condition", "start": 742, "end": 757, "kg_id": "E78.5", "canonical": "Hyperlipidaemia, unspecified", "section_kind": "hpi"}, {"surface": "simvastatin", "label": "Medication", "start": 1301, "end": 1312, "kg_id": "C10AA01", "canonical": "simvastatin", "section_kind": "hpi"}, {"s...
[]
[{"block": "medications", "entity_kind": "medication", "name": "ibuprofen", "display_text": "ibuprofen 400 mg every 8 hours oral", "atc": "M01AE01", "label": "Medication"}, {"block": "medications", "entity_kind": "medication", "name": "baclofen", "display_text": "baclofen 10 mg three times daily oral", "atc": "M0...
patient_06/encounter_01
patient_06
Northern District Health PATIENT SUMMARY [LOGO] Service International Patient Summary (IPS) ## Patient Details Name: Karen Thomas Date of Birth: 14 Jun 1972 Sex: F Address: 12 Elm Street, Springfield, MA 01103 Patient ID: PT-224180 ## Encounter Encounter Date: 2026-03-10 13:00 Care Setting: outpatient Facil...
Karen Thomas
minimal
F
1972-06-14
E03.9
Primary hypothyroidism on levothyroxine, recent TSH check
encounter_01
follow_up
Endocrinology Annual Review
2026-03-10T13:00:00
Dr. Priya Singh
MD, Consultant Endocrinologist
Northern District Health Service
[{"surface": "primary hypothyroidism", "label": "Condition", "start": 556, "end": 578, "kg_id": "E03.9", "canonical": "Hypothyroidism, unspecified", "section_kind": "hpi"}, {"surface": "levothyroxine", "label": "Medication", "start": 643, "end": 656, "kg_id": "H03AA01", "canonical": "levothyroxine sodium", "section_kin...
[{"surface": "glaucoma screen", "label": "Condition", "start": 986, "end": 1001, "kg_id": "H40.9", "canonical": "Glaucoma, unspecified", "section_kind": "hpi"}]
[{"block": "medications", "entity_kind": "medication", "name": "levothyroxine sodium", "display_text": "levothyroxine sodium 75 microg once daily on empty stomach oral", "atc": "H03AA01", "label": "Medication"}, {"block": "medications", "entity_kind": "medication", "name": "multivitamins and other minerals, incl. co...
patient_06/encounter_02
patient_06
## PATIENT SUMMARY International Patient Summary (IPS) ## PATIENT DETAILS Name: Karen Thomas Date of Birth: 14 Jun 1972 Sex: F Address: 12 Elm Street, Springfield, MA 01103 Patient ID: PT-224180 ## ENCOUNTER Encounter Date: 2026-03-17 10:00 Care Setting: outpatient Facility: Northern District Health Service ...
Karen Thomas
minimal
F
1972-06-14
E03.9
Primary hypothyroidism on levothyroxine, recent TSH check
encounter_02
lab_review
Telephone Consultation — TSH Result
2026-03-17T10:00:00
Dr. Priya Singh
MD, Consultant Endocrinologist
Northern District Health Service
[{"surface": "levothyroxine", "label": "Medication", "start": 1597, "end": 1610, "kg_id": "H03AA01", "canonical": "levothyroxine sodium", "section_kind": "clinical_observation"}]
[]
[{"block": "lab_grid", "entity_kind": "lab_result", "test_name": "Complete Blood Count", "analyte": "Hemoglobin", "value": 156.0, "unit": "g/L", "ref_low": 130.0, "ref_high": 170.0, "flag": "N", "display_text": "Hemoglobin 156.0 g/L [130.0–170.0] N", "loinc": "718-7", "specimen": "Whole blood (EDTA)", "label": "Lab"...
patient_07/encounter_01
patient_07
Northern District Health PATIENT SUMMARY [LOGO] Service International Patient Summary (IPS) ## Patient Details Name: William Johnson Address: 23 Maple Drive, Brisbane QLD 4000 Date of Birth: 17 Jul 1947 Patient ID: PT-230755 • Sex: M Encounter Date: 2026-01-30 14:00 • Care Setting: outpatient • Facility: Northe...
William Johnson
complex
M
1947-07-17
J44.9 · I10 · F17.2
GOLD II COPD, current smoker, two exacerbations in 12 months
encounter_01
acute_visit
Respiratory Outpatient — COPD Exacerbation
2026-01-30T14:00:00
Dr. Eleanor Reid
MD, Consultant Respiratory Physician
Northern District Health Service
[{"surface": "COPD", "label": "Condition", "start": 522, "end": 526, "kg_id": "J44.9", "canonical": "Chronic obstructive pulmonary disease, unspecified", "section_kind": "hpi"}, {"surface": "nicotine dependence", "label": "Condition", "start": 775, "end": 794, "kg_id": "F17.2", "canonical": "Mental and behavioural diso...
[{"surface": "external auditory canal stenosis", "label": "Condition", "start": 1738, "end": 1770, "kg_id": "H61.3", "canonical": "Acquired stenosis of external ear canal", "section_kind": "clinical_observation"}]
[{"block": "medications", "entity_kind": "medication", "name": "indacaterol", "display_text": "indacaterol 150 microg once daily inhaled", "atc": "R03AC18", "label": "Medication"}, {"block": "medications", "entity_kind": "medication", "name": "bisoprolol", "display_text": "bisoprolol 5 mg once daily oral", "atc":...
End of preview. Expand in Data Studio

SynthIPS — Synthetic IPS NER Validation Dataset

A validation dataset of 10 synthetic patients across 29 clinical encounters, annotated for the three core entity types of the International Patient Summary (IPS) standard: Condition, Medication, and Lab.

The International Patient Summary (IPS) is an HL7 FHIR standard for a minimal, specialty-agnostic health record designed for cross-border and cross-system care continuity. SynthIPS is built around its three primary clinical sections — problems, medications, and lab results — and provides realistic clinical documents with ground-truth annotations aligned to IPS entity types, ICD-10 condition codes, ATC medication codes, and LOINC lab identifiers.

Documents include structured blocks (problem lists, medication tables, lab grids) alongside free-text narrative sections and deliberate distractor spans (negated / ruled-out entities), reflecting the mixed layout of real clinical encounter documents.

Stat Value
Patients 10
Encounters 29
GT spans 171 (86 Condition · 85 Medication)
Distractor spans 14
Structured lab analytes 446 (35 unique, 100% LOINC coverage)
Text segments 815 (111 contain GT entities)
Encounter types initial_consult · follow_up · specialist_letter · acute_visit · lab_review
Patient profiles minimal · typical · complex (controls entity density)

Configs

All configs share doc_id (e.g. "patient_01/encounter_01") and patient_id as join keys.

Config Rows Primary use
documents (default) 29 Full archive — document text, PDF, all GT annotations
chunks 815 NER evaluation — one row per document segment with inline entity annotations
patient_summary 10 Patient-level overview — aggregated GT spans, labs, encounter list

How configs relate

patient_summary ── patient_id ──► documents ◄── doc_id ──► chunks
                                  (source of truth)

Lab data lives in documents.structured_entities (filter to block == "lab_grid").


Quick start

from datasets import load_dataset
import json

# ── Chunk-level NER (recommended starting point) ─────────────────────────
chunks = load_dataset("betterInnovation/SynthIPS", "chunks", split="test")

for chunk in chunks:
    entities = json.loads(chunk["gt_entities"])
    if not entities:
        continue
    for e in entities:
        span = chunk["markdown_text"][e["start"]:e["end"]]
        print(chunk["segment_type"], f"p{chunk['page_number']}",
              e["label"], repr(span), "|", e["kg_id"])

# ── Full-document NER (join chunks → documents for full text) ─────────────
docs = load_dataset("betterInnovation/SynthIPS", "documents", split="test")
doc = docs[0]

gt_spans = json.loads(doc["gt_spans"])
for e in gt_spans:
    span = doc["markdown_text"][e["start"]:e["end"]]
    print(e["surface"], "→", e["label"], "|", e["canonical"])

# ── Lab data ──────────────────────────────────────────────────────────────
labs = [e for e in json.loads(doc["structured_entities"])
        if e["block"] == "lab_grid"]
for lab in labs:
    print(lab["analyte"], lab["value"], lab["unit"], lab["flag"], lab["loinc"])

# ── PDF bytes (rendered natively in HF Data Viewer) ───────────────────────
# doc["pdf_bytes"] → {"bytes": b"...", "path": None}  (~70 KB, 3 pages each)

# ── Patient summary ───────────────────────────────────────────────────────
patients = load_dataset("betterInnovation/SynthIPS", "patient_summary", split="test")
for p in patients:
    print(p["patient_id"], p["profile"],
          p["n_encounters"], "encounters")
    print("  encounter types:", list(p["encounter_kinds"]))  # native Arrow list

Column reference

documents config — 29 rows

One row per encounter. The default config. PDF renders natively in the HF Data Viewer.

Column Type Description
doc_id string "patient_01/encounter_01" — join key
patient_id string "patient_01" — join key
pdf_bytes Pdf Raw PDF (~70 KB, 3 pages). Renders as page viewer in HF Data Viewer.
markdown_text string Full document text as markdown — header, problem list, medication table, lab grid, narrative, signatures. start/end offsets in gt_spans point here.
patient_name string
patient_profile string minimal / typical / complex
patient_sex string "M" / "F"
patient_dob string ISO date
anchor_icd10 string Primary ICD-10 codes
clinical_hook string One-line clinical summary
encounter_id string "encounter_01"
encounter_kind string initial_consult / follow_up / specialist_letter / acute_visit / lab_review
encounter_title string Full encounter title
encounter_date string ISO date
provider_name string
provider_role string
provider_facility string
gt_spans string (JSON) GT entity spans — start/end into markdown_text
distractor_spans string (JSON) Trap spans (negated / family history / hypothetical) — should NOT be extracted
structured_entities string (JSON) Structured block entities (lab grid, problem list, medications) with LOINC/ICD-10/ATC codes

chunks config — 815 rows

One row per document segment. markdown_text here is the segment's own slice of the full document text. Join on doc_id → documents for complete document context.

Column Type Description
doc_id string Join key → documents
patient_id string
markdown_text string This segment's text. start/end in gt_entities are offsets into this field.
encounter_id string
encounter_kind string
patient_profile string
chunk_id string Segment identifier within the encounter
page_number int Document page (1-indexed)
chunk_order int Reading order within the encounter
segment_type string "text" or "table"
gt_entities string (JSON) GT entities in this segment — start/end into markdown_text
distractor_entities string (JSON) Distractor spans in this segment

patient_summary config — 10 rows

One row per patient. Cross-encounter data pre-aggregated.

Column Type Description
patient_id string
patient_name string
sex string "M" / "F"
dob string ISO date
profile string minimal / typical / complex
anchor_icd10 string Primary diagnoses
clinical_hook string One-line clinical summary
n_encounters int
encounter_ids list[string] Native Arrow list — no json.loads needed
encounter_kinds list[string] Native Arrow list
all_gt_spans string (JSON) All GT spans across all encounters — filter by label for Condition / Medication
all_distractors string (JSON) All distractor spans
all_labs string (JSON) All structured lab analytes across all encounters

Entity span schema

Applies to gt_spans / distractor_spans (documents) and gt_entities / distractor_entities (chunks).

Field Type Description
surface str Exact mention text as it appears in the document (may be abbreviation: "HTN", "T2DM")
label str IPS type: Condition or Medication
start int Start char offset into markdown_text (document-level in documents, segment-level in chunks)
end int End char offset into markdown_text
kg_id str ICD-10 code (Condition) or ATC code (Medication)
canonical str Normalised entity name — use for normalisation scoring
section_kind str Source section: hpi · social_history · clinical_observation · assessment

Offset guarantee: markdown_text[start:end] matches surface after whitespace normalisation. Line-wrapping may insert \n between words — normalise with re.sub(r'\s+', ' ', span) before comparing.

Distractors share the same schema. They are contextually plausible entities that appear in the narrative but are not part of the patient's confirmed record (negated diagnoses, family history mentions, hypothetical treatments). A model that extracts them is producing false positives.


Usage guide

1 · Chunk-level NER (primary track)

import json
from datasets import load_dataset
from nervaluate import Evaluator

chunks = load_dataset("betterInnovation/SynthIPS", "chunks", split="test")

all_gold, all_preds = [], []
for chunk in chunks:
    gold = [
        {"label": e["label"], "start": e["start"], "end": e["end"]}
        for e in json.loads(chunk["gt_entities"])
    ]
    preds = your_model(chunk["markdown_text"])  # same format
    all_gold.append(gold)
    all_preds.append(preds)

evaluator = Evaluator(all_gold, all_preds, tags=["Condition", "Medication"])
results, _ = evaluator.evaluate()

2 · Full-document NER

docs = load_dataset("betterInnovation/SynthIPS", "documents", split="test")

for doc in docs:
    gold = [
        {"label": e["label"], "start": e["start"], "end": e["end"]}
        for e in json.loads(doc["gt_spans"])
    ]
    preds = your_model(doc["markdown_text"])
    # ... accumulate and evaluate

3 · Distractor robustness (false-positive rate)

from rapidfuzz import fuzz

def fires_on(pred_surface, distractor_surface, threshold=85):
    return fuzz.token_set_ratio(pred_surface.lower(), distractor_surface.lower()) >= threshold

for doc in docs:
    distractors = json.loads(doc["distractor_spans"])
    preds = your_model(doc["markdown_text"])
    fp = sum(
        1 for d in distractors
        if any(fires_on(p["text"], d["surface"]) for p in preds)
    )
    fp_rate = fp / len(distractors) if distractors else 0

4 · Lab analyte extraction

for doc in docs:
    labs = [e for e in json.loads(doc["structured_entities"])
            if e["block"] == "lab_grid"]
    # Each lab: analyte, value, unit, flag, loinc
    # Score: precision/recall at analyte-name level against model output on markdown_text

5 · Entity normalisation scoring

Compare model output against canonical (normalised name) and kg_id (ICD-10 / ATC code).


The 10 patients

ID Name Sex DoB Profile Primary conditions
patient_01 Donald Wilson M 1957-01-14 typical T2DM, hypertension, dyslipidaemia
patient_02 Kimberly Hernandez F 2000-01-31 minimal Asthma, allergic rhinitis
patient_03 Charles Lopez M 1943-07-09 complex Heart failure, arrhythmia, T2DM
patient_04 Jennifer Martin F 1978-11-23 typical MDD, GAD
patient_05 Patricia Moore F 1965-06-19 typical Knee OA, chronic low back pain, dyslipidaemia
patient_06 Karen Thomas F 1972-06-14 minimal Primary hypothyroidism
patient_07 William Johnson M 1947-07-17 complex COPD, hypertension, smoking
patient_08 Thomas Lee M 1955-11-14 complex Diabetic nephropathy CKD3, prior MI, angina
patient_09 Emily Hernandez F 1989-11-23 typical GERD, anxiety
patient_10 Karen Wilson F 1964-03-29 typical Osteoporosis, RA, hypothyroidism

Profile controls entity density: minimal (1–3 problems/meds) · typical (3–6) · complex (6–12).


Design notes

IPS entity types

SynthIPS covers the three primary sections of the IPS standard:

IPS section Label in dataset Identifier
Problems (conditions, diagnoses) Condition ICD-10 via kg_id
Medications Medication ATC code via kg_id
Results (lab analytes) Lab LOINC code via loinc field in structured_entities

Entity names in canonical follow the IPS-preferred normalised form. Abbreviations and synonyms (e.g. "HTN", "T2DM") are preserved in surface exactly as they appear in the document.

Document structure

Each encounter document contains several distinct sections: institution header, patient demographics, structured problem list, medication table, structured lab grid, and free-text narrative sections (HPI, social history, clinical examination, assessment & plan). This mixed structure — combining tabular and narrative content — reflects the layout of real clinical encounter documents and is a deliberate challenge for NER models.

markdown_text preserves this structure as formatted markdown. All start/end offsets in entity spans point into markdown_text.

Distractor design

Each encounter includes 0–1 deliberate trap spans: clinically plausible entities that appear in the narrative but are negated, belong to family history, are ruled out, or are hypothetical. Examples: "no evidence of X", "father had X", "we will consider X if...". These measure whether a model extracts only confirmed, patient-present entities.

Reproducibility

Every encounter document is deterministic given its layout_seed. Re-running the composer with the same source files produces byte-identical documents and GT annotations.


Citation

@dataset{synthips2026,
  title   = {SynthIPS: Synthetic IPS NER Validation Dataset},
  author  = {Better Care},
  year    = {2026},
  url     = {https://huggingface.co/datasets/betterInnovation/SynthIPS},
  license = {CC BY 4.0}
}

License

CC BY 4.0 — free to use, share, and adapt with attribution.

Downloads last month
6