Skip to content

Refine AK, AL, and DE SSP living arrangement modeling#7998

Open
hua7450 wants to merge 8 commits intoPolicyEngine:mainfrom
hua7450:add-state-ssp-living-arrangement
Open

Refine AK, AL, and DE SSP living arrangement modeling#7998
hua7450 wants to merge 8 commits intoPolicyEngine:mainfrom
hua7450:add-state-ssp-living-arrangement

Conversation

@hua7450
Copy link
Copy Markdown
Collaborator

@hua7450 hua7450 commented Apr 14, 2026

Summary

  • Adopt state-scoped variable names for state SSP concepts per naming rubric (e.g., ak_resides_in_assisted_living_home instead of ssi_lives_in_assisted_living, al_ssp_payment_category instead of al_ssp_living_arrangement)
  • Rework AL SSP to use a two-layer care-setting → payment-category model with waiver/SNF gating and grandfathered cohort logic
  • Add formula to AK ak_ssp_living_arrangement that derives the enum from federal and state inputs
  • Rename DE RESIDENTIAL_CARE to CERTIFIED_ADULT_CARE_SETTING to match POMS description; upgrade references to Delaware Code and POMS payment levels table
  • Simplify DE de_ssp formula with defined_for = "de_ssp_eligible" gate

Note: More states' SSP living arrangement adjustments may be added to this PR.

Test plan

  • AK SSP: 54 tests pass
  • AL SSP: 44 tests pass
  • DE SSP: 21 tests pass
  • CI passes

🤖 Generated with Claude Code

Use state-scoped variable names for state-specific SSP concepts
(ak_resides_in_assisted_living_home, al_ssp_payment_category, etc.)
instead of fake federal-level names. Rework AL eligibility to model
waiver/SNF gating and grandfathered cohort logic.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (29d1ea6) to head (36e4b9a).
⚠️ Report is 16 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #7998      +/-   ##
===========================================
+ Coverage   96.00%   100.00%   +4.00%     
===========================================
  Files           1        16      +15     
  Lines          25       263     +238     
  Branches        3         0       -3     
===========================================
+ Hits           24       263     +239     
+ Partials        1         0       -1     
Flag Coverage Δ
unittests 100.00% <100.00%> (+4.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.

hua7450 and others added 2 commits April 14, 2026 14:50
…lity logic

Rename RESIDENTIAL_CARE to CERTIFIED_ADULT_CARE_SETTING to match POMS
living arrangement description. Replace WorkWorld references with
Delaware Code Title 16 and POMS payment levels table. Keep
defined_for = StateCode.DE on de_ssp since the formula has marital-unit
aggregation that is clearer with explicit eligibility gating.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Switch de_ssp to defined_for = "de_ssp_eligible" and remove redundant
supplement * eligible multiplication in the return path.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hua7450 hua7450 changed the title Refine AK and AL SSP living arrangement modeling Refine AK, AL, and DE SSP living arrangement modeling Apr 14, 2026
@hua7450 hua7450 marked this pull request as ready for review April 14, 2026 18:57
hua7450 and others added 3 commits April 14, 2026 15:39
Replace direct ssi_lives_in_medical_treatment_facility &
ssi_medicaid_pays_majority_of_care with the federal enum variable
that already combines both. Same logic, less code.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…comment

AK: Use ssi_federal_living_arrangement for both MEDICAID_FACILITY and
ANOTHER_PERSONS_HOUSEHOLD, ensuring the one-third reduction conditions
(shelter + meals) are required. Add test for partial conditions.

DE: Add comment explaining why no uncapped_ssi > 0 check is needed,
citing WorkWorld source.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

2 participants