> 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-quarterly-part-b-spending-by-drug.md).

# Medicare Quarterly Part B Spending by Drug

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_QUARTERLY_PART_B_SPENDING_BY_DRUG` on Snowflake and Databricks — coverage from 2025 to 2026 in a single aligned 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_QUARTERLY_PART_B_SPENDING_BY_DRUG`       |
| **Databricks**     | `cms_dwv.medicare_quarterly_part_b_spending_by_drug`   |
| **Coverage**       | Jan 2025 – Mar 2026                                    |
| **Rows**           | 6,882 (total across all reporting periods)             |
| **Cadence**        | Quarterly                                              |
| **Update pattern** | Time-partitioned — each file adds one reporting period |
| **CMS published**  | 2026-07-23                                             |
| **Loaded**         | 2026-07-23                                             |
| **Columns**        | 10 data + 6 lineage                                    |
| **Identifiers**    | HCPCS codes                                            |
| **File versions**  | 4                                                      |
| **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-07-23. Coverage runs through 2026-03-31. Next CMS release expected \~Oct 2026.
{% endhint %}

{% hint style="info" %}
**Time-partitioned feed** — each file version covers one reporting period, so history is additive. Query the full table for all periods; filter on `YEAR` for a single period. Do **not** filter to the latest file only — that would return just the 2026 reporting period.
{% endhint %}

## Sample queries

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

```sql
-- Each file version covers one reporting period (2025, 2026) — history is additive
SELECT *
FROM DWV.MEDICARE_QUARTERLY_PART_B_SPENDING_BY_DRUG
LIMIT 100;
```

{% endtab %}

{% tab title="Databricks" %}

```sql
-- Each file version covers one reporting period (2025, 2026) — history is additive
SELECT *
FROM cms_dwv.medicare_quarterly_part_b_spending_by_drug
LIMIT 100;
```

{% endtab %}
{% endtabs %}

## About this feed

> The Medicare Quarterly Part B Spending by Drug dataset presents information on spending for drugs administered in doctors’ offices and other outpatient settings by physicians and other healthcare providers to Medicare Part B enrollees. It also includes consumer-friendly descriptions of the drug uses, clinical indications, and manufacturer(s).
>
> Drug spending metrics for Part B drugs represent the full value of the product, including the Medicare payment and beneficiary liability. All Part B drug spending metrics are calculated at the HCPCS level.
>
> This dataset reports preliminary data that goes beyond the latest date available in the annual Medicare Part B Spending by Drug dataset. The data are updated each quarter and may change with each new release due to claims lag. Once an entire year of data is available with a sufficient run-out period, that data will move out of the preliminary quarterly dataset and into the annual Medicare Part B Spending by Drug dataset. Due to the preliminary nature of the quarterly dataset, we advise using caution when comparing between the annual and quarterly datasets.
>
> — *Source: CMS feed metadata*

**Keywords:** Medicare, Original Medicare, Drugs **Theme:** Medicare

## Coverage timeline

2025 🟩 · 2026 🟩

2 of 2 years covered — no gaps.

## Release history

| Reporting period        | CMS published | Loaded     | Latest file |
| ----------------------- | ------------- | ---------- | ----------- |
| 2026-01-01 – 2026-03-31 | 2026-07-23    | 2026-07-23 | ✓           |
| 2025-07-01 – 2025-09-30 | 2026-04-30    | 2026-04-30 |             |
| 2025-04-01 – 2025-06-30 | 2026-01-29    | 2026-01-29 |             |
| 2025-01-01 – 2025-03-31 | 2025-12-11    | 2025-12-11 |             |

## Data dictionary

<details>

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

Column-level definitions are maintained by CMS in the official [Medicare Quarterly Part B Spending by Drug data dictionary](https://data.cms.gov/resources/medicare-quarterly-part-b-spending-by-drug-data-dictionary).

**Data columns**

| Column              | Type   |
| ------------------- | ------ |
| `BRND_NAME`         | TEXT   |
| `GNRC_NAME`         | TEXT   |
| `HCPCS_CD`          | TEXT   |
| `HCPCS_DESC`        | TEXT   |
| `YEAR`              | TEXT   |
| `TOT_BENES`         | NUMBER |
| `TOT_CLMS`          | NUMBER |
| `TOT_SPNDNG`        | NUMBER |
| `AVG_SPND_PER_BENE` | NUMBER |
| `AVG_SPND_PER_CLM`  | NUMBER |

**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_QUARTERLY_PART_B_SPENDING_BY_DRUG : "ID = FILE_FEED_ID"
    FEEDS_FILES ||--o{ MEDICARE_QUARTERLY_PART_B_SPENDING_BY_DRUG : "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_QUARTERLY_PART_B_SPENDING_BY_DRUG {
        text ROW_ID PK
        text FILE_ID FK
        text FILE_FEED_ID FK
        text BRND_NAME
        text GNRC_NAME
        text HCPCS_CD
        text HCPCS_DESC
        number remaining_6_data_columns
    }
```

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

```sql
SELECT d.BRND_NAME, d.GNRC_NAME, d.HCPCS_CD,
       ff.TEMPORAL_START, ff.TEMPORAL_END, ff.CMS_FEED_MODIFIED
FROM DWV.MEDICARE_QUARTERLY_PART_B_SPENDING_BY_DRUG d
JOIN DWV.FEEDS_FILES ff ON d.FILE_ID = ff.ID;
```

## Source & provenance

Published by the **Centers for Medicare & Medicaid Services** (bureau 009:38).

* [Official CMS data dictionary](https://data.cms.gov/resources/medicare-quarterly-part-b-spending-by-drug-data-dictionary)
* [Medicare Quarterly Part B Spending by Drug Methodology](https://data.cms.gov/resources/medicare-quarterly-part-b-spending-by-drug-methodology)

## Frequently asked questions

### How often is Medicare Quarterly Part B Spending by Drug updated?

Quarterly. CMS last published this feed on 2026-07-23, and Dataplex loaded it to the warehouse the same day. New releases are added automatically when CMS publishes them.

### What years does Medicare Quarterly Part B Spending by Drug cover?

2025 through 2026.

### How many records are in Medicare Quarterly Part B Spending by Drug?

6,882 rows across all four reporting periods. Because this feed is time-partitioned, the full table total is the meaningful count — no deduplication needed.

### How do I get Medicare Quarterly Part B Spending by Drug 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_QUARTERLY_PART_B_SPENDING_BY_DRUG` directly — no pipeline setup required.

## Related feeds

{% content-ref url="/pages/EZHsX92JxclvaNM15ADH" %}
[Medicare Part B Discarded Drug Units](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/medicare-part-b-discarded-drug-units.md)
{% endcontent-ref %}

{% content-ref url="/pages/xa83xvUUmophjbaKXVRy" %}
[Medicare Part B Spending by Drug](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/medicare-part-b-spending-by-drug.md)
{% endcontent-ref %}

{% content-ref url="/pages/ZANfIXv1rbX1f2uyPWwn" %}
[Opioid Treatment Program Providers](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/opioid-treatment-program-providers.md)
{% endcontent-ref %}

{% content-ref url="/pages/J5DWq8e3q0QGSLNa5lws" %}
[Income and Asset Ownership](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/income-and-asset-ownership.md)
{% endcontent-ref %}

{% content-ref url="/pages/6gwCSLmAsHSaRIGHzRaC" %}
[ACO Realizing Equity, Access and Community Health Providers](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/aco-realizing-equity-access-and-community-health-providers.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-quarterly-part-b-spending-by-drug)


---

# 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-quarterly-part-b-spending-by-drug.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.
