[codex] Add Medicaid medically frail CE exclusion#8578
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8578 +/- ##
============================================
+ Coverage 77.77% 100.00% +22.22%
============================================
Files 1 2 +1
Lines 9 50 +41
============================================
+ Hits 7 50 +43
+ Misses 2 0 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
487f611 to
0fc72e1
Compare
Pair the permanent statute (Pub. L. 119-21 sec. 71119, page 242 - "(V) who is medically frail or otherwise has special medical needs") and the CMS community engagement CIB with the existing IFC anchors, for parity with the sibling Medicaid CE exemption variables. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
MaxGhenis
left a comment
There was a problem hiding this comment.
Reviewed: adds a direct medically-frail / special-medical-needs input as a Medicaid community-engagement exclusion and wires it into medicaid_work_requirement_eligible, with YAML cases covering both the frail-passes and not-frail-fails paths. Input defaults to false so there's no baseline impact. Matches the June 2026 CMS IFC framing of the exclusion as state-list/case-review based. LGTM.
Summary
Closes #8573.
This adds a distinct Medicaid community engagement input for people who are medically frail or have special medical needs, then treats that input as satisfying the federal Medicaid community engagement eligibility check.
The input is intentionally direct rather than derived: the June 1, 2026 CMS IFC ties the full medically frail/special medical needs definition to state condition lists and case review, which is broader than existing disability variables.
Changes
is_medically_frail_or_has_special_medical_needs_for_medicaid_ce.medicaid_work_requirement_eligible.is_disabledis false, while the same adult fails without the exclusion.Validation
/Users/daphnehansell/Documents/GitHub/policyengine-us/.venv/bin/ruff format policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medically_frail_or_has_special_medical_needs_for_medicaid_ce.py policyengine_us/variables/gov/hhs/medicaid/eligibility/medicaid_work_requirement_eligible.py/Users/daphnehansell/Documents/GitHub/policyengine-us/.venv/bin/ruff check policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medically_frail_or_has_special_medical_needs_for_medicaid_ce.py policyengine_us/variables/gov/hhs/medicaid/eligibility/medicaid_work_requirement_eligible.pyuv run python -m policyengine_core.scripts.policyengine_command test policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/medicaid_work_requirement_eligible.yaml -c policyengine_us