Skip to content

josephbsmith/mrf-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MRF Reasonableness Linter

Economic-coherence checks for hospital price-transparency files that already pass the CMS validator. Ten rules check duplicate service/payer keys, negative or sentinel amounts, percentile ordering, allowed-count coherence, missing allowed statistics for percentage/algorithm rates, cash and negotiated prices above gross charge, minimum/maximum ordering, medians outside negotiated ranges, and large same-key changes from a prior file.

Run

python3 mrf_lint.py hospital.csv --out findings.json
python3 mrf_lint.py hospital.csv --prior prior-hospital.csv --jump-percent 50

Output

JSON object containing a schema identifier, input file path, and an array of findings. Each finding includes the exact CSV source row, rule ID, severity level, and message. Exit code is 1 if any findings are present, 0 otherwise.

Check

python3 test_mrf_lint.py

The fine print

This does not certify compliance or replace the CMS v3.0 validator. The field names and 2026 allowed-amount logic follow the official CMS technical implementation guide.

About

Economic-coherence checks for CMS hospital price-transparency files.

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages