Dataset Viewer
Auto-converted to Parquet Duplicate
patient_id
string
onset_date
string
complication_type
string
icd10_code
string
severity_stage
string
referral_generated_flag
int64
referral_specialty
string
treatment_initiated_flag
int64
progression_event_flag
int64
hospitalization_linked_flag
int64
ed_linked_flag
int64
years_since_diagnosis
float64
complication_id
string
encounter_id_trigger
null
PAT0000002
2022-03-29
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
3.93
COMP000000001
null
PAT0000002
2022-06-28
diabetic_retinopathy
E11.319
mild_npdr
1
ophthalmologist
1
0
0
0
4.18
COMP000000001
null
PAT0000003
2019-01-01
diabetic_nephropathy
E11.65
G1_G2
0
nephrologist
0
0
0
0
1.48
COMP000000003
null
PAT0000003
2020-06-30
diabetic_retinopathy
E11.319
severe_npdr
1
ophthalmologist
0
1
0
0
2.98
COMP000000003
null
PAT0000004
2021-03-30
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
1
0
1
3.74
COMP000000005
null
PAT0000005
2022-12-27
peripheral_artery_disease
E11.51
moderate
1
cardiologist
0
0
0
0
4.56
COMP000000006
null
PAT0000006
2019-07-02
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
2.09
COMP000000007
null
PAT0000007
2020-12-29
diabetic_retinopathy
E11.319
moderate_npdr
1
ophthalmologist
1
0
0
0
3.28
COMP000000008
null
PAT0000008
2023-03-28
cardiovascular_event
I21.9
unstable_angina
1
cardiologist
1
0
0
0
5.52
COMP000000009
null
PAT0000009
2020-09-29
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
3.44
COMP000000010
null
PAT0000011
2021-09-28
cardiovascular_event
I21.9
nstemi
1
cardiologist
1
1
0
0
3.39
COMP000000011
null
PAT0000012
2023-03-28
diabetic_nephropathy
E11.65
G1_G2
0
nephrologist
1
0
0
1
4.51
COMP000000012
null
PAT0000012
2022-03-29
diabetic_retinopathy
E11.319
pdr
1
ophthalmologist
1
0
0
0
3.52
COMP000000012
null
PAT0000012
2020-06-30
dka_event
E11.10
mild
1
endocrinologist
1
0
0
0
1.77
COMP000000012
null
PAT0000014
2019-12-31
diabetic_retinopathy
E11.319
mild_npdr
1
ophthalmologist
1
0
0
0
2.65
COMP000000015
null
PAT0000015
2022-09-27
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
1
0
5.18
COMP000000016
null
PAT0000015
2019-12-31
diabetic_retinopathy
E11.319
mild_npdr
0
ophthalmologist
1
1
0
0
2.44
COMP000000016
null
PAT0000015
2020-12-29
dka_event
E11.10
severe
0
endocrinologist
1
1
0
0
3.43
COMP000000016
null
PAT0000016
2020-06-30
diabetic_retinopathy
E11.319
mild_npdr
1
ophthalmologist
1
0
0
0
2.79
COMP000000019
null
PAT0000017
2022-09-27
hypoglycemic_episode
E11.641
moderate
0
null
1
0
0
0
3.85
COMP000000020
null
PAT0000018
2020-12-29
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
0
0
0
0
3.52
COMP000000021
null
PAT0000018
2020-06-30
hypoglycemic_episode
E11.641
mild
0
null
1
0
0
0
3.02
COMP000000021
null
PAT0000020
2019-01-01
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
1
1.75
COMP000000023
null
PAT0000020
2022-06-28
peripheral_artery_disease
E11.51
severe
1
cardiologist
1
0
0
0
5.24
COMP000000023
null
PAT0000021
2022-12-27
diabetic_retinopathy
E11.319
pdr
1
ophthalmologist
1
1
0
0
4.08
COMP000000025
null
PAT0000022
2023-03-28
diabetic_neuropathy
E11.40
severe
1
podiatrist
1
0
0
0
4.94
COMP000000026
null
PAT0000023
2019-07-02
diabetic_retinopathy
E11.319
severe_npdr
1
ophthalmologist
1
1
0
0
1.64
COMP000000027
null
PAT0000024
2023-09-26
diabetic_neuropathy
E11.40
mild
1
podiatrist
1
1
0
0
6.04
COMP000000028
null
PAT0000027
2019-01-01
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
0.8
COMP000000029
null
PAT0000027
2023-03-28
diabetic_retinopathy
E11.319
mild_npdr
1
ophthalmologist
1
0
0
0
5.04
COMP000000029
null
PAT0000030
2022-12-27
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
4.49
COMP000000031
null
PAT0000031
2023-06-27
cardiovascular_event
I21.9
unstable_angina
1
cardiologist
1
0
0
0
5.35
COMP000000032
null
PAT0000031
2023-06-27
dka_event
E11.10
moderate
1
endocrinologist
1
1
1
0
5.35
COMP000000032
null
PAT0000033
2021-06-29
peripheral_artery_disease
E11.51
mild
0
cardiologist
1
0
0
0
2.95
COMP000000034
null
PAT0000036
2019-04-02
diabetic_retinopathy
E11.319
dme
1
ophthalmologist
1
0
0
0
0.42
COMP000000035
null
PAT0000038
2021-03-30
diabetic_nephropathy
E11.65
G1_G2
0
nephrologist
1
0
0
0
3.09
COMP000000036
null
PAT0000039
2023-09-26
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
5.23
COMP000000037
null
PAT0000039
2020-09-29
diabetic_retinopathy
E11.319
mild_npdr
1
ophthalmologist
1
0
0
0
2.24
COMP000000037
null
PAT0000039
2021-03-30
cardiovascular_event
I21.9
stemi
0
cardiologist
1
0
0
0
2.74
COMP000000037
null
PAT0000039
2022-12-27
hypoglycemic_episode
E11.641
mild
0
null
1
0
0
0
4.48
COMP000000037
null
PAT0000039
2021-06-29
dka_event
E11.10
severe
1
endocrinologist
1
1
0
0
2.99
COMP000000037
null
PAT0000041
2021-12-28
diabetic_retinopathy
E11.319
severe_npdr
1
ophthalmologist
1
0
0
0
4.98
COMP000000042
null
PAT0000042
2019-01-01
diabetic_nephropathy
E11.65
G1_G2
0
nephrologist
1
0
0
0
1.98
COMP000000043
null
PAT0000046
2020-03-31
diabetic_retinopathy
E11.319
mild_npdr
0
ophthalmologist
1
0
0
0
2.16
COMP000000044
null
PAT0000047
2022-12-27
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
4.12
COMP000000045
null
PAT0000048
2019-01-01
diabetic_retinopathy
E11.319
mild_npdr
1
ophthalmologist
1
0
0
0
0.35
COMP000000046
null
PAT0000051
2023-06-27
diabetic_foot_ulcer
E11.621
mild
1
podiatrist
1
0
0
1
4.56
COMP000000047
null
PAT0000055
2022-09-27
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
5.08
COMP000000048
null
PAT0000055
2022-09-27
diabetic_retinopathy
E11.319
moderate_npdr
1
ophthalmologist
0
1
0
0
5.08
COMP000000048
null
PAT0000056
2021-03-30
diabetic_retinopathy
E11.319
severe_npdr
1
ophthalmologist
1
0
0
0
2.4
COMP000000050
null
PAT0000057
2022-12-27
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
1
0
0
5.8
COMP000000051
null
PAT0000058
2021-12-28
diabetic_retinopathy
E11.319
severe_npdr
1
ophthalmologist
1
1
0
0
4.54
COMP000000052
null
PAT0000059
2021-03-30
diabetic_retinopathy
E11.319
severe_npdr
1
ophthalmologist
1
0
0
1
3.55
COMP000000053
null
PAT0000059
2020-12-29
dka_event
E11.10
moderate
0
endocrinologist
1
0
0
0
3.3
COMP000000053
null
PAT0000060
2019-12-31
diabetic_retinopathy
E11.319
moderate_npdr
1
ophthalmologist
1
0
0
0
2.59
COMP000000055
null
PAT0000062
2021-03-30
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
2.82
COMP000000056
null
PAT0000062
2021-09-28
diabetic_retinopathy
E11.319
mild_npdr
0
ophthalmologist
1
0
0
0
3.32
COMP000000056
null
PAT0000063
2021-09-28
diabetic_neuropathy
E11.40
mild
1
podiatrist
1
0
0
0
2.96
COMP000000058
null
PAT0000063
2021-12-28
dka_event
E11.10
moderate
1
endocrinologist
1
0
0
0
3.21
COMP000000058
null
PAT0000064
2020-09-29
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
2.74
COMP000000060
null
PAT0000065
2020-06-30
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
1
0
0
2.25
COMP000000061
null
PAT0000065
2020-09-29
hypoglycemic_episode
E11.641
moderate
0
null
1
0
0
0
2.5
COMP000000061
null
PAT0000066
2022-06-28
cardiovascular_event
I21.9
unstable_angina
1
cardiologist
1
0
0
0
4.29
COMP000000063
null
PAT0000068
2022-06-28
diabetic_retinopathy
E11.319
moderate_npdr
0
ophthalmologist
1
0
0
0
4.07
COMP000000064
null
PAT0000068
2020-12-29
cardiovascular_event
I21.9
nstemi
0
cardiologist
1
0
0
0
2.58
COMP000000064
null
PAT0000070
2022-12-27
diabetic_nephropathy
E11.65
G1_G2
0
nephrologist
1
1
0
0
4.89
COMP000000066
null
PAT0000072
2020-06-30
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
1
0
0
1.92
COMP000000067
null
PAT0000074
2023-03-28
diabetic_nephropathy
E11.65
G1_G2
0
nephrologist
1
1
0
0
5.6
COMP000000068
null
PAT0000074
2020-12-29
diabetic_retinopathy
E11.319
dme
1
ophthalmologist
1
0
0
0
3.36
COMP000000068
null
PAT0000075
2021-06-29
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
2.82
COMP000000070
null
PAT0000075
2019-07-02
diabetic_retinopathy
E11.319
dme
1
ophthalmologist
1
0
0
0
0.82
COMP000000070
null
PAT0000077
2021-06-29
diabetic_retinopathy
E11.319
moderate_npdr
1
ophthalmologist
0
0
0
0
3.76
COMP000000072
null
PAT0000078
2021-06-29
diabetic_retinopathy
E11.319
dme
0
ophthalmologist
1
0
1
0
4.28
COMP000000073
null
PAT0000079
2020-03-31
diabetic_retinopathy
E11.319
mild_npdr
0
ophthalmologist
1
0
0
0
2.08
COMP000000074
null
PAT0000080
2021-06-29
diabetic_retinopathy
E11.319
mild_npdr
1
ophthalmologist
1
0
0
0
3.23
COMP000000075
null
PAT0000080
2022-06-28
diabetic_neuropathy
E11.40
mild
0
podiatrist
1
0
0
0
4.22
COMP000000075
null
PAT0000080
2023-03-28
cardiovascular_event
I21.9
unstable_angina
1
cardiologist
1
0
0
0
4.97
COMP000000075
null
PAT0000081
2022-12-27
diabetic_nephropathy
E11.65
G1_G2
0
nephrologist
1
1
0
1
4.12
COMP000000078
null
PAT0000082
2022-09-27
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
1
0
1
3.96
COMP000000079
null
PAT0000084
2019-10-01
diabetic_neuropathy
E11.40
moderate
1
podiatrist
1
0
0
0
2.24
COMP000000080
null
PAT0000085
2019-07-02
cardiovascular_event
I21.9
nstemi
1
cardiologist
1
0
0
0
0.51
COMP000000081
null
PAT0000086
2020-09-29
dka_event
E11.10
moderate
1
endocrinologist
1
0
0
0
3.09
COMP000000082
null
PAT0000087
2020-12-29
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
3.08
COMP000000083
null
PAT0000090
2020-12-29
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
0
0
0
0
2.87
COMP000000084
null
PAT0000090
2019-12-31
cardiovascular_event
I21.9
nstemi
1
cardiologist
1
1
0
0
1.87
COMP000000084
null
PAT0000091
2022-09-27
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
1
0
0
5.15
COMP000000086
null
PAT0000091
2023-09-26
diabetic_retinopathy
E11.319
mild_npdr
1
ophthalmologist
1
0
0
0
6.15
COMP000000086
null
PAT0000092
2019-04-02
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
0
0
0
0
1.42
COMP000000088
null
PAT0000092
2019-12-31
dka_event
E11.10
mild
0
endocrinologist
1
1
0
0
2.17
COMP000000088
null
PAT0000095
2021-03-30
diabetic_retinopathy
E11.319
mild_npdr
1
ophthalmologist
0
1
0
0
2.67
COMP000000090
null
PAT0000097
2020-12-29
diabetic_retinopathy
E11.319
mild_npdr
0
ophthalmologist
1
0
0
0
3.01
COMP000000091
null
PAT0000099
2023-06-27
diabetic_neuropathy
E11.40
moderate
1
podiatrist
1
0
1
0
5.2
COMP000000092
null
PAT0000101
2022-03-29
diabetic_retinopathy
E11.319
mild_npdr
1
ophthalmologist
1
0
0
0
4.14
COMP000000093
null
PAT0000102
2021-06-29
cardiovascular_event
I21.9
unstable_angina
1
cardiologist
1
0
0
0
3.3
COMP000000094
null
PAT0000104
2022-06-28
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
0
0
0
5.41
COMP000000095
null
PAT0000104
2020-09-29
diabetic_retinopathy
E11.319
pdr
1
ophthalmologist
1
0
0
0
3.66
COMP000000095
null
PAT0000104
2021-06-29
diabetic_neuropathy
E11.40
moderate
1
podiatrist
1
1
0
0
4.41
COMP000000095
null
PAT0000104
2019-12-31
peripheral_artery_disease
E11.51
mild
0
cardiologist
0
1
0
0
2.92
COMP000000095
null
PAT0000107
2022-03-29
diabetic_neuropathy
E11.40
mild
1
podiatrist
1
0
0
0
4.93
COMP000000099
null
PAT0000108
2019-07-02
diabetic_nephropathy
E11.65
G1_G2
1
nephrologist
1
1
0
0
0.56
COMP000000100
null
End of preview. Expand in Data Studio

