THUgewu commited on
Commit
773efbe
·
verified ·
1 Parent(s): 5625222

Add TsFile (converted from xpertsystems/hlt010-sample)

Browse files
.gitattributes CHANGED
@@ -58,3 +58,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ equipment.tsfile filter=lfs diff=lfs merge=lfs -text
62
+ or_schedule.tsfile filter=lfs diff=lfs merge=lfs -text
63
+ staffing.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ - tsfile
11
+ - timeseries
12
+ - synthetic
13
+ - healthcare
14
+ - hospital-operations
15
+ - operating-room
16
+ - or-utilization
17
+ - surgical-scheduling
18
+ - staffing
19
+ - workforce
20
+ - nursing-shortage
21
+ - equipment
22
+ - biomedical
23
+ - capacity-planning
24
+ - bed-management
25
+ - ed-boarding
26
+ - aha
27
+ - aorn
28
+ - nsi
29
+ - ecri
30
+ - cms-conditions-of-participation
31
+ - perioperative
32
+ - case-cancellation
33
+ - first-case-ontime
34
+ - or-turnover
35
+ - rn-vacancy
36
+ - icu-occupancy
37
+ - time-series
38
+ - format:tsfile
39
+ pretty_name: HLT-010 Synthetic Hospital Resource Usage Dataset — OR + Staffing + Equipment + Capacity (Sample Preview) (TsFile)
40
+ size_categories:
41
+ - 10K<n<100K
42
+ configs:
43
+ - config_name: default
44
+ data_files:
45
+ - split: equipment
46
+ path: equipment.tsfile
47
+ - split: facilities
48
+ path: facilities.tsfile
49
+ - split: hospital_resources
50
+ path: hospital_resources.tsfile
51
+ - split: or_schedule
52
+ path: or_schedule.tsfile
53
+ - split: staffing
54
+ path: staffing.tsfile
55
+ ---
56
+
57
+ # HLT-010 Synthetic Hospital Resource Usage Dataset — OR + Staffing + Equipment + Capacity (Sample Preview) (TsFile)
58
+
59
+ Apache TsFile version of [`xpertsystems/hlt010-sample`](https://huggingface.co/datasets/xpertsystems/hlt010-sample).
60
+
61
+ ## Overview
62
+
63
+ A **fully synthetic** hospital operations dataset combining **operating room schedules**, **staffing/workforce records**, **biomedical equipment utilization**, **daily capacity metrics**, and **facility master data** across mixed facility types (academic / large community / medium community / critical access). Calibrated to AHA Annual Survey 2023, AORN benchmarks, NSI nursing data, ECRI Institute equipment data, and CMS Conditions of Participation.
64
+
65
+ - **Tables:** 5 TsFile table(s), 35,255 rows in total.
66
+ - `equipment`: 17,461 rows, 2023-01-01 00:00:00 → 2023-01-14 00:00:01.238000 (UTC)
67
+ - `facilities`: 3 rows, 1970-01-01 00:00:00 → 1970-01-01 00:00:00.002000 (UTC)
68
+ - `hospital_resources`: 42 rows, 2023-01-01 00:00:00 → 2023-01-14 00:00:00.002000 (UTC)
69
+ - `or_schedule`: 4,226 rows, 2023-01-01 00:00:00 → 2023-01-14 00:00:00.189000 (UTC)
70
+ - `staffing`: 13,523 rows, 2023-01-01 00:00:00 → 2023-01-14 00:00:00.605000 (UTC)
71
+
72
+ ## Schema (TsFile structure)
73
+
74
+ ### `equipment.tsfile`
75
+
76
+ - **Time** (INT64, milliseconds) — the source `record_date` column.
77
+ - **TAG**: none — the table is stored as a single device.
78
+ - **FIELD** (13): `asset_id` (string), `facility_id` (string), `equipment_class` (string), `equipment_age_yrs` (double), `utilization_rate` (double), `in_service_hours` (double), `downtime_hours` (double), `unplanned_downtime_flag` (int64), `downtime_cause` (string), `last_maintenance_date` (string), `next_maintenance_due` (string), `failure_flag` (int64), `repair_cost_usd` (double)
79
+
80
+ ### `facilities.tsfile`
81
+
82
+ - **Time** (INT64, milliseconds) — synthetic row index over the stable source order; this table has no clock column.
83
+ - **TAG**: none — the table is stored as a single device.
84
+ - **FIELD** (11): `facility_id` (string), `facility_type` (string), `teaching_status` (int64), `trauma_level` (string), `bed_count` (int64), `icu_beds` (int64), `or_suite_count` (int64), `pacu_bays` (int64), `state` (string), `region` (string), `daily_or_capacity` (double)
85
+
86
+ ### `hospital_resources.tsfile`
87
+
88
+ - **Time** (INT64, milliseconds) — the source `census_date` column.
89
+ - **TAG**: none — the table is stored as a single device.
90
+ - **FIELD** (40): `facility_id` (string), `day_of_week` (string), `is_weekend` (int64), `total_beds` (int64), `occupied_beds` (int64), `occupancy_rate` (double), `icu_beds_x` (int64), `icu_occupied` (int64), `icu_occupancy_rate` (double), `pacu_bays_x` (int64), `pacu_patients` (int64), `pacu_utilization_rate` (double), `ed_boarding_hours` (double), `diversion_flag` (int64), `diversion_hours` (double), `capacity_breach_flag` (int64), `surge_day_flag` (int64), `or_utilization_rate` (double), `surgical_cases_scheduled` (int64), `or_revenue_usd` (double), `or_cost_per_min_usd` (double), `total_or_minutes` (int64), `contribution_margin_usd` (double), `block_release_efficiency` (double), `staffing_adequacy_score` (double), `operational_efficiency_index` (double), `surgical_site_infection_flag` (int64), `near_miss_flag` (int64), `consent_timeout_completed` (int64), `equipment_safety_check_flag` (int64), `facility_type` (string), `teaching_status` (int64), `trauma_level` (string), `bed_count` (int64), `icu_beds_y` (int64), `or_suite_count` (int64), `pacu_bays_y` (int64), `state` (string), `region` (string), `daily_or_capacity` (double)
91
+
92
+ ### `or_schedule.tsfile`
93
+
94
+ - **Time** (INT64, milliseconds) — the source `case_date` column.
95
+ - **TAG**: none — the table is stored as a single device.
96
+ - **FIELD** (17): `case_id` (string), `facility_id` (string), `or_id` (string), `case_type` (string), `surgeon_id` (string), `is_emergency` (int64), `scheduled_start_min` (int64), `actual_start_min` (double), `start_delay_min` (double), `first_case_ontime_flag` (string), `scheduled_duration_min` (int64), `actual_duration_min` (double), `turnover_time_min` (double), `cancellation_flag` (int64), `cancellation_reason` (string), `block_owner` (string), `add_on_flag` (int64)
97
+
98
+ ### `staffing.tsfile`
99
+
100
+ - **Time** (INT64, milliseconds) — the source `shift_date` column.
101
+ - **TAG**: none — the table is stored as a single device.
102
+ - **FIELD** (10): `shift_id` (string), `facility_id` (string), `staff_id` (string), `staff_role` (string), `shift_type` (string), `hours_worked` (int64), `overtime_flag` (int64), `float_pool_flag` (int64), `agency_flag` (int64), `staff_to_patient_ratio` (double)
103
+
104
+ ## Conversion notes
105
+
106
+ - One TsFile per source CSV (5 tables), each stored as a single device: the facility id, asset id, staff id and surgeon id stay ordinary FIELDs.
107
+ - Time = the daily reporting date of each table (`record_date`, `census_date`, `case_date`, `shift_date`) as INT64 milliseconds at 00:00 UTC. Several rows share a day, so they are ordered by a 1 ms step in stable source order; the calendar day is unaffected.
108
+ - `facilities` is a 3-row facility master with no date column, so its Time is a synthetic row index. No column is dropped.
109
+
110
+ ## Usage
111
+
112
+ Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
113
+
114
+ ```python
115
+ from pathlib import Path
116
+ from tsfile import TsFileReader
117
+
118
+ path = Path("equipment.tsfile")
119
+ with TsFileReader(str(path)) as reader:
120
+ schemas = reader.get_all_table_schemas()
121
+ print("tables:", list(schemas))
122
+ table_name = next(iter(schemas))
123
+ table = schemas[table_name]
124
+ columns = [column.get_column_name() for column in table.get_columns()]
125
+ print("columns:", columns)
126
+ field_names = [
127
+ column.get_column_name()
128
+ for column in table.get_columns()
129
+ if column.get_column_name() not in {"Time", "time"}
130
+ ]
131
+ if field_names:
132
+ with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
133
+ batch = result.read_arrow_batch()
134
+ if batch is not None:
135
+ print(batch.to_pandas().head())
136
+ ```
137
+
138
+ ## Source & license
139
+
140
+ - Original dataset: [`xpertsystems/hlt010-sample`](https://huggingface.co/datasets/xpertsystems/hlt010-sample)
141
+ - Source card title / publisher: HLT-010 Synthetic Hospital Resource Usage Dataset — OR + Staffing + Equipment + Capacity (Sample Preview)
142
+ - License: cc-by-nc-4.0 (as declared by the original dataset).
equipment.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b1c861ba0facf834f5c15204b12b6542499eadcea412327e85701202cb393666
3
+ size 476189
facilities.tsfile ADDED
Binary file (1.94 kB). View file
 
hospital_resources.tsfile ADDED
Binary file (10.8 kB). View file
 
or_schedule.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38e79bc2204d8441ef436030be912d6989e53e3bc74e81605f986dd350e3a82d
3
+ size 101112
source_dataset_card.md ADDED
@@ -0,0 +1,339 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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-operations
13
+ - operating-room
14
+ - or-utilization
15
+ - surgical-scheduling
16
+ - staffing
17
+ - workforce
18
+ - nursing-shortage
19
+ - equipment
20
+ - biomedical
21
+ - capacity-planning
22
+ - bed-management
23
+ - ed-boarding
24
+ - aha
25
+ - aorn
26
+ - nsi
27
+ - ecri
28
+ - cms-conditions-of-participation
29
+ - perioperative
30
+ - case-cancellation
31
+ - first-case-ontime
32
+ - or-turnover
33
+ - rn-vacancy
34
+ - icu-occupancy
35
+ pretty_name: HLT-010 Synthetic Hospital Resource Usage Dataset — OR + Staffing + Equipment + Capacity (Sample Preview)
36
+ size_categories:
37
+ - 10K<n<100K
38
+ ---
39
+
40
+ # HLT-010 — Synthetic Hospital Resource Usage Dataset (Sample Preview)
41
+
42
+ **A free, schema-identical preview of the full HLT-010 commercial product from [XpertSystems.ai](https://xpertsystems.ai).**
43
+
44
+ A **fully synthetic** hospital operations dataset combining **operating room schedules**, **staffing/workforce records**, **biomedical equipment utilization**, **daily capacity metrics**, and **facility master data** across mixed facility types (academic / large community / medium community / critical access). Calibrated to AHA Annual Survey 2023, AORN benchmarks, NSI nursing data, ECRI Institute equipment data, and CMS Conditions of Participation.
45
+
46
+ > ⚠️ **PRIVACY & SYNTHETIC NATURE**
47
+ > Every record in this dataset is **100% synthetic**. **No real patient data, no PHI, no real facility identifiers, no real surgeon or staff NPIs.** Population-level distributions match published AHA / AORN / NSI / ECRI benchmark sources but the facilities and operational events are computationally generated.
48
+
49
+ ---
50
+
51
+ ## What's in this sample
52
+
53
+ | File | Rows | Cols | Description |
54
+ |---|---|---|---|
55
+ | `facilities.csv` | 3 | 11 | Facility master — type, teaching status, trauma level, bed count, OR suites, PACU bays, region |
56
+ | `hospital_resources.csv` | 42 | 41 | Daily capacity + financial + quality KPIs per facility (14 days × 3 facilities) |
57
+ | `or_schedule.csv` | ~4,200 | 18 | One row per surgical case — 22 case types, scheduled vs actual timing, cancellations, block ownership |
58
+ | `staffing.csv` | ~13,500 | 11 | One row per staff-shift — 12 perioperative roles, OT/float/agency flags, staff-to-patient ratios |
59
+ | `equipment.csv` | ~17,500 | 14 | One row per equipment-day — 18 equipment classes, utilization, downtime, maintenance schedule, repair cost |
60
+
61
+ **Total:** ~3.9 MB across 6 files.
62
+
63
+ ---
64
+
65
+ ## Schema highlights
66
+
67
+ ### `facilities.csv` (11 columns) — facility master
68
+
69
+ `facility_id`, `facility_type` (academic / large / medium / small), `teaching_status` (Major Teaching / Minor Teaching / Non-Teaching), `trauma_level` (Level I-IV), `bed_count`, `icu_beds`, `or_suite_count`, `pacu_bays`, `state`, `region` (Northeast / Midwest / South / West), `daily_or_capacity`
70
+
71
+ ### `hospital_resources.csv` (41 columns) — daily operational KPIs
72
+
73
+ **Identity & temporal:** `facility_id`, `census_date`, `day_of_week`, `is_weekend`
74
+
75
+ **Bed capacity:** `total_beds`, `occupied_beds`, `occupancy_rate`, `icu_beds_x`, `icu_occupied`, `icu_occupancy_rate`, `pacu_bays_x`, `pacu_patients`, `pacu_utilization_rate`
76
+
77
+ **ED throughput:** `ed_boarding_hours`, `diversion_flag`, `diversion_hours`, `capacity_breach_flag`, `surge_day_flag`
78
+
79
+ **OR financial & operational:** `or_utilization_rate`, `surgical_cases_scheduled`, `or_revenue_usd`, `or_cost_per_min_usd`, `total_or_minutes`, `contribution_margin_usd`, `block_release_efficiency`
80
+
81
+ **Quality & safety:** `staffing_adequacy_score`, `operational_efficiency_index`, `surgical_site_infection_flag`, `near_miss_flag`, `consent_timeout_completed`, `equipment_safety_check_flag`
82
+
83
+ ### `or_schedule.csv` (18 columns) — per-case scheduling
84
+
85
+ `case_id`, `facility_id`, `case_date`, `or_id`, `case_type` (22 types: Orthopedic, Cardiac, General Surgery, Neurosurgery, OB/GYN, Urology, ENT, Plastic Surgery, Vascular, Thoracic, Transplant, Trauma, Ophthalmology, Colorectal, Bariatric, Endoscopy, Interventional Radiology, Gynecologic Oncology, Pediatric Surgery, Spinal, Hand Surgery, Robotic Assisted), `surgeon_id`, `is_emergency`, `scheduled_start_min`, `actual_start_min`, `start_delay_min`, `first_case_ontime_flag`, `scheduled_duration_min`, `actual_duration_min`, `turnover_time_min`, `cancellation_flag`, `cancellation_reason`, `block_owner`, `add_on_flag`
86
+
87
+ ### `staffing.csv` (11 columns) — daily shift records
88
+
89
+ `shift_id`, `facility_id`, `shift_date`, `staff_id`, `staff_role` (12 roles: Surgeon, Anesthesiologist, CRNA, Scrub Tech, RN Circulator, PA/NP, Resident, Pharmacist, Radiology Tech, Biomedical Tech, Environmental Services, Unit Coordinator), `shift_type` (Day / Evening / Night), `hours_worked`, `overtime_flag`, `float_pool_flag`, `agency_flag`, `staff_to_patient_ratio`
90
+
91
+ ### `equipment.csv` (14 columns) — daily equipment utilization
92
+
93
+ `asset_id`, `facility_id`, `record_date`, `equipment_class` (18 classes including Anesthesia Machine, Patient Monitor, Infusion Pump, Electrosurgical Unit, Sterilization Autoclave, CT Scanner, MRI Scanner, C-Arm Fluoroscopy, Endoscope Processor, Intraoperative MRI, ECMO Circuit, CRRT Machine, Cardiac Cath Lab Equipment, Defibrillator, Ventilator, Robotic Surgical System, Imaging Workstation, Hybrid OR Imaging), `equipment_age_yrs`, `utilization_rate`, `in_service_hours`, `downtime_hours`, `unplanned_downtime_flag`, `downtime_cause` (Hardware Failure / Software Error / Power Surge / User Error / Calibration Failure / Component Wear / Connectivity Issue / Sensor Malfunction), `last_maintenance_date`, `next_maintenance_due`, `failure_flag`, `repair_cost_usd`
94
+
95
+ ---
96
+
97
+ ## Calibration source story
98
+
99
+ The full HLT-010 generator anchors all distributions to authoritative hospital operations references:
100
+
101
+ - **AHA Annual Survey 2023** (American Hospital Association) — OR utilization (78.4%), case cancellations (8.2%), bed occupancy (81.2%), ED boarding (3.2hr), revenue per case (~$18,400)
102
+ - **AORN Benchmarks** (Association of periOperative Registered Nurses) — first-case on-time start (82%), OR turnover (28 ± 8 min), surgical tech vacancy (22.8%)
103
+ - **NSI Nursing Solutions 2023** — RN vacancy rate (15.6%), turnover patterns
104
+ - **ECRI Institute** — Equipment unplanned downtime (~4.2%), age-related failure curves
105
+ - **CMS Conditions of Participation** — ICU occupancy target max 85%, staffing-to-patient ratios
106
+ - **IHI (Institute for Healthcare Improvement)** — Operational efficiency benchmarks, surge capacity
107
+
108
+ ### Sample-scale validation scorecard
109
+
110
+ | Metric | Observed | Target | Tolerance | Status | Source |
111
+ |---|---|---|---|---|---|
112
+ | OR utilization rate | 71.3% | 70% | ±10% | ✅ PASS | AHA 2023 |
113
+ | Case cancellation rate | 7.6% | 8% | ±3% | ✅ PASS | AHA 2023 |
114
+ | First-case on-time rate | 84.5% | 82% | ±8% | ✅ PASS | AORN Benchmarks |
115
+ | OR turnover (min) | 27.4 | 28.0 | ±4.0 | ✅ PASS | AORN |
116
+ | Bed occupancy rate | 81.7% | 78% | ±10% | ✅ PASS | AHA 2023 |
117
+ | ED boarding hours (mean) | 3.28 | 3.2 | ±1.2 | ✅ PASS | AHA 2023 |
118
+ | ICU occupancy (under CMS max) | 80.7% | ≤85% | — | ✅ PASS | CMS CoP |
119
+ | Equipment downtime rate | 5.1% | 4.8% | ±1.8% | ✅ PASS | ECRI Institute |
120
+ | Case type diversity | 22 | 22 | ±2 | ✅ PASS | AORN surgical taxonomy |
121
+ | Staff role diversity | 12 | 12 | — | ✅ PASS | AORN team composition |
122
+
123
+ **Grade: A+ (100/100) — verified across 6 random seeds (42, 7, 123, 2024, 99, 1).**
124
+
125
+ ---
126
+
127
+ ## Loading examples
128
+
129
+ ### Pandas — explore the operational data
130
+
131
+ ```python
132
+ import pandas as pd
133
+
134
+ facilities = pd.read_csv("facilities.csv")
135
+ capacity = pd.read_csv("hospital_resources.csv", parse_dates=["census_date"])
136
+ ors = pd.read_csv("or_schedule.csv", parse_dates=["case_date"])
137
+ staffing = pd.read_csv("staffing.csv", parse_dates=["shift_date"])
138
+ equipment = pd.read_csv("equipment.csv", parse_dates=["record_date"])
139
+
140
+ # OR utilization by facility type
141
+ print(capacity.merge(facilities, on="facility_id")
142
+ .groupby("facility_type")["or_utilization_rate"]
143
+ .agg(["mean", "std", "min", "max"]).round(3))
144
+
145
+ # Case type mix
146
+ print(ors["case_type"].value_counts(normalize=True).head(10).round(3))
147
+
148
+ # Cancellation reasons
149
+ print(ors.loc[ors["cancellation_flag"] == True, "cancellation_reason"]
150
+ .value_counts())
151
+ ```
152
+
153
+ ### Hugging Face Datasets
154
+
155
+ ```python
156
+ from datasets import load_dataset
157
+
158
+ ds = load_dataset("xpertsystems/hlt010-sample", data_files={
159
+ "facilities": "facilities.csv",
160
+ "hospital_resources": "hospital_resources.csv",
161
+ "or_schedule": "or_schedule.csv",
162
+ "staffing": "staffing.csv",
163
+ "equipment": "equipment.csv",
164
+ })
165
+ print(ds)
166
+ ```
167
+
168
+ ### OR utilization forecasting baseline
169
+
170
+ ```python
171
+ import pandas as pd
172
+ from sklearn.ensemble import GradientBoostingRegressor
173
+ from sklearn.model_selection import train_test_split
174
+
175
+ cap = pd.read_csv("hospital_resources.csv", parse_dates=["census_date"])
176
+ cap["month"] = cap["census_date"].dt.month
177
+ cap["dayofweek_num"] = cap["census_date"].dt.dayofweek
178
+
179
+ features = ["bed_count", "or_suite_count", "is_weekend", "dayofweek_num",
180
+ "month", "occupancy_rate", "icu_occupancy_rate",
181
+ "surgical_cases_scheduled"]
182
+ X = cap[features].fillna(0)
183
+ y = cap["or_utilization_rate"]
184
+ Xtr, Xte, ytr, yte = train_test_split(X, y, test_size=0.3, random_state=42)
185
+ m = GradientBoostingRegressor(random_state=42).fit(Xtr, ytr)
186
+ print(f"OR utilization R²: {m.score(Xte, yte):.3f}")
187
+ ```
188
+
189
+ ### Equipment maintenance prediction
190
+
191
+ ```python
192
+ import pandas as pd
193
+
194
+ eq = pd.read_csv("equipment.csv", parse_dates=["record_date"])
195
+
196
+ # Downtime rate by equipment age
197
+ eq["age_bucket"] = pd.cut(eq["equipment_age_yrs"],
198
+ [0, 3, 6, 10, 15],
199
+ labels=["0-3yr", "3-6yr", "6-10yr", "10-15yr"])
200
+ print(eq.groupby("age_bucket")["unplanned_downtime_flag"].mean().round(3))
201
+
202
+ # Repair cost distribution
203
+ print(eq.loc[eq["repair_cost_usd"] > 0, "repair_cost_usd"].describe())
204
+ ```
205
+
206
+ ### Staffing analysis
207
+
208
+ ```python
209
+ import pandas as pd
210
+
211
+ staff = pd.read_csv("staffing.csv")
212
+
213
+ # Overtime rate by role
214
+ print(staff.groupby("staff_role")["overtime_flag"].mean().sort_values(ascending=False))
215
+
216
+ # Agency staff reliance
217
+ print(staff.groupby(["facility_id", "staff_role"])["agency_flag"]
218
+ .mean().unstack().round(3))
219
+ ```
220
+
221
+ ---
222
+
223
+ ## Suggested use cases
224
+
225
+ - **OR utilization forecasting** — predict next-day OR utilization from facility characteristics + recent operational patterns
226
+ - **Surgical case cancellation prediction** — classify cancellation risk to enable proactive intervention
227
+ - **Block schedule optimization** — analyze block release efficiency and underutilized blocks
228
+ - **Equipment failure prediction** — predict `unplanned_downtime_flag` from age + utilization + maintenance history
229
+ - **Maintenance scheduling optimization** — risk-adjusted preventive maintenance interval modeling
230
+ - **Staffing-to-acuity matching** — analyze `staff_to_patient_ratio` × `acuity` patterns for nurse scheduling
231
+ - **Overtime / agency cost modeling** — predict overtime hours and agency staffing needs
232
+ - **Bed capacity surge prediction** — predict `surge_day_flag` and `diversion_flag` from upstream factors
233
+ - **ED boarding root cause analysis** — relate `ed_boarding_hours` to ICU occupancy and discharge patterns
234
+ - **Quality & safety event modeling** — predict near-miss / SSI / consent timeout events from staffing + acuity
235
+ - **Financial contribution margin modeling** — analyze contribution margin drivers across facility types
236
+ - **Hospital ML pretraining** — pretrain operational forecasting models before fine-tuning on real EHR/EMR data
237
+ - **Operations research education** — perioperative scheduling, queueing theory, capacity planning coursework
238
+
239
+ ---
240
+
241
+ ## Sample vs. full product
242
+
243
+ | Aspect | This sample | Full HLT-010 product |
244
+ |---|---|---|
245
+ | Facilities | 3 (mixed) | 50+ (default) up to 500+ |
246
+ | Time window | 14 days | 365+ days (multi-year configurable) |
247
+ | Facility types | Mixed (3) | Mixed / academic-only / community-only / critical_access |
248
+ | Output format | CSV | CSV / Parquet / JSON |
249
+ | Schema | identical | identical |
250
+ | Calibration | identical | identical |
251
+ | License | CC-BY-NC-4.0 | Commercial license |
252
+
253
+ The full product unlocks:
254
+ - **Up to 500+ facilities** for system-wide operations modeling
255
+ - **Multi-year longitudinal windows** for trend analysis and intervention impact studies
256
+ - **Configurable facility mix** for targeted segmentation (academic-only / community-only / CAH)
257
+ - **Parquet output** for production data pipelines
258
+ - Commercial use rights
259
+
260
+ **Contact us for the full product.**
261
+
262
+ ---
263
+
264
+ ## Limitations & honest disclosures
265
+
266
+ - **Sample is preview-only.** 3 facilities × 14 days × ~35K operational records is enough to demonstrate schema and calibration, but is **not statistically sufficient** for facility-level capacity planning models or season-aware forecasting. Use the full product (50+ facilities × 365 days) for serious work.
267
+ - **Sample includes 3 facility types (academic + large + medium), not all 4.** The `critical_access` facility type is not represented at n=3 due to random sampling. The full product reliably covers all 4 types.
268
+ - **OR utilization runs slightly below the headline AHA target.** Sample mean is ~70% vs AHA 78.4% pure target. This is partly because mixed facility_mix includes community facilities (which average lower OR utilization) and partly small-N effects at 3 facilities × 14 days. The full product hits the AHA target at scale.
269
+ - **Equipment downtime runs slightly elevated (5.1% vs ECRI 4.2%).** The generator's age-based `failure_multiplier` produces realistic but somewhat-higher-than-target downtime for aging assets. Reflects real-world equipment fleet aging — production hospitals with younger fleets see lower rates.
270
+ - **PACU utilization clips at 1.0.** The generator caps PACU utilization at 100% rather than allowing over-capacity. At busy academic centers, real PACU congestion exceeds capacity (queue forms) — this is hidden by the cap.
271
+ - **Staff IDs are synthetic random integers.** No real NPIs, no real practitioner identifiers. Surgeon IDs are equally synthetic.
272
+ - **Equipment IDs are synthetic identifiers**, not real GUDID device IDs.
273
+ - **Block-schedule data is daily-aggregated, not minute-level.** The full product can be extended with minute-level block scheduling for highly-detailed OR room optimization.
274
+ - **No real ICD-10 / CPT case data joins.** Case types are categorical groupings (Orthopedic, Cardiac, etc.) — the full ICD-10/CPT/MS-DRG joins are in the companion HLT-005 hospital admission dataset.
275
+ - **Synthetic, not derived from real hospital operations data.** Distributions match published AHA/AORN/NSI/ECRI references but do NOT reflect any specific real hospital.
276
+
277
+ ---
278
+
279
+ ## Ethical use guidance
280
+
281
+ This dataset is designed for:
282
+ - Hospital operations analytics methodology development
283
+ - OR scheduling and capacity planning research
284
+ - Equipment maintenance prediction ML
285
+ - Nursing workforce analytics
286
+ - ED throughput optimization research
287
+ - Healthcare AI pretraining for operational forecasting
288
+ - Educational use in hospital operations management and operations research
289
+
290
+ This dataset is **not appropriate for**:
291
+ - Making real staffing decisions about real personnel
292
+ - Real surgeon performance evaluation
293
+ - Real equipment retirement/procurement decisions without validation
294
+ - Discriminatory analyses targeting protected demographic groups
295
+ - Hospital quality scoring or pay-for-performance modeling without real-data validation
296
+
297
+ ---
298
+
299
+ ## Companion datasets in the Healthcare vertical
300
+
301
+ - [HLT-001](https://huggingface.co/datasets/xpertsystems/hlt001-sample) — Synthetic Patient Population (5K patients × 79 cols, CDC/NHANES calibrated)
302
+ - [HLT-002](https://huggingface.co/datasets/xpertsystems/hlt002-sample) — Synthetic EHR Dataset (4K encounters + FHIR R4 bundles)
303
+ - [HLT-003](https://huggingface.co/datasets/xpertsystems/hlt003-sample) — Synthetic Clinical Trial Dataset (3 endpoint types + power sweep)
304
+ - [HLT-004](https://huggingface.co/datasets/xpertsystems/hlt004-sample) — Synthetic Disease Progression Dataset (NSCLC + Heart Failure longitudinal)
305
+ - [HLT-005](https://huggingface.co/datasets/xpertsystems/hlt005-sample) — Synthetic Hospital Admission Dataset (5K admissions + bed utilization)
306
+ - [HLT-006](https://huggingface.co/datasets/xpertsystems/hlt006-sample) — Synthetic Medical Imaging Dataset (1K studies + COCO annotations + reports)
307
+ - [HLT-007](https://huggingface.co/datasets/xpertsystems/hlt007-sample) — Synthetic Drug Response Dataset (3K patient-treatments × 25 drug classes + PGx + PK)
308
+ - [HLT-008](https://huggingface.co/datasets/xpertsystems/hlt008-sample) — Synthetic Healthcare Claims Dataset (500 members + 30K claims + fraud labels)
309
+ - [HLT-009](https://huggingface.co/datasets/xpertsystems/hlt009-sample) — Synthetic Continuous Vital Sign Monitoring Dataset (25 ICU episodes + alarms)
310
+ - **HLT-010** — Synthetic Hospital Resource Usage Dataset (you are here)
311
+
312
+ Use **HLT-001 through HLT-010 together** for the complete healthcare data stack: clinical (population/EHR/trials/progression) + operational (admissions/imaging/pharma/claims/monitoring/**resources**) — 10 datasets covering every major workflow in the modern hospital.
313
+
314
+ ---
315
+
316
+ ## Citation
317
+
318
+ If you use this dataset, please cite:
319
+
320
+ ```bibtex
321
+ @dataset{xpertsystems_hlt010_sample_2026,
322
+ author = {XpertSystems.ai},
323
+ title = {HLT-010 Synthetic Hospital Resource Usage Dataset (Sample Preview)},
324
+ year = 2026,
325
+ publisher = {Hugging Face},
326
+ url = {https://huggingface.co/datasets/xpertsystems/hlt010-sample}
327
+ }
328
+ ```
329
+
330
+ ---
331
+
332
+ ## Contact
333
+
334
+ - **Web:** [https://xpertsystems.ai](https://xpertsystems.ai)
335
+ - **Email:** [pradeep@xpertsystems.ai](mailto:pradeep@xpertsystems.ai)
336
+ - **Full product catalog:** Cybersecurity, Insurance & Risk, Materials & Energy, Oil & Gas, Healthcare, and more
337
+
338
+ **Sample License:** CC-BY-NC-4.0 (Creative Commons Attribution-NonCommercial 4.0)
339
+ **Full product License:** Commercial — please contact for pricing.
staffing.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:103f810f2c6964afd5f28b8922fdaccef66a2efe76027a526238fb6f9f77ddc1
3
+ size 213693