Add Medicaid waiver premium rules#8179
Add Medicaid waiver premium rules#8179daphnehanse11 wants to merge 6 commits intoPolicyEngine:mainfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8179 +/- ##
============================================
+ Coverage 86.04% 100.00% +13.95%
============================================
Files 3 5 +2
Lines 43 68 +25
Branches 2 2
============================================
+ Hits 37 68 +31
+ Misses 6 0 -6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Reviewed the PR diff and the cited MI/MT waiver materials before editing. Findings I’m going to patch in a fresh worktree:
Parameter metadata, references, annual/monthly period use, Medicaid premium aggregation, and SPM MOOP wiring otherwise looked structurally sound on this pass. I’m patching the above from a fresh detached worktree off |
|
Code-quality pass pushed in 6ee5913. I replaced boolean member-count checks with tax_unit.any(...), and made the premium formulas name medicaid_magi explicitly before applying the state rate. Focused Medicaid waiver premium/SPM tests pass locally: 16 passed. |
Fixes #8102.
Summary
medicaid_premiumaggregator and covers the SPM MOOP wrapper path.Sources
Tests
uv run --extra dev ruff format policyengine_us/variables/gov/hhs/medicaid/medicaid_premium.py policyengine_us/variables/gov/states/mi/mdhhs/healthy_michigan/is_mi_healthy_michigan_adult.py policyengine_us/variables/gov/states/mi/mdhhs/healthy_michigan/mi_healthy_michigan_contribution.py policyengine_us/variables/gov/states/mt/dphhs/help/is_mt_help_adult.py policyengine_us/variables/gov/states/mt/dphhs/help/mt_help_premium.pyuv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/baseline/gov/states/mi/mdhhs/healthy_michigan/mi_healthy_michigan_contribution.yaml policyengine_us/tests/policy/baseline/gov/states/mt/dphhs/help/mt_help_premium.yaml policyengine_us/tests/policy/baseline/gov/hhs/medicaid/medicaid_premium.yaml policyengine_us/tests/policy/baseline/household/income/spm_unit/spm_unit_medical_out_of_pocket_expenses.yaml -c policyengine_usuv run pytest policyengine_us/tests/test_parameter_files.py -quv run --extra dev ruff check .