{
  "name": "medicare-part-d-drug-spending",
  "title": "Medicare Part D Drug Spending by Drug and Manufacturer (CMS), 2020-2024",
  "description": "Gross spending, dosage units, claims and beneficiaries for drugs included in CMS's 2024 Medicare Part D release, retaining years with reported spending, by brand name, generic name and manufacturer, for each benefit year in CMS's current five-year release (2020-2024), with CMS's claim-weighted average spending per dosage unit, average spending per claim and per beneficiary, and outlier flags. Spending is the gross drug cost (ingredient cost, dispensing fees, sales tax and vaccine administration fees, paid by plans and beneficiaries) before manufacturer rebates and other price concessions, which CMS is prohibited from disclosing: it is not the net cost to Medicare. One tidy table in long format; CMS's 'Overall' row for each drug (all manufacturers combined) is kept and flagged. Source: Centers for Medicare & Medicaid Services (CMS), Medicare Part D Spending by Drug, data.cms.gov. Updated annually. The spending-only filter omits 237 Overall drug-year records that contain beneficiary counts but no spending; those counts remain available in the archived source. Blank spending must not be interpreted as zero spending or fewer than 11 beneficiaries.",
  "status": "monitored",
  "licenses": [
    {
      "name": "US-PD",
      "title": "Public domain: work of the US federal government (CMS). data.cms.gov's catalog labels every distribution of this dataset with https://www.usa.gov/government-works (US government works are not subject to copyright in the US). Please cite CMS as the source.",
      "path": "https://www.usa.gov/government-copyright"
    }
  ],
  "sources": [
    {
      "title": "Centers for Medicare & Medicaid Services (CMS), Office of Enterprise Data and Analytics: Medicare Part D Spending by Drug (annual release, data year 2024, published June 2026)",
      "path": "https://data.cms.gov/summary-statistics-on-use-and-payments/medicare-medicaid-spending-by-drug/medicare-part-d-spending-by-drug"
    },
    {
      "title": "CMS data API: dataset resources for the annual release (CSV, data dictionary, methodology)",
      "path": "https://data.cms.gov/data-api/v1/dataset-resources/7e0b4365-fd63-4a29-8f5e-e0ac9f66a81b"
    },
    {
      "title": "CMS, Medicare Part D Spending by Drug Methodology",
      "path": "https://data.cms.gov/resources/medicare-part-d-spending-by-drug-methodology"
    }
  ],
  "upkeep": { "mode": "living", "refresh": "annual", "workflow": ".github/workflows/update.yml" },
  "resources": [
    {
      "path": "data/drug-spending.csv",
      "name": "drug-spending",
      "title": "Medicare Part D gross spending by drug, manufacturer and year",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          { "name": "year", "type": "integer", "description": "Benefit (calendar) year." },
          { "name": "brand_name", "type": "string", "description": "Brand name of the drug as CMS publishes it (generic drugs carry their generic name here). A trailing '*' means the average spending per dosage unit combines several routes of administration (e.g. intravenous and subcutaneous) with different unit prices; see multiple_routes." },
          { "name": "generic_name", "type": "string", "description": "Generic name (active ingredient), as CMS publishes it." },
          { "name": "manufacturer", "type": "string", "description": "Manufacturer name as CMS publishes it, or 'Overall' for CMS's row combining all manufacturers of this brand name and generic name." },
          { "name": "is_overall", "type": "boolean", "description": "true for CMS's 'Overall' row (all manufacturers combined). Sum or rank only these rows to avoid double counting; Manufacturer spending, claims and dosage units sum to the Overall figures within source rounding; beneficiary counts and averages are not additive." },
          { "name": "manufacturer_count", "type": "integer", "description": "Number of manufacturers of this drug in the release (CMS Tot_Mftr), on Overall rows only; empty on manufacturer rows." },
          { "name": "multiple_routes", "type": "boolean", "description": "true when brand_name ends in '*' (CMS: average spending per dosage unit reflects multiple routes of administration)." },
          { "name": "total_spending_usd", "type": "number", "description": "Total gross Part D drug spending in the year, US dollars (CMS Tot_Spndng): gross drug cost including ingredient cost, dispensing fees, sales tax and vaccine administration fees, paid by Part D plans and beneficiaries. Before manufacturer rebates and other price concessions; not the net cost." },
          { "name": "total_dosage_units", "type": "number", "description": "Dosage units dispensed in the year (tablets, grams, millilitres or other units, the lowest dispensable amount) (CMS Tot_Dsg_Unts). Units differ between drugs, so do not add across drugs." },
          { "name": "total_claims", "type": "integer", "description": "Prescription fills, original and refills (CMS Tot_Clms). CMS applies its fewer-than-11-claims exclusion and earlier-year redaction rules at the brand-name/generic-name/manufacturer level." },
          { "name": "total_beneficiaries", "type": "integer", "description": "Number of Part D beneficiaries who used the drug in the year (CMS Tot_Benes). Empty where CMS left it blank: in this release no published count is below 11, consistent with suppression of small counts. The suppression explanation is our inference. Beneficiaries can use several drugs, so do not add across drugs." },
          { "name": "avg_spending_per_dosage_unit_weighted_usd", "type": "number", "description": "CMS's claim-weighted average spending per dosage unit, US dollars (Avg_Spnd_Per_Dsg_Unt_Wghtd): spending per unit at each strength, form, route and manufacturer, weighted by claims. Not generally equal to total_spending_usd / total_dosage_units." },
          { "name": "avg_spending_per_claim_usd", "type": "number", "description": "Total spending divided by total claims, US dollars (CMS Avg_Spnd_Per_Clm)." },
          { "name": "avg_spending_per_beneficiary_usd", "type": "number", "description": "Total spending divided by the number of beneficiaries, US dollars (CMS Avg_Spnd_Per_Bene). Empty where CMS leaves total_beneficiaries blank." },
          { "name": "outlier_flag", "type": "integer", "constraints": { "enum": [0, 1] }, "description": "CMS outlier flag: 1 when the drug's average spending per dosage unit is substantially affected by outlier records (likely wrong dosage unit values) in the year; use that value with caution. Empty where CMS left it blank (a few Overall rows with 11 claims)." }
        ],
        "primaryKey": ["year", "brand_name", "generic_name", "manufacturer"]
      }
    }
  ]
}
