dataset: publish clean-room README.md for CaleraLabs/medcodebench
Browse files
README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
- question-answering
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
tags:
|
| 9 |
+
- medical-coding
|
| 10 |
+
- healthcare-rcm
|
| 11 |
+
- icd-10-cm
|
| 12 |
+
- icd-10-pcs
|
| 13 |
+
- hcpcs
|
| 14 |
+
- ncci
|
| 15 |
+
- cms-public-domain
|
| 16 |
+
- clean-room
|
| 17 |
+
- calera-bedrock
|
| 18 |
+
pretty_name: MedCodeBench v1.0 & v2.0 (Clean-Room CMS Clinical Coding Benchmark)
|
| 19 |
+
size_categories:
|
| 20 |
+
- n<1K
|
| 21 |
+
configs:
|
| 22 |
+
- config_name: default
|
| 23 |
+
data_files:
|
| 24 |
+
- split: v1_holdout
|
| 25 |
+
path: data/v1_holdout.jsonl
|
| 26 |
+
- split: v2_holdout
|
| 27 |
+
path: data/v2_holdout.jsonl
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
# MedCodeBench v1.0 & v2.0 (Clean-Room CMS Clinical Coding Benchmark)
|
| 31 |
+
|
| 32 |
+
**Publisher:** Calera Computing, Inc. (`CaleraLabs`)
|
| 33 |
+
**License:** Apache-2.0 (100% US Government public-domain CMS FY2026 & FY2027 coding schedules)
|
| 34 |
+
**Paired Flagship Model:** [`CaleraLabs/medcodesec-12b-gguf`](https://huggingface.co/CaleraLabs/medcodesec-12b-gguf) (`PROD-BEDROCK-002`)
|
| 35 |
+
**Interactive Arena:** [`CaleraLabs/medcodesec-auditor-arena`](https://huggingface.co/spaces/CaleraLabs/medcodesec-auditor-arena)
|
| 36 |
+
|
| 37 |
+
## 1. Benchmark Overview
|
| 38 |
+
|
| 39 |
+
**MedCodeBench** is a deterministic, machine-gradable clinical coding & Revenue Cycle Management (RCM) audit benchmark spanning **6 CMS public-domain coding pillars** across **8 evaluation buckets**:
|
| 40 |
+
|
| 41 |
+
| Split | Cases | Pillars Covered | Scope & Design |
|
| 42 |
+
| :--- | :---: | :--- | :--- |
|
| 43 |
+
| `v1_holdout` | **240** | 8 pillars (`30` cases each) | Specificity & non-billable headers, 7th-char `'X'` placeholders, ancestor `Excludes1` vs. `Excludes2`, FY2026↔FY2027 code drift, 7-axis ICD-10-PCS, CMS Table of Drugs & Neoplasms sequencing, HCPCS Level II NCCI PTP & MUE edits, and UB-04/837 claim scrubbing & refusal traps. |
|
| 44 |
+
| `v2_holdout` | **540** | 8 pillars (`45`–`105` cases each) | Expanded multi-track holdout including self-contained coding logic, adversarial traps (`90` traps), cross-year CMS schedule drift, and multi-code claim scrub scenarios. |
|
| 45 |
+
|
| 46 |
+
## 2. Strict Clean-Room IP & Licensing Firewall
|
| 47 |
+
|
| 48 |
+
MedCodeBench enforces an automated, zero-exception clean-room boundary:
|
| 49 |
+
|
| 50 |
+
- **100% US Government Public-Domain CMS Ground Truth:** All clinical codes, tabular instructions, `Excludes1`/`Excludes2` links, drug/neoplasm tables, 7-axis PCS tables, and HCPCS Level II NCCI/MUE rules derive strictly from public-domain US CMS FY2026 & FY2027 schedules.
|
| 51 |
+
- **Zero Proprietary Procedure Codes:** Automated clean-room verification confirms **0 proprietary 5-digit or 4-digit+letter procedure tokens** anywhere in this dataset. All `5` (`v1_holdout`) and `25` (`v2_holdout`) out-of-scope refusal-trap inputs use clearly marked synthetic placeholders (`NONCMS-PROC-001`..`NONCMS-PROC-030`) with expected status `REFUSE_OUT_OF_SCOPE_NON_CMS`.
|
| 52 |
+
- **Zero ODbL / PhysioNet Clinical Text Redistribution:** Held-out Layer 2 MIMIC-IV Demo 2.2 clinical chart evaluation (`123` inpatient admissions, `734` gold ICD-10-CM diagnoses) is **not** redistributed here. Use the bundled `reproduce_mimic_eval.py` guide to fetch official PhysioNet MIMIC-IV Demo 2.2 directly under PhysioNet's ODbL license and evaluate any Hugging Face model identically.
|
| 53 |
+
|
| 54 |
+
## 3. Schema
|
| 55 |
+
|
| 56 |
+
Each JSONL row in `data/v1_holdout.jsonl` and `data/v2_holdout.jsonl` contains:
|
| 57 |
+
|
| 58 |
+
- `id` (`string`): Stable unique case ID (`mcb_v1_0001`..`mcb_v1_0240`, `mcb_v2_0001`..`mcb_v2_0540`).
|
| 59 |
+
- `split` (`string`): `v1_holdout` or `v2_holdout`.
|
| 60 |
+
- `pillar` (`string`): One of the 8 clinical coding audit pillars.
|
| 61 |
+
- `eval_track` / `subtrack` (`string`): Track classification for stratified reporting.
|
| 62 |
+
- `mode` (`string`): Audit operation mode (`audit`, `pcs`, `drug`, `neoplasm`, `ncci`, `scrub`).
|
| 63 |
+
- `request_json` (`string`): Canonical JSON input payload specifying fiscal year, codes, clinical scenario, or claim bundle.
|
| 64 |
+
- `expected_json` (`string`): Deterministic CMS ground-truth audit verdict.
|
| 65 |
+
|
| 66 |
+
## 4. Quick Load with `datasets`
|
| 67 |
+
|
| 68 |
+
```python
|
| 69 |
+
from datasets import load_dataset
|
| 70 |
+
import json
|
| 71 |
+
|
| 72 |
+
ds = load_dataset("CaleraLabs/medcodebench")
|
| 73 |
+
sample = ds["v1_holdout"][0]
|
| 74 |
+
print(sample["id"], sample["pillar"])
|
| 75 |
+
print("Request:", json.loads(sample["request_json"]))
|
| 76 |
+
print("Expected:", json.loads(sample["expected_json"]))
|
| 77 |
+
```
|