Skip to content

Model Medicaid CE 1115 comparable adults#8505

Merged
MaxGhenis merged 1 commit into
PolicyEngine:mainfrom
daphnehanse11:codex/issue-8271-medicaid-ce-1115
May 27, 2026
Merged

Model Medicaid CE 1115 comparable adults#8505
MaxGhenis merged 1 commit into
PolicyEngine:mainfrom
daphnehanse11:codex/issue-8271-medicaid-ce-1115

Conversation

@daphnehanse11
Copy link
Copy Markdown
Collaborator

Summary

Closes #8271.

This scopes Medicaid community engagement/work-requirement applicability through a dedicated variable instead of checking only the ACA adult category inline.

  • Adds is_medicaid_1115_mec_adult as an explicit person-level input for section 1115 demonstration adults receiving minimum essential coverage and not otherwise eligible under the Medicaid state plan.
  • Adds SECTION_1115_MEC_ADULT to medicaid_category and includes it in covered Medicaid categories.
  • Adds is_medicaid_work_requirement_applicable_adult, covering ACA adult group and section 1115 MEC adult categories.
  • Updates is_medicaid_eligible so work requirements apply to both applicable adult groups while parents, children, pregnant people, SSI recipients, and senior/disabled categories remain outside the applicability variable.

Validation

  • uv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/is_medicaid_work_requirement_applicable_adult.yaml policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/categories/medicaid_category.yaml policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/is_medicaid_eligible.yaml -c policyengine_us
    • 41 passed.
  • uv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility -c policyengine_us
    • 174 passed.
  • uv run --extra dev ruff format policyengine_us/variables/gov/hhs/medicaid/eligibility/categories/is_medicaid_1115_mec_adult.py policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medicaid_work_requirement_applicable_adult.py policyengine_us/variables/gov/hhs/medicaid/eligibility/categories/medicaid_category.py policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medicaid_eligible.py
  • uv run --extra dev ruff check policyengine_us/variables/gov/hhs/medicaid/eligibility/categories/is_medicaid_1115_mec_adult.py policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medicaid_work_requirement_applicable_adult.py policyengine_us/variables/gov/hhs/medicaid/eligibility/categories/medicaid_category.py policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medicaid_eligible.py
    • All checks passed.
  • uv run pytest policyengine_us/tests/test_parameter_files.py policyengine_us/tests/test_system_import.py -q
    • 10 passed.
  • git diff --check

@codecov
Copy link
Copy Markdown

codecov Bot commented May 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0a1a9e3) to head (987b7b0).
⚠️ Report is 19 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #8505   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         4    +3     
  Lines           14        72   +58     
  Branches         0         2    +2     
=========================================
+ Hits            14        72   +58     
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 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 force-pushed the codex/issue-8271-medicaid-ce-1115 branch from 3c8551a to 987b7b0 Compare May 27, 2026 12:15
@MaxGhenis MaxGhenis marked this pull request as ready for review May 27, 2026 13:03
Copy link
Copy Markdown
Contributor

@MaxGhenis MaxGhenis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed after rebase and local validation; Medicaid category/work-requirement tests plus full GitHub CI are green.

@MaxGhenis MaxGhenis merged commit 6ef6346 into PolicyEngine:main May 27, 2026
26 checks passed
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.

Medicaid CE: model 1115 comparable adult populations in scope

2 participants