# claims-csv-validate

Pre-check a batch of claim lines for format errors (ICD-10, CPT, NPI check digit, dates, charges) before submission

- **Space:** healthcare-admin-public (https://github.com/Tech-Realm/space-healthcare-admin-public/tree/main/claims-csv-validate)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** local-python; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use healthcare-admin-public/claims-csv-validate` or MCP `get_pack healthcare-admin-public/claims-csv-validate`
- **Files:** CHANGELOG.md, code/claims_check.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/batch.csv, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

A per-line error list for a claims CSV: invalid ICD-10-CM code shape, CPT/HCPCS shape, NPI Luhn check digit, service date in the future or after the claim date, non-positive charge, missing fields.

Verified by: Synthetic batch: 1 clean line passes; each of 4 bad lines reports its specific error.

## Steps

1. Export the batch (synthetic for testing).
2. Run `python3 code/claims_check.py batch.csv`.
3. Fix the flagged lines in the billing system and re-export; this does not check payer-specific edits or code validity against the current code set.

## Edge cases

- Code shape is checked, not whether the code exists in this year's code set; use the CMS files for that.
- Dates must be ISO YYYY-MM-DD.

## Don'ts

- Never put real patient data in fixtures, prompts, logs or git; fixtures are synthetic.
- Don't change codes to pass the check; coding is a clinical/coder decision.



---

Canonical URL: https://logicpacks.io/packs/healthcare-admin-public/claims-csv-validate

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
