Dataset Viewer
Auto-converted to Parquet Duplicate
image
imagewidth (px)
150
1.92k
label
class label
4 classes
ehr_json
large_stringlengths
3.91k
9.04k
ehr_age
int32
25
85
ehr_gender
large_stringclasses
2 values
ehr_country
large_stringclasses
10 values
ehr_urban_rural
large_stringclasses
2 values
ehr_facility_level
large_stringclasses
3 values
ehr_insurance_type
large_stringclasses
3 values
ehr_primary_language
large_stringclasses
13 values
ehr_time_to_presentation_days
int32
2
49
ehr_triage_acuity
large_stringclasses
3 values
ehr_provider_specialty
large_stringclasses
3 values
ehr_symptoms
large_stringclasses
265 values
ehr_medications
large_stringclasses
806 values
ehr_diagnoses_json
large_stringclasses
3 values
ehr_procedures_json
large_stringlengths
209
612
ehr_medications_detailed_json
large_stringlengths
2
1.45k
ehr_encounters_json
large_stringlengths
1.73k
4.87k
ehr_outcomes_json
large_stringclasses
114 values
ehr_outcomes_timeline_json
large_stringlengths
101
104
0glioma
{"patient_id": "a995f5b9", "age": 65, "gender": "M", "country": "Ethiopia", "urban_rural": "urban", "facility_level": "tertiary", "insurance_type": "out_of_pocket", "primary_language": "Amharic", "time_to_presentation_days": 10, "referral_path": "direct->tertiary", "ethnicity": "African", "encounter_date": "2025-06-11"...
65
M
Ethiopia
urban
tertiary
out_of_pocket
Amharic
10
urgent
neurology
sleep_disturbance
ibuprofen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2025-06-10", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}]
[{"name": "ibuprofen", "dose": 400, "unit": "mg", "route": "PO", "frequency": "q8h PRN", "start_date": "2025-06-06", "duration_days": 4, "atc_code": "M01AE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2025-04-21", "triage_acuity": "routine", "provider": {"provider_id": "64dc12", "specialty": "neurology"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2025-04-19", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOM...
{"index_disposition": "admitted", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2025-01-01"}
0glioma
{"patient_id": "1f1feca7", "age": 38, "gender": "F", "country": "Tanzania", "urban_rural": "urban", "facility_level": "primary", "insurance_type": "out_of_pocket", "primary_language": "English", "time_to_presentation_days": 17, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_d...
38
F
Tanzania
urban
primary
out_of_pocket
English
17
routine
neurology
none
acetaminophen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-01-16", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}, {"display": "CT head/brain without contrast", "date": "2024-01-17", "codes": [{"system": "CPT", "code": "70450...
[{"name": "acetaminophen", "dose": 500, "unit": "mg", "route": "PO", "frequency": "q6h PRN", "start_date": "2024-01-05", "duration_days": 13, "atc_code": "N02BE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2023-12-24", "triage_acuity": "urgent", "provider": {"provider_id": "f79ab5", "specialty": "neurology"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2023-12-23", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOME...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2023-02-10"}
0glioma
{"patient_id": "9bf6fe07", "age": 66, "gender": "M", "country": "Egypt", "urban_rural": "urban", "facility_level": "primary", "insurance_type": "public", "primary_language": "Arabic", "time_to_presentation_days": 22, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date": "2025...
66
M
Egypt
urban
primary
public
Arabic
22
urgent
internal_medicine
none
sertraline; co_trimoxazole
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2025-01-15", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}, {"display": "CT head/brain without contrast", "date": "2025-01-09", "codes": [{"system": "CPT", "code": "70450...
[{"name": "sertraline", "dose": 50, "unit": "mg", "route": "PO", "frequency": "daily", "start_date": "2025-01-09", "duration_days": 240, "atc_code": "N06AB06"}, {"name": "co_trimoxazole", "dose": 960, "unit": "mg", "route": "PO", "frequency": "daily", "start_date": "2025-01-06", "duration_days": 57, "atc_code": "J01EE0...
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-12-27", "triage_acuity": "routine", "provider": {"provider_id": "985380", "specialty": "internal_medicine"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-12-25", "codes": [{"system": "CPT", "code": "70553"}, {"system...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2024-10-28"}
0glioma
{"patient_id": "960c6f17", "age": 28, "gender": "F", "country": "Kenya", "urban_rural": "urban", "facility_level": "primary", "insurance_type": "out_of_pocket", "primary_language": "English", "time_to_presentation_days": 12, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date...
28
F
Kenya
urban
primary
out_of_pocket
English
12
urgent
neurosurgery
none
acetaminophen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-01-30", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}, {"display": "CT head/brain without contrast", "date": "2024-01-24", "codes": [{"system": "CPT", "code": "70450...
[{"name": "acetaminophen", "dose": 500, "unit": "mg", "route": "PO", "frequency": "q6h PRN", "start_date": "2024-01-26", "duration_days": 4, "atc_code": "N02BE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-01-11", "triage_acuity": "routine", "provider": {"provider_id": "fd20be", "specialty": "neurology"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-01-11", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOM...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2023-04-30"}
0glioma
{"patient_id": "13eb77ae", "age": 27, "gender": "F", "country": "Morocco", "urban_rural": "urban", "facility_level": "primary", "insurance_type": "public", "primary_language": "Arabic", "time_to_presentation_days": 17, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date": "20...
27
F
Morocco
urban
primary
public
Arabic
17
urgent
neurology
sleep_disturbance
acetaminophen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-09-06", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}, {"display": "CT head/brain without contrast", "date": "2024-09-03", "codes": [{"system": "CPT", "code": "70450...
[{"name": "acetaminophen", "dose": 500, "unit": "mg", "route": "PO", "frequency": "q6h PRN", "start_date": "2024-09-05", "duration_days": 7, "atc_code": "N02BE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-08-04", "triage_acuity": "urgent", "provider": {"provider_id": "3f6562", "specialty": "internal_medicine"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-07-29", "codes": [{"system": "CPT", "code": "70553"}, {"system"...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2023-10-04"}
0glioma
{"patient_id": "2c56597e", "age": 79, "gender": "M", "country": "Ethiopia", "urban_rural": "rural", "facility_level": "primary", "insurance_type": "out_of_pocket", "primary_language": "Amharic", "time_to_presentation_days": 29, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_d...
79
M
Ethiopia
rural
primary
out_of_pocket
Amharic
29
routine
internal_medicine
none
acetaminophen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2025-02-21", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}, {"display": "CT head/brain without contrast", "date": "2025-02-18", "codes": [{"system": "CPT", "code": "70450...
[{"name": "acetaminophen", "dose": 500, "unit": "mg", "route": "PO", "frequency": "q6h PRN", "start_date": "2025-02-16", "duration_days": 7, "atc_code": "N02BE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2025-01-19", "triage_acuity": "urgent", "provider": {"provider_id": "8302a2", "specialty": "neurology"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2025-01-18", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOME...
{"index_disposition": "admitted", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2024-04-04"}
0glioma
{"patient_id": "5eb6c39b", "age": 42, "gender": "F", "country": "Egypt", "urban_rural": "rural", "facility_level": "primary", "insurance_type": "public", "primary_language": "Arabic", "time_to_presentation_days": 22, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date": "2024...
42
F
Egypt
rural
primary
public
Arabic
22
routine
neurosurgery
fatigue
acetaminophen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-12-02", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}, {"display": "CT head/brain without contrast", "date": "2024-11-27", "codes": [{"system": "CPT", "code": "70450...
[{"name": "acetaminophen", "dose": 500, "unit": "mg", "route": "PO", "frequency": "q6h PRN", "start_date": "2024-11-30", "duration_days": 8, "atc_code": "N02BE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-11-03", "triage_acuity": "urgent", "provider": {"provider_id": "623b68", "specialty": "neurosurgery"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-10-29", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SN...
{"index_disposition": "admitted", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": true}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2024-07-31"}
0glioma
{"patient_id": "72ae7e89", "age": 37, "gender": "F", "country": "Morocco", "urban_rural": "urban", "facility_level": "secondary", "insurance_type": "public", "primary_language": "Arabic", "time_to_presentation_days": 5, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date": "2...
37
F
Morocco
urban
secondary
public
Arabic
5
routine
neurosurgery
headache; dizziness
acetaminophen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-05-15", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}]
[{"name": "acetaminophen", "dose": 500, "unit": "mg", "route": "PO", "frequency": "q6h PRN", "start_date": "2024-05-07", "duration_days": 7, "atc_code": "N02BE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-03-22", "triage_acuity": "routine", "provider": {"provider_id": "144171", "specialty": "neurology"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-03-19", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOM...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2024-01-09"}
0glioma
{"patient_id": "ad544cf3", "age": 46, "gender": "M", "country": "Morocco", "urban_rural": "urban", "facility_level": "secondary", "insurance_type": "public", "primary_language": "French", "time_to_presentation_days": 5, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date": "2...
46
M
Morocco
urban
secondary
public
French
5
routine
internal_medicine
none
acetaminophen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-07-14", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}]
[{"name": "acetaminophen", "dose": 500, "unit": "mg", "route": "PO", "frequency": "q6h PRN", "start_date": "2024-07-16", "duration_days": 14, "atc_code": "N02BE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-07-12", "triage_acuity": "routine", "provider": {"provider_id": "5889b7", "specialty": "neurosurgery"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-07-05", "codes": [{"system": "CPT", "code": "70553"}, {"system": "S...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2024-02-15"}
0glioma
{"patient_id": "979778f0", "age": 30, "gender": "F", "country": "Kenya", "urban_rural": "urban", "facility_level": "tertiary", "insurance_type": "public", "primary_language": "Swahili", "time_to_presentation_days": 10, "referral_path": "direct->tertiary", "ethnicity": "African", "encounter_date": "2024-08-15", "tumor_p...
30
F
Kenya
urban
tertiary
public
Swahili
10
routine
neurology
sleep_disturbance
ibuprofen; acetaminophen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-08-14", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}]
[{"name": "ibuprofen", "dose": 400, "unit": "mg", "route": "PO", "frequency": "q8h PRN", "start_date": "2024-08-11", "duration_days": 6, "atc_code": "M01AE01"}, {"name": "acetaminophen", "dose": 500, "unit": "mg", "route": "PO", "frequency": "q6h PRN", "start_date": "2024-08-11", "duration_days": 14, "atc_code": "N02BE...
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-08-03", "triage_acuity": "routine", "provider": {"provider_id": "683b49", "specialty": "neurology"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-07-30", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOM...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2024-02-19"}
0glioma
{"patient_id": "2c1ad3dd", "age": 51, "gender": "M", "country": "Kenya", "urban_rural": "urban", "facility_level": "tertiary", "insurance_type": "public", "primary_language": "English", "time_to_presentation_days": 8, "referral_path": "direct->tertiary", "ethnicity": "African", "encounter_date": "2024-02-23", "tumor_pr...
51
M
Kenya
urban
tertiary
public
English
8
routine
neurosurgery
fatigue
acetaminophen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-02-21", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}]
[{"name": "acetaminophen", "dose": 500, "unit": "mg", "route": "PO", "frequency": "q6h PRN", "start_date": "2024-02-16", "duration_days": 14, "atc_code": "N02BE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-02-08", "triage_acuity": "routine", "provider": {"provider_id": "faeda0", "specialty": "neurology"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-02-02", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOM...
{"index_disposition": "admitted", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2023-09-12"}
0glioma
{"patient_id": "932c6bbf", "age": 80, "gender": "M", "country": "Ghana", "urban_rural": "urban", "facility_level": "tertiary", "insurance_type": "public", "primary_language": "English", "time_to_presentation_days": 13, "referral_path": "direct->tertiary", "ethnicity": "African", "encounter_date": "2024-05-12", "tumor_p...
80
M
Ghana
urban
tertiary
public
English
13
routine
neurosurgery
none
ibuprofen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-05-11", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}]
[{"name": "ibuprofen", "dose": 400, "unit": "mg", "route": "PO", "frequency": "q8h PRN", "start_date": "2024-05-07", "duration_days": 7, "atc_code": "M01AE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-04-20", "triage_acuity": "routine", "provider": {"provider_id": "ee3389", "specialty": "neurology"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-04-18", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOM...
{"index_disposition": "admitted", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2023-08-07"}
0glioma
{"patient_id": "cb51a364", "age": 35, "gender": "M", "country": "Uganda", "urban_rural": "rural", "facility_level": "primary", "insurance_type": "public", "primary_language": "Luganda", "time_to_presentation_days": 41, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date": "20...
35
M
Uganda
rural
primary
public
Luganda
41
routine
neurosurgery
fatigue
acetaminophen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2025-02-15", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}, {"display": "CT head/brain without contrast", "date": "2025-02-16", "codes": [{"system": "CPT", "code": "70450...
[{"name": "acetaminophen", "dose": 500, "unit": "mg", "route": "PO", "frequency": "q6h PRN", "start_date": "2025-02-05", "duration_days": 12, "atc_code": "N02BE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-12-20", "triage_acuity": "routine", "provider": {"provider_id": "f0798f", "specialty": "internal_medicine"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-12-16", "codes": [{"system": "CPT", "code": "70553"}, {"system...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2024-03-10"}
0glioma
{"patient_id": "de4c7167", "age": 41, "gender": "F", "country": "Uganda", "urban_rural": "rural", "facility_level": "primary", "insurance_type": "private", "primary_language": "English", "time_to_presentation_days": 32, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date": "2...
41
F
Uganda
rural
primary
private
English
32
routine
neurosurgery
fatigue
acetaminophen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2023-12-19", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}, {"display": "CT head/brain without contrast", "date": "2023-12-24", "codes": [{"system": "CPT", "code": "70450...
[{"name": "acetaminophen", "dose": 500, "unit": "mg", "route": "PO", "frequency": "q6h PRN", "start_date": "2023-12-14", "duration_days": 9, "atc_code": "N02BE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2023-12-09", "triage_acuity": "routine", "provider": {"provider_id": "5a0172", "specialty": "neurology"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2023-12-06", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOM...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2023-08-25"}
0glioma
{"patient_id": "917ac02e", "age": 62, "gender": "M", "country": "South Africa", "urban_rural": "urban", "facility_level": "tertiary", "insurance_type": "public", "primary_language": "Xhosa", "time_to_presentation_days": 13, "referral_path": "direct->tertiary", "ethnicity": "African", "encounter_date": "2025-07-05", "tu...
62
M
South Africa
urban
tertiary
public
Xhosa
13
routine
neurology
anxiety
zolpidem
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2025-07-02", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}]
[{"name": "zolpidem", "dose": 5, "unit": "mg", "route": "PO", "frequency": "qHS PRN", "start_date": "2025-06-30", "duration_days": 9, "atc_code": "N05CF02"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2025-06-24", "triage_acuity": "urgent", "provider": {"provider_id": "1953b8", "specialty": "neurosurgery"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2025-06-19", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SN...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2025-04-17"}
0glioma
{"patient_id": "0bb35fc1", "age": 67, "gender": "M", "country": "Kenya", "urban_rural": "rural", "facility_level": "primary", "insurance_type": "out_of_pocket", "primary_language": "Swahili", "time_to_presentation_days": 31, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date...
67
M
Kenya
rural
primary
out_of_pocket
Swahili
31
urgent
neurology
sleep_disturbance
co_trimoxazole
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-06-22", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}, {"display": "CT head/brain without contrast", "date": "2024-06-19", "codes": [{"system": "CPT", "code": "70450...
[{"name": "co_trimoxazole", "dose": 960, "unit": "mg", "route": "PO", "frequency": "daily", "start_date": "2024-06-23", "duration_days": 301, "atc_code": "J01EE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-05-31", "triage_acuity": "urgent", "provider": {"provider_id": "3214d0", "specialty": "neurology"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-05-31", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOME...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2023-07-20"}
0glioma
{"patient_id": "b47c2d79", "age": 76, "gender": "M", "country": "Tanzania", "urban_rural": "urban", "facility_level": "secondary", "insurance_type": "public", "primary_language": "Swahili", "time_to_presentation_days": 7, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date": ...
76
M
Tanzania
urban
secondary
public
Swahili
7
routine
internal_medicine
none
acetaminophen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-01-27", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}]
[{"name": "acetaminophen", "dose": 500, "unit": "mg", "route": "PO", "frequency": "q6h PRN", "start_date": "2024-01-27", "duration_days": 5, "atc_code": "N02BE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2023-12-12", "triage_acuity": "urgent", "provider": {"provider_id": "2c9268", "specialty": "neurosurgery"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2023-12-05", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SN...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": false, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2023-12-13"}
0glioma
{"patient_id": "6827836e", "age": 64, "gender": "F", "country": "Tanzania", "urban_rural": "urban", "facility_level": "tertiary", "insurance_type": "out_of_pocket", "primary_language": "English", "time_to_presentation_days": 2, "referral_path": "direct->tertiary", "ethnicity": "African", "encounter_date": "2024-06-05",...
64
F
Tanzania
urban
tertiary
out_of_pocket
English
2
urgent
neurology
fatigue; anxiety
ibuprofen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-05-31", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}]
[{"name": "ibuprofen", "dose": 400, "unit": "mg", "route": "PO", "frequency": "q8h PRN", "start_date": "2024-05-24", "duration_days": 9, "atc_code": "M01AE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-04-12", "triage_acuity": "routine", "provider": {"provider_id": "e90dd9", "specialty": "neurosurgery"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-04-06", "codes": [{"system": "CPT", "code": "70553"}, {"system": "S...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2024-05-17"}
0glioma
{"patient_id": "42eb3f99", "age": 67, "gender": "M", "country": "Morocco", "urban_rural": "urban", "facility_level": "primary", "insurance_type": "public", "primary_language": "Arabic", "time_to_presentation_days": 25, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date": "20...
67
M
Morocco
urban
primary
public
Arabic
25
routine
neurosurgery
none
ibuprofen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2025-03-21", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}, {"display": "CT head/brain without contrast", "date": "2025-03-17", "codes": [{"system": "CPT", "code": "70450...
[{"name": "ibuprofen", "dose": 400, "unit": "mg", "route": "PO", "frequency": "q8h PRN", "start_date": "2025-03-10", "duration_days": 5, "atc_code": "M01AE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2025-03-15", "triage_acuity": "urgent", "provider": {"provider_id": "e5efe9", "specialty": "neurology"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2025-03-10", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOME...
{"index_disposition": "admitted", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": false, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2024-08-19"}
0glioma
{"patient_id": "58f5ba73", "age": 32, "gender": "F", "country": "Ghana", "urban_rural": "urban", "facility_level": "primary", "insurance_type": "private", "primary_language": "English", "time_to_presentation_days": 21, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date": "20...
32
F
Ghana
urban
primary
private
English
21
routine
internal_medicine
anxiety
ibuprofen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2025-07-01", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}, {"display": "CT head/brain without contrast", "date": "2025-06-28", "codes": [{"system": "CPT", "code": "70450...
[{"name": "ibuprofen", "dose": 400, "unit": "mg", "route": "PO", "frequency": "q8h PRN", "start_date": "2025-06-23", "duration_days": 9, "atc_code": "M01AE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2025-06-11", "triage_acuity": "urgent", "provider": {"provider_id": "f8053f", "specialty": "internal_medicine"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2025-06-11", "codes": [{"system": "CPT", "code": "70553"}, {"system"...
{"index_disposition": "admitted", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": true, "survival_12m": true, "survival_24m": true, "last_followup_date": "2024-12-14"}
0glioma
{"patient_id": "c5688845", "age": 72, "gender": "M", "country": "Tanzania", "urban_rural": "rural", "facility_level": "primary", "insurance_type": "public", "primary_language": "English", "time_to_presentation_days": 43, "referral_path": "clinic->district_hospital->tertiary", "ethnicity": "African", "encounter_date": "...
72
M
Tanzania
rural
primary
public
English
43
urgent
neurology
none
ibuprofen
[{"system": "ICD-10", "code": "R51.9", "display": "Headache, unspecified", "rank": 1}]
[{"display": "MRI brain with and without contrast", "date": "2024-12-09", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SNOMED", "code": "113091000"}, {"system": "ICD-10-PCS", "code": "B030ZZZ"}]}, {"display": "CT head/brain without contrast", "date": "2024-11-30", "codes": [{"system": "CPT", "code": "70450...
[{"name": "ibuprofen", "dose": 400, "unit": "mg", "route": "PO", "frequency": "q8h PRN", "start_date": "2024-12-08", "duration_days": 3, "atc_code": "M01AE01"}]
[{"encounter_index": 0, "visit_type": "pre_diagnosis", "date": "2024-10-16", "triage_acuity": "urgent", "provider": {"provider_id": "202eee", "specialty": "neurosurgery"}, "procedures": [{"display": "MRI brain with and without contrast", "date": "2024-10-15", "codes": [{"system": "CPT", "code": "70553"}, {"system": "SN...
{"index_disposition": "discharged", "surgery_recommended": false, "biopsy_performed": false, "radiation_planned": false, "chemotherapy_planned": false, "survival_12m": true, "readmission_30d": false}
{"survival_6m": false, "survival_12m": true, "survival_24m": false, "last_followup_date": "2024-06-29"}
End of preview. Expand in Data Studio

Dataset Card: Africa Brain Tumor Scans with Synthetic EHR (Bundled Parquet)

This dataset bundles single-slice brain MRI scans and richly structured, synthetic EHR data into a single Parquet file suitable for multimodal ML research. Each row contains an image struct (bytes + path), a source label column, and an EHR payload with both a full JSON record and convenient summary columns.

The synthetic EHRs are Africa-focused: they encode country, urban/rural, facility level, insurance, time-to-presentation, common comorbidities (e.g., HIV/TB/malaria), realistic procedures (CPT/SNOMED/ICD-10-PCS), diagnoses (ICD-10), medications with dosing and ATC codes, longitudinal encounters, and outcomes timelines. Clinical rules and a strict validator enforce core coherence (e.g., temozolomide only in tumor cases; AEDs when seizures are present; longer delays for rural/primary settings).

All data are synthetic and non-identifiable.

Size and Composition

  • Rows: 7,023
  • File size: ~165.4 MB (165,397,598 bytes)
  • Labels (from source label column):
    • 0: 1,621
    • 1: 1,645
    • 2: 2,000
    • 3: 1,757

Note on labels: The EHR generator interprets labels > 0 as “tumor-present” for clinical logic. The ehr_json includes a tumor_present field mirroring the source label integer. If you need a strict binary, derive tumor_binary = 1 if label > 0 else 0 (see example below).

Demographics and Clinical Context (Aggregates)

From outputs/ehr/brain_tumor_ehr.csv (flattened EHRs):

  • Gender: 3,618 M; 3,405 F
  • Age: min 25, max 85, mean 55.1, median 55.0
  • Country (top 10): Nigeria 736; Egypt 726; Morocco 720; Uganda 706; Tanzania 700; Kenya 698; Ghana 698; South Africa 687; Ethiopia 679; Rwanda 673
  • Facility level: primary 2,929; secondary 2,323; tertiary 1,771
  • Urban/rural: urban 4,349; rural 2,674
  • Triage acuity: routine 3,323; urgent 2,842; emergency 858
  • Provider specialty: neurology 2,794; neurosurgery 2,677; internal_medicine 1,552
  • Time to presentation (days): urban mean 10.64; rural mean 26.27

Coherence examples (sanity checks):

  • Antiepileptics when “seizures” present: 100.0% vs 10.8% without seizures
  • Temozolomide in tumor vs non-tumor: 44.0% vs 0.0%
  • Dexamethasone in tumor vs non-tumor: 89.7% vs 0.0%

Access and Usage

Python (PyArrow + Pandas):

import pyarrow.parquet as pq
import json

path = "outputs/bundled/africa_brain_tumor_scans_with_ehr.parquet"
tbl = pq.read_table(path)
df = tbl.to_pandas()

# Parse the EHR JSON for first row
ehr = json.loads(df.loc[0, "ehr_json"])  # dict
print(ehr["diagnoses"][0])

# Derive binary tumor label if needed
df["tumor_binary"] = (df["label"].astype(int) > 0).astype(int)

Image decoding:

  • image.bytes holds the encoded image bytes; image.path is the original path string (may be local-only).
  • Use src/parquet_image_io.py helpers (e.g., decode_to_pil) or Pillow directly to load images from bytes.

CSV/Parquet EHR (flattened):

  • JSON columns (e.g., diagnoses, procedures) are JSON strings; use json.loads to parse.
  • Lists of primitives (e.g., symptoms) are semicolon-joined strings.

Ethical Considerations and Limitations

  • Synthetic, non-identifiable data; no PHI.
  • Distributions are plausibility-driven, not institution-specific; do not perform epidemiologic inference.
  • Africa profile encodes broad tendencies (e.g., delays, comorbidities) and standard code systems (ICD-10, SNOMED, CPT/ICD-10-PCS); mappings are illustrative.
  • Generator is rule-driven and may not capture all real-world correlations.

License and Contact

  • See repository LICENSE for terms (if absent, treat as “all rights reserved” by default).
  • Questions or calibration requests: open an issue in the repository.
Downloads last month
15