CMSgov / hpt-validator-cli

CLI for validating CMS Hospital Price Transparency machine-readable files
Other
4 stars 3 forks source link

CSV wide file with missing placeholder items does not throw error #19

Open dvillaveces-tq opened 3 weeks ago

dvillaveces-tq commented 3 weeks ago

Issue Report

Non-compliant csv wide file (due to wrong number of | in column) is currently validated.

Expected behavior

I would expect a csv wide file with no | [plan_name] | to throw an error

Actual behavior

File was validated with no errors

Steps to reproduce the behavior

  1. Using hpt-validator-cli@1.0.13

  2. Download file from https://www.centrahealth.com/sites/default/files/2023-12/540715569_VirginiaBaptistHospital_standardcharges.csv (in https://www.centrahealth.com/financial-policy/pricing-information)

  3. Run cms-hpt-validator 540715569_VirginiaBaptistHospital_standardcharges.csv v2.0.0 (see screenshot) Screenshot 2024-08-29 at 3 37 31 PM

  4. Open file manually to check header, see e.g. Standard_Charge | All_Anthem_Medicare_Advantage_Mediblue_Plans | Negotiated_Dollar, which should be something like Standard_Charge | Anthem | All_Medicare_Advantage_Mediblue_Plans | Negotiated_Dollar