|
Download README.md from CaleraLabs/medcodebench: direct link, hf CLI and curl.
- Browser
- Download file 4.06 kB
-
https://huggingface.co/datasets/CaleraLabs/medcodebench/resolve/main/README.md
- Command line
-
hf download hf://datasets/CaleraLabs/medcodebench/README.md
-
curl -L -o README.md https://huggingface.co/datasets/CaleraLabs/medcodebench/resolve/main/README.md
4.06 kB
| license: apache-2.0 | |
| task_categories: | |
| - text-generation | |
| - question-answering | |
| language: | |
| - en | |
| tags: | |
| - medical-coding | |
| - healthcare-rcm | |
| - icd-10-cm | |
| - icd-10-pcs | |
| - hcpcs | |
| - ncci | |
| - cms-public-domain | |
| - clean-room | |
| - calera-bedrock | |
| pretty_name: MedCodeBench v1.0 & v2.0 (Clean-Room CMS Clinical Coding Benchmark) | |
| size_categories: | |
| - n<1K | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: v1_holdout | |
| path: data/v1_holdout.jsonl | |
| - split: v2_holdout | |
| path: data/v2_holdout.jsonl | |
| # MedCodeBench v1.0 & v2.0 (Clean-Room CMS Clinical Coding Benchmark) | |
| **Publisher:** Calera Computing, Inc. (`CaleraLabs`) | |
| **License:** Apache-2.0 (100% US Government public-domain CMS FY2026 & FY2027 coding schedules) | |
| **Paired Flagship Model:** [`CaleraLabs/medcodesec-12b-gguf`](https://huggingface.co/CaleraLabs/medcodesec-12b-gguf) (`PROD-BEDROCK-002`) | |
| **Interactive Arena:** [`CaleraLabs/medcodesec-auditor-arena`](https://huggingface.co/spaces/CaleraLabs/medcodesec-auditor-arena) | |
| ## 1. Benchmark Overview | |
| **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**: | |
| | Split | Cases | Pillars Covered | Scope & Design | | |
| | :--- | :---: | :--- | :--- | | |
| | `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. | | |
| | `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. | | |
| ## 2. Strict Clean-Room IP & Licensing Firewall | |
| MedCodeBench enforces an automated, zero-exception clean-room boundary: | |
| - **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. | |
| - **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`. | |
| - **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. | |
| ## 3. Schema | |
| Each JSONL row in `data/v1_holdout.jsonl` and `data/v2_holdout.jsonl` contains: | |
| - `id` (`string`): Stable unique case ID (`mcb_v1_0001`..`mcb_v1_0240`, `mcb_v2_0001`..`mcb_v2_0540`). | |
| - `split` (`string`): `v1_holdout` or `v2_holdout`. | |
| - `pillar` (`string`): One of the 8 clinical coding audit pillars. | |
| - `eval_track` / `subtrack` (`string`): Track classification for stratified reporting. | |
| - `mode` (`string`): Audit operation mode (`audit`, `pcs`, `drug`, `neoplasm`, `ncci`, `scrub`). | |
| - `request_json` (`string`): Canonical JSON input payload specifying fiscal year, codes, clinical scenario, or claim bundle. | |
| - `expected_json` (`string`): Deterministic CMS ground-truth audit verdict. | |
| ## 4. Quick Load with `datasets` | |
| ```python | |
| from datasets import load_dataset | |
| import json | |
| ds = load_dataset("CaleraLabs/medcodebench") | |
| sample = ds["v1_holdout"][0] | |
| print(sample["id"], sample["pillar"]) | |
| print("Request:", json.loads(sample["request_json"])) | |
| print("Expected:", json.loads(sample["expected_json"])) | |
| ``` | |