Drugs and formularies

Part D plan dimension (CMS SPUF), plan type from CMS's organization type, names as CMS wrote them

drug_silver.vw_dim_part_d_plan_v4·live·semantic_view
Rows
166,440
Columns
35
History
N/A
Card
nocolumns only
Typed tools
0

What it is

  1. 1The SPUF Part D plan dim (every column of drug_silver.dim_part_d_plan) with plan_type from CMS's own organization type for the contract, read from CMS Monthly Enrollment by Contract/Plan (medicare_silver.enrollment_monthly_plan): 'MA-PD' (Local CCP, Regional CCP, PFFS, MSA), 'COST' (1876 Cost, HCPP - 1833 Cost), 'DEMO' (Demo: Medicare-Medicaid Plans), 'PACE' (National PACE), 'PDP'. cms_organization_type carries CMS's wording verbatim; plan_type_source says 'cms_contract_file' or, where CMS's contract file has no row for the contract, 'contract_prefix_fallback' (the record layout's H/R = MA, S = PDP rule); contract_id_prefix is the letter alone; plan_type_legacy keeps the stored value, which called every local MA-PD plan 'OTHER'.
  2. 2Plan names carry CMS's accented letters (v4).

Grain

KeyGrain
N/A
  1. 1One row per (contract_id, plan_id, segment_id, report_quarter) among is_current rows;
  2. 20 duplicate keys, 166,440 rows = drug_silver.dim_part_d_plan (Athena 622fdb61-469e-4096-90b8-2719a68c363b).

Columns (35)

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_typevarchar(5)
cms_organization_typestring
plan_type_sourcevarchar(24)
contract_id_prefixstring
plan_type_legacystring
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
plan_name_legacystring
plan_name_sourcevarchar(20)

Query it

describe_data_source(source_fqn="drug_silver.vw_dim_part_d_plan_v4")     # the card, live
query_substrate(sql="SELECT * FROM drug_silver.vw_dim_part_d_plan_v4 WHERE <filter> LIMIT 100")
ItemValue
Typed tools that read itnone; raw SQL
Identity keycontract_id,plan_id,segment_id
Joinhow_to_join(source_fqn="drug_silver.vw_dim_part_d_plan_v4")
Raw doorTools: plan_landscape, formulary_coverage_lookup; Athena: drug_silver.vw_dim_part_d_plan_v4 (filter is_current = true)
NoteVersioned view (Data Tracker small-served-fixes lane, 2026-10-01, defect PDPM-5 history): v3 plus the 121 corrected plan names; v4 minus v3 rows = 0 (Athena 4d442f75). Record docs/reference/source-audit/source-mastery/records/cms_monthly_pdp_formulary.json (served_corrections).

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