Drugs and formularies
Part D plan drug pricing (CMS SPUF)
Rows
1,593,644,611
Columns
23
History
N/A
Card
nocolumns only
Typed tools
0
What it is
- 1Plan x NDC unit-cost fact from CMS SPUF — THE BIG ONE (~43M-61M rows/quarter).
- 2Columns: contract_id, plan_id, segment_id, ndc11, days_supply, report_quarter, unit_cost (USD), methodology_era, plus is_current.
- 3The unit-cost / pricing-trend / plan-to-plan variance axis.
- 4Resolve brand_name -> NDC via dim_drug_label (uncatalogued shared label dim) and plan identity via dim_part_d_plan.
Grain
| Key | Grain |
|---|---|
| N/A |
|
Columns (23)
| Column | Type | Meaning |
|---|---|---|
contract_id | string | |
plan_id | string | |
segment_id | string | |
ndc11 | string | |
days_supply | int | |
report_quarter | string | |
unit_cost | double | |
methodology_era | string | |
observed_period | date | |
asserted_at | date | |
effective_period_start | date | |
effective_period_end | date | |
cms_vintage_sequence | int | |
parse_revision | int | |
parser_artifact_hash | string | |
source_url | string | |
sha256_content_hash | string | |
source_id | string | |
is_current | boolean | |
bronze_object_key | string | |
s3_version_id | string | |
vintage_tag | string | |
drug_source_version_id | string |
Query it
describe_data_source(source_fqn="drug_silver.fact_part_d_plan_drug_pricing") # the card, live query_substrate(sql="SELECT * FROM drug_silver.fact_part_d_plan_drug_pricing WHERE <filter> LIMIT 100")
| Item | Value |
|---|---|
| Typed tools that read it | none; raw SQL |
| Identity key | contract_id,plan_id,segment_id,ndc11 |
| Join | how_to_join(source_fqn="drug_silver.fact_part_d_plan_drug_pricing") |
| Raw door | Tools: pricing_lens, formulary_coverage_lookup; Athena: drug_silver.fact_part_d_plan_drug_pricing (filter is_current = true; ALWAYS pin report_quarter — 1.59B rows) |
| Note | SPUF pricing fact; the cross-cut companion to formulary_coverage_lookup. dim_drug_label (brand->NDC) stays uncatalogued — shared cross-cutting label dim. Filter is_current = true. |
This page as markdown: /docs-md/data/drug_silver_fact_part_d_plan_drug_pricing.md · every page in one file: /llms-full.txt