Repository navigation
Model the ICHIA lawfully-residing option in Medicaid and CHIP - #9737
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LqCGPgxDukji8Bhs57c5rH
- New is_medicaid_lawfully_residing_option_eligible: lawfully residing children (under 19 or 21 by state) and pregnant people in states that elected 42 USC 1396b(v)(4), ORed into Medicaid immigration eligibility. - New is_chip_immigration_status_eligible replaces the inline undocumented/DACA check in CHIP: citizens, qualified aliens past the bar or bar-exempt (with the dated H.R.1 section 71109 list), and the CHIP lawfully-residing option (1397gg(e)(1)(Q)), which requires the Medicaid election. - State election parameters dated from the CMS list, SPAs and bulletins. Closes #9736 Closes #9346 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LqCGPgxDukji8Bhs57c5rH
…awfully-residing-option
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9737 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 4 6 +2
Lines 76 128 +52
Branches 2 0 -2
=========================================
+ Hits 76 128 +52
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:
|
…arameter notes - Move the postpartum boundary cases off California's stale 60-day value (Illinois at 90 days, New Jersey at 364/365 days). - Note in the Medicaid status, bar-exempt and five-year-bar parameters that CHIP now reads them; correct the Kentucky CHIP end-date citation. - Add a 2027 CHIP case for the other post-H.R.1 statuses in a non-elected separate-CHIP state. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LqCGPgxDukji8Bhs57c5rH
…awfully-residing-option
…ssissippi HMW - ms_hmw_other_coverage_ineligible now reads is_chip_immigration_status_eligible instead of mirroring the old undocumented/DACA check, so a child who fails the CHIP immigration test is not treated as CHIP-covered for HMW. - Wording fixes in the lawfully-residing status parameter and a test name. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LqCGPgxDukji8Bhs57c5rH
hua7450
left a comment
There was a problem hiding this comment.
Requesting changes to correct Rhode Island's pregnancy-election effective date in both Medicaid and CHIP, as detailed in the inline comment. CMS approved the elections effective October 1, 2022, so they should apply in the model's 2023 annual calculation.
All 140 cases in the nine changed YAML test files passed locally. An independent 2023 Rhode Island case fails for pregnant TPS holders and recent permanent residents; a control overriding only the two election parameters passes, including the derived Medicaid eligibility and CHIP immigration outputs.
Medicaid SPA RI-22-0024 and CHIP SPA RI-22-0025 approve the lawfully residing pregnant-individual elections effective October 1, 2022; update both parameter entries, references and the 2022/2023 RI test cases. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LqCGPgxDukji8Bhs57c5rH
…awfully-residing-option
|
Thanks, Ziming. Rhode Island's pregnancy elections now start on October 1, 2022, in both Medicaid and CHIP. Parameters
Tests
I ran four files one at a time, and all pass: the Medicaid option file (22), CHIP immigration (14), SPA pages I checked
|
…rging main Main added two direct readers of years_since_us_entry (CHIP immigration eligibility from #9737 and New Hampshire adult cash assistance) and two LIHEAP programs (Nebraska, Oklahoma) that read SNAP immigration eligibility, including the qualified-alien waiting period. - is_chip_immigration_status_eligible Case 7: the Arizona permanent resident checks the post-71109 status list, so it now states five years. - Case 14: the comment no longer relies on the default of 5; the parolee and conditional entrant state five years so only the status limit applies. - New Case 2b locks the default of 0 for CHIP (inside the bar). - ne_liheap_household_size Case 2: the permanent resident couple checks that permanent residents count, so both state five years. - years_since_us_entry documentation names the programs that apply the bar. No expected value changed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LqCGPgxDukji8Bhs57c5rH
Summary
Closes #9736
Closes #9346
This adds the CHIPRA §214 option (often called "ICHIA") to Medicaid and CHIP. Through it, a state covers lawfully residing children and pregnant people without the five-year bar or the qualified-alien limit. The PR also gives CHIP its own immigration test. Until now, CHIP excluded only DACA recipients and undocumented immigrants. It now applies the five-year bar, the qualified-alien limit and the H.R.1 §71109 status limits, except where a state elected the option in both Medicaid and CHIP.
gov.hhs.medicaid.eligibility.lawfully_residing.{immigration_statuses, child, child_age_limit, pregnant};gov.hhs.chip.lawfully_residing.{child, pregnant}.is_medicaid_lawfully_residing_option_eligible(Person, YEAR) is ORed intois_medicaid_immigration_status_eligible.is_chip_immigration_status_eligible(Person, YEAR) replaces the inline~(UNDOCUMENTED | DACA)checks inis_chip_eligible_child,is_chip_eligible_standard_pregnant_person,ca_cchip_eligibleandms_hmw_other_coverage_ineligible. FCEP is unchanged, because the unborn child is the beneficiary. The Healthier Mississippi Waiver check mirrors the CHIP child test, so an aged, blind or disabled child who fails CHIP on status now falls to the waiver category.Law
42 USC 1396b(v)(4)(A), added by CHIPRA §214(a) and effective April 1, 2009 (§3(a)):
42 USC 1397gg(e)(1)(Q) applies the option to CHIP "but only if the State has elected to apply such paragraph with respect to such category of children or pregnant women under subchapter XIX".
From October 1, 2026, 1396b(v)(5) (H.R.1 §71109(a)) limits federal funding to citizens, permanent residents, Cuban and Haitian entrants and COFA migrants "except as provided in paragraphs (2) and (4)". 1397gg(e)(1)(R) (§71109(b)) applies that limit to CHIP.
CMS guidance:
Behavior before and after
years_since_us_entry< 5years_since_us_entry≥ 5 (the default)The option is age-based. A 19- or 20-year-old in an under-21 state qualifies in whatever group they otherwise meet. The pregnancy test uses
is_pregnant_for_medicaid_nfc, which runs through each state's postpartum period.State elections
The CMS list updated April 2, 2026 sets the current values, which match SHO #26-001's count of 39 states plus DC. Values before 2022 extrapolate from the KFF/CCF January 2022 survey, the earliest state-level source; it reconciles exactly with the current list minus the dated changes. "M-CHIP" states cover their option children in Medicaid-expansion CHIP, which the model treats as Medicaid, so their CHIP election is
false.gov.hhs.chip.child.income_limitgov.hhs.chip.child.income_limit. KFF Jan 2023 still marks KY CHIP children "Y" (see Follow-ups)gov.hhs.chip.child.income_limitFormulas are YEAR-period, so a mid-year date takes effect in the next annual run (RI from 2023, ND from 2024, MI from 2025).
Oregon: CMS lists its option children under M-CHIP, and KFF reports the move on January 1, 2024. The model still covers Oregon children from 138% to 305% FPL through separate CHIP (
gov.hhs.chip.child.income_limit). Its CHIP election therefore staystrue, so those children keep coverage until the income limits reflect the move.Tests
is_medicaid_lawfully_residing_option_eligible.yaml(22 cases): CA under 21 and TX under 19, WY and ND pregnant-only, AL with no election, and TPS versus DACA and undocumented. It also covers postpartum (NJ at 90, 364 and 365 days; IL at 90 days without the pregnancy election), the effective dates (MI, GA, NH, ND, NV, KY, RI), the post-§71109 refugee cases and the age-limit boundaries. The postpartum cases use only 365-day states, so they do not depend on the stale 60-day values.is_chip_immigration_status_eligible.yaml(14 cases): the five-year bar at 4 and 5 years, the CHIP age limit of 19, CO versus TX pregnancy, DACA and undocumented, and refugees in 2026 and 2027. A 2027 AZ case covers asylees, withheld deportations, parolees and conditional entrants. It also tests the GA, KY, RI and IL dates and a one-override test that the CHIP option needs the matching Medicaid election.is_medicaid_immigration_status_eligible.yaml(4);integration.yaml(2): a TX LPR parent and child at 2 years, where the child gets Medicaid and the parent gets emergency Medicaid or none;is_chip_eligible_child.yaml(6): AZ versus TX, refugees in 2025 and 2027, the GA dates;is_chip_eligible_standard_pregnant_person.yaml(1): CO standard CHIP versus MO, where FCEP still applies;ca_cchip_eligible.yaml(1): a recent-LPR child;ms_hmw_other_coverage_ineligible.yaml(1) andintegration.yaml(1): a blind LPR child at 2 years fails CHIP and gets the waiver category and emergency Medicaid.I ran the following locally, one process at a time. All 1,284 cases pass:
gov/hhs/chip,gov/states/ca/dhcs/cchip,gov/hhs/medicaid/emergency_medicaidgov/hhs/medicaid/eligibility(top-level files)gov/hhs/medicaid/eligibility/categoriesgov/hhs/medicaid/income,costsand the top-level Medicaid filesgov/aca(including the below-FPL exception)gov/states/il/hfs/hbi,gov/states/or/oha/healthier_oregon,gov/hhs/basic_health_program,gov/states/wa/dshs/integration.yamlhealthcare/plus the SSI and SNAP files that contain non-citizensAfter the round-1 review fixes, I re-ran the two new files (21 and 14 cases),
is_chip_eligible_child.yaml(22) andis_medicaid_immigration_status_eligible.yaml(18). All 75 pass. After the round-2 fixes, I re-ran the MS HMW tests (34),is_chip_immigration_status_eligible.yaml(14) andis_medicaid_lawfully_residing_option_eligible.yaml(21). All 69 pass. After the RI date fix, I re-ranis_medicaid_lawfully_residing_option_eligible.yaml(22),is_chip_immigration_status_eligible.yaml(14),is_chip_eligible_standard_pregnant_person.yaml(8) andis_medicaid_immigration_status_eligible.yaml(18). All 62 pass.No existing expected value changed. The existing CHIP immigration cases are all in states that elected the option for CHIP (TX Case 15, CO Case 7, CA CCHIP) or use citizens. Existing LPR cases take the default of 5 years. Every other partner case is a citizen or undocumented, and the change cannot affect either group.
Microsimulation
Reading only the needed columns of the default dataset (
populace_us_2024.h5, tagpopulace-us-2024-spm-20260909) with h5py:years_since_us_entrycolumn.Every LPR takes the default of 5 years and passes the bar. Cuban/Haitian entrants stay qualified and bar-exempt after §71109, and DACA recipients and undocumented immigrants are outside the option. So weighted Medicaid and CHIP enrollment does not change today, by construction. After PolicyEngine/microcosm#776 stores real entry years and #9732 removes the default, recent-LPR children and pregnant people will keep Medicaid in electing states. In separate-CHIP states without the election, they will lose CHIP.
Not in scope
postpartum_coveragevalues in 46 states, which are stale against the 12-month extensions. The option inherits whatever that parameter holds.Follow-ups
gov.hhs.chip.child.income_limitto -inf from 2024-01-01, cover those children through the Medicaid child limits, and flipgov.hhs.chip.lawfully_residing.child.ORtofalsein the same change. Doing only one of the two would drop recent-LPR and TPS children in Oregon.gov.hhs.chip.child.income_limit, since KFF's January 2023 table still lists separate-CHIP children there.Review history: local round 1 found 0 critical and 2 should items. The postpartum test fix is applied; the CHIP-side rulespec-us issue (42 USC 1397gg(e)(1)(Q)-(R)) is pending maintainer filing. Local round 2 found 0 critical and 1 should item, now fixed: the Mississippi waiver check still mirrored the old CHIP gate. Ziming requested changes (RI pregnancy date), fixed.
axiom: 42 USC 1396b(v)(4) encoded-correct (rulespec-us
us/statutes/42/1396b/v.yaml) | 42 USC 1397gg(e)(1)(Q)-(R) TheAxiomFoundation/rulespec-us#1474 queued🤖 Generated with Claude Code
https://claude.ai/code/session_01LqCGPgxDukji8Bhs57c5rH