MERIDIANDIGITAL HEALTH

PRICE TRANSPARENCY

How To Create A cms-hpt.txt File With A Working Example

What the CMS cms-hpt.txt file is, the five required fields, a copy-ready example, where to put it, and the mistakes that stop CMS from finding your machine-readable file.

Key Takeaways

  • cms-hpt.txt is a small plain-text file at the root of your website that tells CMS where your machine-readable file (MRF) lives.
  • Each hospital location needs five lines: location-name, source-page-url, mrf-url, contact-name, and contact-email.
  • Pair it with a “Price Transparency” link in your homepage footer, and update it whenever your file name or address changes.

What the cms-hpt.txt file does

Under the federal Hospital Price Transparency rule (45 CFR Part 180), hospitals publish a machine-readable file of standard charges. Since January 1, 2024, CMS has also required a plain-text file named cms-hpt.txt at the root of the hospital's public website, plus a “Price Transparency” link in the homepage footer.

The text file works like a signpost. It lets CMS and automated tools find each location's machine-readable file without hunting through your site.

The five required fields

  • location-name: the hospital location's name, as it appears in your file.
  • source-page-url: the public web page where the machine-readable file is posted.
  • mrf-url: the direct address of the machine-readable file itself, not a landing page.
  • contact-name: the person responsible for the file.
  • contact-email: an email address for questions about the file.

A copy-ready example

For a single location, the whole file is five lines:

location-name: Example General Hospital
source-page-url: https://www.examplehospital.org/price-transparency
mrf-url: https://www.examplehospital.org/files/12-3456789_example-general-hospital_standardcharges.json
contact-name: Jane Doe
contact-email: pricetransparency@examplehospital.org

Hospitals with several locations repeat the same five lines for each location, separated by a blank line.

Step by step

  1. Confirm the final address of each location's machine-readable file. Use the direct file link, ending in .json or .csv, not the page that links to it.
  2. Create a plain-text file named exactly cms-hpt.txt (lowercase) and add the five lines for each location.
  3. Upload it to the root of your public website, so it opens at yourdomain.org/cms-hpt.txt.
  4. Add a link labeled “Price Transparency” to your homepage footer, pointing to the page that hosts the file.
  5. Open yourdomain.org/cms-hpt.txt in a browser to confirm it loads as plain text, then run a free check.

Common mistakes

  • The file sits in a subfolder (for example /files/cms-hpt.txt) instead of the site root.
  • mrf-url points to a landing page or a login screen instead of the file itself.
  • The file was renamed or moved after an annual update, but cms-hpt.txt still lists the old address.
  • The web server returns an HTML error page or a redirect loop instead of the text file.
  • The footer link is added by JavaScript only, so automated checks may not see it.

Keep it current

The file is only useful if it stays accurate. Build it into the same annual process that updates your machine-readable file, and check it again after any website redesign or hosting change.

Common questions

Where exactly does the cms-hpt.txt file go?

At the root of the hospital's public website, so it opens at yourdomain.org/cms-hpt.txt.

Does every location need its own entry?

Yes. Repeat the five lines for each hospital location, separated by a blank line.

Is the cms-hpt.txt file the same as the machine-readable file?

No. The text file only points to where each machine-readable file is posted; the machine-readable file contains the standard charges.

Sources

General information, not legal or regulatory advice. CMS requirements change; confirm specifics against current CMS rules for your organization.

CMS Update, Once A Month

Upcoming CMS dates, new plain-language guides, and one practical tip, from Ahmar Wazir. No spam; unsubscribe anytime.

See our privacy notice.

  1. UnderstandWhat the CMS requirement means for you.
  2. AdviseThe practical fix, scoped and prioritized.
  3. ExecuteHands-on delivery with your team and vendors.
  4. MaintainMonitoring and support so it keeps working.

Find The Reporting Or Workflow Issue Worth Fixing First.

Book a free 30-minute Advisory Session with Ahmar. You'll get a written summary of your top priorities and recommended next steps within 2 business days.

Book a Free Price Transparency Review

Free · 30 minutes with Ahmar · Written summary of what to fix first in your price transparency files within 2 business days. What's included

We sign BAAs Client data encrypted Maryland-based Security & data handling