Synthetic · Not real PII Type 2 diabetes cohort Biologically staged · dial 1–5 Calibrated · CDC NDSS / ADA / USRDS / NHANES Deterministic by seed · v1.3.22

Synthetic T2DM Patient Data Generator

Synthetic type-2-diabetes patient records — biologically staged, with calibrated A1c, complications (CKD, neuropathy, retinopathy, nephropathy), insulin use and mortality. A severity dial from newly-diagnosed to advanced.

Disease-staging generator for type-2 diabetes. Each record adds a T2DM staging block — biological & clinical stage, detection lag, A1c, microvascular complications (CKD, neuropathy, retinopathy, nephropathy), insulin and cause of death — on top of the base person profile. The cohort is shifted to the real US diabetic population (older, ~85% diagnosed / 15% undiagnosed). A `stage` dial (1–5) concentrates severity from newly-diagnosed to advanced — complications, A1c, insulin and mortality all rise monotonically with stage, while patients stay identity-pinned across the dial. Calibrated to CDC NDSS, ADA Standards of Care, USRDS and NHANES; deterministic by seed. (For the base 69 attributes and joint-realism, see the Person generator.)

Flattened, that's 77 columns — the 69 base person attributes plus the 8-field T2DM staging/outcome block (the seven t2dm_* fields and death_cause), densely populated here since every record is a diabetic patient.

Free samples — one per disease stage

1,000 rows per stage, all generated from one seed — so each file is the same cohort of people snapshotted as their disease advances. Stage 0 is the prediabetic precursor; stages 1–5 are the T2DM severity dial. No signup.

StageWhat it representsA1cCKD1,000 rows
0 · PrediabetesAt-risk precursor — A1c 5.7–6.4, not yet diabetic (~11%/yr progress to T2DM)~5.716%CSVJSONLFHIR
1 · Newly-diagnosedJust crossed A1c ≥ 6.5 — early disease, usually well-controlled6.938%CSVJSONLFHIR
2 · EstablishedA1c sustained > 8; first microvascular signs (microalbuminuria)7.953%CSVJSONLFHIR
3 · Moderate complicationsCKD stage G3 (eGFR < 60) and/or albuminuria; retinopathy appears8.863%CSVJSONLFHIR
4 · Severe / pre-ESRDeGFR < 30, macroalbuminuria, or a cardiovascular event9.271%CSVJSONLFHIR
5 · Advanced / ESRDeGFR < 15 or dialysis — end-stage renal disease9.482%CSVJSONLFHIR

Open stage 1 and stage 5 side-by-side — same names & IDs, advanced disease: that's the per-person progression dial. A1c & CKD are the measured cohort means in each file (the dial matches the GOLD validation). Stage definitions: ADA Standards of Care / KDIGO.

Calibrated to CDC NDSS & ADA Standards of Care — built on the person engine →

Every dataset comes with analytics (a profile of every field, correlation matrices, stage mix, complication rates, HbA1c by stage, integrity checks; timeline jobs add trajectories by year, drift per year and event rates per 1,000 person-years). See the analytics for the natural-mix sample →

Need more than the free tier — a bigger one-off dataset, or a specific stage mix? Email me — free, by request.

specimen · diabetic cohort stage 3
id
7Z9K2M4QXB8D6F…
name
Robert Hayes
age / sex
67 · male
diabetes
diagnosed T2DM
a1c / bmi
7.4 · 31.7
stage bio/clin
3 / 2
complications
neuropathy
insurance
medicare
a1cs1→5
ckd%s1→5
mort%s1→5
monotone s1→s5staged 1–5
Get started

Generation requires a free account — it takes about 10 seconds and gives you an API session, and you can create API keys for AI agents.

Create a free account

Already have one? Log in.

Your account

You're signed in. Generate datasets and download CSV or JSONL from your profile.

Go to your profile
Endpoint
POST /v1/datasets/t2dm

Async — submit a job, poll /v1/datasets/{job_id}, then download JSONL / CSV / FHIR.

Analytics for a T2DM cohort: share of patients per biological stage, complication and insulin rates, and mean HbA1c by stage
Analytics, type 2 diabetes. Stage mix, complication rates and mean HbA1c (%) by stage, 500 patients.

New · longitudinal timelines

