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.
python3 mrf_lint.py hospital.csv --out findings.json
python3 mrf_lint.py hospital.csv --prior prior-hospital.csv --jump-percent 50JSON 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.
python3 test_mrf_lint.pyThis 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.