Drugs and formularies

Part D plan dimension (CMS SPUF)

drug_silver.dim_part_d_plan·live·silver·Part D Plans & Formularies
Rows
160,922
Columns
29
History
N/A
Card
nocolumns only
Typed tools
1

What it is

  1. 1The Part D plan-identity dim from CMS SPUF: the plan -> formulary bridge and carrier/plan attribution for the whole SPUF family.
  2. 2Columns (from DIM_PART_D_PLAN_SCHEMA in pipelines/drug/silver/spuf_writers.py): contract_name, plan_name, formulary_id, premium, deductible, ma_region_code, pdp_region_code, snp, plan_suppressed_yn, plan_type, plus the is_current vintage flag.
  3. 3Resolve contract_id/plan_id -> formulary_id here before joining fact_drug_formulary.
  4. 4Geography (state, county_code) is NOT here — it moved to fact_part_d_plan_service_area on 2026-05-17 after Gate A.5 caught 4,587 PK collisions (one dim row was being written once per served county).

Grain

KeyGrain
N/A
  1. 1One row per (contract_id, plan_id, segment_id, report_quarter).

Columns (29)

ColumnTypeMeaning
contract_idstring
plan_idstring
segment_idstring
report_quarterstring
contract_namestring
plan_namestring
formulary_idstring
premiumdouble
deductibledouble
ma_region_codestring
pdp_region_codestring
snpstring
plan_suppressed_ynboolean
plan_typestring
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.dim_part_d_plan")     # the card, live
query_substrate(sql="SELECT * FROM drug_silver.dim_part_d_plan WHERE <filter> LIMIT 100")
ItemValue
Typed tools that read itformulary_churn
Identity keycontract_id,plan_id,segment_id
Joinhow_to_join(source_fqn="drug_silver.dim_part_d_plan")
Raw doorTools: plan_landscape, cost_share_lens, pricing_lens (+ all formulary tools resolve plan->formulary here); Athena: drug_silver.dim_part_d_plan (filter is_current = true)
NoteSPUF plan-identity dim shared by cost_share_lens, pricing_lens, and (for plan->formulary) the formulary tools; filter is_current = true. plan_landscape and formulary_coverage_lookup read drug_silver.vw_dim_part_d_plan_v3 since 2026-09-30 (PDPM-1); this table is unchanged and stays the physical storage.

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