California's Medi-Cal immigration test passes pregnant people but not those in the postpartum period

Open Beginner friendly
#11,192 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend, databases

Research direction

Read is_ca_medicaid_immigration_status_eligible.py and the cited postpartum eligibility formula and coverage parameter. Add the California immigration eligibility case for an undocumented 30-year-old in the postpartum period in 2023, then run the relevant eligibility test. Done means the case passes with the value supported by the linked Los Angeles County manual.

Written by the indexing model from the issue text.

Description

is_ca_medicaid_immigration_status_eligible exempts pregnancy from its age schedule: standard_eligible = age_eligible | pregnant, with pregnant read from is_pregnant (lines 42 and 62). The Medicaid pregnancy group also counts the postpartum period. is_pregnant_for_medicaid_nfc passes a person whose count_days_postpartum falls below the state's postpartum_coverage. California sets 365 days from April 1, 2022, which annual formulas read from 2023.

Take an undocumented 30-year-old in California in 2023 who isn't pregnant and has under_12_months_postpartum set. count_days_postpartum gives 60, under 365, so they pass the pregnancy group's non-financial test. They fail the California immigration test, because ages 26 to 49 start in 2024, so is_medicaid_immigration_status_eligible returns false. DACA and TPS holders meet the same gap at the ages their schedule leaves out.

Los Angeles County's Medi-Cal manual says that from April 1, 2022, coverage "must be maintained through their pregnancy and 365-day postpartum period, regardless of income changes, citizenship, or immigration status" (Postpartum Care Extension, released July 27, 2022).

Changes

  • From April 1, 2022, pass a person in California's postpartum period through the California immigration test, as the formula does for pregnancy.
  • Add a case for an undocumented postpartum adult aged 26 to 49 in 2023, with its expected value from the county page.

🤖 Generated with Claude Code

Dominant language
Python
Stars
178
Forks
224
Avg merge
2d 7h
Merged PRs (30d)
309

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PolicyEngine/policyengine-us

All issues in PolicyEngine/policyengine-us

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.