The stage dial gives you a cohort frozen at one severity. Timelines add the other axis — each patient's year-by-year dated history: HbA1c, eGFR, BMI and systolic blood pressure drifting over calendar time, with dated complication onsets (retinopathy, neuropathy, albuminuria), treatment escalations (metformin → second oral agent → insulin), and mortality. Add "timeline": true to a /v1/datasets/t2dm job to also get long-format CSV/JSONL — one row per person-year, the shape longitudinal ML models train on — and dated FHIR R4 (Encounters, Observations, Conditions with real onset dates, MedicationRequests with start dates).

POST /v1/datasets/t2dm
{ "count": 100, "timeline": true, "horizonYears": 15, "formats": ["fhir"] }

Just five time-varying drivers (HbA1c, eGFR, BMI, systolic BP, diabetes duration) — a deliberately small model defended by a large validation battery. Every stage transition is concordance-checked against a covariate crossing (no unexplained progression); drift rates and complication timing trace to UKPDS 64, WESDR and the ADA Standards of Care. Determinism holds — same seed, byte-identical history. Quota counts person-years, not people.

Analytics for a timeline dataset: 500 people, 8,051 person-years, yearly HbA1c and eGFR drift, and trajectory charts for HbA1c, eGFR, BMI and systolic blood pressure
Analytics, timeline. 500 T2DM patients followed year by year: mean and interquartile band per cycle.

Parameters

NameTypeReqDefaultDescription
count integer optional 10000 Number of diabetic patient records to generate. Range: 1–5,000 per job (free tier: 50,000 rows per UTC day).
seed integer optional (derived from job_id) RNG seed for reproducibility. Same seed + count + stage = byte-identical records.
stage integer optional (natural severity mix) T2DM severity dial, 1–5 (1 = newly-diagnosed, 5 = advanced). Concentrates A1c, complications, insulin use and mortality at the chosen stage. Omit for the natural severity spread.
cohort string optional diabetic "diabetic" (default) forces a real diabetic-population cohort (older, ~85% diagnosed / 15% undiagnosed). "general" returns the general adult population with the T2DM staging block attached to its diabetics.
formats array optional — Extra output formats. jsonl + csv are always produced; pass ["fhir"] to also emit FHIR R4 bulk NDJSON (Patient / Condition / Observation / MedicationRequest / Coverage / Encounter).

Example record

{
  "id": "7Z9K2M4QXB8D6FJ3PNR5VWT1AC",
  "given_name": "Robert", "family_name": "Hayes",
  "age": 67, "sex_at_birth": "male",
  "race": "white", "ethnicity": "non_hispanic",
  "state": "OH", "urbanicity": "suburban", "insurance_type": "medicare",
  "height_cm": 177.4, "weight_kg": 99.8, "bmi": 31.7, "waist_circumference_cm": 113.2,
  "diabetes_status": "diagnosed_t2dm", "a1c_value": 7.4, "diabetes_duration_years": 8.0,
  "on_insulin": false, "number_of_prescriptions": 6,
  "hypertension_status": "diagnosed", "systolic_bp_avg": 134.0, "diastolic_bp_avg": 81.3,
  "ckd_status": "stage_1_2", "hyperlipidemia_status": "diagnosed",
  "t2dm_biological_stage": 3, "t2dm_clinical_stage": 2, "t2dm_detection_lag_years": 4.5,
  "t2dm_neuropathy": true, "t2dm_retinopathy": false, "t2dm_nephropathy": false
  // ... 40+ more attributes
}

Call it

# 1. Sign in at https://simpleidgen.com/login/ (emailed code + bot check, in the browser),
#    then save your sidgen_session cookie to cookies.txt (or use the MCP server with an API key)

# 2. Submit a T2DM job — stage 3 concentrates mid-severity diabetics
curl -sS -b cookies.txt -X POST https://api.simpleidgen.com/v1/datasets/t2dm \
  -H 'Content-Type: application/json' \
  -d '{"count":100000,"seed":42,"stage":3}'

# 3. Poll status, then download the JSONL once completed
curl -sS -b cookies.txt https://api.simpleidgen.com/v1/datasets/<job_id>
// After registering or logging in (session cookie set), submit a T2DM job:
const res = await fetch('https://api.simpleidgen.com/v1/datasets/t2dm', {
  method: 'POST',
  credentials: 'include',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ count: 100000, seed: 42, stage: 3 }),
});
const { jobId, statusUrl } = await res.json();
import requests
s = requests.Session()
# Sign in at simpleidgen.com/login/ (emailed code), then reuse the session cookie:
s.cookies.set('sidgen_session', '<your session cookie>', domain='api.simpleidgen.com')
job = s.post('https://api.simpleidgen.com/v1/datasets/t2dm', json={'count': 100000, 'seed': 42, 'stage': 3}).json()
print(job['jobId'], job['statusUrl'])

