diff --git a/changelog.d/fix-ny-ma-undocumented-medicaid.fixed.md b/changelog.d/fix-ny-ma-undocumented-medicaid.fixed.md new file mode 100644 index 00000000000..8d3b860ca35 --- /dev/null +++ b/changelog.d/fix-ny-ma-undocumented-medicaid.fixed.md @@ -0,0 +1 @@ +Undocumented residents of New York now pass the Medicaid immigration test only during pregnancy and the postpartum period and, from 2024, at age 65 or older. Undocumented New York children under 19 pass the Children's Health Insurance Program's immigration test, and those who enroll through that route in the program's child category carry a zero federal share. Undocumented residents of Massachusetts now pass the Medicaid immigration test only during pregnancy and the postpartum period. Before this change, the model passed undocumented residents of every age in both states through the Medicaid immigration test from 2015. diff --git a/docs-quarto/programs/chip.qmd b/docs-quarto/programs/chip.qmd index 8114c4b1a0e..77030d79b70 100644 --- a/docs-quarto/programs/chip.qmd +++ b/docs-quarto/programs/chip.qmd @@ -12,7 +12,7 @@ PolicyEngine US models CHIP eligibility, per-capita benefit value, and household - They are age-eligible: under the state's CHIP age cap (typically 18 or 19), or pregnant in FCEP / standard-pregnant-person states. - Household MAGI (as a fraction of the federal poverty line) is at or below the state's CHIP income limit. Limits vary from ~190 % in Idaho to ~405 % in New York. - They are not income-eligible for Medicaid. -- Immigration status is eligible (not undocumented). +- For the child and standard pregnancy routes, immigration status is eligible. Undocumented children pass only in New Jersey, from 2023, and in New York. The unborn-child (FCEP) route has no immigration test. State-specific eligibility is driven by `parameters/gov/hhs/chip/child/income_limit.yaml`. diff --git a/policyengine_us/parameters/gov/hhs/chip/undocumented/child.yaml b/policyengine_us/parameters/gov/hhs/chip/undocumented/child.yaml new file mode 100644 index 00000000000..bc79d6d1861 --- /dev/null +++ b/policyengine_us/parameters/gov/hhs/chip/undocumented/child.yaml @@ -0,0 +1,139 @@ +description: States cover undocumented children under the Children's Health Insurance Program if this is true. +# is_chip_immigration_status_eligible applies gov.hhs.chip.child.max_age, and +# chip_federal_share gives a child enrolled in CHIP's child category through +# this route no federal match. +# These children pass the Medicaid immigration test only through the +# pregnancy term. States that cover them under both programs use +# gov.hhs.medicaid.eligibility.regardless_of_immigration_status.child_age_limit. +# States other than New York read false until researched. +metadata: + unit: bool + period: year + label: CHIP undocumented child coverage + breakdown: + - state_code + reference: + - title: New York Public Health Law section 2510 + href: https://www.nysenate.gov/legislation/laws/PBH/2510 + - title: New York Public Health Law section 2511 + href: https://www.nysenate.gov/legislation/laws/PBH/2511 + - title: "New York State Department of Health, GIS 08 MA/009 attachment (March 3, 2008)" + href: https://www.health.ny.gov/health_care/medicaid/publications/docs/gis/08ma009att.pdf + +AL: + 2021-01-01: false +AK: + 2021-01-01: false +AZ: + 2021-01-01: false +AR: + 2021-01-01: false +CA: + 2021-01-01: false +CO: + 2021-01-01: false +CT: + 2021-01-01: false +DC: + 2021-01-01: false +DE: + 2021-01-01: false +FL: + 2021-01-01: false +GA: + 2021-01-01: false +HI: + 2021-01-01: false +ID: + 2021-01-01: false +IL: + 2021-01-01: false +IN: + 2021-01-01: false +IA: + 2021-01-01: false +KS: + 2021-01-01: false +KY: + 2021-01-01: false +LA: + 2021-01-01: false +ME: + 2021-01-01: false +MD: + 2021-01-01: false +MA: + 2021-01-01: false +MI: + 2021-01-01: false +MN: + 2021-01-01: false +MS: + 2021-01-01: false +MO: + 2021-01-01: false +MT: + 2021-01-01: false +NE: + 2021-01-01: false +NV: + 2021-01-01: false +NH: + 2021-01-01: false +NJ: + 2021-01-01: false +NM: + 2021-01-01: false +NY: + # Child Health Plus covers children "under the age of nineteen" (Public + # Health Law section 2510(4)). Section 2511(2) sets the criteria for a + # subsidy payment: household income at or below 400% of the poverty level, + # no Medicaid eligibility, no other coverage and New York residence. None + # of the criteria tests immigration status. The reference list also holds + # the Department of Health's 2008 documentation guide (GIS 08 MA/009), + # cited as listing Child Health Plus among the programs open at any + # status; that reading of the guide is unverified. The model's New York + # CHIP income limit of 405% is a separate modeling choice. Between the + # 400% premium threshold and that limit the model applies its + # full-premium schedule, whose full-premium rates start in 2024. The 2021 + # date follows the all-ages Medicaid flag this route replaces, and + # backdating carries it to 2015. The route takes the national CHIP age + # limit (gov.hhs.chip.child.max_age) because section 2510(4) sets the + # same 19. + 2021-01-01: true +NC: + 2021-01-01: false +ND: + 2021-01-01: false +OH: + 2021-01-01: false +OK: + 2021-01-01: false +OR: + 2021-01-01: false +PA: + 2021-01-01: false +RI: + 2021-01-01: false +SC: + 2021-01-01: false +SD: + 2021-01-01: false +TN: + 2021-01-01: false +TX: + 2021-01-01: false +UT: + 2021-01-01: false +VT: + 2021-01-01: false +VA: + 2021-01-01: false +WA: + 2021-01-01: false +WV: + 2021-01-01: false +WI: + 2021-01-01: false +WY: + 2021-01-01: false diff --git a/policyengine_us/parameters/gov/hhs/medicaid/eligibility/regardless_of_immigration_status/child_age_limit.yaml b/policyengine_us/parameters/gov/hhs/medicaid/eligibility/regardless_of_immigration_status/child_age_limit.yaml index 401f3d4cb72..41478101dc5 100644 --- a/policyengine_us/parameters/gov/hhs/medicaid/eligibility/regardless_of_immigration_status/child_age_limit.yaml +++ b/policyengine_us/parameters/gov/hhs/medicaid/eligibility/regardless_of_immigration_status/child_age_limit.yaml @@ -1,9 +1,12 @@ description: States cover children younger than this age under the Medicaid program and the Children's Health Insurance Program regardless of immigration status. # A value of 0 means the model records no such coverage. States other than New -# Jersey read 0 until researched (issue 3654). The District of Columbia, -# Massachusetts, New York and Oregon cover undocumented residents of every age -# through undocumented_immigrant.yaml, and California, Illinois and Washington -# cover children through their own state program variables. +# Jersey read 0 until researched (issue 3654). The District of Columbia, and +# Oregon from July 1, 2023, read true for undocumented residents of every age +# in undocumented_immigrant.yaml. The Children's Health Insurance Program is +# New York's separate route for undocumented children +# (gov.hhs.chip.undocumented.child), and its Medicaid pregnancy and postpartum +# route also applies to them. California, Illinois and Washington cover +# children through their own state program variables. metadata: unit: year period: year diff --git a/policyengine_us/parameters/gov/hhs/medicaid/eligibility/undocumented/aged.yaml b/policyengine_us/parameters/gov/hhs/medicaid/eligibility/undocumented/aged.yaml new file mode 100644 index 00000000000..2c96027c796 --- /dev/null +++ b/policyengine_us/parameters/gov/hhs/medicaid/eligibility/undocumented/aged.yaml @@ -0,0 +1,134 @@ +description: States cover undocumented immigrants aged 65 or older under the Medicaid program if this is true. +# is_medicaid_immigration_status_eligible tests age with is_ssi_aged, the +# age-65 test of the Medicaid aged group. States that cover undocumented +# immigrants of every age read true in undocumented_immigrant.yaml and false +# here. States other than New York read false until researched. +metadata: + unit: bool + period: year + label: Medicaid undocumented immigrant aged coverage + breakdown: + - state_code + reference: + - title: New York Social Services Law section 366 + href: https://www.nysenate.gov/legislation/laws/SOS/366 + - title: "New York Laws of 2022, chapter 56, part AAA" + href: https://nyassembly.gov/leg/?default_fld=&leg_video=&bn=A09006&term=2021&Summary=Y&Actions=Y&Text=Y + - title: "New York Laws of 2023, chapter 57, part H" + href: https://nyassembly.gov/leg/?default_fld=&leg_video=&bn=A03007&term=2023&Summary=Y&Actions=Y&Text=Y + - title: "New York State Department of Health, 23 OHIP/INF-2 (December 29, 2023)" + href: https://www.health.ny.gov/health_care/medicaid/publications/docs/inf/23inf-02.pdf + +AL: + 2021-01-01: false +AK: + 2021-01-01: false +AZ: + 2021-01-01: false +AR: + 2021-01-01: false +CA: + 2021-01-01: false +CO: + 2021-01-01: false +CT: + 2021-01-01: false +DC: + 2021-01-01: false +DE: + 2021-01-01: false +FL: + 2021-01-01: false +GA: + 2021-01-01: false +HI: + 2021-01-01: false +ID: + 2021-01-01: false +IL: + 2021-01-01: false +IN: + 2021-01-01: false +IA: + 2021-01-01: false +KS: + 2021-01-01: false +KY: + 2021-01-01: false +LA: + 2021-01-01: false +ME: + 2021-01-01: false +MD: + 2021-01-01: false +MA: + 2021-01-01: false +MI: + 2021-01-01: false +MN: + 2021-01-01: false +MS: + 2021-01-01: false +MO: + 2021-01-01: false +MT: + 2021-01-01: false +NE: + 2021-01-01: false +NV: + 2021-01-01: false +NH: + 2021-01-01: false +NJ: + 2021-01-01: false +NM: + 2021-01-01: false +NY: + # Social Services Law section 366(1)(g)(4) covers people "age sixty-five or + # older, who are otherwise eligible for medical assistance under this + # section, but for their immigration status". Part AAA of chapter 56 of + # the Laws of 2022 added it from January 1, 2023. Part H of chapter 57 of + # the Laws of 2023 reset its start to "no later than January 1, 2024", and + # section 7 of that part deems the change in force from January 1, 2023. + # The model starts the coverage on January 1, 2024, the latest date Part H + # allows. The reference list also holds informational letter 23 + # OHIP/INF-2, cited for that start date and for state funding; its text + # is unverified. + 2021-01-01: false + 2024-01-01: true +NC: + 2021-01-01: false +ND: + 2021-01-01: false +OH: + 2021-01-01: false +OK: + 2021-01-01: false +OR: + 2021-01-01: false +PA: + 2021-01-01: false +RI: + 2021-01-01: false +SC: + 2021-01-01: false +SD: + 2021-01-01: false +TN: + 2021-01-01: false +TX: + 2021-01-01: false +UT: + 2021-01-01: false +VT: + 2021-01-01: false +VA: + 2021-01-01: false +WA: + 2021-01-01: false +WV: + 2021-01-01: false +WI: + 2021-01-01: false +WY: + 2021-01-01: false diff --git a/policyengine_us/parameters/gov/hhs/medicaid/eligibility/undocumented/pregnant.yaml b/policyengine_us/parameters/gov/hhs/medicaid/eligibility/undocumented/pregnant.yaml new file mode 100644 index 00000000000..bfa7587df85 --- /dev/null +++ b/policyengine_us/parameters/gov/hhs/medicaid/eligibility/undocumented/pregnant.yaml @@ -0,0 +1,155 @@ +description: States cover undocumented immigrants during pregnancy and the postpartum period under the Medicaid program if this is true. +# is_medicaid_immigration_status_eligible applies each state's postpartum +# period through is_pregnant_for_medicaid_nfc. States that cover undocumented +# immigrants of every age read true in undocumented_immigrant.yaml and false +# here. States other than Massachusetts and New York read false until +# researched. +metadata: + unit: bool + period: year + label: Medicaid undocumented immigrant pregnancy coverage + breakdown: + - state_code + reference: + - title: New York State Department of Health, client notice D61-C0332 + href: https://ohipdocs.health.ny.gov/ohipdocs/web/system/files/ohiprepos/shared_documents/2019-11/D61C0332.pdf + - title: New York Social Services Law section 366 + href: https://www.nysenate.gov/legislation/laws/SOS/366 + - title: "New York Laws of 2022, chapter 56, part CCC" + href: https://nyassembly.gov/leg/?default_fld=&leg_video=&bn=A09006&term=2021&Summary=Y&Actions=Y&Text=Y + - title: "New York State Department of Health, 04 OMM/ADM-7 (October 26, 2004)" + href: https://www.health.ny.gov/health_care/medicaid/publications/docs/adm/04adm-7.pdf + - title: "New York section 1332 waiver application (December 18, 2023)" + href: https://www.cms.gov/files/document/ny-1332-waiver_updated-application12182023.pdf#page=32 + - title: "130 CMR 504.000, MassHealth: Citizenship and Immigration" + href: https://www.mass.gov/doc/130-cmr-504000-masshealth-citizenship-and-immigration-1/download#page=13 + - title: "MassHealth Eligibility Letter 213 (January 1, 2014)" + href: https://www.mass.gov/files/documents/2016/07/xg/el-213.pdf#page=63 + - title: "130 CMR 505.000, MassHealth: Coverage Types (revised February 13, 2026)" + href: https://www.mass.gov/doc/130-cmr-505000-masshealth-coverage-types-5/download#page=4 + +AL: + 2021-01-01: false +AK: + 2021-01-01: false +AZ: + 2021-01-01: false +AR: + 2021-01-01: false +CA: + 2021-01-01: false +CO: + 2021-01-01: false +CT: + 2021-01-01: false +DC: + 2021-01-01: false +DE: + 2021-01-01: false +FL: + 2021-01-01: false +GA: + 2021-01-01: false +HI: + 2021-01-01: false +ID: + 2021-01-01: false +IL: + 2021-01-01: false +IN: + 2021-01-01: false +IA: + 2021-01-01: false +KS: + 2021-01-01: false +KY: + 2021-01-01: false +LA: + 2021-01-01: false +ME: + 2021-01-01: false +MD: + 2021-01-01: false +MA: + # 130 CMR 504.006(D)(1) gives undocumented residents ("other + # noncitizens") MassHealth Standard if they are pregnant. 130 CMR + # 505.002(D) sets that coverage at up to 200% of the poverty level. Its + # 2014 text (Eligibility Letter 213) continues the coverage for 60 days + # after the pregnancy ends, and its text revised February 13, 2026 for 12 + # months. The formula applies the state's postpartum period, which reads + # 365 days from 2023. No text cited here dates the longer period for + # undocumented residents. The 2014 and 2022 texts of 504.006(D) read the + # same. The 2021 date follows the all-ages flag this value replaces, and + # backdating carries it to 2015. + 2021-01-01: true +MI: + 2021-01-01: false +MN: + 2021-01-01: false +MS: + 2021-01-01: false +MO: + 2021-01-01: false +MT: + 2021-01-01: false +NE: + 2021-01-01: false +NV: + 2021-01-01: false +NH: + 2021-01-01: false +NJ: + 2021-01-01: false +NM: + 2021-01-01: false +NY: + # The Department of Health's notice D61-C0332, dated October 10, 2014, + # gives people without satisfactory immigration status Medicaid "for + # medical services provided to pregnant women" and ends it when "the + # sixty-day postpartum period has ended". From March 1, 2023, part CCC of + # chapter 56 of the Laws of 2022 continues for one year the eligibility of + # a pregnant woman eligible under Social Services Law section 366(1)(b)(2) + # or (4) (section 366(4)(b)(1)). The formula applies the state's postpartum + # period to undocumented residents too, which the notice supports for the + # sixty-day period only. New York's waiver application dates the change + # from 60 to 365 days to 2023. The reference list also holds directive 04 + # OMM/ADM-7 of 2004, cited for the same pregnancy rule; its text is + # unverified. The 2021 date follows the all-ages flag this value + # replaces, and backdating carries it to 2015. + 2021-01-01: true +NC: + 2021-01-01: false +ND: + 2021-01-01: false +OH: + 2021-01-01: false +OK: + 2021-01-01: false +OR: + 2021-01-01: false +PA: + 2021-01-01: false +RI: + 2021-01-01: false +SC: + 2021-01-01: false +SD: + 2021-01-01: false +TN: + 2021-01-01: false +TX: + 2021-01-01: false +UT: + 2021-01-01: false +VT: + 2021-01-01: false +VA: + 2021-01-01: false +WA: + 2021-01-01: false +WV: + 2021-01-01: false +WI: + 2021-01-01: false +WY: + 2021-01-01: false diff --git a/policyengine_us/parameters/gov/hhs/medicaid/eligibility/undocumented_immigrant.yaml b/policyengine_us/parameters/gov/hhs/medicaid/eligibility/undocumented_immigrant.yaml index 2d1f1df6dd3..75f59fbc84b 100644 --- a/policyengine_us/parameters/gov/hhs/medicaid/eligibility/undocumented_immigrant.yaml +++ b/policyengine_us/parameters/gov/hhs/medicaid/eligibility/undocumented_immigrant.yaml @@ -6,13 +6,21 @@ metadata: breakdown: - state_code reference: - # currently, states that only cover a certain age group of undocumented immigrants are not included in this list. + # States that cover only some groups of undocumented immigrants read false + # here. gov.hhs.medicaid.eligibility.undocumented and + # gov.hhs.chip.undocumented hold their group rules. - title: "Medicaid and CHIP Eligibility and Enrollment Policies as of January 2023: Findings from a 50-State Survey" href: https://files.kff.org/attachment/Table-3-Medicaid-and-CHIP-Eligibility-Enrollment-and-Renewal-Policies-as-States-Prepare-for-the-Unwinding-of-the-Pandemic-Era-Continuous-Enrollment-Provision.pdf - title: "Medicaid and CHIP Eligibility and Enrollment Policies as of January 2022: Findings from a 50-State Survey" href: https://files.kff.org/attachment/Table-3-Medicaid-and-CHIP-Eligibility-and-Enrollment-Policies-as-of-January-2022.pdf - title: "Medicaid and CHIP Eligibility and Enrollment Policies as of January 2021: Findings from a 50-State Survey" href: https://files.kff.org/attachment/Table-3-State-Adoption-of-Options-to-Cover-Immigrant-Populations-January-2021.pdf + - title: Massachusetts General Laws chapter 118E, section 16D + href: https://malegislature.gov/Laws/GeneralLaws/PartI/TitleXVII/Chapter118E/Section16D + - title: "130 CMR 504.000, MassHealth: Citizenship and Immigration" + href: https://www.mass.gov/doc/130-cmr-504000-masshealth-citizenship-and-immigration-1/download#page=13 + - title: New York Social Services Law section 122 + href: https://www.nysenate.gov/legislation/laws/SOS/122 AL: 2021-01-01: false @@ -59,7 +67,12 @@ ME: MD: 2021-01-01: false MA: - 2021-01-01: true + # M.G.L. c. 118E, section 16D(2) limits undocumented residents to emergency + # services unless federal law requires more. 130 CMR 504.006(D) gives them + # MassHealth Standard if pregnant (gov.hhs.medicaid.eligibility.undocumented), + # MassHealth Limited, and the Children's Medical Security Plan under 19, + # which the model does not hold. + 2021-01-01: false MI: 2021-01-01: false MN: @@ -81,7 +94,17 @@ NJ: NM: 2021-01-01: false NY: - 2021-01-01: true + # Social Services Law section 122(1) limits undocumented residents to + # emergency care. New York covers them during pregnancy and for sixty + # days after it (Department of Health notice D61-C0332) and, in the model + # from 2024, at age 65 or older + # (gov.hhs.medicaid.eligibility.undocumented), and as children under the + # Children's Health Insurance Program (gov.hhs.chip.undocumented.child). + # The model applies New York's general postpartum period to undocumented + # residents, which reads 365 days from 2024. The one-year law names + # specific eligibility groups (Social Services Law section 366(4)(b)(1)), + # so the longer period is a modeling choice for undocumented residents. + 2021-01-01: false NC: 2021-01-01: false ND: diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/chip/chip_federal_and_state_cost.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/chip/chip_federal_and_state_cost.yaml index 7c558a58481..f496bf39181 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/chip/chip_federal_and_state_cost.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/chip/chip_federal_and_state_cost.yaml @@ -28,3 +28,57 @@ output: chip_federal_cost: 0 chip_state_cost: 0 + +# New York covers undocumented children under Child Health Plus with state +# funds: Public Health Law section 2511(2-b) asks for a Social Security +# number or citizenship documents only to claim the federal share. A child +# enrolled through gov.hhs.chip.undocumented.child gets no federal match, and +# the citizen sibling keeps New York's 65% enhanced match. +- name: New York undocumented child on CHIP has no federal share and the citizen sibling keeps 65% (2025) + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 35 + immigration_status: UNDOCUMENTED + employment_income: 32_150 + person2: + age: 33 + immigration_status: UNDOCUMENTED + employment_income: 32_150 + person3: + age: 12 + immigration_status: UNDOCUMENTED + takes_up_chip_if_eligible: true + person4: + age: 7 + takes_up_chip_if_eligible: true + marital_units: + marital_unit: + members: [person1, person2] + marital_unit2: + members: [person3] + marital_unit3: + members: [person4] + tax_units: + tax_unit: + members: [person1, person2, person3, person4] + households: + household: + members: [person1, person2, person3, person4] + state_code: NY + output: + # $64,300 / $32,150 = 2.00: both children are above the Medicaid limit of + # 154% and below the CHIP limit of 405%. + chip_category: [NONE, NONE, CHILD, CHILD] + chip_enrolled: [false, false, true, true] + is_federal_chip_immigration_status_eligible: [false, false, false, true] + # Per-child cost: $1,026,204,735 / 568,047 enrollees = $1,806.55. + chip: [0, 0, 1_806.55, 1_806.55] + # Citizen child: FMAP 50% + 30% of 50% = 65%. Undocumented child: 0. + chip_federal_share: [0, 0, 0, 0.65] + # $1,806.55 x 0.65 = $1,174.26. + chip_federal_cost: [0, 0, 0, 1_174.26] + # $1,806.55 x (1 - 0) = $1,806.55. $1,806.55 x (1 - 0.65) = $632.29. + chip_state_cost: [0, 0, 1_806.55, 632.29] diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_chip_eligible_child.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_chip_eligible_child.yaml index 71503609cac..7935a8004a5 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_chip_eligible_child.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_chip_eligible_child.yaml @@ -1104,3 +1104,88 @@ # New Jersey separate CHIP spending / enrollment in 2024: # $579,649,320 / 203,130 = $2,853.59. chip: [0, 0, 2_853.59, 2_853.59] + +# New York Child Health Plus. Two undocumented parents, an undocumented +# 12-year-old and a citizen 7-year-old. New York's Medicaid limit for older +# children is 154% of the poverty guideline, and its CHIP limit is 405%. The +# 2025 guideline for four people is $32,150. +- name: Case 39, New York undocumented child and citizen child both qualify for CHIP above the Medicaid limit. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 35 + immigration_status: UNDOCUMENTED + employment_income: 32_150 + person2: + age: 33 + immigration_status: UNDOCUMENTED + employment_income: 32_150 + person3: + age: 12 + immigration_status: UNDOCUMENTED + person4: + age: 7 + marital_units: + marital_unit: + members: [person1, person2] + marital_unit2: + members: [person3] + marital_unit3: + members: [person4] + tax_units: + tax_unit: + members: [person1, person2, person3, person4] + households: + household: + members: [person1, person2, person3, person4] + state_code: NY + output: + # $64,300 / $32,150 = 2.00: above 154%, below 405%. Both children fail + # Medicaid on income and get CHIP. The parents fail the adult limit of 138%. + medicaid_household_size: [4, 4, 4, 4] + is_medicaid_eligible: [false, false, false, false] + is_chip_eligible_child: [false, false, true, true] + chip_category: [NONE, NONE, CHILD, CHILD] + +- name: Case 40, New York undocumented child qualifies for CHIP where the citizen child qualifies for Medicaid. + period: 2025 + absolute_error_margin: 0.01 + input: + people: + person1: + age: 35 + immigration_status: UNDOCUMENTED + employment_income: 20_000 + person2: + age: 33 + immigration_status: UNDOCUMENTED + employment_income: 20_000 + person3: + age: 12 + immigration_status: UNDOCUMENTED + person4: + age: 7 + marital_units: + marital_unit: + members: [person1, person2] + marital_unit2: + members: [person3] + marital_unit3: + members: [person4] + tax_units: + tax_unit: + members: [person1, person2, person3, person4] + households: + household: + members: [person1, person2, person3, person4] + state_code: NY + output: + # $40,000 / $32,150 = 1.24: below 154%. The citizen child gets Medicaid. + # The undocumented child fails the Medicaid immigration test and gets CHIP. + # The undocumented parents fail the Medicaid immigration test. + medicaid_household_size: [4, 4, 4, 4] + is_medicaid_eligible: [false, false, false, true] + is_chip_eligible_child: [false, false, true, false] + chip_category: [NONE, NONE, CHILD, NONE] diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_chip_eligible_fcep.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_chip_eligible_fcep.yaml index 12dee65299a..e139189b74e 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_chip_eligible_fcep.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_chip_eligible_fcep.yaml @@ -602,3 +602,26 @@ state_code: CO output: is_chip_fcep_eligible_person: false + +# 130 CMR 504.006(D)(1) gives a pregnant undocumented Massachusetts resident +# MassHealth Standard, so the person passes the Medicaid immigration test and +# the unborn-child route, which covers people who are not eligible for +# Medicaid, does not apply. +- name: Case 22, Massachusetts covers an undocumented pregnant applicant at 150% FPL under Medicaid in 2025. + period: 2025 + input: + people: + person1: + age: 30 + is_pregnant: true + immigration_status: UNDOCUMENTED + medicaid_income_level: 1.5 + households: + household: + members: [person1] + state_code: MA + output: + is_medicaid_immigration_status_eligible: true + # 1.5 <= 2.05, Massachusetts's limit for pregnant people. + is_medicaid_eligible: true + is_chip_fcep_eligible_person: false diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_chip_immigration_status_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_chip_immigration_status_eligible.yaml index 37416a8dc03..ed12645a027 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_chip_immigration_status_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_chip_immigration_status_eligible.yaml @@ -381,3 +381,65 @@ state_code: NJ output: is_chip_immigration_status_eligible: false + +# Child Health Plus is New York's separate route for children under 19, +# whatever their immigration status (Public Health Law sections 2510(4) and +# 2511(2)). The model applies this route to undocumented children only: a +# child with another status that fails the federal test fails this test. +# The Medicaid pregnancy and postpartum route also applies to children, so +# the Medicaid immigration test stays false only for an undocumented child +# who is neither pregnant nor postpartum. +- name: Case 19, undocumented 8-year-old in New York passes the CHIP immigration test in 2025. + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 8 + state_code: NY + output: + # New York's child term is true, and 8 < 19: true. No Medicaid term applies. + is_chip_immigration_status_eligible: true + is_medicaid_immigration_status_eligible: false + +- name: Case 20, undocumented 8-year-old in New York passes the CHIP immigration test in 2017. + period: 2017 + input: + immigration_status: UNDOCUMENTED + age: 8 + state_code: NY + output: + # Backdating carries the child term's true value to 2015, and 8 < 19: true. + is_chip_immigration_status_eligible: true + is_medicaid_immigration_status_eligible: false + +- name: Case 21, undocumented 18-year-old in New York passes the CHIP immigration test in 2025. + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 18 + state_code: NY + output: + # 18 < 19: true. + is_chip_immigration_status_eligible: true + +- name: Case 22, undocumented 19-year-old in New York is past the CHIP age limit. + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 19 + state_code: NY + output: + # 19 < 19 is false. + is_chip_immigration_status_eligible: false + +# Massachusetts covers undocumented children through the Children's Medical +# Security Plan (130 CMR 504.006(D)(3)), which the model does not hold. +- name: Case 23, undocumented 8-year-old in Massachusetts fails the CHIP immigration test in 2025. + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 8 + state_code: MA + output: + # Massachusetts's child term is false, and so is the Medicaid flag. + is_chip_immigration_status_eligible: false + is_medicaid_immigration_status_eligible: false diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_federal_chip_immigration_status_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_federal_chip_immigration_status_eligible.yaml new file mode 100644 index 00000000000..f2e888d7947 --- /dev/null +++ b/policyengine_us/tests/policy/baseline/gov/hhs/chip/is_federal_chip_immigration_status_eligible.yaml @@ -0,0 +1,60 @@ +# The federal CHIP immigration test: citizens, qualified noncitizens exempt +# from or past the five-year bar, and the lawfully residing option. A state's +# own routes for undocumented children pass is_chip_immigration_status_eligible +# and fail this test. +- name: Case 1, citizen child passes the federal CHIP immigration test. + period: 2025 + input: + state_code: AZ + immigration_status: CITIZEN + age: 10 + output: + is_federal_chip_immigration_status_eligible: true + is_chip_immigration_status_eligible: true + +- name: Case 2, Arizona permanent resident child passes once the five-year bar ends. + period: 2025 + input: + people: + person1: + age: 10 + immigration_status: LEGAL_PERMANENT_RESIDENT + years_since_us_entry: 4 + person2: + age: 10 + immigration_status: LEGAL_PERMANENT_RESIDENT + years_since_us_entry: 5 + households: + household1: + members: [person1] + state_code: AZ + household2: + members: [person2] + state_code: AZ + output: + # Arizona elected no lawfully residing option: 4 < 5 fails, 5 >= 5 passes. + is_federal_chip_immigration_status_eligible: [false, true] + is_chip_immigration_status_eligible: [false, true] + +- name: Case 3, undocumented 8-year-old in New York passes the state route and fails the federal test in 2025. + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 8 + state_code: NY + output: + # Not a citizen, not a qualified noncitizen, not lawfully residing: false. + is_federal_chip_immigration_status_eligible: false + # New York's child term is true, and 8 < 19: true. + is_chip_immigration_status_eligible: true + +- name: Case 4, undocumented 8-year-old in New Jersey passes the state route and fails the federal test in 2024. + period: 2024 + input: + immigration_status: UNDOCUMENTED + age: 8 + state_code: NJ + output: + is_federal_chip_immigration_status_eligible: false + # New Jersey's child_age_limit is 19 from 2023, and 8 < 19: true. + is_chip_immigration_status_eligible: true diff --git a/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/is_medicaid_immigration_status_eligible.yaml b/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/is_medicaid_immigration_status_eligible.yaml index 14a4385da06..03c5598049b 100644 --- a/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/is_medicaid_immigration_status_eligible.yaml +++ b/policyengine_us/tests/policy/baseline/gov/hhs/medicaid/eligibility/is_medicaid_immigration_status_eligible.yaml @@ -90,6 +90,344 @@ output: is_medicaid_immigration_status_eligible: false +# New York limits undocumented residents to emergency care, except during +# pregnancy and the postpartum period and, from January 1, 2024, at age 65 or +# older. Massachusetts gives them MassHealth Standard only during pregnancy +# and the postpartum period. The all-ages flag in undocumented_immigrant reads +# false for both states, so each case below turns on the pregnancy term or +# the aged term alone. + +- name: Undocumented 35-year-old in New York fails the Medicaid immigration test in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 35 + is_pregnant: false + state_code: NY + output: + # Not pregnant or postpartum, and under 65: false OR false = false. + is_medicaid_immigration_status_eligible: false + +- name: Undocumented 35-year-old in New York fails the Medicaid immigration test in 2017 + period: 2017 + input: + immigration_status: UNDOCUMENTED + age: 35 + is_pregnant: false + state_code: NY + output: + # Backdating carries the flag's false value to 2015: false OR false = false. + is_medicaid_immigration_status_eligible: false + +- name: Pregnant undocumented 30-year-old in New York passes the Medicaid immigration test in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: true + state_code: NY + output: + # New York's pregnancy term is true and the person is pregnant: true. + is_medicaid_immigration_status_eligible: true + +- name: Pregnant undocumented 30-year-old in New York passes the Medicaid immigration test in 2017 + period: 2017 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: true + state_code: NY + output: + # Backdating carries the pregnancy term's true value to 2015: true. + is_medicaid_immigration_status_eligible: true + +- name: Undocumented New Yorker between 60 days and 12 months postpartum passes the Medicaid immigration test in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + under_12_months_postpartum: true + state_code: NY + output: + # count_days_postpartum = 60, and New York's postpartum period reads 365 + # days at 2025-01-01: 60 < 365 = true. + is_medicaid_immigration_status_eligible: true + +- name: Undocumented New Yorker between 60 days and 12 months postpartum fails the Medicaid immigration test in 2023 + period: 2023 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + under_12_months_postpartum: true + state_code: NY + output: + # New York's 365-day period starts 2023-03-01, so the model reads 60 days + # at 2023-01-01: 60 < 60 = false. + is_medicaid_immigration_status_eligible: false + +- name: Undocumented 70-year-old in New York fails the Medicaid immigration test in 2023 + period: 2023 + input: + immigration_status: UNDOCUMENTED + age: 70 + state_code: NY + output: + # New York's aged term is false at 2023-01-01 and true from 2024-01-01. + is_medicaid_immigration_status_eligible: false + +- name: Undocumented 70-year-old in New York passes the Medicaid immigration test in 2024 + period: 2024 + input: + immigration_status: UNDOCUMENTED + age: 70 + state_code: NY + output: + # New York's aged term is true at 2024-01-01, and 70 >= 65: true. + is_medicaid_immigration_status_eligible: true + +- name: Undocumented 70-year-old in New York passes the Medicaid immigration test in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 70 + state_code: NY + output: + # New York's aged term is true at 2025-01-01, and 70 >= 65: true. + is_medicaid_immigration_status_eligible: true + +- name: Undocumented 64-year-old in New York fails the Medicaid immigration test in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 64 + is_pregnant: false + state_code: NY + output: + # 64 >= 65 is false, and the person is not pregnant: false. + is_medicaid_immigration_status_eligible: false + +- name: Undocumented 65-year-old in New York passes the Medicaid immigration test in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 65 + state_code: NY + output: + # 65 >= 65: true. + is_medicaid_immigration_status_eligible: true + +- name: Undocumented 8-year-old in New York fails the Medicaid immigration test in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 8 + state_code: NY + output: + # Child Health Plus covers the child (is_chip_immigration_status_eligible). + # No Medicaid term applies: false. + is_medicaid_immigration_status_eligible: false + +- name: Undocumented 35-year-old in Massachusetts fails the Medicaid immigration test in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 35 + is_pregnant: false + state_code: MA + output: + # Massachusetts reads false in the flag, and the person is not pregnant: false. + is_medicaid_immigration_status_eligible: false + +- name: Undocumented 70-year-old in Massachusetts fails the Medicaid immigration test in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 70 + state_code: MA + output: + # Massachusetts's aged term is false: false. + is_medicaid_immigration_status_eligible: false + +- name: Pregnant undocumented 30-year-old in Massachusetts passes the Medicaid immigration test in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: true + state_code: MA + output: + # Massachusetts's pregnancy term is true and the person is pregnant: true. + is_medicaid_immigration_status_eligible: true + +- name: Undocumented Massachusetts resident under 60 days postpartum passes the Medicaid immigration test in 2017 + period: 2017 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + under_60_days_postpartum: true + state_code: MA + output: + # count_days_postpartum = 0, and Massachusetts's postpartum period reads 60 + # days at 2017-01-01: 0 < 60 = true. + is_medicaid_immigration_status_eligible: true + +# Between 60 days and 12 months after delivery, the result follows each +# state's postpartum period, read on January 1. + +- name: Undocumented Massachusetts resident between 60 days and 12 months postpartum fails the Medicaid immigration test in 2022 + period: 2022 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + under_12_months_postpartum: true + state_code: MA + output: + # Massachusetts's 365-day period starts 2022-04-01, so the model reads 60 + # days at 2022-01-01: 60 < 60 = false. + is_medicaid_immigration_status_eligible: false + +- name: Undocumented Massachusetts resident between 60 days and 12 months postpartum passes the Medicaid immigration test in 2023 + period: 2023 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + under_12_months_postpartum: true + state_code: MA + output: + # count_days_postpartum = 60, and Massachusetts's postpartum period reads + # 365 days at 2023-01-01: 60 < 365 = true. + is_medicaid_immigration_status_eligible: true + +- name: Undocumented New Yorker between 60 days and 12 months postpartum passes the Medicaid immigration test in 2024 + period: 2024 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + under_12_months_postpartum: true + state_code: NY + output: + # count_days_postpartum = 60, and New York's postpartum period reads 365 + # days at 2024-01-01 (from 2023-03-01): 60 < 365 = true. + is_medicaid_immigration_status_eligible: true + +- name: Pregnant undocumented 17-year-old in New York passes both immigration tests in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 17 + is_pregnant: true + state_code: NY + output: + # New York's pregnancy term is true and the person is pregnant: true. + is_medicaid_immigration_status_eligible: true + # New York's child term is true and 17 < 19: true. + is_chip_immigration_status_eligible: true + +# The pregnancy term compares days since delivery with the state's +# postpartum period: fewer days than the period passes. + +- name: Undocumented New York resident 59 days postpartum passes the Medicaid immigration test in 2023 + period: 2023 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + count_days_postpartum: 59 + state_code: NY + output: + # New York's period reads 60 days at 2023-01-01: 59 < 60 = true. + is_medicaid_immigration_status_eligible: true + +- name: Undocumented New York resident 60 days postpartum fails the Medicaid immigration test in 2023 + period: 2023 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + count_days_postpartum: 60 + state_code: NY + output: + # New York's period reads 60 days at 2023-01-01: 60 < 60 = false. + is_medicaid_immigration_status_eligible: false + +- name: Undocumented New York resident 364 days postpartum passes the Medicaid immigration test in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + count_days_postpartum: 364 + state_code: NY + output: + # New York's period reads 365 days at 2025-01-01: 364 < 365 = true. + is_medicaid_immigration_status_eligible: true + +- name: Undocumented New York resident 365 days postpartum fails the Medicaid immigration test in 2025 + period: 2025 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + count_days_postpartum: 365 + state_code: NY + output: + # New York's period reads 365 days at 2025-01-01: 365 < 365 = false. + is_medicaid_immigration_status_eligible: false + +- name: Undocumented Massachusetts resident 59 days postpartum passes the Medicaid immigration test in 2022 + period: 2022 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + count_days_postpartum: 59 + state_code: MA + output: + # Massachusetts's period reads 60 days at 2022-01-01: 59 < 60 = true. + is_medicaid_immigration_status_eligible: true + +- name: Undocumented Massachusetts resident 60 days postpartum fails the Medicaid immigration test in 2022 + period: 2022 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + count_days_postpartum: 60 + state_code: MA + output: + # Massachusetts's period reads 60 days at 2022-01-01: 60 < 60 = false. + is_medicaid_immigration_status_eligible: false + +- name: Undocumented Massachusetts resident 364 days postpartum passes the Medicaid immigration test in 2023 + period: 2023 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + count_days_postpartum: 364 + state_code: MA + output: + # Massachusetts's period reads 365 days at 2023-01-01: 364 < 365 = true. + is_medicaid_immigration_status_eligible: true + +- name: Undocumented Massachusetts resident 365 days postpartum fails the Medicaid immigration test in 2023 + period: 2023 + input: + immigration_status: UNDOCUMENTED + age: 30 + is_pregnant: false + count_days_postpartum: 365 + state_code: MA + output: + # Massachusetts's period reads 365 days at 2023-01-01: 365 < 365 = false. + is_medicaid_immigration_status_eligible: false + - name: Eligible for federal Medicaid CA period: 2024 input: diff --git a/policyengine_us/variables/gov/hhs/chip/chip_federal_share.py b/policyengine_us/variables/gov/hhs/chip/chip_federal_share.py index c99933d6b2b..d9f3ac9bc1f 100644 --- a/policyengine_us/variables/gov/hhs/chip/chip_federal_share.py +++ b/policyengine_us/variables/gov/hhs/chip/chip_federal_share.py @@ -9,16 +9,42 @@ class chip_federal_share(Variable): "Enhanced federal medical assistance percentage (eFMAP) applied to " "CHIP expenditures: regular state FMAP plus 30 percent of the gap " "between regular FMAP and 100 percent, capped at 85 percent " - "(42 U.S.C. 1397ee(b)(1))." + "(42 U.S.C. 1397ee(b)(1)). An undocumented child whom CHIP enrolls in " + "its child category through the route that " + "gov.hhs.chip.undocumented.child opens gets no federal share " + "(8 U.S.C. 1611). An undocumented child whom New Jersey's " + "all-children route admits keeps the match here." ) unit = "/1" definition_period = YEAR - reference = "https://www.law.cornell.edu/uscode/text/42/1397ee#b" + reference = ( + "https://www.law.cornell.edu/uscode/text/42/1397ee#b", + "https://www.govinfo.gov/content/pkg/USCODE-2024-title8/html/USCODE-2024-title8-chap14-subchapI-sec1611.htm", + ) defined_for = "chip_enrolled" def formula(person, period, parameters): - fmap = parameters(period).gov.hhs.medicaid.cost_share.fmap + p = parameters(period).gov.hhs + fmap = p.medicaid.cost_share.fmap state = person.household("state_code", period) regular_fmap = fmap[state] efmap = min_(regular_fmap + 0.30 * (1 - regular_fmap), 0.85) - return where(regular_fmap > 0, efmap, 0) + # 8 U.S.C. 1611 bars federal payment for a child with no federal + # immigration route. The state alone funds an undocumented child whom + # CHIP enrolls in its child category through the route that + # gov.hhs.chip.undocumented.child opens, so that child gets no match. + # This formula does not apply that to other state routes: an + # undocumented child whom New Jersey admits through + # regardless_of_immigration_status.child_age_limit keeps the match. + # The unborn-child route tests no immigration status and keeps its + # match. + status = person("immigration_status", period) + state_str = person.household("state_code_str", period) + category = person("chip_category", period) + state_funded_child = ( + (category == category.possible_values.CHILD) + & (status == status.possible_values.UNDOCUMENTED) + & p.chip.undocumented.child[state_str].astype(bool) + & ~person("is_federal_chip_immigration_status_eligible", period) + ) + return where(state_funded_child, 0, where(regular_fmap > 0, efmap, 0)) diff --git a/policyengine_us/variables/gov/hhs/chip/is_chip_immigration_status_eligible.py b/policyengine_us/variables/gov/hhs/chip/is_chip_immigration_status_eligible.py index 90be385d911..c1a49290450 100644 --- a/policyengine_us/variables/gov/hhs/chip/is_chip_immigration_status_eligible.py +++ b/policyengine_us/variables/gov/hhs/chip/is_chip_immigration_status_eligible.py @@ -20,50 +20,36 @@ class is_chip_immigration_status_eligible(Variable): "https://www.medicaid.gov/federal-policy-guidance/downloads/SHO-12-002.pdf#page=1", "https://www.medicaid.gov/federal-policy-guidance/downloads/sho21007.pdf#page=17", "https://www.medicaid.gov/federal-policy-guidance/downloads/sho26001.pdf#page=6", + "https://www.nysenate.gov/legislation/laws/PBH/2511", ) def formula(person, period, parameters): p = parameters(period).gov.hhs - medicaid = p.medicaid.eligibility - status = person("immigration_status", period) - status_str = status.decode_to_str() - citizen = status == status.possible_values.CITIZEN - # CHIP shares the Medicaid qualified-alien statuses (narrowed by section - # 71109 from October 2026) and the five-year bar (SHO #26-001). - qualified_status = np.isin(status_str, medicaid.eligible_immigration_statuses) - bar_exempt_status = np.isin( - status_str, medicaid.bar_exempt_immigration_statuses - ) - years_since_entry = person("years_since_us_entry", period) - past_five_year_bar = years_since_entry >= medicaid.five_year_bar_years - federally_eligible_status = citizen | ( - qualified_status & (bar_exempt_status | past_five_year_bar) + # The federal test: citizens, qualified noncitizens exempt from or + # past the five-year bar, and the lawfully residing option where the + # state elected it in both CHIP and Medicaid. The routes below are + # each state's own. + federally_eligible = person( + "is_federal_chip_immigration_status_eligible", period ) - # The lawfully residing option reaches CHIP only for a group the state - # elected in both CHIP and Medicaid. - medicaid_option = medicaid.lawfully_residing - chip_option = p.chip.lawfully_residing - lawfully_residing = np.isin(status_str, medicaid_option.immigration_statuses) + status = person("immigration_status", period) state = person.household("state_code_str", period) age = person("age", period) - child = ( - chip_option.child[state].astype(bool) - & medicaid_option.child[state].astype(bool) - & (age < p.chip.child.max_age) - ) - # The pregnancy option runs through the state's postpartum period, - # including the 12-month extension where elected (SHO 21-007 Q11). - pregnant = ( - chip_option.pregnant[state].astype(bool) - & medicaid_option.pregnant[state].astype(bool) - & person("is_pregnant_for_medicaid_nfc", period) - ) # States that cover every child below an age limit regardless of # immigration status do so in CHIP as well as Medicaid. - regardless = medicaid.regardless_of_immigration_status + regardless = p.medicaid.eligibility.regardless_of_immigration_status child_eligible_regardless_of_status = age < regardless.child_age_limit[state] + # Some states cover undocumented children in CHIP alone. These + # children pass the Medicaid immigration test only through the + # pregnancy term. + undocumented = status == status.possible_values.UNDOCUMENTED + undocumented_child = ( + undocumented + & p.chip.undocumented.child[state].astype(bool) + & (age < p.chip.child.max_age) + ) return ( - federally_eligible_status - | (lawfully_residing & (child | pregnant)) + federally_eligible | child_eligible_regardless_of_status + | undocumented_child ) diff --git a/policyengine_us/variables/gov/hhs/chip/is_federal_chip_immigration_status_eligible.py b/policyengine_us/variables/gov/hhs/chip/is_federal_chip_immigration_status_eligible.py new file mode 100644 index 00000000000..5467c3fee10 --- /dev/null +++ b/policyengine_us/variables/gov/hhs/chip/is_federal_chip_immigration_status_eligible.py @@ -0,0 +1,68 @@ +from policyengine_us.model_api import * + + +class is_federal_chip_immigration_status_eligible(Variable): + value_type = bool + entity = Person + label = "Person meets the federal CHIP immigration status test" + documentation = ( + "Whether a person's immigration status allows federally funded CHIP: " + "a citizen, a qualified noncitizen who is exempt from or past the " + "five-year bar, or a lawfully residing child or pregnant person in a " + "state that elected the option in both CHIP and Medicaid. State-funded " + "routes are left to is_chip_immigration_status_eligible." + ) + definition_period = YEAR + # Separate CHIP covers citizens and qualified aliens who are exempt from or + # past the five-year bar (8 USC 1611(a) and 1613). From October 1, 2026, + # 42 USC 1397gg(e)(1)(R) applies the 1396b(v)(5) status limits to CHIP. + # Under 42 USC 1397gg(e)(1)(Q), states that elected the lawfully residing + # option for a group in both Medicaid and CHIP also cover that group. + reference = ( + "https://www.law.cornell.edu/uscode/text/8/1611#a", + "https://www.law.cornell.edu/uscode/text/8/1613", + "https://www.law.cornell.edu/uscode/text/42/1397gg#e_1_Q", + "https://www.law.cornell.edu/uscode/text/42/1397gg#e_1_R", + "https://downloads.cms.gov/cmsgov/archived-downloads/smdl/downloads/sho10006.pdf#page=2", + "https://www.medicaid.gov/federal-policy-guidance/downloads/SHO-12-002.pdf#page=1", + "https://www.medicaid.gov/federal-policy-guidance/downloads/sho21007.pdf#page=17", + "https://www.medicaid.gov/federal-policy-guidance/downloads/sho26001.pdf#page=6", + ) + + def formula(person, period, parameters): + p = parameters(period).gov.hhs + medicaid = p.medicaid.eligibility + status = person("immigration_status", period) + status_str = status.decode_to_str() + citizen = status == status.possible_values.CITIZEN + # CHIP shares the Medicaid qualified-alien statuses (narrowed by section + # 71109 from October 2026) and the five-year bar (SHO #26-001). + qualified_status = np.isin(status_str, medicaid.eligible_immigration_statuses) + bar_exempt_status = np.isin( + status_str, medicaid.bar_exempt_immigration_statuses + ) + years_since_entry = person("years_since_us_entry", period) + past_five_year_bar = years_since_entry >= medicaid.five_year_bar_years + federally_eligible_status = citizen | ( + qualified_status & (bar_exempt_status | past_five_year_bar) + ) + # The lawfully residing option reaches CHIP only for a group the state + # elected in both CHIP and Medicaid. + medicaid_option = medicaid.lawfully_residing + chip_option = p.chip.lawfully_residing + lawfully_residing = np.isin(status_str, medicaid_option.immigration_statuses) + state = person.household("state_code_str", period) + age = person("age", period) + child = ( + chip_option.child[state].astype(bool) + & medicaid_option.child[state].astype(bool) + & (age < p.chip.child.max_age) + ) + # The pregnancy option runs through the state's postpartum period, + # including the 12-month extension where elected (SHO 21-007 Q11). + pregnant = ( + chip_option.pregnant[state].astype(bool) + & medicaid_option.pregnant[state].astype(bool) + & person("is_pregnant_for_medicaid_nfc", period) + ) + return federally_eligible_status | (lawfully_residing & (child | pregnant)) diff --git a/policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medicaid_immigration_status_eligible.py b/policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medicaid_immigration_status_eligible.py index d5c4dd14a2d..b51b8bb625e 100644 --- a/policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medicaid_immigration_status_eligible.py +++ b/policyengine_us/variables/gov/hhs/medicaid/eligibility/is_medicaid_immigration_status_eligible.py @@ -12,6 +12,8 @@ class is_medicaid_immigration_status_eligible(Variable): "https://www.law.cornell.edu/uscode/text/8/1641", "https://uscode.house.gov/view.xhtml?req=granuleid:USC-prelim-title8-section1613&num=0&edition=prelim", "https://www.kff.org/racial-equity-and-health-policy/fact-sheet/key-facts-on-health-coverage-of-immigrants/", + "https://www.nysenate.gov/legislation/laws/SOS/366", + "https://malegislature.gov/Laws/GeneralLaws/PartI/TitleXVII/Chapter118E/Section16D", ) def formula(person, period, parameters): @@ -29,7 +31,23 @@ def formula(person, period, parameters): ) state = person.household("state_code_str", period) state_covers_undocumented = p.undocumented_immigrant[state].astype(bool) - undocumented_eligible = undocumented & state_covers_undocumented + # Some states cover undocumented immigrants only during pregnancy and + # the postpartum period, or only at age 65 or older. + covers_pregnancy = p.undocumented.pregnant[state].astype(bool) + covers_aged = p.undocumented.aged[state].astype(bool) + # The pregnancy term reuses the Medicaid pregnancy category's test, so + # this term and that category end on the same day by design. The test + # counts days since the pregnancy ended. Massachusetts continues + # coverage "to the end of the month in which the 12-month period ends" + # (130 CMR 505.002(D)(4)), so the model's day count ends before that + # continuation does. + pregnant = person("is_pregnant_for_medicaid_nfc", period) + aged = person("is_ssi_aged", period) + undocumented_eligible = undocumented & ( + state_covers_undocumented + | (covers_pregnancy & pregnant) + | (covers_aged & aged) + ) # Some states cover every child below an age limit with state funds, # whatever the child's immigration status. diff --git a/source_conflicts/candidates.yaml b/source_conflicts/candidates.yaml index bad1dab7241..3a3e94231f3 100644 --- a/source_conflicts/candidates.yaml +++ b/source_conflicts/candidates.yaml @@ -17519,3 +17519,32 @@ candidates: - https://github.com/PolicyEngine/policyengine-us/pull/10002 state: open note: PE-US applies the election for 2017 and does not model which taxes the federal return claimed (mt_salt_deduction.py, mt_salt_deduction_indiv.py). A ruling is needed on line 8's tie to the federal return and on adding line 9 to line 8. +- id: us-ma:undocumented-pregnancy-masshealth-standard + program: medicaid + years: + from: 2014 + type: calendar + question: Does Massachusetts give a pregnant undocumented resident MassHealth Standard, as 130 CMR 504.006(D)(1) provides, when M.G.L. c. 118E, section 16D(2) bars benefits other than emergency services to undocumented residents unless federal law requires them? + sources: + - kind: statute + citation: M.G.L. c. 118E, section 16D(2) + url: https://malegislature.gov/Laws/GeneralLaws/PartI/TitleXVII/Chapter118E/Section16D + - kind: regulation + citation: 130 CMR 504.006(D)(1), PDF page 13 (Rev. 08/19/22) + url: https://www.mass.gov/doc/130-cmr-504000-masshealth-citizenship-and-immigration-1/download#page=13 + - kind: regulation + citation: 130 CMR 505.002(D), PDF page 4 (revised February 13, 2026) + url: https://www.mass.gov/doc/130-cmr-505000-masshealth-coverage-types-5/download#page=4 + readings: + statute: Section 16D(2) says "services or benefits other than emergency services shall not be provided to undocumented aliens unless required by federal law". + other: 130 CMR 504.006(D)(1) gives other noncitizens "MassHealth Standard, if they are pregnant", and 130 CMR 505.002(D) continues that coverage after the pregnancy ends. + example: In model year 2025 the model finds an undocumented Massachusetts resident at 150% of the poverty line who meets Medicaid's other tests eligible for Medicaid during pregnancy and through day 364 after delivery. 130 CMR 505.002(D)(4), in the text revised February 13, 2026, continues eligibility for postpartum care for 12 months after the pregnancy ends and then to the end of the month in which that period ends. If the model followed the statute's emergency-only reading, the resident would not be eligible for Medicaid. The model's CHIP unborn-child route would be open during pregnancy if its other tests pass and would end at delivery. Emergency Medicaid is a separate test. + pe_us: + follows: conflicting-source + code: + - policyengine_us/parameters/gov/hhs/medicaid/eligibility/undocumented/pregnant.yaml + - policyengine_us/parameters/gov/hhs/medicaid/eligibility/undocumented_immigrant.yaml + prs: + - https://github.com/PolicyEngine/policyengine-us/pull/11130 + state: open + note: PolicyEngine follows the regulation. Before pull request 11130 the model passed every undocumented Massachusetts resident at every age. No source read for this candidate names a federal law that requires the coverage, or says whether Massachusetts claims federal match for it. A regulation that flatly contradicts its statute goes to the project lead (CONTRIBUTING.md, "Source conflicts").