The cmsmrf database represents published CMS Hospital Price
Transparency (HPT) JSON v3 disclosures through source-aware relations.
The model preserves separate service, code, charge, payer-term, and modifier
grains, with compact file-scoped positional keys. It does not infer unique
real-world services, payers, or prices from repeated labels or codes.
Details
The authoritative, complete relational contract is the package vignette
HPT JSON Relational Data Model. It defines 12 source-derived relations and
four package-generated relations for database context, attempted files,
materialized row counts, and processing findings. source_file.file_id
identifies attempted inputs in one-based order; source records retain
file-scoped positional keys. The vignette gives grains, columns, logical
types, keys, JSON mappings, pricing meanings, and limitations against the
pinned CMS schema and dictionary returned by mrf_specification().
mrf_parse() creates this database structure from one or more local JSON v3
sources and populates all approved source fields and relations. The
conditional charge_modifier.modifier_id link is populated only for a
unique same-file root code match; unresolved source references remain with
a NULL link and a finding. source_file.sha256 fingerprints supplied file
bytes when obtainable; it does not identify source records. A successful
extraction may have no findings, which does not establish CMS conformance.
Open the full contract from an installed package with
vignette("data-model", package = "cmsmrf"), or read it on the
package website.
For a guided first workflow, see vignette("cmsmrf", package = "cmsmrf").
