Drugs and formularies

Medicare Part D Spending by Drug (PUF), the file's change and CAGR columns named for their window

drug_silver.vw_fact_drug_spending_part_d_v2·live·semantic_view
Rows
71,853
Columns
36
History
N/A
Card
nocolumns only
Typed tools
0

What it is

  1. 1Part D spending by drug and manufacturer per data year, gross of rebates. file_chg_* / file_cagr_* are drug-level constants of the SOURCE FILE, as fractions, repeated on every data_year row: they do not describe the row's year.
  2. 2The change runs DY-1->DY.
  3. 3The CAGR runs from the drug's first year with data (file_cagr_from_year, 2020 for most RY26 drugs, later for drugs new to the market) to DY, over file_cagr_years years; file_cagr_from_year is NULL on 100 data_year-2019 rows whose start year is not held. 'Overall' manufacturer rows are the brand total; filter manufacturer_name or you double count.

Grain

KeyGrain
N/A
  1. 1One row per (brand_name, generic_name, manufacturer_name, data_year); row for row drug_silver.fact_drug_spending_part_d (71,853 = 71,853 rows, total_spending_usd sums equal;
  2. 2Athena 3e7c390d).

Columns (36)

ColumnTypeMeaning
brand_namestring
generic_namestring
manufacturer_namestring
data_yearint
total_manufacturersint
total_spending_usddouble
total_dosage_unitsdouble
total_claimsint
total_beneficiariesint
avg_spend_per_dosage_unit_weighted_usddouble
avg_spend_per_claim_usddouble
avg_spend_per_beneficiary_usddouble
outlier_flagboolean
file_data_year_endint
file_chg_avg_spend_per_dosage_unit_fracdouble
file_chg_from_yearint
file_chg_to_yearint
file_cagr_avg_spend_per_dosage_unit_fracdouble
file_cagr_from_yearint
file_cagr_to_yearint
file_cagr_yearsint
observed_perioddate
asserted_atdate
effective_period_startdate
effective_period_enddate
cms_vintage_sequenceint
parse_revisionint
parser_artifact_hashstring
source_urlstring
sha256_content_hashstring
source_idstring
is_currentboolean
bronze_object_keystring
s3_version_idstring
vintage_tagstring
drug_source_version_idstring

Query it

describe_data_source(source_fqn="drug_silver.vw_fact_drug_spending_part_d_v2")     # the card, live
query_substrate(sql="SELECT * FROM drug_silver.vw_fact_drug_spending_part_d_v2 WHERE <filter> LIMIT 100")
ItemValue
Typed tools that read itnone; raw SQL
Identity keyN/A
Joinhow_to_join(source_fqn="drug_silver.vw_fact_drug_spending_part_d_v2")
Raw doorAthena (read-only via query_substrate): drug_silver.vw_fact_drug_spending_part_d_v2 (filter is_current = true)
NoteVersioned view (Data Tracker drug wave 1B, PR 3114). recall_spend_window and the other spending readers read only columns this view passes through unchanged (total_spending_usd and the counts), so they stay on the table. Versioned, never overwritten.

This page as markdown: /docs-md/data/drug_silver_vw_fact_drug_spending_part_d_v2.md · every page in one file: /llms-full.txt