medcodebench / README.md
CaleraComputing's picture
docs: add CMS V44 severity & 2026Q4 MUE bundle 2027.3 alignment transparency note
a949182 verified
|
Raw History Blame Contribute Delete
5.15 kB
metadata
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 (PROD-BEDROCK-002)
Interactive Arena: 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; structured labs/vitals/meds only, no discharge notes) 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.
  • Official CMS V44 Severity & 2026Q4 MUE Alignment Note (Bundle 2027.3): v1_holdout (240 cases) and v2_holdout (540 cases) remain frozen verbatim for exact v1.0 reproducibility. In solver bundle 2027.3, the live Calera ICX Go solver upgraded from the initial curated CC/MCC (38), HAC (10), and HCPCS (67) subsets to the full public-domain CMS MS-DRG V44 CC/MCC list (18,469), full CMS HAC list (3,996), full CMS MCE V44 Manifestation-Only list (3,214), and Jan 2027 HCPCS Level II (7,634 active A–V codes + 4,131 2026Q4 MUE limits). Compared to official CMS V44 & 2026Q4 tables, 4 v1_holdout cases and 18 v2_holdout cases reflect minor historical severity/MUE label deltas (e.g., E11.22/E11.65/E86.0/E87.6/E66.01/D63.0 are NON_CC in official V44; L89.153 is MCC; T80.211A/T81.500A are CC). Those frozen splits are intentionally left unaltered so published v1.0 SHA-256 receipts remain reproducible, while upcoming v2.0 benchmarks use official 2027.3 V44 ground truth.

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

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"]))