Datasets:
diagnosis_id large_string | encounter_id large_string | patient_id large_string | diagnosis_code large_string | diagnosis_desc large_string | is_chronic bool | sequence_number int32 |
|---|---|---|---|---|---|---|
D000000001 | E000000001 | P00000001 | J06.9 | Acute upper respiratory infection | false | 1 |
D000000002 | E000000002 | P00000001 | M54.5 | Low back pain | false | 1 |
D000000003 | E000000002 | P00000001 | R10.9 | Abdominal pain, unspecified | false | 2 |
D000000004 | E000000003 | P00000002 | M54.5 | Low back pain | false | 1 |
D000000005 | E000000003 | P00000002 | R51 | Headache | false | 2 |
D000000006 | E000000004 | P00000002 | R10.9 | Abdominal pain, unspecified | false | 1 |
D000000007 | E000000004 | P00000002 | M54.5 | Low back pain | false | 2 |
D000000008 | E000000005 | P00000002 | R51 | Headache | false | 1 |
D000000009 | E000000005 | P00000002 | J06.9 | Acute upper respiratory infection | false | 2 |
D000000010 | E000000006 | P00000002 | R10.9 | Abdominal pain, unspecified | false | 1 |
D000000011 | E000000007 | P00000002 | K21.9 | Gastro-esophageal reflux disease | false | 1 |
D000000012 | E000000008 | P00000003 | I11.9 | Hypertensive heart disease without heart failure | false | 1 |
D000000013 | E000000008 | P00000003 | I10 | Essential hypertension | true | 2 |
D000000014 | E000000009 | P00000003 | I11.9 | Hypertensive heart disease without heart failure | false | 1 |
D000000015 | E000000009 | P00000003 | I11.9 | Hypertensive heart disease without heart failure | false | 2 |
D000000016 | E000000010 | P00000003 | R10.9 | Abdominal pain, unspecified | false | 1 |
D000000017 | E000000010 | P00000003 | R10.9 | Abdominal pain, unspecified | false | 2 |
D000000018 | E000000011 | P00000003 | Z00.00 | General adult medical examination | false | 1 |
D000000019 | E000000011 | P00000003 | I11.9 | Hypertensive heart disease without heart failure | false | 2 |
D000000020 | E000000012 | P00000003 | I11.9 | Hypertensive heart disease without heart failure | false | 1 |
D000000021 | E000000012 | P00000003 | J06.9 | Acute upper respiratory infection | false | 2 |
D000000022 | E000000013 | P00000003 | I11.9 | Hypertensive heart disease without heart failure | false | 1 |
D000000023 | E000000014 | P00000004 | J45.909 | Unspecified asthma, uncomplicated | true | 1 |
D000000024 | E000000014 | P00000004 | J45.909 | Unspecified asthma, uncomplicated | true | 2 |
D000000025 | E000000015 | P00000004 | M54.5 | Low back pain | false | 1 |
D000000026 | E000000016 | P00000004 | J45.40 | Moderate persistent asthma, uncomplicated | false | 1 |
D000000027 | E000000016 | P00000004 | J45.909 | Unspecified asthma, uncomplicated | true | 2 |
D000000028 | E000000017 | P00000004 | J45.40 | Moderate persistent asthma, uncomplicated | false | 1 |
D000000029 | E000000017 | P00000004 | J06.9 | Acute upper respiratory infection | false | 2 |
D000000030 | E000000018 | P00000004 | Z00.00 | General adult medical examination | false | 1 |
D000000031 | E000000018 | P00000004 | J06.9 | Acute upper respiratory infection | false | 2 |
D000000032 | E000000019 | P00000004 | J45.40 | Moderate persistent asthma, uncomplicated | false | 1 |
D000000033 | E000000019 | P00000004 | J45.909 | Unspecified asthma, uncomplicated | true | 2 |
D000000034 | E000000020 | P00000004 | J45.909 | Unspecified asthma, uncomplicated | true | 1 |
D000000035 | E000000020 | P00000004 | S93.4 | Sprain of ankle | false | 2 |
D000000036 | E000000021 | P00000005 | I10 | Essential hypertension | true | 1 |
D000000037 | E000000022 | P00000005 | S93.4 | Sprain of ankle | false | 1 |
D000000038 | E000000022 | P00000005 | I10 | Essential hypertension | true | 2 |
D000000039 | E000000023 | P00000005 | I11.9 | Hypertensive heart disease without heart failure | false | 1 |
D000000040 | E000000023 | P00000005 | I11.9 | Hypertensive heart disease without heart failure | false | 2 |
D000000041 | E000000024 | P00000005 | K21.9 | Gastro-esophageal reflux disease | false | 1 |
D000000042 | E000000025 | P00000005 | I10 | Essential hypertension | true | 1 |
D000000043 | E000000025 | P00000005 | I11.9 | Hypertensive heart disease without heart failure | false | 2 |
D000000044 | E000000026 | P00000005 | M54.5 | Low back pain | false | 1 |
D000000045 | E000000027 | P00000006 | R51 | Headache | false | 1 |
D000000046 | E000000027 | P00000006 | S93.4 | Sprain of ankle | false | 2 |
D000000047 | E000000028 | P00000006 | R51 | Headache | false | 1 |
D000000048 | E000000028 | P00000006 | M54.5 | Low back pain | false | 2 |
D000000049 | E000000029 | P00000006 | R10.9 | Abdominal pain, unspecified | false | 1 |
D000000050 | E000000029 | P00000006 | S93.4 | Sprain of ankle | false | 2 |
D000000051 | E000000030 | P00000006 | K21.9 | Gastro-esophageal reflux disease | false | 1 |
D000000052 | E000000030 | P00000006 | J06.9 | Acute upper respiratory infection | false | 2 |
D000000053 | E000000031 | P00000007 | R10.9 | Abdominal pain, unspecified | false | 1 |
D000000054 | E000000031 | P00000007 | R10.9 | Abdominal pain, unspecified | false | 2 |
D000000055 | E000000032 | P00000007 | R10.9 | Abdominal pain, unspecified | false | 1 |
D000000056 | E000000033 | P00000008 | E11.9 | Type 2 diabetes mellitus without complications | true | 1 |
D000000057 | E000000034 | P00000008 | E11.65 | Type 2 diabetes with hyperglycemia | false | 1 |
D000000058 | E000000035 | P00000008 | M54.5 | Low back pain | false | 1 |
D000000059 | E000000035 | P00000008 | E11.21 | Type 2 diabetes with diabetic nephropathy | false | 2 |
D000000060 | E000000036 | P00000008 | Z00.00 | General adult medical examination | false | 1 |
D000000061 | E000000036 | P00000008 | E11.9 | Type 2 diabetes mellitus without complications | true | 2 |
D000000062 | E000000037 | P00000008 | E11.21 | Type 2 diabetes with diabetic nephropathy | false | 1 |
D000000063 | E000000037 | P00000008 | E11.65 | Type 2 diabetes with hyperglycemia | false | 2 |
D000000064 | E000000038 | P00000009 | E11.65 | Type 2 diabetes with hyperglycemia | false | 1 |
D000000065 | E000000038 | P00000009 | E11.9 | Type 2 diabetes mellitus without complications | true | 2 |
D000000066 | E000000039 | P00000009 | K21.9 | Gastro-esophageal reflux disease | false | 1 |
D000000067 | E000000040 | P00000009 | Z00.00 | General adult medical examination | false | 1 |
D000000068 | E000000041 | P00000009 | E11.21 | Type 2 diabetes with diabetic nephropathy | false | 1 |
D000000069 | E000000042 | P00000009 | E11.65 | Type 2 diabetes with hyperglycemia | false | 1 |
D000000070 | E000000042 | P00000009 | R51 | Headache | false | 2 |
D000000071 | E000000043 | P00000009 | E11.65 | Type 2 diabetes with hyperglycemia | false | 1 |
D000000072 | E000000044 | P00000009 | E11.21 | Type 2 diabetes with diabetic nephropathy | false | 1 |
D000000073 | E000000045 | P00000009 | E11.65 | Type 2 diabetes with hyperglycemia | false | 1 |
D000000074 | E000000045 | P00000009 | E11.21 | Type 2 diabetes with diabetic nephropathy | false | 2 |
D000000075 | E000000046 | P00000010 | J45.40 | Moderate persistent asthma, uncomplicated | false | 1 |
D000000076 | E000000047 | P00000010 | J45.40 | Moderate persistent asthma, uncomplicated | false | 1 |
D000000077 | E000000048 | P00000010 | M54.5 | Low back pain | false | 1 |
D000000078 | E000000049 | P00000010 | K21.9 | Gastro-esophageal reflux disease | false | 1 |
D000000079 | E000000050 | P00000010 | J45.909 | Unspecified asthma, uncomplicated | true | 1 |
D000000080 | E000000050 | P00000010 | J45.40 | Moderate persistent asthma, uncomplicated | false | 2 |
D000000081 | E000000051 | P00000010 | R51 | Headache | false | 1 |
D000000082 | E000000052 | P00000010 | J45.909 | Unspecified asthma, uncomplicated | true | 1 |
D000000083 | E000000053 | P00000010 | R10.9 | Abdominal pain, unspecified | false | 1 |
D000000084 | E000000053 | P00000010 | J45.40 | Moderate persistent asthma, uncomplicated | false | 2 |
D000000085 | E000000054 | P00000011 | S93.4 | Sprain of ankle | false | 1 |
D000000086 | E000000054 | P00000011 | S93.4 | Sprain of ankle | false | 2 |
D000000087 | E000000055 | P00000011 | R10.9 | Abdominal pain, unspecified | false | 1 |
D000000088 | E000000056 | P00000011 | K21.9 | Gastro-esophageal reflux disease | false | 1 |
D000000089 | E000000057 | P00000011 | R51 | Headache | false | 1 |
D000000090 | E000000058 | P00000012 | K21.9 | Gastro-esophageal reflux disease | false | 1 |
D000000091 | E000000058 | P00000012 | Z00.00 | General adult medical examination | false | 2 |
D000000092 | E000000059 | P00000012 | S93.4 | Sprain of ankle | false | 1 |
D000000093 | E000000059 | P00000012 | J06.9 | Acute upper respiratory infection | false | 2 |
D000000094 | E000000060 | P00000012 | S93.4 | Sprain of ankle | false | 1 |
D000000095 | E000000060 | P00000012 | Z00.00 | General adult medical examination | false | 2 |
D000000096 | E000000061 | P00000013 | R10.9 | Abdominal pain, unspecified | false | 1 |
D000000097 | E000000062 | P00000013 | R10.9 | Abdominal pain, unspecified | false | 1 |
D000000098 | E000000062 | P00000013 | Z00.00 | General adult medical examination | false | 2 |
D000000099 | E000000063 | P00000013 | M54.5 | Low back pain | false | 1 |
D000000100 | E000000064 | P00000013 | S93.4 | Sprain of ankle | false | 1 |
Free Synthetic EHR Patient Journeys
Fully synthetic electronic-health-record-style dataset: 2 million patients and their linked care journeys across five relational tables — patients, encounters, diagnoses, labs, and prescriptions. Built to model realistic longitudinal structure (a patient's chronic condition drives their encounter frequency, diagnosis pattern, lab trends, and prescriptions over time) without containing any real patient data, real clinical records, or real medical guidance. Structural and statistical only — not for clinical decision-making.
Schema
ehr_patients (2,000,000 rows)
| Column | Type | Description |
|---|---|---|
| patient_id | string | Unique patient identifier |
| birth_year | int32 | Year of birth |
| sex | string | M / F |
| region | string | One of 6 US-style regions |
| enrollment_date | string (date) | Date patient enrolled |
| chronic_condition | string | none / diabetes / hypertension / asthma / multiple |
| treatment_adherence | string | n/a / good / moderate / poor (drives lab trend direction) |
| risk_score | float | Composite risk score (age + condition + noise) |
ehr_encounters (9,005,747 rows)
| Column | Type | Description |
|---|---|---|
| encounter_id | string | Unique encounter identifier |
| patient_id | string | FK → ehr_patients |
| encounter_date | string (date) | Date of encounter |
| encounter_type | string | outpatient / telehealth / ER / inpatient |
| department | string | Department seen |
| provider_id | string | Provider identifier (pool of 5,000) |
| reason_code | string | Encounter reason |
ehr_diagnoses (13,509,656 rows)
| Column | Type | Description |
|---|---|---|
| diagnosis_id | string | Unique diagnosis identifier |
| encounter_id | string | FK → ehr_encounters |
| patient_id | string | FK → ehr_patients |
| diagnosis_code | string | ICD-10-style code |
| diagnosis_desc | string | Diagnosis description |
| is_chronic | bool | Whether this ties to the patient's chronic condition |
| sequence_number | int32 | Order within encounter |
ehr_labs (15,903,125 rows)
| Column | Type | Description |
|---|---|---|
| lab_id | string | Unique lab result identifier |
| encounter_id | string | FK → ehr_encounters |
| patient_id | string | FK → ehr_patients |
| test_code | string | Lab test code |
| test_name | string | Lab test name |
| result_value | float | Result value |
| unit | string | Unit of measure |
| reference_range | string | Normal reference range |
| is_abnormal | bool | Outside reference range |
| test_date | string (date) | Date of test |
ehr_prescriptions (3,721,239 rows)
| Column | Type | Description |
|---|---|---|
| prescription_id | string | Unique prescription identifier |
| encounter_id | string | FK → ehr_encounters |
| patient_id | string | FK → ehr_patients |
| drug_class | string | Pharmacological class (synthetic, not a specific drug/dose recommendation) |
| dosage | string | low / standard / high (bucketed, not clinical guidance) |
| frequency | string | Dosing frequency bucket |
| start_date | string (date) | Prescription start date |
| duration_days | int32 | Duration in days |
| is_chronic_med | bool | Tied to an ongoing chronic condition |
Format
Snappy-compressed Parquet, one file per table.
Quick start
import pandas as pd
patients = pd.read_parquet("ehr_patients.parquet")
encounters = pd.read_parquet("ehr_encounters.parquet")
from datasets import load_dataset
ds = load_dataset("ziadatalabs/FreeSyntheticEHRPatientJourneys")
import duckdb
duckdb.sql("SELECT * FROM 'ehr_patients.parquet' LIMIT 10").show()
Notes
- Fully synthetic — no real patients, no real clinical records.
- Chronic-condition patients show consistent, correlated trajectories across tables (more encounters, condition-linked diagnoses/labs/prescriptions, and lab values that trend with a treatment-adherence flag).
- Structural/statistical only — not intended for clinical use or medical decision-making.
License & Usage
CC BY-NC 4.0. Free for non-commercial use.
Want more free datasets? Hit the ❤️ and follow. And we take requests — tell us what synthetic data you need, and we'll build it.
Zia Data Labs — zia.data.team@protonmail.com
- Downloads last month
- 52