File size: 19,082 Bytes
7309ddb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
---
license: cc-by-nc-4.0
task_categories:
- tabular-classification
- tabular-regression
language:
- en
tags:
- synthetic
- healthcare
- claims
- insurance-claims
- icd-10
- cpt
- hcpcs
- drg
- mdc
- ndc
- rxnorm
- atc
- hedis
- hcc
- ccw
- x12-837
- x12-835
- carc
- fraud-detection
- healthcare-fraud
- nhcaa
- adherence
- pdc
- mpr
- payer-mix
- medical-loss-ratio
- medicare-advantage
- medicaid
- commercial-insurance
- claims-adjudication
- prior-authorization
- denial-management
- value-based-care
pretty_name: HLT-008 Synthetic Healthcare Claims Dataset (Sample Preview)
size_categories:
- 10K<n<100K
---

# HLT-008 — Synthetic Healthcare Claims Dataset (Sample Preview)

**A free, schema-identical preview of the full HLT-008 commercial product from [XpertSystems.ai](https://xpertsystems.ai).**

A **fully synthetic** healthcare claims dataset spanning **members → providers → medical claims → pharmacy claims → adherence** — modeling commercial, Medicare Advantage, Medicaid, and self-insured payer populations with X12 837/835-compliant claim structure, CMS HCC risk adjustment, CMS CCW chronic conditions, HEDIS quality measures, X12 CARC denial codes, NHCAA-aligned fraud patterns, and Pharmacy Quality Alliance PDC/MPR adherence metrics.

> ⚠️ **PRIVACY & SYNTHETIC NATURE**
> Every record in this dataset is **100% synthetic**. **No real claim records, no PHI, no real member identifiers, no real NPIs.** Population-level distributions match published CMS / NHIS / NHCAA / Pharmacy Quality Alliance benchmark sources but the claims are computationally generated.

---

## What's in this sample

| File | Rows | Cols | Description |
|---|---|---|---|
| `members.csv` | 500 | 44 | Member master — demographics, payer/plan type, HCC risk score, 21+ CCW chronic conditions, dual-eligible/LIS flags, enrollment window |
| `providers.csv` | 150 | 7 | Provider directory — NPI, specialty, NUCC taxonomy, network status |
| `medical_claims.csv` | ~12,800 | 54 | Medical claim lines — ICD-10-CM (primary + 4 secondary), CPT/HCPCS, MS-DRG/MDC, modifiers, denial codes, HEDIS measure flags, fraud labels |
| `pharmacy_claims.csv` | ~18,300 | 35 | Pharmacy claim lines — NDC-11, RxNorm therapeutic class, ATC code, BIN/PCN, formulary tier, AWP/NADAC pricing, DIR fees |
| `adherence.csv` | ~10,600 | 7 | PDC + MPR by member × therapeutic class (Pharmacy Quality Alliance methodology) |

**Total:** ~8.1 MB across 6 files. **Note:** This is the largest healthcare sample in the catalog because claims data has natural fan-out (500 members → 30K+ claims over 3 years).

---

## Schema highlights

### `members.csv` (44 columns)

**Identity & demographics:** `member_id`, `age`, `age_band`, `sex`, `race_ethnicity`, `state`, `zip_code`

**Insurance:** `payer_type` (commercial / medicare_advantage / medicaid / self_insured), `plan_type` (PPO / HMO / EPO / HDHP-HSA / SNP / PFFS / MCO / PCCM / FFS), `dual_eligible_flag`, `lis_flag` (Low Income Subsidy)

**Risk & quality:** `hcc_risk_score` (CMS HCC v28, mean-normalized to 1.0), `n_chronic_conditions`, `care_management_flag`, `income_band` (FPL-based)

**Enrollment:** `enrollment_start`, `enrollment_end`

**21+ CCW chronic conditions** (binary flags): `ccw_ami`, `ccw_alzheimer`, `ccw_anemia`, `ccw_asthma`, `ccw_atrialfib`, `ccw_cataract`, `ccw_chrnkidn`, `ccw_copd`, `ccw_chf`, `ccw_diabetes`, `ccw_deprssion`, `ccw_hyperl`, `ccw_hyperp`, `ccw_ihd`, `ccw_mo_diabetes`, `ccw_osteoprs`, `ccw_ra_oa`, `ccw_stroke_tia`, `ccw_cancer_colorectal`, `ccw_cancer_endometrial`, `ccw_cancer_lung`, `ccw_cancer_prostate`, `ccw_cancer_breast`, `ccw_glaucoma`, `ccw_hip_fracture`, `ccw_hipvteib`, `ccw_bnign_prostate`

### `medical_claims.csv` (54 columns)

**Claim identity:** `claim_id`, `member_id`, `claim_type`, `service_date_from`, `service_date_to`, `adjudication_date`, `plan_id`

**Provider attribution:** `rendering_npi`, `billing_npi`, `provider_specialty`, `network_status`

**Diagnosis coding:** `primary_icd10_cm` (one of 50 CMS-calibrated codes including I10, E11.9, J06.9, M54.5, etc.), plus 4 secondary diagnoses (`dx2` through `dx5`)

**Procedure coding:** `cpt_code` (E&M / Surgery / Radiology / Pathology-Lab / Medicine), `cpt_category`, `modifier1`, `modifier2`, `revenue_code`, `service_units`

**Inpatient detail:** `drg_code` (MS-DRG), `drg_type`, `mdc_code` (Major Diagnostic Category), `length_of_stay`, `poa_flag` (Present-on-Admission)

**Place of service:** `place_of_service` (CMS POS codes), `pos_description`

**Financials:** `billed_amount`, `allowed_amount`, `paid_amount`, `member_deductible`, `member_copay`, `member_coinsurance`, `member_oop` (out-of-pocket), `cob_amount` (coordination of benefits)

**Adjudication:** `claim_status` (Paid / Denied / Adjusted / Pended), `denial_code_carc` (CO-15, CO-4, CO-11, CO-18, PR-1, etc.), `denial_reason_desc`, `auth_required_flag`, `auth_number`

**Quality/Safety flags:** `er_flag`, `preventive_flag`, `elective_flag`, `high_cost_flag`, `readmission_flag_30d`

**Fraud labels:** `fraud_label` (5% prevalence), `fraud_pattern_type` ∈ {Upcoding, Phantom, Unbundling, Duplicate, Identity_Theft}

**HEDIS quality measures:** `hedis_bcs` (Breast Cancer Screening), `hedis_col` (Colorectal), `hedis_cdc_a1c` (Diabetes A1c), `hedis_awv` (Annual Wellness Visit), `hedis_depression`

### `pharmacy_claims.csv` (35 columns)

**Claim identity:** `rx_claim_id`, `member_id`, `fill_date`, `paid_date`, `pharmacy_npi`, `prescriber_npi`, `plan_id`, `bin_number`, `pcn_code`

**Drug coding:** `ndc_11` (National Drug Code), `drug_name_generic`, `drug_name_brand`, `therapeutic_class` (RxNorm), `atc_code` (Anatomical Therapeutic Classification, WHO)

**Pricing:** `ingredient_cost`, `dispensing_fee`, `gross_amount_due`, `copay_amount`, `plan_paid`, `dir_fee_amount` (Direct/Indirect Remuneration), `awp_per_unit` (Average Wholesale Price), `nadac_per_unit` (CMS National Average Drug Acquisition Cost)

**Dispensing:** `formulary_tier`, `days_supply`, `quantity_dispensed`, `refill_number`, `pharmacy_type`, `dispense_as_written_code`, `specialty_rx_flag`, `compounded_flag`, `controlled_substance_flag`

**Anomaly flags:** `early_refill_flag`, `fraud_label_rx`, `diversion_flag`

### `adherence.csv` (7 columns)

`member_id`, `therapeutic_class`, `total_days_supply`, `n_fills`, `pdc` (Proportion of Days Covered), `mpr` (Medication Possession Ratio), `adherence_flag_pdc80` (PDC ≥ 80% threshold per PQA Star Ratings methodology)

---

## Calibration source story

The full HLT-008 generator anchors all distributions to authoritative healthcare claims references:

- **CMS HCC v28** — Hierarchical Condition Categories risk adjustment methodology
- **CMS Payer Enrollment Statistics** — Commercial / MA / Medicaid / self-insured mix
- **CMS CPT/HCPCS Category Weights** — E&M / Surgery / Radiology / Lab / Medicine
- **NHCAA** (National Health Care Anti-Fraud Association) — Healthcare fraud rate estimates and 5-pattern taxonomy
- **NHIS / CDC** — Adult chronic disease prevalence
- **CMS CCW** (Chronic Conditions Warehouse) — 21-condition framework
- **X12 835 (HIPAA EDI)** — CARC denial codes and adjudication structure
- **HEDIS 2024 (NCQA)** — Healthcare Effectiveness Data and Information Set quality measures
- **Pharmacy Quality Alliance (PQA)** — PDC/MPR adherence methodology, 80% threshold
- **CMS NDC + FDA Orange Book** — National Drug Code coding
- **WHO ATC** — Anatomical Therapeutic Chemical Classification
- **Lloyd & Lloyd (2016) MLR Analysis** — Medical Loss Ratio benchmarks

### Sample-scale validation scorecard

| Metric | Observed | Target | Tolerance | Status | Source |
|---|---|---|---|---|---|
| Payer commercial share | 44.2% | 45% | ±6% | ✅ PASS | CMS payer enrollment |
| HCC risk score mean | 1.00 | 1.00 | ±0.05 | ✅ PASS | CMS HCC v28 normalization |
| Fraud rate (medical) | 5.04% | 5% | ±2% | ✅ PASS | NHCAA |
| Denial rate | 10.0% | 10% | ±3% | ✅ PASS | X12 835 / CARC |
| Diabetes prevalence | 10.0% | 11% | ±4% | ✅ PASS | NHIS / CDC |
| CPT E&M share | 30.1% | 30% | ±5% | ✅ PASS | CMS CPT category weights |
| CCW condition diversity | 27 | ≥21 | — | ✅ PASS | CMS CCW |
| Fraud pattern diversity | 5 | 5 | — | ✅ PASS | NHCAA taxonomy |
| CARC denial code coverage | 10 | ≥5 | — | ✅ PASS | X12 835 |
| Claim date validity | 99.7% | 100% | ±1% | ✅ PASS | Data hygiene |

**Grade: A+ (100/100) — verified across 6 random seeds (42, 7, 123, 2024, 99, 1).**

---

## Loading examples

### Pandas

```python
import pandas as pd

members = pd.read_csv("members.csv")
providers = pd.read_csv("providers.csv")
medical = pd.read_csv("medical_claims.csv")
pharm = pd.read_csv("pharmacy_claims.csv")
adh = pd.read_csv("adherence.csv")

# Payer mix
print(members["payer_type"].value_counts(normalize=True))

# Top ICD-10 codes in medical claims
print(medical["primary_icd10_cm"].value_counts().head(10))

# Fraud pattern breakdown
print(medical.loc[medical["fraud_label"] == 1, "fraud_pattern_type"]
        .value_counts())

# Denial reasons
print(medical.loc[medical["claim_status"] == "Denied", "denial_code_carc"]
        .value_counts().head(10))
```

### Hugging Face Datasets

```python
from datasets import load_dataset

ds = load_dataset("xpertsystems/hlt008-sample", data_files={
    "members":         "members.csv",
    "providers":       "providers.csv",
    "medical_claims":  "medical_claims.csv",
    "pharmacy_claims": "pharmacy_claims.csv",
    "adherence":       "adherence.csv",
})
print(ds)
```

### Fraud detection baseline

```python
import pandas as pd
from sklearn.ensemble import GradientBoostingClassifier
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report

medical = pd.read_csv("medical_claims.csv")

features = ["billed_amount", "allowed_amount", "paid_amount", "service_units",
            "length_of_stay", "auth_required_flag", "er_flag", "high_cost_flag",
            "readmission_flag_30d"]
# Encode categorical
medical["cpt_cat_enc"] = pd.factorize(medical["cpt_category"])[0]
medical["network_enc"] = pd.factorize(medical["network_status"])[0]
features += ["cpt_cat_enc", "network_enc"]

X, y = medical[features].fillna(0), medical["fraud_label"]
Xtr, Xte, ytr, yte = train_test_split(X, y, test_size=0.25, stratify=y,
                                       random_state=42)
clf = GradientBoostingClassifier(random_state=42).fit(Xtr, ytr)
print(classification_report(yte, clf.predict(Xte)))
```

### HCC risk-adjusted spend analysis

```python
import pandas as pd

members = pd.read_csv("members.csv")
medical = pd.read_csv("medical_claims.csv")

# Per-member medical spend
spend = medical.groupby("member_id")["paid_amount"].sum().rename("total_paid")
m = members.merge(spend, on="member_id", how="left")
m["total_paid"] = m["total_paid"].fillna(0)

# Spend by HCC decile
m["hcc_decile"] = pd.qcut(m["hcc_risk_score"], 10, labels=False)
print(m.groupby("hcc_decile")["total_paid"].agg(["mean", "std", "median"]))
```

### Adherence intervention targeting

```python
import pandas as pd

adh = pd.read_csv("adherence.csv")

# Low-adherence patients (PDC < 0.80) by therapeutic class
low_adh = adh[adh["adherence_flag_pdc80"] == 0]
print(low_adh["therapeutic_class"].value_counts().head(10))
```

---

## Suggested use cases

- **Claims fraud detection** — train binary or multi-class classifiers on `fraud_label` + `fraud_pattern_type` with features from medical + pharmacy + provider tables
- **Denial management** — predict `claim_status` (Paid/Denied/Adjusted/Pended) and `denial_code_carc` from claim features
- **HCC risk adjustment** — train risk score predictors from diagnosis codes for value-based contracts
- **HEDIS gap analysis** — identify members not meeting `hedis_*` measures, predict who needs outreach
- **High-cost claimant identification** — predict `high_cost_flag` or top-decile spend from baseline features
- **Adherence intervention modeling** — predict PDC < 0.8 in chronic medication users
- **Drug switching / brand-vs-generic analysis** — RxNorm therapeutic class transitions
- **Provider network optimization** — analyze in-network vs out-of-network financial impact
- **Prior authorization optimization** — predict which `auth_required_flag` claims will be denied
- **Care management targeting** — identify members for case management based on chronic conditions + spend
- **30-day readmission prediction**`readmission_flag_30d` ML
- **X12 837/835 ETL pipeline testing** — schema-compliant synthetic data for EDI pipelines
- **Healthcare analytics platform development** — synthetic data for warehousing, reporting, BI demos

---

## Sample vs. full product

| Aspect | This sample | Full HLT-008 product |
|---|---|---|
| Members | 500 | 100,000+ (default) up to 5M |
| Years | 3 (2021-2023) | Configurable, multi-year longitudinal |
| Providers | 150 | 5,000+ |
| Schema | identical | identical |
| Calibration | identical | identical |
| License | CC-BY-NC-4.0 | Commercial license |

The full product unlocks:
- **Up to 5M members** for population-scale fraud detection and risk adjustment training
- **Configurable multi-year longitudinal windows** for spend trend analysis
- **Larger provider network** (5,000+) for realistic network analysis
- Commercial use rights

**Contact us for the full product.**

---

## Limitations & honest disclosures

- **Sample is preview-only.** 500 members × 3 years × ~30K claims is enough to demonstrate schema and calibration, but is **not statistically sufficient** for serious fraud detection model training (would need ≥100K members for reliable detection of rare fraud patterns) or rare condition analysis. Use the full product for serious work.
- **Sample is on the larger side (8 MB).** Claims data has natural fan-out — even at 500 members, you get ~30K claim records. This is the largest healthcare sample in the catalog. The full product scales linearly with member count.
- **Adherence PDC denominator is the full observation window, not actual therapy initiation.** The generator computes PDC as `total_days_supply / 1096_days` (3-year observation window), rather than the clinically-canonical "days from first fill to obs end." This produces lower PDC values (~0.1) than the typical 0.7-0.8 reported in real PDC analyses. The field is *structurally correct* (between 0 and 1, deterministic), just calibrated against the observation window. For clinically-typical PDC values, compute it as `total_days_supply / (obs_end - first_fill_date)` from the raw fills, which is a one-line post-processing step.
- **Fraud labels are statistically assigned, not adjudicated.** `fraud_label = 1` flags follow a 5% Bernoulli draw with pattern types assigned by category-rule mapping. They represent realistic fraud taxonomy proportions but are NOT validated against real fraud detection adjudication.
- **ICD-10 coding uses 50 most common codes, not the full ~70K codeset.** Realistic for general analytics but not exhaustive — rare-disease analysis requires the full HLT-008 product with extended code coverage.
- **NDC codes are placeholder 11-digit strings, not real FDA Orange Book entries.** `drug_name_generic` / `drug_name_brand` / `therapeutic_class` / `atc_code` are populated; the NDC-11 string itself is synthetic. Use therapeutic class + ATC for drug-level analysis.
- **NPIs are synthetic 10-digit strings.** Provider directory has realistic specialty + NUCC taxonomy + network status but the NPI numbers themselves are not real CMS NPPES numbers.
- **State distribution focuses on top-10 US states.** Member distribution is concentrated in CA/TX/FL/NY/PA/IL/OH/GA/NC/MI; all 50 states are not represented at uniform frequency.
- **No real CMS BSA / DRG payment rates.** `paid_amount` is calibrated to overall paid-to-billed ratios (~0.63), not specific DRG reimbursement schedules. The full product can be tuned to specific year IPPS/OPPS rates.
- **Synthetic, not derived from real claims data.** Distributions match published CMS / NHIS / NHCAA references but do NOT reflect any specific real payer or member cohort.

---

## Ethical use guidance

This dataset is designed for:
- Healthcare fraud detection ML methodology development
- Claims analytics platform development
- HCC risk adjustment model research
- HEDIS quality measure pipeline testing
- X12 837/835 EDI ETL pipeline development
- Educational use in health services research and actuarial science
- Healthcare AI pretraining for claims-based prediction tasks

This dataset is **not appropriate for**:
- Making payment decisions about real claims
- Insurance underwriting, pricing, or claim adjudication for real members
- Fraud accusations against real providers
- Discriminatory analyses targeting protected demographic groups
- Training models that produce real claim decisions without separate validation on real data

---

## Companion datasets in the Healthcare vertical

- [HLT-001](https://huggingface.co/datasets/xpertsystems/hlt001-sample) — Synthetic Patient Population (5K patients × 79 cols, CDC/NHANES calibrated)
- [HLT-002](https://huggingface.co/datasets/xpertsystems/hlt002-sample) — Synthetic EHR Dataset (4K encounters + FHIR R4 bundles)
- [HLT-003](https://huggingface.co/datasets/xpertsystems/hlt003-sample) — Synthetic Clinical Trial Dataset (3 endpoint types + power sweep)
- [HLT-004](https://huggingface.co/datasets/xpertsystems/hlt004-sample) — Synthetic Disease Progression Dataset (NSCLC + Heart Failure longitudinal)
- [HLT-005](https://huggingface.co/datasets/xpertsystems/hlt005-sample) — Synthetic Hospital Admission Dataset (5K admissions + bed utilization)
- [HLT-006](https://huggingface.co/datasets/xpertsystems/hlt006-sample) — Synthetic Medical Imaging Dataset (1K studies + COCO annotations + reports)
- [HLT-007](https://huggingface.co/datasets/xpertsystems/hlt007-sample) — Synthetic Drug Response Dataset (3K patient-treatments × 25 drug classes + PGx + PK)
- **HLT-008** — Synthetic Healthcare Claims Dataset (you are here)

Use **HLT-001 through HLT-008 together** for the full healthcare ML data stack: population → EHR → trials → progression → hospital ops → imaging → pharmacology → claims & reimbursement.

---

## Citation

If you use this dataset, please cite:

```bibtex
@dataset{xpertsystems_hlt008_sample_2026,
  author       = {XpertSystems.ai},
  title        = {HLT-008 Synthetic Healthcare Claims Dataset (Sample Preview)},
  year         = 2026,
  publisher    = {Hugging Face},
  url          = {https://huggingface.co/datasets/xpertsystems/hlt008-sample}
}
```

---

## Contact

- **Web:** [https://xpertsystems.ai](https://xpertsystems.ai)
- **Email:** [pradeep@xpertsystems.ai](mailto:pradeep@xpertsystems.ai)
- **Full product catalog:** Cybersecurity, Insurance & Risk, Materials & Energy, Oil & Gas, Healthcare, and more

**Sample License:** CC-BY-NC-4.0 (Creative Commons Attribution-NonCommercial 4.0)
**Full product License:** Commercial — please contact for pricing.