HC01 — Synthetic Type 2 Diabetes Patient Dataset (Evaluation Sample)

Publisher: XpertSystems.ai SKU: HC01 (sample) Version: 1.0.0 License: CC BY-NC 4.0 — non-commercial evaluation and research use only. Commercial use, redistribution, or derivative data products require a commercial license. Full product: Contact pradeep@xpertsystems.ai


What this is

A 500-patient evaluation slice of the XpertSystems HC01 synthetic Type 2 Diabetes dataset, released for technical evaluation, academic research, and benchmarking. The full commercial product covers 25,000+ patients with complete statistical validation, ML feature packs, and a Grade A+ benchmark report.

This sample is intended to let ML engineers, data scientists, and health-economics researchers verify the statistical fidelity and schema quality of the data before evaluating the full product. It is not sized for model training at production scale — rare events, long tails, and cross-cohort signal are materially underrepresented at 500 patients.

What's included

Six CSV files covering a 5-year patient journey:

File Rows (approx.) Description
patient_master.csv 500 One row per patient. Demographics, SDOH risk, diagnosis date, baseline biomarkers, comorbidities, insurance, care-site assignment.
patient_encounters.csv ~8,400 Longitudinal encounters (office, telehealth, specialist, ED, inpatient, RPM, care management). Includes biomarkers at visit, ICD-10, provider, payer, copay, care-gap flags.
medication_orders.csv ~6,200 Prescription orders across 10 T2D drug classes (metformin, SGLT2, GLP-1, insulin, etc.). Includes MPR/PDC adherence, prior authorization outcomes, formulary tier, titration and discontinuation events.
complications_registry.csv ~960 Diabetic complications (nephropathy, retinopathy, neuropathy, CVD, amputation, etc.) with onset date, severity stage, referral and treatment flags.
lab_results_longitudinal.csv ~19,600 HbA1c, fasting glucose, lipid panel, UACR, eGFR, and screening labs. Includes critical-value flags, follow-up lag, duplicate-lab and care-gap anomaly flags.
population_summary.csv ~600 Care-site × quarter aggregates: panel size, utilization rates, population-level glycemic control, care-gap rates.

