Skip to content

Count a pregnant member's expected children in other members' Medicaid household where the state elects it - #10989

Merged
hua7450 merged 10 commits into
mainfrom
medicaid-pregnancy-household-size
Nov 17, 2026
Merged

hua7450 merged 10 commits into
mainfrom
medicaid-pregnancy-household-size

Conversation

@hua7450

@hua7450 hua7450 commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Parameter 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 .inf as herself plus every expected child, the three options in 435.603(b). (The Massachusetts child and family credit's dependent cap uses .inf the same way.) California and New Jersey are .inf from 2014-01-01. The other 49 states are 0, the model's earlier treatment, with a comment that they are not yet researched.
  • Variable medicaid_household_pregnancies replaces ca_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_size adds it in every state, which removes the California-only branch.
  • Helper _household_sum.py holds the household composition that medicaid_household_size computed 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, and medicaid_household_pregnancies calls it with each member's counted expected children. The 140-line copy of that composition in the California variable is gone.
  • Through the helper, California non-filers without parent ids now get Count each Medicaid non-filer household member once #10983's deduplication. A same-unit spouse's pregnancy now counts only on a joint return, the test the size formula uses. The California variable paired any head and spouse in the tax unit, including a spouse the model infers on a head of household return.

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.

File Case Household Before After
medicaid_household_size.yaml 14 (new) NJ, 2026: husband with $37,701 of wages, pregnant wife size 2, 3; the husband fails the adult income test (1.742) pregnancies 1, 1; size 3, 3; income level 1.37998 each; category ADULT, PREGNANT
medicaid_household_pregnancies.yaml 11 (new) Same household with the NJ value set to 1; the wife expects twins n/a pregnancies 1, 2; size 3, 4
medicaid_household_pregnancies.yaml 8 Kansas joint filers; pregnant wife; child aged 8 pregnancies 0, 0, 0 pregnancies 0, 1, 0; size unchanged at 3, 4, 3
mixed_households.yaml 1 California and Kansas households in one simulation Kansas pregnancies 0, 0, 0 Kansas pregnancies 0, 1, 0; sizes unchanged

In 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.yaml Case 2, and the four property tests in test_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

  • The 49 states other than California and New Jersey stay at 0 until their S10 pages are researched under State-specific rules for when Medicaid #5251.
  • New Jersey's S10 page 2 elects "Age 19, or in the case of full-time students, age 21" for 42 CFR 435.603(f)(3)(iv). The model's gov.hhs.medicaid.household.uses_full_time_student_under_21_rule is a single national false.

axiom: TheAxiomFoundation/rulespec-us#2264 queued

🤖 Generated with Claude Code

the8thbit and others added 3 commits November 15, 2026 13:52
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>
hua7450 and others added 3 commits November 15, 2026 22:09
… 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>
hua7450 and others added 3 commits November 16, 2026 15:14
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>
Base automatically changed from medicaid-non-filer-household-once to main November 17, 2026 17:29
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>
@hua7450
hua7450 marked this pull request as ready for review November 17, 2026 17:31
@hua7450
hua7450 requested a review from DTrim99 November 17, 2026 17:31

hua7450 commented Nov 17, 2026

Copy link
Copy Markdown
Collaborator Author

Codex review summary

Reviewed commit b278a0ba8697d06aed44d9400f936a9706859706.

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.

@hua7450
hua7450 merged commit 4a50ce1 into main Nov 17, 2026
44 checks passed
@hua7450
hua7450 deleted the medicaid-pregnancy-household-size branch November 17, 2026 21:29
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