[codex] Add Medicaid medically frail CE exclusion#8578
Draft
daphnehanse11 wants to merge 1 commit into
Draft
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8578 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 2 +1
Lines 19 50 +31
=========================================
+ Hits 19 50 +31
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:
|
487f611 to
0fc72e1
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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