Skip to content

Make Medicaid cost if enrolled data-backed#8499

Merged
MaxGhenis merged 4 commits into
mainfrom
medicaid-cost-risk-group
May 25, 2026
Merged

Make Medicaid cost if enrolled data-backed#8499
MaxGhenis merged 4 commits into
mainfrom
medicaid-cost-risk-group

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

@MaxGhenis MaxGhenis commented May 25, 2026

Summary

  • remove the PolicyEngine-US formula for medicaid_cost_if_enrolled so datasets provide the conditional Medicaid cost
  • keep medicaid_cost zero for non-enrollees and using the data input for enrollees
  • compute Medicaid federal share from the legal Medicaid category, so expansion FMAP does not depend on any cost allocation group

Tests

  • uv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/baseline/gov/hhs/medicaid/costs -c policyengine_us

Note: I also started the broader policyengine_us/tests/test_batched.py policyengine_us/tests/policy/baseline/gov/hhs --mode per-subdir; it reached the Medicare subdirectory with no failure output but did not produce progress, so I stopped it and kept the targeted Medicaid suite as the local gate.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.06%. Comparing base (92fdab8) to head (1da04a6).
⚠️ Report is 100 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##              main    #8499       +/-   ##
============================================
- Coverage   100.00%   44.06%   -55.94%     
============================================
  Files            2        3        +1     
  Lines           57       59        +2     
  Branches         1        7        +6     
============================================
- Hits            57       26       -31     
- Misses           0       33       +33     
Flag Coverage Δ
unittests 44.06% <100.00%> (-55.94%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 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.

@MaxGhenis MaxGhenis changed the title Separate Medicaid cost groups from legal categories Make Medicaid cost if enrolled data-backed May 25, 2026
@MaxGhenis MaxGhenis merged commit e73d50a into main May 25, 2026
25 of 26 checks passed
@MaxGhenis MaxGhenis deleted the medicaid-cost-risk-group branch May 25, 2026 21:43
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.

1 participant