Repository navigation
Count a pregnant member's expected children in other members' Medicaid household where the state elects it - #10989
Conversation
The Medicaid non-filer fallback now treats the other head or spouse as the spouse only on a joint return (head_spouse_count 2), as medicaid_household_size already counts the spouse and as _spouse_rule does for households with parent ids. Under a supplied non-joint filing status with an inferred spouse, such as a head of household parent and an 18-year-old, the fallback had excluded the 18-year-old as a relative without counting them as a spouse. medicaid_household_income applies the same joint-return test to the same-unit spouse's income, so size and income count the same people. Add the New Jersey partner household from issue 9562 to the size and adult group tests, and a head of household case to the size and income tests. Renumber the size cases in the file's style, keep their inputs and outputs, and drop the income case that the other cases cover. Replace += in the new helper, update two docstrings and rename the changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 CFR 435.603(b) lets each state count a pregnant woman in the other members' MAGI households as herself, herself plus one, or herself plus the children she expects. A per-state parameter now holds that election: California (SPA 13-0023-MM, S10) and New Jersey (SPA 13-0016-MM3, S10) count every expected child; other states keep the earlier treatment until researched. medicaid_household_pregnancies replaces ca_medicaid_household_pregnancies and reuses the size formula's composition through a shared helper, so non-filers without parent ids get the same deduplication and joint-return spouse test as medicaid_household_size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…into medicaid-non-filer-household-once
… are built PR 10000 builds omitted marital units, so an 18-year-old who passes the qualifying child age test is now the parent's dependent, not the inferred spouse. The head of household cases in medicaid_household_size and medicaid_household_income test the joint-return spouse rule, so they now input the parent as head and the 18-year-old as spouse. The New Jersey partner household keeps no role inputs: it now takes the parent's tax household of 2, which size Case 12 pins through medicaid_uses_non_filer_rules. Update the comments that described the old spouse guess. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…icaid-pregnancy-household-size Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…into medicaid-non-filer-household-once
Review fixes for David's should-address finding: no test pinned the own-parent and spouse-parent terms in the fallback's parent netting, or the guard that leaves a spouse unidentified when a marital unit has several other members. - medicaid_household_income: married 18-year-old parents on separate returns without the cohabiting flag (David's case). Each counts the other as a relative parent with their own amount netted out: 3,900 each, against 3,350 and 4,450 without the own-parent term. - medicaid_household_income: 18-year-old joint filers whose listed marital unit also holds the head's parent with no income. The netted share leaves out both spouses: 3,900 each, against 5,050 and 4,500 without the spouse-parent term. - medicaid_household_size Case 14: cohabiting parents on separate returns whose marital unit also lists their child. No member is identified as the spouse, so each parent counts 3; taking the last member as the spouse would drop the child and give 2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…pregnancy-household-size Keeps the base branch's new Case 14 in medicaid_household_size.yaml and renumbers the New Jersey pregnancy case to Case 15. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main now holds 10983 (squash e4c0adb). This branch already had 10983 through e8c31c9, so keep its versions of medicaid_household_size.py and the size and income tests, and apply 10983's final test-only commit (2398bf2, the grandmother-at-600 netting case) to the income tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex review summaryReviewed commit Review status: COMPLETE. No confirmed PR-specific defects. I recommend merging once the required independent review is satisfied. The previous pregnancy-to-final-benefit validation gap is closed. The 2026 New Jersey case with $37,701 in wages and a pregnant spouse produces household sizes of 3, the expected ADULT/PREGNANT categories, enrollment and positive Medicaid values. The otherwise identical non-pregnant control is ineligible. The expected treatment was checked against the approved NJ/CA S10 elections and the NJ 2026 income standard. The reviewed head has 37 successful CI checks and 7 skipped checks, including successful relevant HHS, household, partner and microsimulation jobs. Supporting local diagnostics used development Core 3.34.10, below the declared 3.36 minimum; those calculations are documented separately from current-head CI validation. |
Part of #5251
Builds on #10983, which rewrote the same household-size files and has merged; main is merged into this branch.
What and why
42 CFR 435.603(b) counts a pregnant woman as herself plus her expected children in her own family size. In the family size of the other members of her household, "the pregnant woman is counted, at State option, as either 1 or 2 person(s) or as herself plus the number of children she is expected to deliver." PolicyEngine-US modeled that election only for California, through
ca_medicaid_household_pregnancies. Every other state counted her as one person in the other members' households.https://www.ecfr.gov/current/title-42/section-435.603#p-435.603(b)
New Jersey's approved state plan elects the third option. Page S10, "MAGI-Based Income Methodologies", in SPA NJ-13-0016-MM3 (approved 12/03/2013, effective 01/01/2014) selects "The pregnant woman is counted as herself, plus the number of children she is expected to deliver." The CMS SPA index lists 28 New Jersey eligibility amendments through NJ-25-0019. By their summaries, none after NJ-13-0016-MM3 changes MAGI-based methodologies, and NJ-19-0017 (the census income exclusion) supersedes only non-MAGI pages.
https://www.medicaid.gov/State-resource-center/Medicaid-State-Plan-Amendments/Downloads/NJ/NJ-13-0016-MM3.pdf#page=5
A Household API partner reported the effect: a New Jersey husband with $37,701 of wages and a pregnant wife. The model counted his household as 2, and 37,701 / 21,640 = 1.742 of the 2026 guideline, above New Jersey's 1.38 adult limit. Under New Jersey's election his household is 3, and 37,701 / 27,320 = 1.37998. His $3,141.75 a month falls within the $3,142 monthly limit (27,320 × 1.38 / 12 = 3,141.80, rounded up), so he qualifies for the adult group.
California's S10 page (SPA CA-13-0023-MM, effective 1/1/2014) selects the same option, so the state plan now backs California's existing treatment alongside ACWDL 20-10.
https://www.medicaid.gov/State-resource-center/Medicaid-State-Plan-Amendments/Downloads/CA/CA-13-0023-MM.pdf#page=7
Changes
gov.hhs.medicaid.household.pregnant_member_expected_children_cap, by state: the most expected children a pregnant woman adds to another member's family size. 0 counts her as 1 person, 1 as 2 people and.infas herself plus every expected child, the three options in 435.603(b). (The Massachusetts child and family credit's dependent cap uses.infthe same way.) California and New Jersey are.inffrom 2014-01-01. The other 49 states are 0, the model's earlier treatment, with a comment that they are not yet researched.medicaid_household_pregnanciesreplacesca_medicaid_household_pregnancies. It counts the expected children in the person's household size: her own in full, and each other member's up to the cap.medicaid_household_sizeadds it in every state, which removes the California-only branch._household_sum.pyholds the household composition thatmedicaid_household_sizecomputed inline: the tax household, the claimant lookup, the spouse corrections and Count each Medicaid non-filer household member once #10983's non-filer rules. The size formula calls it with one per member, andmedicaid_household_pregnanciescalls it with each member's counted expected children. The 140-line copy of that composition in the California variable is gone.Test plan
Expected values come from 42 CFR 435.603(b), the two S10 pages and the 2026 HHS poverty guideline ($15,960 plus $5,680 per additional person), counted by hand. I didn't run the tests locally; CI will.
medicaid_household_size.yamlmedicaid_household_pregnancies.yamlmedicaid_household_pregnancies.yamlmixed_households.yamlIn Case 8 and the mixed-state case the federal variable reports the pregnant member's own expected child, which the California-only variable left at 0 outside California. The sizes don't change.
Case 11 exercises the "herself, plus one" option through a parameter override, since no researched state elects it. The override adds one copy of the tax-benefit system to that YAML run.
Existing Case 1 of
medicaid_household_size.yaml(Kansas joint filers, sizes 4, 3, 3) already covers a state at 0 and the pregnant woman's own size; this PR leaves it unchanged.Renamed outputs, values unchanged (all California households):
The California test file moves to
tests/policy/baseline/gov/hhs/medicaid/income/medicaid_household_pregnancies.yaml. I traced its 10 cases through the helper by hand. Only Case 8 changes. Cases 9 and 10 get reworded comments, because they described the removed variable's union-sum mechanics.parent_ids_composition.yaml(5 cases),medicaid_household_size.yamlCase 2, and the four property tests intest_parent_links_properties.py(variable-name strings only; they build California households).For policy changes: YAML tests whose expected values come from the regulation, the state plans and the HHS guideline.
Source-conflict register entry: not applicable. N.J.A.C. 10:78-3.5(a)6 and 10:72-3.5(a)1 include the unborn child in the pregnant woman's own household unit and don't address the other members' households, so they agree with S10.
make format(ruff 0.15.5 format and check pass on the changed files)Changelog fragment in
changelog.d/CI passes
Not changed
gov.hhs.medicaid.household.uses_full_time_student_under_21_ruleis a single nationalfalse.axiom: TheAxiomFoundation/rulespec-us#2264 queued
🤖 Generated with Claude Code