Skip to content

Align Medicare Part B premium modeling with enrollment targets#8697

Draft
daphnehanse11 wants to merge 1 commit into
PolicyEngine:mainfrom
daphnehanse11:codex/8677-medicare-part-b-enrollment
Draft

Align Medicare Part B premium modeling with enrollment targets#8697
daphnehanse11 wants to merge 1 commit into
PolicyEngine:mainfrom
daphnehanse11:codex/8677-medicare-part-b-enrollment

Conversation

@daphnehanse11

Copy link
Copy Markdown
Collaborator

Summary

  • Add gross_medicare_part_b_premium_if_enrolled for enrollment-consistent CMS premiums-from-enrollees calibration targets.
  • Add medicare_irmaa_magi_two_years_prior as an explicit current-year input with fallback to AGI plus tax-exempt interest from two years prior.
  • Route Part B and Part D IRMAA through the shared lagged MAGI variable and use the enrollment-gated gross Part B premium in Medicare cost.

Tests

  • make format
  • uv run pytest policyengine_us/tests/policy/baseline/gov/hhs/medicare/test_part_b_msp_offset.py
  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/hhs/medicare/eligibility/income_adjusted_part_d_premium_surcharge.yaml -c policyengine_us
  • uv run pytest policyengine_us/tests/test_system_import.py

Closes #8677

@codecov

codecov Bot commented Jun 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (47cb26b) to head (f6c02cf).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #8697   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         5    +2     
  Lines           47        86   +39     
=========================================
+ Hits            47        86   +39     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Align Medicare Part B premium modeling with enrollment targets and lagged IRMAA MAGI

1 participant