> For the complete documentation index, see [llms.txt](https://docs.dataplex-consulting.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dataplex-consulting.com/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/medicare-hospital-spending-by-claim.md).

# Medicare Hospital Spending by Claim

Part of the [CMS Data Feeds Dataset](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog.md) › Medicare

Dataplex delivers this CMS feed as the analysis-ready table `DWV.MEDICARE_HOSPITAL_SPENDING_BY_CLAIM` on Snowflake and Databricks — three snapshot releases spanning 2024–2026, aligned to a single schema, refreshed automatically whenever CMS publishes a new file. Every row carries lineage back to the exact CMS source file that produced it.

## Key facts

|                    |                                                      |
| ------------------ | ---------------------------------------------------- |
| **Snowflake**      | `DWV.MEDICARE_HOSPITAL_SPENDING_BY_CLAIM`            |
| **Databricks**     | `cms_dwv.medicare_hospital_spending_by_claim`        |
| **Update pattern** | Full-refresh — each file replaces the prior snapshot |
| **CMS published**  | 2026-01-26                                           |
| **Loaded**         | 2026-02-28                                           |
| **Columns**        | 13 data + 6 lineage                                  |
| **File versions**  | 3                                                    |
| **License**        | CMS public data — U.S. Government work               |
| **Platforms**      | Snowflake Marketplace · Databricks Delta Sharing     |

Included in the CMS Data Feeds Dataset — [start a free trial on Snowflake Marketplace](https://app.snowflake.com/marketplace/listing/GZT1Z125KDH/dataplex-consulting-data-products-cms-data-feeds-dataset).

{% hint style="success" %}
**Current** — CMS last published this feed on 2026-01-26. Coverage runs through 2026-01-26. Next CMS release expected \~Feb 2027.
{% endhint %}

{% hint style="info" %}
**Full-refresh feed** — each file version is a complete snapshot and newer files supersede older ones. Filter to the latest file (see the sample query) to avoid double-counting across versions.
{% endhint %}

## Sample queries

{% tabs %}
{% tab title="Snowflake" %}

```sql
-- Latest snapshot only (avoids double-counting across file versions)
SELECT *
FROM DWV.MEDICARE_HOSPITAL_SPENDING_BY_CLAIM
WHERE FILE_ID IN (
  SELECT ID FROM DWV.FEEDS_FILES WHERE IS_LATEST = 1
)
LIMIT 100;
```

{% endtab %}

{% tab title="Databricks" %}

```sql
-- Latest snapshot only (avoids double-counting across file versions)
SELECT *
FROM cms_dwv.medicare_hospital_spending_by_claim
WHERE file_id IN (
  SELECT id FROM cms_dwv.feeds_files WHERE is_latest = 1
)
LIMIT 100;
```

{% endtab %}
{% endtabs %}

## About this feed

> The data displayed here describes average spending levels during hospitals' Medicare Spending Per Beneficiary (MSPB) episodes by Medicare claim type. The data presented provide price-standardized, non-risk-adjusted values for hospital spending by claim type because risk adjustment is done at the episode level rather than at the service category/claim level. An MSPB episode includes all Medicare Part A and Part B claims paid during the period from 3 days prior to an inpatient hospital admission through 30 days after discharge.
>
> — *Source: CMS feed metadata*

**Keywords:** Medicare, Medicare Hospital Spending by Claim **Theme:** Medicare

## Coverage timeline

2024 🟩 · 2025 🟩 · 2026 🟩

3 of 3 years with snapshot releases — no gaps.

## Release history

| Reporting period          | CMS published | Loaded     | Latest file |
| ------------------------- | ------------- | ---------- | ----------- |
| Snapshot as of 2026-01-26 | 2026-01-26    | 2026-02-28 | ✓           |
| Snapshot as of 2025-01-08 | 2025-01-08    | 2025-02-27 |             |
| Snapshot as of 2024-01-08 | 2024-01-08    | 2024-12-14 |             |

## Data dictionary

<details>

<summary>📋 <strong>13 data columns + 6 lineage columns</strong></summary>

Column-level definitions are maintained by CMS in the official [Medicare Hospital Spending by Claim data dictionary](https://data.cms.gov/provider-data/dataset/nrth-mfg3).

**Data columns**

| Column                      | Type   |
| --------------------------- | ------ |
| `FACILITY_NAME`             | TEXT   |
| `FACILITY_ID`               | NUMBER |
| `STATE`                     | TEXT   |
| `PERIOD`                    | TEXT   |
| `CLAIM_TYPE`                | TEXT   |
| `AVG_SPNDG_PER_EP_HOSPITAL` | NUMBER |
| `AVG_SPNDG_PER_EP_STATE`    | NUMBER |
| `AVG_SPNDG_PER_EP_NATIONAL` | NUMBER |
| `PERCENT_OF_SPNDG_HOSPITAL` | TEXT   |
| `PERCENT_OF_SPNDG_STATE`    | TEXT   |
| `PERCENT_OF_SPNDG_NATIONAL` | TEXT   |
| `START_DATE`                | DATE   |
| `END_DATE`                  | DATE   |

**Lineage columns** (present on every feed table)

| Column         | Type           | Description                                  |
| -------------- | -------------- | -------------------------------------------- |
| `ROW_ID`       | TEXT           | Unique row ID for this table (PK)            |
| `FILE_ID`      | TEXT           | Source file — joins to `FEEDS_FILES.ID` (FK) |
| `FILE_FEED_ID` | TEXT           | Parent feed — joins to `FEEDS.ID` (FK)       |
| `FILE_NAME`    | TEXT           | Source file name as published by CMS         |
| `ROWNUM`       | NUMBER         | Row number within the source file            |
| `CREATED_AT`   | TIMESTAMP\_NTZ | Timestamp when the record was loaded         |

</details>

## Row-level lineage

Every row in this table traces to the exact CMS source file that produced it. The `FILE_ID` column joins to the `FEEDS_FILES` catalog table, and `FILE_FEED_ID` joins to the `FEEDS` master table:

```mermaid
erDiagram
    FEEDS ||--o{ FEEDS_FILES : "ID = FEED_ID"
    FEEDS ||--o{ MEDICARE_HOSPITAL_SPENDING_BY_CLAIM : "ID = FILE_FEED_ID"
    FEEDS_FILES ||--o{ MEDICARE_HOSPITAL_SPENDING_BY_CLAIM : "ID = FILE_ID"

    FEEDS {
        text ID PK
        text TITLE
        text VIEW_NAME
        text ACCURAL_PERIODICITY
    }
    FEEDS_FILES {
        text ID PK
        text FEED_ID FK
        date TEMPORAL_START
        date TEMPORAL_END
        date CMS_FEED_MODIFIED
        number IS_LATEST
    }
    MEDICARE_HOSPITAL_SPENDING_BY_CLAIM {
        text ROW_ID PK
        text FILE_ID FK
        text FILE_FEED_ID FK
        text FACILITY_NAME
        number FACILITY_ID
        text STATE
        text PERIOD
        number remaining_9_data_columns
    }
```

Trace any row back to its source file and reporting period:

```sql
SELECT d.FACILITY_NAME, d.FACILITY_ID, d.STATE,
       ff.TEMPORAL_START, ff.TEMPORAL_END, ff.CMS_FEED_MODIFIED
FROM DWV.MEDICARE_HOSPITAL_SPENDING_BY_CLAIM d
JOIN DWV.FEEDS_FILES ff ON d.FILE_ID = ff.ID;
```

## Source & provenance

Published by the **Centers for Medicare & Medicaid Services**.

* [Official CMS documentation](https://data.cms.gov/provider-data/dataset/nrth-mfg3)

## Frequently asked questions

### How often is Medicare Hospital Spending by Claim updated?

CMS last published this feed on 2026-01-26. New releases are added automatically when CMS publishes them.

### What years does Medicare Hospital Spending by Claim cover?

2024 through 2026.

### How many records are in Medicare Hospital Spending by Claim?

Count the current snapshot yourself once the share is mounted:

```sql
SELECT COUNT(*)
FROM DWV.MEDICARE_HOSPITAL_SPENDING_BY_CLAIM d
JOIN DWV.FEEDS_FILES ff ON d.FILE_ID = ff.ID
WHERE ff.IS_LATEST = 1;
```

### How do I get Medicare Hospital Spending by Claim data?

It's included in the CMS Data Feeds Dataset on the [Snowflake Marketplace](https://app.snowflake.com/marketplace/listing/GZT1Z125KDH/dataplex-consulting-data-products-cms-data-feeds-dataset) (free trial available) and via [Databricks Delta Sharing](https://checkout.dataplex-consulting.com/b/3cIdR2e1J59Sh2w7pWbQY00). Once mounted, query `DWV.MEDICARE_HOSPITAL_SPENDING_BY_CLAIM` directly — no pipeline setup required.

## Related feeds

{% content-ref url="/pages/J7IhjRAk8B6WfWcKv6kr" %}
[CMS Program Statistics - Medicare SNF Utilization by Facility Type and Bedsize](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/cms-program-statistics-medicare-snf-utilization-by-facility-type-and-bedsize.md)
{% endcontent-ref %}

{% content-ref url="/pages/N6aa3BhB1megK8aKdC8P" %}
[Ambulatory Surgical Center Quality Measures - Facility](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/ambulatory-surgical-center-quality-measures-facility.md)
{% endcontent-ref %}

{% content-ref url="/pages/Bjwa0FP871Qfhdm3R8l6" %}
[Accountable Care Organization Participants](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/accountable-care-organization-participants.md)
{% endcontent-ref %}

{% content-ref url="/pages/Nf5gN0itrgrXqYfvohmR" %}
[Innovation Center Model Participants](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/innovation-center-model-participants.md)
{% endcontent-ref %}

{% content-ref url="/pages/T4w8Iold4mu27PCDN72G" %}
[Medicare Inpatient Hospitals - by Geography and Service](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/medicare-inpatient-hospitals-by-geography-and-service.md)
{% endcontent-ref %}

## Get this feed

1. [Start a free trial on Snowflake Marketplace](https://app.snowflake.com/marketplace/listing/GZT1Z125KDH/dataplex-consulting-data-products-cms-data-feeds-dataset) or purchase via [Databricks](https://checkout.dataplex-consulting.com/b/3cIdR2e1J59Sh2w7pWbQY00)
2. Mount the share — the database and `DWV` schema appear in your account immediately
3. Run the [sample query](#sample-queries) above — no ETL, no pipeline maintenance

Questions about this feed? Contact us at <notifications@dataplex-consulting.com>.

***

Part of the [CMS Data Feeds Dataset](/data-catalog/cms-data-feeds-dataset.md) — 280+ feeds · 245B+ records · updated daily. [Back to the full catalog →](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog.md#medicare-hospital-spending-by-claim)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.dataplex-consulting.com/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/medicare-hospital-spending-by-claim.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
