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 |
+
task_categories:
|
| 13 |
+
- text-generation
|
| 14 |
+
pretty_name: "Lab Test CPT Coder (CLFS 2026)"
|
| 15 |
+
size_categories:
|
| 16 |
+
- n<1K
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
+
# Lab Test CPT Coder (CLFS 2026)
|
| 20 |
+
|
| 21 |
+
Part of the **[AxisMapper Medical AI Suite](https://huggingface.co/collections/AmareshHebbar/axiomapper-medical-ai-suite)** — 16 domain-specific SFT datasets for fine-tuning medical LLMs.
|
| 22 |
+
|
| 23 |
+
**Built by [AmareshHebbar](https://huggingface.co/AmareshHebbar) | Studio Ilios / Humanova Minds**
|
| 24 |
+
|
| 25 |
+
---
|
| 26 |
+
|
| 27 |
+
## What this dataset does
|
| 28 |
+
|
| 29 |
+
Lab test descriptions → CPT code + Medicare payment rate (CY2026)
|
| 30 |
+
|
| 31 |
+
## Why download this
|
| 32 |
+
|
| 33 |
+
Automate laboratory billing, build lab test lookup tools, verify CPT codes for clinical laboratory tests under the Medicare CLFS.
|
| 34 |
+
|
| 35 |
+
## Dataset stats
|
| 36 |
+
|
| 37 |
+
| Split | Rows |
|
| 38 |
+
|-------|------|
|
| 39 |
+
| Train | 0 |
|
| 40 |
+
| Validation | 0 |
|
| 41 |
+
| Test | 1 |
|
| 42 |
+
| **Total** | **1** |
|
| 43 |
+
|
| 44 |
+
## Data format
|
| 45 |
+
|
| 46 |
+
Every row is a `messages` list in chat format — compatible with **Unsloth**, **TRL SFTTrainer**, **LLaMA-Factory**, and any OpenAI-style fine-tuning pipeline:
|
| 47 |
+
|
| 48 |
+
```json
|
| 49 |
+
{
|
| 50 |
+
"messages": [
|
| 51 |
+
{"role": "system", "content": "You are a ..."},
|
| 52 |
+
{"role": "user", "content": "Lab test: Comprehensive metabolic panel"},
|
| 53 |
+
{"role": "assistant", "content": "CPT Code: 80053
|
| 54 |
+
Test: Comprehensive metabolic panel
|
| 55 |
+
Medicare Payment Rate (CY2026): $14.52
|
| 56 |
+
Source: CMS CLFS CY2026"}
|
| 57 |
+
]
|
| 58 |
+
}
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
## Data source
|
| 62 |
+
|
| 63 |
+
**CMS Clinical Diagnostic Laboratory Fee Schedule CY2026**
|
| 64 |
+
→ https://www.cms.gov/medicare/payment/fee-schedules/clinical-laboratory
|
| 65 |
+
|
| 66 |
+
All data is extracted from authoritative public sources. No LLM-generated or synthetic content.
|
| 67 |
+
|
| 68 |
+
## Who should use this
|
| 69 |
+
|
| 70 |
+
Lab billing teams, hospital laboratory directors, clinical lab LIS vendors.
|
| 71 |
+
|
| 72 |
+
## Quick start
|
| 73 |
+
|
| 74 |
+
```python
|
| 75 |
+
from datasets import load_dataset
|
| 76 |
+
|
| 77 |
+
ds = load_dataset("AmareshHebbar/loinc-coder-sft")
|
| 78 |
+
print(ds["train"][0])
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
## Fine-tuning example (Unsloth)
|
| 82 |
+
|
| 83 |
+
```python
|
| 84 |
+
from unsloth import FastLanguageModel
|
| 85 |
+
from trl import SFTTrainer
|
| 86 |
+
from datasets import load_dataset
|
| 87 |
+
|
| 88 |
+
model, tokenizer = FastLanguageModel.from_pretrained(
|
| 89 |
+
model_name="unsloth/Qwen2.5-3B-Instruct",
|
| 90 |
+
max_seq_length=2048,
|
| 91 |
+
load_in_4bit=True,
|
| 92 |
+
)
|
| 93 |
+
|
| 94 |
+
dataset = load_dataset("AmareshHebbar/loinc-coder-sft", split="train")
|
| 95 |
+
|
| 96 |
+
trainer = SFTTrainer(
|
| 97 |
+
model=model,
|
| 98 |
+
tokenizer=tokenizer,
|
| 99 |
+
train_dataset=dataset,
|
| 100 |
+
dataset_text_field="messages",
|
| 101 |
+
max_seq_length=2048,
|
| 102 |
+
)
|
| 103 |
+
trainer.train()
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
## Related datasets in this collection
|
| 107 |
+
|
| 108 |
+
| Dataset | Task | Rows |
|
| 109 |
+
|---------|------|------|
|
| 110 |
+
| [icd10-coder-sft](https://huggingface.co/datasets/AmareshHebbar/icd10-coder-sft) | ICD-10-CM coding | 74.7k |
|
| 111 |
+
| [symptom-diagnoser-sft](https://huggingface.co/datasets/AmareshHebbar/symptom-diagnoser-sft) | Symptom → diagnosis | 119k |
|
| 112 |
+
| [clinical-summarizer-sft](https://huggingface.co/datasets/AmareshHebbar/clinical-summarizer-sft) | SOAP summarization | 30k |
|
| 113 |
+
| [discharge-qa-sft](https://huggingface.co/datasets/AmareshHebbar/discharge-qa-sft) | Discharge summary QA | 30k |
|
| 114 |
+
| [pmjay-classifier-sft](https://huggingface.co/datasets/AmareshHebbar/pmjay-classifier-sft) | PM-JAY packages | 11.1k |
|
| 115 |
+
| [radiology-coder-sft](https://huggingface.co/datasets/AmareshHebbar/radiology-coder-sft) | Radiology coding | 25k |
|
| 116 |
+
| [medical-ner-sft](https://huggingface.co/datasets/AmareshHebbar/medical-ner-sft) | Clinical NER | 16.7k |
|
| 117 |
+
| [hindi-medical-sft](https://huggingface.co/datasets/AmareshHebbar/hindi-medical-sft) | Hindi medical QA | 19.7k |
|
| 118 |
+
|
| 119 |
+
## Citation
|
| 120 |
+
|
| 121 |
+
```bibtex
|
| 122 |
+
@misc{axiomapper2026,
|
| 123 |
+
author = {Hebbar, Amaresh},
|
| 124 |
+
title = {AxisMapper: Medical AI Fine-tuning Dataset Suite},
|
| 125 |
+
year = {2026},
|
| 126 |
+
publisher = {HuggingFace},
|
| 127 |
+
url = {https://huggingface.co/collections/AmareshHebbar/axiomapper-medical-ai-suite}
|
| 128 |
+
}
|
| 129 |
+
```
|
| 130 |
+
|
| 131 |
+
---
|
| 132 |
+
|
| 133 |
+
*AxisMapper is an open-source project. Star the repo, open issues, and contribute at [GitHub](https://github.com/amareshhebbar/AxisMapper).*
|