pradeep-xpert commited on
Commit
b440054
·
verified ·
1 Parent(s): 35116e6

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +544 -0
  2. hccar003_dataset.csv +0 -0
  3. hccar003_dataset.parquet +3 -0
README.md ADDED
@@ -0,0 +1,544 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ task_categories:
4
+ - tabular-classification
5
+ - tabular-regression
6
+ - time-series-forecasting
7
+ tags:
8
+ - synthetic-data
9
+ - healthcare
10
+ - cardiology
11
+ - hypertension
12
+ - htn
13
+ - high-blood-pressure
14
+ - blood-pressure-monitoring
15
+ - abpm
16
+ - ambulatory-bp-monitoring
17
+ - home-bp-monitoring
18
+ - central-aortic-pressure
19
+ - pulse-wave-velocity
20
+ - pwv
21
+ - augmentation-index
22
+ - arterial-stiffness
23
+ - bp-variability
24
+ - white-coat-hypertension
25
+ - masked-hypertension
26
+ - resistant-hypertension
27
+ - nocturnal-dipping
28
+ - non-dipper
29
+ - reverse-dipper
30
+ - ace-inhibitor
31
+ - arb
32
+ - calcium-channel-blocker
33
+ - ccb
34
+ - thiazide
35
+ - beta-blocker
36
+ - mra
37
+ - spironolactone
38
+ - antihypertensive
39
+ - medication-adherence
40
+ - bp-response
41
+ - side-effects
42
+ - pill-burden
43
+ - lifestyle-modification
44
+ - dash-diet
45
+ - sodium-intake
46
+ - physical-activity
47
+ - mets
48
+ - sleep-quality
49
+ - osa
50
+ - obstructive-sleep-apnea
51
+ - ascvd
52
+ - ascvd-pooled-cohort
53
+ - framingham-risk
54
+ - pooled-cohort-equation
55
+ - mace
56
+ - major-adverse-cardiovascular-event
57
+ - mi-prediction
58
+ - stroke-prediction
59
+ - hf-hospitalization
60
+ - atrial-fibrillation
61
+ - cv-death
62
+ - lvh
63
+ - left-ventricular-hypertrophy
64
+ - lv-mass-index
65
+ - e-e-prime
66
+ - diastolic-dysfunction
67
+ - carotid-imt
68
+ - carotid-plaque
69
+ - retinopathy
70
+ - microalbuminuria
71
+ - macroalbuminuria
72
+ - uacr
73
+ - ckd
74
+ - kdigo
75
+ - egfr
76
+ - ckd-epi
77
+ - ckd-stage
78
+ - hs-crp
79
+ - bnp
80
+ - troponin
81
+ - acc-aha-2017
82
+ - esh-2018
83
+ - abpm-task-force
84
+ - carey-resistant-htn
85
+ - aha-acc-pce-2013
86
+ - longitudinal-ehr
87
+ - ehr-synthetic
88
+ - clinical-trial-simulation
89
+ pretty_name: HCCAR003 — Synthetic Hypertension & Cardiovascular Risk Dataset (Sample)
90
+ size_categories:
91
+ - 1K<n<10K
92
+ configs:
93
+ - config_name: default
94
+ data_files: hccar003_dataset.parquet
95
+ ---
96
+
97
+ # HCCAR003 — Synthetic Hypertension & Cardiovascular Risk Dataset (Sample Preview)
98
+
99
+ **XpertSystems.ai | Synthetic Data Factory | Healthcare / Cardiology Vertical**
100
+
101
+ A **longitudinal hypertension cohort dataset** with quarterly visit-level
102
+ records spanning **7 clinical modules**: BP monitoring (office, home, ABPM
103
+ 24hr/day/night with dipping pattern, central aortic, pulse wave velocity,
104
+ augmentation index, BP variability), antihypertensive medications (up to
105
+ 4 drug slots, 8 drug classes — ACEi, ARB, CCB, Thiazide, Beta-blocker,
106
+ Alpha-blocker, MRA), lifestyle factors (DASH diet, dietary sodium,
107
+ physical activity METs, sleep, smoking, alcohol, stress), biomarkers
108
+ (full lipid panel, hs-CRP, creatinine, eGFR with KDIGO CKD stage, UACR
109
+ with microalbuminuria/macroalbuminuria, electrolytes, glucose, HbA1c,
110
+ BNP, troponin, ASCVD 10y risk, Framingham), end-organ damage (LVH, LV
111
+ mass index, LVEF, E/e' ratio, carotid IMT, plaque, retinopathy grade,
112
+ white matter lesion volume, lacunar infarcts), and **MACE outcomes**
113
+ (MI, ischemic / hemorrhagic stroke, TIA, HF hospitalization, AF new
114
+ onset, CV death, all-cause death, study dropout).
115
+
116
+ Calibrated benchmark-first against **ACC/AHA 2017 Hypertension Guidelines**
117
+ (Whelton et al.), **ACC/AHA 2013 Pooled Cohort Equations** (Goff et al.),
118
+ **KDIGO 2012 CKD Classification**, **ABPM Task Force / ESH 2013
119
+ Recommendations**, **AHA/ACC Resistant Hypertension Scientific Statement
120
+ (Carey et al. 2018)**, and **ESH/ESC 2018 Hypertension Guidelines**.
121
+
122
+ This is the **sample preview** — 150 patients × ~12 quarterly visits over
123
+ 3 years (~1,800 visit records, ~1.1 MB). The full product covers 10,000+
124
+ patients × full 10-year follow-up (40 quarterly visits) with extended
125
+ medication titration histories, multi-cuff measurement protocols, and
126
+ pre-built scenario configs for SPRINT-style intensive vs standard BP
127
+ target trials, salt-sensitive hypertension studies, and resistant
128
+ hypertension subgroup analysis.
129
+
130
+ ---
131
+
132
+ ## Dataset summary
133
+
134
+ | Table | Rows (sample) | What it contains |
135
+ |---|---:|---|
136
+ | `hccar003_dataset` | 1,747 | One row per patient × visit. 99 features across 7 clinical modules (demographics carried forward + BP monitoring + medications + lifestyle + biomarkers + end-organ damage + MACE outcomes). 150 unique patients with up to 12 quarterly visits each (some patients drop out due to death or withdrawal) |
137
+
138
+ Provided in both **CSV** and **Parquet**. Aggregate to patient-level via
139
+ `groupby('patient_id')` for cross-sectional analysis.
140
+
141
+ ---
142
+
143
+ ## Calibration sources
144
+
145
+ All ten validation metrics target named clinical / regulatory standards:
146
+
147
+ - **ACC/AHA 2017 Hypertension Guidelines** (Whelton et al. 2018) — HTN
148
+ stage classification (Normal, Elevated, Stage 1, Stage 2, Crisis)
149
+ - **ACC/AHA 2013 Pooled Cohort Equations** (Goff et al. 2014) — 10-year
150
+ ASCVD risk (race/sex-specific, baseline column included with known
151
+ calibration issues — see Limitations)
152
+ - **KDIGO 2012 CKD Classification** — eGFR-based G1-G5 staging,
153
+ UACR-based A1-A3 albuminuria categories
154
+ - **ABPM Task Force / ESH 2013** (O'Brien et al. 2013) — ambulatory
155
+ blood pressure monitoring definitions, dipping pattern classification,
156
+ masked hypertension criteria
157
+ - **AHA/ACC Resistant Hypertension Scientific Statement** (Carey et al.
158
+ 2018) — resistant HTN = SBP ≥130/80 on ≥3 antihypertensives
159
+ - **ESH/ESC 2018 Hypertension Guidelines** (Williams et al. 2018) —
160
+ European HTN management framework
161
+ - **CKD-EPI 2009** (Levey et al. 2009) — eGFR calculation (note: the
162
+ generator uses the OLD race-coefficient version; the 2021 NKF-ASN
163
+ refit removed the race coefficient. See Limitations.)
164
+ - **Survival analysis monotonicity** — CV death ⊆ all-cause death
165
+
166
+ ---
167
+
168
+ ## Validation scorecard (seed = 42)
169
+
170
+ 10/10 PASS · **Grade A+ (100%)** across all six canonical seeds (42, 7, 123, 2024, 99, 1).
171
+
172
+ | # | Metric | Observed | Target | Tol | Type | Source |
173
+ |---|---|---:|---:|---:|---|---|
174
+ | 1 | `pulse_pressure_equals_sbp_minus_dbp_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | Hemodynamic identity |
175
+ | 2 | `map_equals_dbp_plus_pp_third_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | Hemodynamic identity |
176
+ | 3 | `ckd_stage_matches_kdigo_egfr_rate` | 0.999 | 0.99 | ±0.01 | FLOOR | KDIGO 2012 |
177
+ | 4 | `albuminuria_flags_match_uacr_bands_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | KDIGO ACR thresholds |
178
+ | 5 | `abpm_dipping_pattern_matches_dip_pct_rate` | 0.991 | 0.99 | ±0.01 | FLOOR | ABPM Task Force / ESH 2013 |
179
+ | 6 | `resistant_htn_requires_3_drugs_and_sbp_130_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | Carey et al. 2018 |
180
+ | 7 | `masked_htn_definition_match_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | ABPM Task Force |
181
+ | 8 | `cv_death_implies_all_cause_death_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | Survival monotonicity |
182
+ | 9 | `mace_event_flag_matches_event_type_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | MACE composite endpoint |
183
+ | 10 | `bp_in_physiologic_bounds_rate` | 1.000 | 0.99 | ±0.01 | FLOOR | Physiologic plausibility |
184
+
185
+ ---
186
+
187
+ ## Schema highlights (99 cols)
188
+
189
+ ### Identity & demographics (8 cols, carried per visit)
190
+ `patient_id` (HC-CAR-XXXXXX), `visit_number` (1-12), `visit_date`,
191
+ `years_from_baseline`, `age_at_visit`, `sex` (Male / Female),
192
+ `race_ethnicity` (NonHispanic_White / NonHispanic_Black / Hispanic /
193
+ Asian / Other), `htn_stage_baseline` (Normal / Elevated / Stage1_HTN /
194
+ Stage2_HTN / Crisis).
195
+
196
+ ### BP monitoring (19 cols)
197
+ `sbp_office_mmhg`, `dbp_office_mmhg`, `pp_office_mmhg`, `map_office_mmhg`,
198
+ `sbp_home_avg_mmhg`, `dbp_home_avg_mmhg`, `abpm_sbp_24hr_mmhg`,
199
+ `abpm_dbp_24hr_mmhg`, `abpm_sbp_daytime_mmhg`, `abpm_sbp_nighttime_mmhg`,
200
+ `abpm_dipping_pct`, `abpm_dipping_pattern` (Reverse_dipper / Non-dipper /
201
+ Dipper / Extreme_dipper), `central_aortic_sbp_mmhg`,
202
+ `pulse_wave_velocity_ms`, `augmentation_index_pct`, `bp_variability_sd_sbp`,
203
+ `white_coat_effect_mmhg`, `white_coat_flag`, `masked_hypertension_flag`.
204
+
205
+ ### Medications (12 cols)
206
+ `drug_class_{1-4}`, `drug_name_{1-3}`, `drug_dose_1`,
207
+ `n_antihypertensive_drugs` (0-4), `medication_adherence_pct`,
208
+ `bp_response_sbp_mmhg`, `resistant_htn_flag`, `side_effect_code`
209
+ (Dry_Cough / Peripheral_Edema / Hypokalemia / Bradycardia /
210
+ Orthostatic_Hypotension / Hyperkalemia / None), `pill_burden_score`.
211
+
212
+ ### Lifestyle (8 cols)
213
+ `bmi_kg_m2`, `dietary_sodium_mg_day`, `dash_diet_score`,
214
+ `physical_activity_mets_hr_wk`, `sleep_hours_night`, `smoking_status`
215
+ (Never / Former / Current), `alcohol_drinks_week`, `stress_score`.
216
+
217
+ ### Biomarkers (22 cols)
218
+ `total_cholesterol_mg_dl`, `ldl_cholesterol_mg_dl`, `hdl_cholesterol_mg_dl`,
219
+ `triglycerides_mg_dl`, `non_hdl_cholesterol_mg_dl`, `hs_crp_mg_l`,
220
+ `creatinine_mg_dl`, `egfr_ml_min_1_73m2`, `uacr_mg_g`, `ckd_stage`
221
+ (G1 / G2 / G3a / G3b / G4 / G5), `bun_mg_dl`, `potassium_meq_l`,
222
+ `sodium_meq_l`, `glucose_fasting_mg_dl`, `hba1c_pct`, `uric_acid_mg_dl`,
223
+ `bnp_pg_ml`, `troponin_i_ng_l`, `ascvd_10yr_risk_pct`,
224
+ `framingham_risk_score_pct`, `microalbuminuria_flag`,
225
+ `macroalbuminuria_flag`.
226
+
227
+ ### End-organ damage (9 cols)
228
+ `lvh_flag`, `lv_mass_index_g_m2`, `lvef_pct`, `e_e_prime_ratio`,
229
+ `carotid_imt_mm`, `carotid_plaque_flag`, `retinopathy_grade` (0-4),
230
+ `wml_volume_ml`, `lacunar_infarct_flag`.
231
+
232
+ ### MACE outcomes (11 cols)
233
+ `mace_event_flag`, `mace_event_type` (MI / Stroke_Ischemic /
234
+ Stroke_Hemorrhagic / TIA / HF_Hospitalization / AF_New_Onset / CV_Death /
235
+ Non_CV_Death / None), `mi_flag`, `stroke_flag`, `stroke_type`,
236
+ `hf_hospitalization_flag`, `af_new_onset_flag`, `cardiovascular_death_flag`,
237
+ `all_cause_death_flag`, `study_dropout_flag`, `dropout_reason` (Death /
238
+ Withdrawal / None).
239
+
240
+ ### Comorbidities (7 cols, carried forward)
241
+ `diabetes_flag`, `dyslipidemia_flag`, `osa_flag`, `statin_use_flag`,
242
+ `aspirin_use_flag`, `family_history_htn_flag`,
243
+ `charlson_comorbidity_index`.
244
+
245
+ ---
246
+
247
+ ## Suggested use cases
248
+
249
+ - **BP control prediction** — train classifiers/regressors on
250
+ `sbp_office_mmhg` and `resistant_htn_flag` from baseline + medication
251
+ + lifestyle features
252
+ - **ABPM interpretation ML** — predict dipping pattern, masked HTN from
253
+ office BP, home BP, and patient features; useful for ABPM-replacement
254
+ algorithms
255
+ - **Medication response prediction** — model `bp_response_sbp_mmhg`
256
+ given drug class combinations and patient characteristics (uplift
257
+ modeling for personalized antihypertensive selection)
258
+ - **Resistant HTN cohort identification** — classifier for
259
+ `resistant_htn_flag` for utilization analytics
260
+ - **Antihypertensive adherence ML** — predict
261
+ `medication_adherence_pct` from pill burden, side effects, SES, age
262
+ - **ASCVD risk recalibration** — train improved 10-year ASCVD models
263
+ to compare against ACC/AHA PCE (note: the included
264
+ `ascvd_10yr_risk_pct` has known calibration issues — useful for
265
+ derivation studies that explicitly correct PCE bugs)
266
+ - **MACE survival ML** — Cox / DeepSurv / random survival forests on
267
+ the MACE outcomes (aggregate per-visit flags to patient level for
268
+ TTE analysis)
269
+ - **End-organ damage progression** — model `lvh_flag`, `carotid_imt_mm`,
270
+ `wml_volume_ml` trajectories given longitudinal BP control
271
+ - **CKD progression in HTN** — model `egfr_ml_min_1_73m2` decline
272
+ trajectories; useful for predicting CKD-G3 → G4 transitions
273
+ - **White coat / masked HTN detection** — classifier for office vs
274
+ ambulatory discrepancy; useful for diagnostic workflow automation
275
+ - **Salt sensitivity studies** — use `dietary_sodium_mg_day` and
276
+ individual BP response to identify salt-sensitive phenotypes
277
+ - **Dipping pattern ML** — predict nocturnal dipping pattern
278
+ (Reverse / Non / Normal / Extreme) from office BP, age, OSA,
279
+ comorbidities; useful for ABPM-free phenotyping
280
+ - **Treatment intensification timing ML** — predict when next drug
281
+ should be added from BP trajectory + current regimen
282
+ - **Quality improvement / HEDIS analytics** — BP control rate
283
+ measurement, medication intensification audit (HEDIS Controlling
284
+ High Blood Pressure metric)
285
+
286
+ ---
287
+
288
+ ## Loading examples
289
+
290
+ ```python
291
+ from datasets import load_dataset
292
+
293
+ ds = load_dataset("xpertsystems/hccar003-sample", split="train")
294
+ print(ds.shape)
295
+ ```
296
+
297
+ ```python
298
+ import pandas as pd
299
+ from huggingface_hub import hf_hub_download
300
+
301
+ df = pd.read_parquet(hf_hub_download(
302
+ "xpertsystems/hccar003-sample", "hccar003_dataset.parquet",
303
+ repo_type="dataset",
304
+ ))
305
+
306
+ # HTN stage distribution
307
+ print(df.groupby("patient_id")["htn_stage_baseline"].first()
308
+ .value_counts(normalize=True).round(3))
309
+ ```
310
+
311
+ ```python
312
+ # BP trajectory by HTN stage
313
+ import pandas as pd
314
+ from huggingface_hub import hf_hub_download
315
+
316
+ df = pd.read_parquet(hf_hub_download(
317
+ "xpertsystems/hccar003-sample", "hccar003_dataset.parquet",
318
+ repo_type="dataset",
319
+ ))
320
+
321
+ trajectory = (
322
+ df.groupby(["htn_stage_baseline", "visit_number"])["sbp_office_mmhg"]
323
+ .mean().unstack(level=0).round(1)
324
+ )
325
+ print(trajectory.head(12))
326
+ ```
327
+
328
+ ```python
329
+ # Resistant HTN identification + drug regimens
330
+ import pandas as pd
331
+ from huggingface_hub import hf_hub_download
332
+
333
+ df = pd.read_parquet(hf_hub_download(
334
+ "xpertsystems/hccar003-sample", "hccar003_dataset.parquet",
335
+ repo_type="dataset",
336
+ ))
337
+
338
+ # Patients with resistant HTN at ANY visit
339
+ resistant_pts = df.loc[df["resistant_htn_flag"] == 1, "patient_id"].unique()
340
+ print(f"Resistant HTN patients: {len(resistant_pts)} / {df['patient_id'].nunique()}")
341
+
342
+ # Their typical drug regimens (drug_class_1 distribution)
343
+ resist_df = df[df["patient_id"].isin(resistant_pts)]
344
+ print(resist_df["drug_class_1"].value_counts().head())
345
+ ```
346
+
347
+ ```python
348
+ # Aggregate MACE outcomes to patient level
349
+ import pandas as pd
350
+ from huggingface_hub import hf_hub_download
351
+
352
+ df = pd.read_parquet(hf_hub_download(
353
+ "xpertsystems/hccar003-sample", "hccar003_dataset.parquet",
354
+ repo_type="dataset",
355
+ ))
356
+
357
+ # Per-patient MACE summary (per-visit flags need aggregation)
358
+ patient_mace = df.groupby("patient_id").agg(
359
+ any_mi=("mi_flag", "max"),
360
+ any_stroke=("stroke_flag", "max"),
361
+ any_hf=("hf_hospitalization_flag", "max"),
362
+ any_af=("af_new_onset_flag", "max"),
363
+ cv_death=("cardiovascular_death_flag", "max"),
364
+ all_cause_death=("all_cause_death_flag", "max"),
365
+ follow_up_yrs=("years_from_baseline", "max"),
366
+ ).round(3)
367
+
368
+ print("Patient-level event rates:")
369
+ print(patient_mace.mean().round(3))
370
+ ```
371
+
372
+ ```python
373
+ # ABPM dipping pattern distribution
374
+ import pandas as pd
375
+ from huggingface_hub import hf_hub_download
376
+
377
+ df = pd.read_parquet(hf_hub_download(
378
+ "xpertsystems/hccar003-sample", "hccar003_dataset.parquet",
379
+ repo_type="dataset",
380
+ ))
381
+
382
+ print("Dipping pattern distribution by HTN stage:")
383
+ print(pd.crosstab(df["htn_stage_baseline"], df["abpm_dipping_pattern"],
384
+ normalize="index").round(3))
385
+ ```
386
+
387
+ ---
388
+
389
+ ## Limitations and honest disclosures
390
+
391
+ This sample is calibrated for **structural fidelity, not bit-exact reproduction
392
+ of any specific HTN cohort registry.** Specifically:
393
+
394
+ - **The included Pooled Cohort Equation (`ascvd_10yr_risk_pct`) is BUGGY.**
395
+ The generator's PCE implementation (lines 122-153) has multiple errors:
396
+ (a) White Male branch uses `1.764` for both bp_treated and untreated,
397
+ removing treatment effect; (b) White Female has a misplaced
398
+ `-29.799*1` term; (c) Black Male is missing the published intercept;
399
+ (d) Black Female has implausible coefficients on ln_sbp (29.2907 vs
400
+ published 0.295). **Result: ASCVD risk values saturate at clip ceiling
401
+ (75%) for ~93% of patients and at clip floor (1%) for Black Males.**
402
+ Use the column only as a relative-ordering signal, not for absolute
403
+ 10-year ASCVD estimation. For accurate ASCVD risk, recompute from
404
+ age, sex, race, total cholesterol, HDL, SBP, BP treatment flag,
405
+ diabetes, smoking using the published formula
406
+ (Goff et al. 2014).
407
+ - **eGFR uses the OLD 2009 CKD-EPI formula with race coefficient**
408
+ (line 216-217: `egfr *= 1.159 if Black`). The 2021 NKF-ASN refit
409
+ REMOVED the race coefficient. If you need the modern formula,
410
+ recompute from `creatinine_mg_dl`, `age_at_visit`, `sex` without
411
+ the race multiplier.
412
+ - **`carotid_plaque_flag` formula bug**: `int(RNG.random() < (0.05 + 0.01*age - 0.5))`
413
+ effectively gives ZERO carotid plaque to patients under age 45 (the
414
+ probability term goes negative). For full plaque modeling, use the
415
+ full product or augment with separate carotid imaging modules.
416
+ - **MACE per-visit flags fire on only ONE visit per patient** (the
417
+ visit within 0.13 years of `event_time`). They are NOT cumulative —
418
+ the flag does not carry forward after the event. **For patient-level
419
+ MACE prediction, aggregate via `groupby('patient_id').max()` on the
420
+ flag columns** (see "Loading examples" above). Time-to-event must be
421
+ derived from the visit_number × 0.25 (quarterly) offset.
422
+ - **`af_new_onset_flag` can fire from MACE event AND from a separate
423
+ stochastic check** (line 480): `int(mace_type == 'AF_New_Onset' or
424
+ (yrs > 5 and sbp_off > 160 and random < 0.005))`. So AF can occur
425
+ outside of the formal MACE event window — by design, reflecting that
426
+ AF is sometimes diagnosed incidentally.
427
+ - **`_dropout_at` reference in main loop** (line 646) checks a dictionary
428
+ key that's never set by `generate_patient_baseline`. The branch is
429
+ dead code; dropout actually fires via `study_dropout_flag` only.
430
+ Cosmetic side-effect.
431
+ - **Mean SBP ~144 mmHg, mean DBP ~97 mmHg** in this sample — higher
432
+ than typical real-world HTN cohorts (~135/85) because the HTN stage
433
+ distribution skews toward Stage 1/2 (~55% of patients). The
434
+ generator's stage probabilities `[Normal: 15%, Elevated: 20%,
435
+ Stage1: 30%, Stage2: 25%, Crisis: 10%]` produce a hypertension-
436
+ enriched cohort by design (suitable for HTN clinical trials, not
437
+ general population epidemiology).
438
+ - **Race/ethnicity SBP offsets** (line 106-109): Black patients have
439
+ +6 mmHg SBP offset, Asian -2 mmHg. These match published trial
440
+ observations (e.g., AASK, ALLHAT) but are NOT a complete model of
441
+ hypertension disparities — they encode only the magnitude offset, not
442
+ the underlying mechanisms (RAAS responsiveness, salt sensitivity,
443
+ vascular dysfunction).
444
+ - **Visit dropout is independent of clinical state** (line 485:
445
+ `dropout_flag = int(dead_v or (random < 0.003))`). Real HTN cohort
446
+ dropout correlates with poor BP control, adverse drug effects, and
447
+ SES. Treat the sample as informatively-censored data only if you
448
+ augment with realistic dropout mechanisms.
449
+ - **Comorbidities are independent draws** (lines 188-194: dm, dys, ckd,
450
+ osa) — no realistic co-occurrence beyond per-flag base rates. Real
451
+ cardiometabolic clustering (diabetes + dyslipidemia + obesity + CKD)
452
+ is much tighter than the generator produces.
453
+ - **`scipy.stats` is imported but unused** in active generator code.
454
+ No external compute dependencies beyond numpy + pandas + tqdm. The
455
+ scipy distributions (norm, beta, lognorm, weibull_min) appear in the
456
+ import block but never get called.
457
+ - **Masked HTN observed at 0.3-0.5%** in sample — much lower than the
458
+ 10-15% prevalence reported in clinical literature. Generator's
459
+ `wc_effect ~ N(8, 6)` and white_coat→office subtraction produces
460
+ predominantly white-coat phenotype (office > home) rather than
461
+ masked (home > office). For masked HTN ML research, augment with
462
+ inverted white-coat scenarios from the full product.
463
+ - **Visit count varies by patient** — some patients have 12 visits,
464
+ some have fewer due to dropout. Use `groupby('patient_id').size()`
465
+ to check follow-up duration per patient. Treat as unbalanced panel
466
+ data.
467
+ - **Drug-drug interactions and titration are simplified.** The drug
468
+ regimen is fixed at baseline (4 slots, randomly chosen from 7
469
+ classes); no realistic titration logic, no switching due to side
470
+ effects, no addition due to inadequate BP response. For
471
+ pharmacotherapy intensification ML, use the full product.
472
+
473
+ The full HCCAR003 product addresses these by corrected ACC/AHA PCE
474
+ implementation, full 2021 CKD-EPI refit, complete carotid plaque
475
+ modeling, MACE flag carry-forward for survival analysis, realistic
476
+ medication titration trajectories, dependent comorbidity sampling,
477
+ and pre-built scenario configs (SPRINT-style intensive vs standard,
478
+ salt-sensitive HTN, resistant HTN subgroup). Contact us for the
479
+ licensed commercial release.
480
+
481
+ ---
482
+
483
+ ## Companion datasets
484
+
485
+ This is the third SKU in our **Healthcare / Cardiology** vertical. Related
486
+ datasets from elsewhere in the catalog:
487
+
488
+ - [**HCCAR001**](https://huggingface.co/datasets/xpertsystems/hccar001-sample)
489
+ Heart Failure Dataset — chronic HF longitudinal records with GDMT,
490
+ device therapy, hospitalization, 12 quarterly visits
491
+ - [**HCCAR002**](https://huggingface.co/datasets/xpertsystems/hccar002-sample)
492
+ Acute Myocardial Infarction Dataset — STEMI/NSTEMI/UA with serial
493
+ troponin kinetics, intervention timing, in-hospital outcomes
494
+ - [**HCCAR003**](https://huggingface.co/datasets/xpertsystems/hccar003-sample)
495
+ Hypertension Dataset (you are here) — longitudinal HTN cohort with
496
+ ABPM, GDMT, MACE outcomes
497
+ - [**Healthcare / Neurology**](https://huggingface.co/xpertsystems) (10 SKUs)
498
+ - [**Insurance & Risk**](https://huggingface.co/xpertsystems) (10 SKUs)
499
+ - [**Energy & Climate**](https://huggingface.co/xpertsystems) (8 SKUs)
500
+ - [**Manufacturing**](https://huggingface.co/xpertsystems) (10 SKUs)
501
+ - [**Oil & Gas**](https://huggingface.co/xpertsystems) (17 SKUs)
502
+
503
+ **Cardiology pairing**: HCCAR001 + HCCAR002 + HCCAR003 covers the full
504
+ HTN→AMI→HF clinical trajectory. Hypertension is the leading modifiable
505
+ risk factor for AMI (HCCAR002) and HFpEF (HCCAR001 phenotype).
506
+
507
+ For the broader catalog, see https://huggingface.co/xpertsystems
508
+
509
+ ---
510
+
511
+ ## Citation
512
+
513
+ ```bibtex
514
+ @dataset{xpertsystems_hccar003_sample_2026,
515
+ author = {XpertSystems.ai},
516
+ title = {HCCAR003 Synthetic Hypertension \& Cardiovascular Risk Dataset (Sample Preview)},
517
+ year = 2026,
518
+ publisher = {Hugging Face},
519
+ url = {https://huggingface.co/datasets/xpertsystems/hccar003-sample}
520
+ }
521
+ ```
522
+
523
+ ---
524
+
525
+ ## Contact
526
+
527
+ - **Web:** https://xpertsystems.ai
528
+ - **Email:** pradeep@xpertsystems.ai
529
+ - **Full product catalog:** Cardiology, Neurology, Insurance & Risk, Energy
530
+ & Climate, Manufacturing, Oil & Gas, Cybersecurity, and more
531
+
532
+ **Sample License:** CC-BY-NC-4.0 (Creative Commons Attribution-NonCommercial 4.0)
533
+ **Full product License:** Commercial — please contact for pricing.
534
+
535
+ **Important medical disclaimer:** This dataset contains SYNTHETIC patient
536
+ records only. No data was derived from any real patient, EHR archive,
537
+ or clinical registry. The dataset is intended for ML model development,
538
+ benchmarking, and education — NOT for clinical decision support, patient
539
+ counseling, or medical research conclusions. All clinical thresholds
540
+ (HTN stage, resistant HTN, ABPM dipping pattern, KDIGO CKD stages) are
541
+ sourced from published guidelines; users are responsible for verifying
542
+ against current ACC/AHA/ESC/KDIGO guidelines for clinical applications.
543
+ The included Pooled Cohort Equation implementation has known
544
+ calibration issues — see Limitations.
hccar003_dataset.csv ADDED
The diff for this file is too large to render. See raw diff
 
hccar003_dataset.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ad1568de817791837b332e52c9a7721b71d86f64f21caead511335fd2a5a9cd
3
+ size 278474