Not included in this sample: the simulation engine, ML feature pack, statistical validation report (metrics.json), benchmark scoring artifacts, and the full-volume dataset.

Quick start

from datasets import load_dataset

# Load any of the six tables
patients = load_dataset("xpertsystems/hc01-t2d-sample", "patient_master")
encounters = load_dataset("xpertsystems/hc01-t2d-sample", "encounters")
labs = load_dataset("xpertsystems/hc01-t2d-sample", "labs")

print(patients["train"][0])

Or with pandas directly:

import pandas as pd
from huggingface_hub import hf_hub_download

path = hf_hub_download(
    repo_id="xpertsystems/hc01-t2d-sample",
    filename="data/patient_master.csv",
    repo_type="dataset",
)
df = pd.read_csv(path)

Schema highlights

Entity keys: patient_id (PAT#######) links all tables. encounter_id, order_id, lab_id, complication_id are unique per-row. site_id and payer_id link encounters to care sites and payers respectively.

Temporal structure: A 5-year simulated observation window. Quarterly patient-state updates drive encounter, lab, and medication timing. Dates are ISO-format (YYYY-MM-DD).

Coding standards: ICD-10-CM for diagnoses and complications; RxNorm-style codes for medications (representative, not authoritative); LOINC-aligned lab types.

Realism controls present in this sample:

  • Anomaly flags on labs, encounters, and medication orders for data-quality testing
  • Duplicate-lab and care-gap anomalies at calibrated base rates
  • Prior-authorization denial cascades affecting adherence
  • Coverage disruption events with downstream adherence penalties
  • Death flags with dates (where applicable)
  • SDOH-driven adherence heterogeneity

How this was generated

HC01 is produced by a deterministic simulation engine that models a synthetic T2D patient population through a calibrated sequence of stochastic processes. Patient demographics, comorbidities, and social-determinant risk are sampled from distributions aligned to public U.S. population references (CDC National Diabetes Statistics Report, NHANES, HEDIS MY2023). Each patient's HbA1c trajectory is modeled as a mean-reverting stochastic process conditioned on adherence, treatment intensification, and seasonal variation. Medication adherence (MPR/PDC) is drawn from a Beta distribution and modified by prior-authorization outcomes, copay burden, and coverage disruptions. Complication incidence follows a proportional-hazards formulation with hazard ratios for HbA1c, disease duration, CKD stage, and blood pressure, calibrated to published rates. Encounter, lab, and medication-order streams are generated conditional on patient state at each quarter, with ordering rates aligned to HEDIS Comprehensive Diabetes Care benchmarks. A small, controlled fraction of anomalies (duplicate labs, implausible values, care gaps) is injected to support data-quality and anomaly-detection use cases.

All simulation is deterministic under a fixed integer seed. The full commercial product ships with a 12-metric benchmark validation report certifying fidelity to published clinical and utilization targets (Grade A+ at default parameters).

Methodology references

  • American Diabetes Association — Standards of Care 2024
  • CDC — National Diabetes Statistics Report 2022
  • UKPDS Outcomes Model 2 (Hayes et al., 2013)
  • NCQA HEDIS MY2023 — Comprehensive Diabetes Care
  • HCUP — National ED Survey / National Inpatient Sample
  • AHIP — Prior Authorization Survey 2023
  • Nathan et al. (2008) — Estimated Average Glucose equation
  • CAP Q-Probes — Critical lab notification study

Suggested evaluation workflow

  1. Schema & volume sanity check. Load all six CSVs, confirm row counts and join integrity on patient_id.
  2. Distribution checks. Verify baseline HbA1c mean (8.2%), BMI distribution (33.2 kg/m² mean), comorbidity prevalences, and insurance mix against the references above.
  3. Correlation checks. HbA1c–BMI correlation (~0.28), HbA1c–complication incidence monotonicity, adherence–outcome relationships.
  4. Longitudinal behavior. Plot individual HbA1c trajectories; verify mean reversion, seasonal component, and separation between adherent and non-adherent cohorts.
  5. Edge-case coverage. Review anomaly flags, critical-lab follow-up patterns, prior-auth denial cascades.

If the sample passes your evaluation, the full 25,000-patient product (plus ML feature pack and Grade A+ validation report) is available under commercial license.

Citation

If you use this sample in research or publication, please cite:

XpertSystems.ai (2026). HC01 — Synthetic Type 2 Diabetes Patient Dataset (Evaluation Sample), v1.0.0. https://xpertsystems.ai

Contact

License

This sample is released under Creative Commons Attribution–NonCommercial 4.0 International (CC BY-NC 4.0). You may use, share, and adapt the data for non-commercial research and evaluation purposes with attribution. Commercial use, redistribution as a data product, or inclusion in a commercial offering requires a separate commercial license from XpertSystems.ai.

All records are fully synthetic. No real patient data, PHI, or PII is present. Not intended for clinical use.

Downloads last month
42