Data Quality Validation vs CDC NDSS / ADA / USRDS / NHANES — GOLD

An independent data-quality validation of the synthetic T2DM cohort against CDC NDSS, ADA Standards of Care, USRDS and real NHANES microdata. It verifies the severity dial (every clinical axis rises monotonically with stage), patient-level consistency across the dial, and diabetic-cohort complication co-occurrence against specific cited benchmarks. Verdict: GOLD — engine v1.0.46; generator logic byte-identical through the current build.

stage-dial axes monotone
9/9
patient-pinned
5k/5k
CKD stage → mortality
2.67×
co-occurrence vs refs
8/9

Severity dial — ?stage=1..5

Generate the cohort at each stage (1 = newly-diagnosed, 5 = advanced). Every clinical axis rises monotonically — A1c, complications, insulin use and mortality track real diabetes progression.

Axiss1s2s3s4s5mono
biological stage (mean)1.452.232.823.324.04✓
A1c (mean %)6.998.018.789.239.35✓
CKD — any (%)37.652.363.372.082.2✓
neuropathy (%)22.133.742.851.262.4✓
retinopathy (%)22.532.642.049.560.1✓
nephropathy (%)20.129.937.545.057.0✓
on insulin (%)17.826.635.944.956.9✓
mortality (%)8.710.311.914.117.0✓
prescriptions (mean)6.16.77.27.78.3✓

Patient-pinned: the same 5,000 patients regenerated across stages stay byte-identical in identity (id / name / DOB / sex), with 0 / 5,000 per-row stage regressions and clinical stage ≤ biological stage at every stage — the dial moves disease severity, not the person.

Diabetic-cohort co-occurrence (natural mix, n=20,000)

Complication and comorbidity prevalence in the natural diabetic cohort, each against a specific cited US benchmark (±4 pp tolerance on the prevalence anchors).

MeasureSyntheticBenchmarkSource
Mean A1c (diabetics)7.267.1–7.31%Kim, Diabetes Care 2021; Inoue, JAMA 2025✓
A1c <7% / >9%56.1 / 12.250–57% / ~13%Kim, Diabetes Care 2021 (NHANES)✓
CKD — any40.7%37–41%CDC 2024✓
Retinopathy (≥40)25.4%26.4–28.5%NHANES ’05–08; CDC VEHSS 2021✓
Peripheral neuropathy24.9%27–28.5%Gregg, Diabetes Care 2004 (NHANES)✓
Nephropathy22.2%24.2%meta-analysis, PMC11419527✓
On insulin (diabetics)20.9%24–28%NIDDK, Diabetes in America✓
Detection lag (to diagnosis)4.8 yr4–7 yrHarris Diab. Care 1992; UKPDS✓
Hypertension80.5%67.6%NHANES ’17–18, PMC7803033WIP

WIP — Hypertension runs above the cited NHANES figure: the synthetic cohort flags HTN at the ACC/AHA ≥130/80 threshold (which lands its general-population rate at a validated 49.2% vs the 47.7% ≥130/80 benchmark), while the cited 67.6% diabetic figure uses a stricter threshold — so the two are not directly comparable. BP-threshold alignment is queued for the next engine version.

CKD stage → mortality

Mortality rises with kidney-disease stage within the diabetic cohort — the dose-response a real dataset shows.

CKD stagenonestage 1–2stage 3–4stage 5
mortality (%)6.3412.7416.2716.91

2.67× higher mortality at stage 5 vs no CKD — monotone, clinically coherent.

GOLD — data-quality validated. The severity dial is monotone on all 9 axes; patients stay identity-pinned across stages with zero stage regressions and clinical stage never exceeding biological stage; A1c, CKD, microvascular complications, insulin use, detection lag and CKD→mortality all land in their cited US bands. One open item — diabetic hypertension prevalence (a BP-threshold definition mismatch), flagged for the next version. Built on the same engine that holds GOLD against real NHANES microdata.

Method: an independent biostatistician-grade validation of the diabetic cohort + the 1→5 stage dial (200K main cohort, 20K natural diabetic, 5K×5 stage cohorts) against CDC NDSS, ADA Standards of Care, USRDS and NHANES. Full report retained in the project’s validation records.