Skip to content

Model Medicaid CE recent incarceration exception#8371

Draft
daphnehanse11 wants to merge 1 commit into
PolicyEngine:mainfrom
daphnehanse11:codex/8268-medicaid-ce-recent-incarceration
Draft

Model Medicaid CE recent incarceration exception#8371
daphnehanse11 wants to merge 1 commit into
PolicyEngine:mainfrom
daphnehanse11:codex/8268-medicaid-ce-recent-incarceration

Conversation

@daphnehanse11
Copy link
Copy Markdown
Collaborator

Summary

Fixes #8268 by modeling the Medicaid community engagement incarceration exclusion/exception.

Regulatory Authority

Modeled Scope

Requirement Implementation Tests
Current inmate exclusion medicaid_work_requirement_eligible reads existing is_incarcerated Case 10
Three-month recent-incarceration exception New was_recently_incarcerated_for_medicaid_ce input and CE rollup condition Case 11
No incarceration fallback No current/recent incarceration leaves nonworking adult ineligible Case 12

Not Modeled

  • Date-based application-month lookback logic.
  • Operational verification or documentation workflows.

Validation

  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/medicaid_work_requirement_eligible.yaml -c policyengine_us -v
  • uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility -c policyengine_us
  • uv run --extra dev ruff format .
  • uv run --extra dev ruff check .

Files Added

  • policyengine_us/variables/gov/hhs/medicaid/eligibility/was_recently_incarcerated_for_medicaid_ce.py
  • changelog.d/8268.fixed.md
  • sources/working_references.md

@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8f458cd) to head (c15c0a3).
⚠️ Report is 28 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #8371   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         2    -2     
  Lines           52        41   -11     
=========================================
- Hits            52        41   -11     
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.

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 recent incarceration exclusion

1 participant