pradeep-xpert commited on
Commit
9a658c8
·
verified ·
1 Parent(s): e8adf68

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. README.md +315 -0
  2. admissions.csv +0 -0
  3. bed_utilization.csv +0 -0
README.md ADDED
@@ -0,0 +1,315 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ task_categories:
4
+ - tabular-classification
5
+ - tabular-regression
6
+ - time-series-forecasting
7
+ language:
8
+ - en
9
+ tags:
10
+ - synthetic
11
+ - healthcare
12
+ - hospital-admissions
13
+ - inpatient
14
+ - ms-drg
15
+ - hcup
16
+ - cms-ipps
17
+ - esi-triage
18
+ - acep
19
+ - lace
20
+ - readmission
21
+ - hac
22
+ - patient-safety
23
+ - bed-utilization
24
+ - adt
25
+ - length-of-stay
26
+ - charlson-comorbidity
27
+ - apr-drg
28
+ - inpatient-mortality
29
+ - discharge-disposition
30
+ - payer-mix
31
+ - medicare
32
+ - news2
33
+ - qsofa
34
+ pretty_name: HLT-005 Synthetic Hospital Admission Dataset (Sample Preview)
35
+ size_categories:
36
+ - 10K<n<100K
37
+ ---
38
+
39
+ # HLT-005 — Synthetic Hospital Admission Dataset (Sample Preview)
40
+
41
+ **A free, schema-identical 5,000-admission preview of the full HLT-005 commercial product from [XpertSystems.ai](https://xpertsystems.ai).**
42
+
43
+ A **fully synthetic** hospital admission dataset combining admission-level records (76 columns: demographics, triage, comorbidity, LOS, readmission risk, HAC flags, discharge disposition, financials) with daily unit-level bed utilization census data. Calibrated to HCUP NIS, CMS IPPS, CMS HRRP, ACEP, AHA, and AHRQ benchmarks for an academic medical center over a 1-year study window.
44
+
45
+ > ⚠️ **PRIVACY & SYNTHETIC NATURE**
46
+ > Every record in this dataset is **100% synthetic**. **No real patient data, no PHI, no re-identifiable records.** Population-level distributions match published HCUP NIS / CMS IPPS / ACEP / AHRQ benchmark sources but the admissions are computationally generated.
47
+
48
+ ---
49
+
50
+ ## What's in this sample
51
+
52
+ | File | Rows | Columns | Description |
53
+ |---|---|---|---|
54
+ | `admissions.csv` | 5,000 | 76 | One row per admission — demographics, DRG, triage (ESI/NEWS2/qSOFA), CCI/Elixhauser comorbidity, LOS, ICU flag, LACE readmission score, HAC, discharge disposition, financials |
55
+ | `bed_utilization.csv` | 8,030 | 12 | Daily unit-level census (365 days × 22 units) — capacity, occupancy rate, admits/discharges/transfers per day, seasonality + DOW weights |
56
+
57
+ **Total:** ~2.3 MB across 3 files (incl. README).
58
+
59
+ ---
60
+
61
+ ## Schema highlights (admissions.csv — 76 columns)
62
+
63
+ ### Identity & dates (5 columns)
64
+ `admission_id`, `mrn_synthetic`, `admit_date`, `discharge_date`, `admit_hour`, `discharge_hour`
65
+
66
+ ### Demographics (8 columns)
67
+ `age`, `sex`, `race_ethnicity` (7 categories), `insurance_payer` (8 categories), `urban_rural` (Urban_Core / Suburban / Micropolitan / Rural), `zip_drive_time_min`, `prior_admits_12mo`, `prior_ed_12mo`
68
+
69
+ ### DRG & severity coding (9 columns)
70
+ `ms_drg_code` (CMS MS-DRG, 25 codes covered), `ms_drg_label`, `drg_relative_weight` (CMS DRG weight), `cc_mcc_level` (MCC / CC / No_CC_MCC), `apr_drg_soi` (Severity of Illness 1-4), `apr_drg_rom` (Risk of Mortality 1-4), `cci_score` (Charlson), `elixhauser_count`, `drg_case_mix_weight`
71
+
72
+ ### Admission characteristics (4 columns)
73
+ `admit_type` (Emergent / Urgent / Elective / Newborn), `admit_source` (6 categories), `assigned_unit` (22-unit academic layout), `bed_lag_min`
74
+
75
+ ### Triage & vitals (12 columns)
76
+ `esi_level` (1-5, ACEP), `news2_score`, `news2_discharge_score`, `news2_delta`, `qsofa_score`, `sbp`, `dbp`, `heart_rate`, `respiratory_rate`, `spo2`, `temperature_f`, `gcs_total`
77
+
78
+ ### LOS & ICU (8 columns)
79
+ `los_days`, `icu_flag`, `icu_los_days`, `ed_boarding_hours`, `ed_boarding_flag`, `expected_los_drg`, `los_outlier_flag`, `short_stay_flag`
80
+
81
+ ### Readmission & HRRP (8 columns)
82
+ `lace_score`, `readmit_risk_30d`, `readmit_risk_60d`, `readmit_risk_90d`, `risk_category`, `readmit_flag_30d`, `hrrp_flag` (HRRP-tracked DRG), `readmit_cause`
83
+
84
+ ### Quality & safety (7 columns)
85
+ `hac_flag`, `hac_type` (CLABSI / CAUTI / MRSA_BSI / C_diff / Pressure_Injury_Stage3_4 / Surgical_Site_Infection / DVT_PE_Post_Hip_Knee / None), `inpatient_mortality_flag`, `discharge_call`, `pcp_followup_7d`, `dc_instructions`, `lang_concordance`
86
+
87
+ ### Disposition & care planning (4 columns)
88
+ `discharge_disposition` (Home / Home_Health_Services / SNF / LTAC / Inpatient_Rehab / AMA / Expired / Transfer_to_Acute), `sw_consult`, `pt_ot_eval`, `case_mgmt`
89
+
90
+ ### ED metrics (3 columns)
91
+ `door_to_physician_min`, `door_to_disposition_min`, `lwbs_flag` (Left Without Being Seen)
92
+
93
+ ### Financials (8 columns)
94
+ DRG payment, charges, costs (full set in schema)
95
+
96
+ ---
97
+
98
+ ## Schema (bed_utilization.csv — 12 columns)
99
+
100
+ `date`, `unit`, `unit_capacity`, `daily_census`, `occupancy_rate`, `admits_today`, `discharges_today`, `transfers_in`, `transfers_out`, `seasonality_weight`, `day_of_week`, `month`
101
+
102
+ **22 units** in the academic facility layout: ICU, MICU, CCU, SICU, 4× Gen_Med, Cardiology, Oncology, Neurology, Pulmonology, Nephrology, Orthopedics, Psychiatry, OB_GYN, Pediatrics, NICU, Burn, ED_Obs, Rehab, Other
103
+
104
+ ---
105
+
106
+ ## Calibration source story
107
+
108
+ The full HLT-005 generator anchors all distributions to authoritative healthcare references:
109
+
110
+ - **HCUP NIS 2022** (AHRQ Healthcare Cost and Utilization Project National Inpatient Sample) — admission-level inpatient distributions, LOS, payer mix
111
+ - **CMS IPPS FY2024** (Inpatient Prospective Payment System) — MS-DRG weights, discharge disposition, CMI by facility type
112
+ - **CMS HRRP 2024** (Hospital Readmissions Reduction Program) — 30-day all-cause readmission rates
113
+ - **ACEP National Survey 2023** (American College of Emergency Physicians) — ESI triage level distribution
114
+ - **AHRQ National Healthcare Quality Reports** — hospital-acquired condition rates, PSI composite measures
115
+ - **AHA Annual Survey 2023** (American Hospital Association) — bed occupancy by facility type
116
+ - **Walraven et al. (2010)** — LACE Index methodology for predicting 30-day readmission
117
+ - **NEWS2 (Royal College of Physicians, 2017)** — National Early Warning Score for deteriorating patients
118
+ - **Wunsch et al. (2010)** — ICU admission rates at academic medical centers
119
+ - **APR-DRG 3M (2023)** — All Patient Refined DRG Severity of Illness (SOI) and Risk of Mortality (ROM) scores
120
+
121
+ ### Sample-scale validation scorecard
122
+
123
+ | Metric | Observed | Target | Tolerance | Status | Source |
124
+ |---|---|---|---|---|---|
125
+ | Mean LOS (days) | 5.39 | 5.2 | ±1.0 | ✅ PASS | HCUP NIS 2022 |
126
+ | 30-day readmission rate | 17.3% | 17.0% | ±4.0% | ✅ PASS | CMS HRRP 2024 |
127
+ | Inpatient mortality rate | 2.36% | 2.3% | ±0.8% | ✅ PASS | HCUP NIS 2022 |
128
+ | ICU admission rate | 18.0% | 18.5% | ±4.0% | ✅ PASS | Wunsch et al. (2010) |
129
+ | ESI 1-2 critical rate | 23.1% | 24% | ±5% | ✅ PASS | ACEP National Survey 2023 |
130
+ | HAC composite rate | 2.82% | 2.8% | ±1.2% | ✅ PASS | AHRQ NHQR |
131
+ | Medicare payer share | 46.6% | 48% | ±5% | ✅ PASS | HCUP NIS 2022 |
132
+ | DRG diversity | 25 | 25 | — | ✅ PASS | MS-DRG schema |
133
+ | LOS / discharge temporal validity | 100% | 100% | ±1% | ✅ PASS | Data hygiene |
134
+ | Bed utilization occupancy | 84.1% | 82% | ±10% | ✅ PASS | AHA Annual Survey 2023 |
135
+
136
+ **Grade: A+ (100/100) — verified across 6 random seeds (42, 7, 123, 2024, 99, 1).**
137
+
138
+ ---
139
+
140
+ ## Loading examples
141
+
142
+ ### Pandas
143
+
144
+ ```python
145
+ import pandas as pd
146
+
147
+ adm = pd.read_csv("admissions.csv")
148
+ bed = pd.read_csv("bed_utilization.csv")
149
+
150
+ # DRG mix
151
+ print(adm["ms_drg_label"].value_counts(normalize=True).head(10))
152
+
153
+ # Readmission risk by LACE category
154
+ print(adm.groupby("risk_category")["readmit_flag_30d"].mean())
155
+
156
+ # Bed utilization by unit
157
+ print(bed.groupby("unit")["occupancy_rate"].agg(["mean", "std"]).sort_values("mean"))
158
+ ```
159
+
160
+ ### Hugging Face Datasets
161
+
162
+ ```python
163
+ from datasets import load_dataset
164
+
165
+ ds = load_dataset("xpertsystems/hlt005-sample", data_files={
166
+ "admissions": "admissions.csv",
167
+ "bed_utilization": "bed_utilization.csv",
168
+ })
169
+ print(ds)
170
+ ```
171
+
172
+ ### 30-day readmission prediction baseline
173
+
174
+ ```python
175
+ import pandas as pd
176
+ from sklearn.ensemble import GradientBoostingClassifier
177
+ from sklearn.model_selection import train_test_split
178
+
179
+ adm = pd.read_csv("admissions.csv")
180
+ features = ["age", "los_days", "cci_score", "elixhauser_count", "esi_level",
181
+ "news2_score", "qsofa_score", "icu_flag", "lace_score",
182
+ "prior_admits_12mo", "prior_ed_12mo", "apr_drg_soi", "apr_drg_rom",
183
+ "drg_relative_weight"]
184
+ X, y = adm[features], adm["readmit_flag_30d"]
185
+ Xtr, Xte, ytr, yte = train_test_split(X, y, test_size=0.25, random_state=42)
186
+ m = GradientBoostingClassifier(random_state=42).fit(Xtr, ytr)
187
+ print(f"30-day readmission ROC AUC: {m.score(Xte, yte):.3f}")
188
+ ```
189
+
190
+ ### Bed utilization seasonality analysis
191
+
192
+ ```python
193
+ import pandas as pd
194
+ import matplotlib.pyplot as plt
195
+
196
+ bed = pd.read_csv("bed_utilization.csv", parse_dates=["date"])
197
+ icu = bed[bed["unit"] == "ICU"].sort_values("date")
198
+ icu.plot(x="date", y="occupancy_rate", figsize=(10, 4),
199
+ title="ICU Daily Occupancy — 2023")
200
+ plt.show()
201
+
202
+ # Day-of-week effect
203
+ print(bed.groupby("day_of_week")["occupancy_rate"].mean())
204
+ ```
205
+
206
+ ---
207
+
208
+ ## Suggested use cases
209
+
210
+ - **30-day readmission prediction** — train classifiers on LACE features + clinical/demographics → `readmit_flag_30d`
211
+ - **Mortality risk prediction** — predict `inpatient_mortality_flag` from severity scores + comorbidity
212
+ - **LOS forecasting** — regress `los_days` on DRG + severity + ICU flag + ED boarding
213
+ - **HAC risk stratification** — identify high-risk admissions for CLABSI/CAUTI/C.diff prevention bundles
214
+ - **Bed utilization forecasting** — time-series models on daily census (seasonality + DOW + unit-level trends)
215
+ - **ED throughput optimization** — analyze `door_to_physician_min`, `door_to_disposition_min`, `lwbs_flag`, `ed_boarding_hours`
216
+ - **Discharge disposition prediction** — multi-class (Home / Home Health / SNF / LTAC / Rehab / etc.) from admission features
217
+ - **Triage prediction** — predict `esi_level` from vitals + chief complaint proxies
218
+ - **HRRP penalty risk modeling** — focus on `hrrp_flag` admissions (HF, AMI, pneumonia, COPD, etc.)
219
+ - **Payer mix and revenue cycle** — analyze charges/payments by DRG × payer
220
+ - **Capacity planning** — unit-level admit/discharge/transfer dynamics for staffing models
221
+ - **Healthcare ML pretraining** — pretrain inpatient outcome models on this synthetic dataset before fine-tuning on real EHR
222
+
223
+ ---
224
+
225
+ ## Sample vs. full product
226
+
227
+ | Aspect | This sample | Full HLT-005 product |
228
+ |---|---|---|
229
+ | Admissions | 5,000 | 50,000+ (default) up to 500K |
230
+ | Study window | 1 year (2023) | Configurable, multi-year |
231
+ | Facility types | Academic (650 beds, 22 units) | Academic / Community / CAH (Critical Access) |
232
+ | Schema | identical (76 cols) | identical (76 cols) |
233
+ | Calibration | identical | identical |
234
+ | License | CC-BY-NC-4.0 | Commercial license |
235
+
236
+ The full product unlocks:
237
+ - **All 3 facility types**: Academic (650 beds), Community (280 beds), CAH (25 beds) — each with distinct unit layouts and CMI targets
238
+ - **Larger admission counts** up to 500K for production-grade model training
239
+ - **Multi-year study windows** for longitudinal trend analysis
240
+ - Commercial use rights
241
+
242
+ **Contact us for the full product.**
243
+
244
+ ---
245
+
246
+ ## Limitations & honest disclosures
247
+
248
+ - **Sample is preview-only.** 5,000 admissions is enough to demonstrate schema and calibration, but is **not statistically sufficient** for serious model training, especially for rare-event outcomes (specific HAC types, low-prevalence DRGs, AMA discharges). Use the full product (50K+ admissions) for serious work.
249
+ - **Generator's HAC validation target was inaccurate.** The generator's built-in validation summary claims a CMS HAC target of 0.005 (0.5%) and shows the observed rate (~2.8%) as if it's elevated. In reality, **AHRQ National Healthcare Quality Reports show composite HAC rates of 2.3-3.3% across all admissions** — the 0.5% figure represents per-condition rates, not the composite. Our wrapper scorecard uses the correct composite reference. The synthetic data is well-calibrated; the original target label was wrong.
250
+ - **Generator's home discharge target appears too high for academic AMCs.** Generator claims 51% home discharge target; observed is ~40%. HCUP NIS data for academic medical centers (which have higher case-mix severity) actually shows 38-45% home discharge with the balance going to Home Health Services, SNF, and Inpatient Rehab. The synthetic data is realistic for academic centers; the 51% target may be calibrated to community hospitals.
251
+ - **CMI runs ~14% below academic target (1.44 vs 1.65 target).** This reflects a slight under-weighting of MCC patients in the DRG sampling. For exact CMI calibration, the full product can be tuned via MCC rate parameters.
252
+ - **Single facility type in this sample.** Only academic AMC is included; full product supports community + CAH for cross-facility comparative analysis.
253
+ - **MRN is synthetic random integer.** No SSA / SSN / real patient identifiers. The `mrn_synthetic` column exists for join-key purposes only.
254
+ - **No ICD-10 detail codes.** This sample uses MS-DRG codes (~25 groups); full ICD-10-CM diagnosis detail is in the companion HLT-002 EHR dataset.
255
+ - **No physician / nurse identifiers.** Care team attribution is not in this sample (provider productivity analysis requires the full product with team-level extensions).
256
+ - **Bed utilization is sampled from a subset of admissions.** The bed_utilization.csv aggregates daily census patterns; individual ADT events are derived from a sample of admissions for tractability. For full ADT event logs, contact us.
257
+ - **Race/ethnicity, payer, and SDOH categories follow CMS/CDC public reporting conventions.** Use for equity research with appropriate care.
258
+
259
+ ---
260
+
261
+ ## Ethical use guidance
262
+
263
+ This dataset is designed for:
264
+ - Hospital operations analytics development
265
+ - Readmission / mortality / HAC risk modeling research
266
+ - Bed utilization / capacity planning ML
267
+ - Educational use in health services research
268
+ - Synthetic data validation methodology research
269
+ - ETL pipeline testing for inpatient claims data
270
+
271
+ This dataset is **not appropriate for**:
272
+ - Making decisions about real individual patients
273
+ - Insurance underwriting, pricing, or claim adjudication
274
+ - Hospital quality scoring or pay-for-performance modeling without real-data validation
275
+ - Training models that produce clinical recommendations without separate validation
276
+ - Discriminatory analyses targeting protected demographic groups
277
+
278
+ ---
279
+
280
+ ## Companion datasets in the Healthcare vertical
281
+
282
+ - [HLT-001](https://huggingface.co/datasets/xpertsystems/hlt001-sample) — Synthetic Patient Population (5K patients × 79 cols, CDC/NHANES calibrated)
283
+ - [HLT-002](https://huggingface.co/datasets/xpertsystems/hlt002-sample) — Synthetic EHR Dataset (4K encounters + FHIR R4 bundles)
284
+ - [HLT-003](https://huggingface.co/datasets/xpertsystems/hlt003-sample) — Synthetic Clinical Trial Dataset (3 endpoint types + power sweep)
285
+ - [HLT-004](https://huggingface.co/datasets/xpertsystems/hlt004-sample) — Synthetic Disease Progression Dataset (NSCLC + Heart Failure longitudinal)
286
+ - **HLT-005** — Synthetic Hospital Admission Dataset (you are here)
287
+
288
+ Use **HLT-001 through HLT-005 together** for the full healthcare data stack: population → EHR encounters → clinical trials → disease progression → inpatient admissions.
289
+
290
+ ---
291
+
292
+ ## Citation
293
+
294
+ If you use this dataset, please cite:
295
+
296
+ ```bibtex
297
+ @dataset{xpertsystems_hlt005_sample_2026,
298
+ author = {XpertSystems.ai},
299
+ title = {HLT-005 Synthetic Hospital Admission Dataset (Sample Preview)},
300
+ year = 2026,
301
+ publisher = {Hugging Face},
302
+ url = {https://huggingface.co/datasets/xpertsystems/hlt005-sample}
303
+ }
304
+ ```
305
+
306
+ ---
307
+
308
+ ## Contact
309
+
310
+ - **Web:** [https://xpertsystems.ai](https://xpertsystems.ai)
311
+ - **Email:** [pradeep@xpertsystems.ai](mailto:pradeep@xpertsystems.ai)
312
+ - **Full product catalog:** Cybersecurity, Insurance & Risk, Materials & Energy, Oil & Gas, Healthcare, and more
313
+
314
+ **Sample License:** CC-BY-NC-4.0 (Creative Commons Attribution-NonCommercial 4.0)
315
+ **Full product License:** Commercial — please contact for pricing.
admissions.csv ADDED
The diff for this file is too large to render. See raw diff
 
bed_utilization.csv ADDED
The diff for this file is too large to render. See raw diff