Repository navigation
Conversation
This was referenced Oct 22, 2026
…ys branch Keep PR 10365's test cases in place and renumber this branch's appended Rhode Island cases after them: Cases 23-24 in is_chip_eligible_standard_pregnant_person.yaml and Cases 17-23 in is_pregnant_for_medicaid.yaml. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t federal share - End Rhode Island's postpartum continuation in the month in which the 12-month period beginning on the last day of pregnancy ends (42 U.S.C. 1396a(e)(16), SPA RI-22-0024), and record the 1115 wording as an unreviewed source-conflict candidate. - Keep the day-count postpartum route in every state and add the Rhode Island continuation on top of it. - Give RIte Start continuations no Title XIX match. - Move the third-party coverage list to a parameter, cast the months parameter, cite the 1115 Budget Population 6b approval, and fix the affected tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sland pathways branch Keep both sides of source_conflicts/candidates.yaml: main's updated entries and this branch's us-ri:medicaid-postpartum-end-month candidate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 26, 2026
…al match, narrow the end-month candidate - Case 17 person 3 is 400 days postpartum (pregnancy ended 2022-11-27), so the case holds whether Rhode Island's postpartum_coverage is 60 or 365 days. - The continuation's day-count comment no longer assumes 60 days. - Rhode Island postpartum continuations get no Title XIX match unless the pregnancy was covered by Medicaid and the enrollee meets Medicaid immigration requirements; add a CHIP-history and an undocumented Medicaid-history case. - Limit the us-ri:medicaid-postpartum-end-month candidate to 1115 Budget Populations 6a and 6b. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hua7450
marked this pull request as ready for review
October 27, 2026 00:44
…-dates' into fix-ri-pregnancy-medicaid-pathways Brings in #10365's head ae4dc7a, which includes main with #10241. is_pregnant_for_medicaid.yaml keeps main's #10241 cases and #10365's West Virginia cases, followed by this branch's Rhode Island block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main's #10241 cases now precede the block, so Cases 17-23 become 34-40. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #10390. Stacked on #10365 and targeting
fix-chip-pregnant-income-limit-dates.Correct Rhode Island's pregnancy Medicaid/CHIP insurance split and preserve postpartum coverage based on qualifying eligibility during the completed pregnancy. Continuation survives income changes and another pregnancy, and lasts through the last day of the month in which the 12-month postpartum period (beginning on the last day of pregnancy) ends, including across leap years.
During pregnancy, an otherwise eligible citizen at 230% FPL qualifies for Medicaid with third-party insurance and standard pregnancy CHIP when uninsured. During postpartum continuation, the original standard CHIP pathway stays CHIP; the model prevents simultaneous CHIP and Medicaid enrollment and respects take-up choices.
Authority and behavior
gov.states.ri.eohhs.medicaid.third_party_coverage(§ 1.9(B)(1) defines third-party liability). The insured route appears in the rule only from its August 17, 2025 version; earlier years rest on the section 1115 demonstration's Budget Population 6b (pages 3 and 15) and are unverified estimates.source_conflicts/candidates.yamlrecords this as the unreviewed candidateus-ri:medicaid-postpartum-end-month.Required history and calendar inputs
Two new annual person inputs record facts the old day-count flags cannot establish:
ri_pregnancy_coverage: qualifying pregnancy history (MEDICAID,CHIP,RITE_START,FCEP, orNONE). Eligibility may be established retroactively. The defaultNONEdoes not infer prior eligibility from current income or current take-up.ri_medicaid_pregnancy_end_date: the last completed pregnancy's end date. A newborn is not required; miscarriage and termination use the same calendar rule.The shared monthly continuation calculation requires established history, a completed pregnancy and current RI residence. Its exclusive endpoint is the month after the month of (end date minus one day) plus 12 months; for example, a pregnancy ending January 1, 2023 is covered through December 2023, and one ending January 2, 2024 through January 2025. Missing history/date does not activate the continuation, but the existing day-count route (
count_days_postpartumbelow the state'spostpartum_coverage) still applies in every state, Rhode Island included. Without a pregnancy-history input (microdata has none), Rhode Island falls back to that day count, as other states do; #10241 sets it to 365 days from October 1, 2022. When history is NONE the model cannot tell "no qualifying coverage" from "unknown", so the day-count proxy can over-cover. This PR does not impute history in microdata.The generic
count_days_postpartuminput and formula are unchanged. The mother/newborn fixture still derives the newborn's infinity default and verifies distinct enrollment.Related work and remaining scope
The duplicate change to the federal postpartum day-count parameter has been removed. #10241 can continue dating that parameter for all states independently; RI's new calendar calculation does not use its 365-day proxy, while the day-count route does. General standard-CHIP postpartum work remains in #10363.
Merge order: #10241 (merged), then #10365, then this PR. #10363 also appends cases to
is_chip_eligible_standard_pregnant_person.yaml, so whichever merges second renumbers.After #10365 merges:
main, or rungh pr edit 10391 --base main;mainagain (do not rebase) if it has moved;is_pregnant_for_medicaid.yamlalready holds main's Date 12-month Medicaid postpartum coverage from each state's approval #10241 cases, then Correct CHIP and Medicaid pregnancy income limits and effective dates #10365's cases, then this PR's Rhode Island block (Cases 34-40);(... & ~has_disqualifying_coverage) | ri_chip_postpartum_eligible(first_month), dropping this PR's now-redundant Rhode Island insurance gate from CHIP (all six Rhode Island sources are on the CHIP list) and keeping the Rhode Island parameter for the Medicaid route; CHIP Case 24 persons 2-3 stay true.The new monthly flags are evaluated at each month's start. Existing annual national eligibility variables read January's flag; this PR does not convert all Medicaid/CHIP outputs to monthly periods. Tests exercise the actual September/October 2022 boundary directly through the monthly calculation. Full Title XIX/Title XXI/HSI funding allocation after a later immigration-status change remains outside this eligibility correction.
Validation
Law-derived YAML cases cover income increases and decreases, false/missing history, all prior-program choices, another pregnancy, citizens and undocumented residents, month-end expiry, leap years, October 2022, state controls, CHIP retention, enrollment separation, take-up choices, and the identified Medicaid matching exclusion. Existing pregnancy, CHIP/FCEP, immigration, enrollment and FMAP cases are checked as well.
The initial legal counterexamples failed on the previous draft. The new tests were written independently from the legal sources before implementing the continuation calculation.
At
f0f8add67d, before the review fixes, 142 policy YAML cases and 4 input-definition checks passed locally across the focused pregnancy, Medicaid, CHIP/FCEP, immigration, enrollment and federal-share suites.A local review on 2026-10-26 found two critical issues (coverage one month too long for pregnancies ending on the 1st; Rhode Island dropping the day-count postpartum route), two should-address items and three suggestions. Commit
adcd687fdcfixes all of them, changes the expectations of four existing cases and adds one federal-share case; those cases were checked by hand and not run locally, and CI validates them.5ed53099ccmerges #10365's updated branch, which includesmain.4cab49cd24keepsis_medicaid_eligible.yamlCase 17 stable under either day count (person 3 is now 400 days postpartum), gives CHIP-history and Medicaid-history-without-status continuations no Title XIX match with one new federal-share case, and narrows the source-conflict candidate; these were checked by hand and not run locally.1c78751418merges #10365's headae4dc7a828, which includesmainwith #10241, and renumbers this PR'sis_pregnant_for_medicaid.yamlcases from 17-23 to 34-40. No Rhode Island expectation changes: the day count is 60 days until October 1, 2022 and 365 days after, which the cases already assumed; this was checked by hand and not run locally. ruff format and check pass. No partner contract test files are edited.axiom: TheAxiomFoundation/rulespec-us#1935 queued