The model gives Californians on state-funded Medi-Cal no emergency Medicaid once they fail the 2027 work requirement
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Read is_emergency_medicaid_eligible.py alongside is_federal_medicaid_immigration_status_eligible.py and is_medicaid_ineligible_due_to_work_requirement.py to trace the eligibility conditions described. Check how California's state route is distinguished from the other state routes before choosing a change. Add or update tests for the enrolled California adult who fails the work requirement but has an emergency condition; done means the model returns emergency Medicaid eligibility for that case while preserving the behavior described for other groups.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
From 2027 the model applies the federal Medicaid work requirement to every adult in the adult group, including adults who reach Medi-Cal only through California's state-funded immigration route. When one of these adults fails the requirement, the model denies them Medicaid and gives them no emergency Medicaid either, since it gives emergency Medicaid only to people who fail its Medicaid immigration test. California applies the requirement to these adults too. California's Legislative Analyst's Office (LAO) analyzed the Governor's proposal to do so and wrote that those who fail it may generally remain eligible for restricted-scope Medi-Cal, which covers emergency and pregnancy-related services.
One household
Take an undocumented Californian aged 30, single with no children, who enrolled in full-scope Medi-Cal before the state's 2026 enrollment freeze, so the household sets receives_medicaid to true. In 2027 they have no income, no work or other qualifying hours, and an emergency medical condition. Each value below follows from the code at main, read line by line; the model did not run.
medicaid_categoryreturns the adult group. The person falls in the 19-to-64 age range, has no Medicare or SSI, and has $0 of income, under 138% of the poverty line.is_medicaid_immigration_status_eligiblereturns true. The model passes the person through the California test's branch for enrollees with current coverage.medicaid_work_requirement_eligiblereturns false. The person has 0 of the 80 monthly hours and $0 of the $580 monthly income test ($7.25 federal minimum wage times 80 hours). The model gives them no SNAP, since undocumented people fail its SNAP immigration test, somedicaid_community_engagement_pass_through_eligiblereturns false, and the household sets no exemption input.is_medicaid_eligiblereturns false, andis_medicaid_ineligible_due_to_work_requirementreturns true.is_emergency_medicaid_eligiblereturns false, because the person passes the immigration test.
If the same person applied for the first time in 2027, the model would give them emergency Medicaid. From 2026 the model lets an undocumented adult onto the California route only with current coverage or a pregnancy, following the state's freeze on new full-scope enrollment. The applicant fails the immigration test, so is_emergency_medicaid_eligible returns true whatever their work hours. The model sends DACA and TPS holders through the same California test, with or without current coverage, so a DACA or TPS adult with the same facts gets the same result as the enrolled person.
What the law says
- Congress requires each State to make community engagement "a condition of eligibility for medical assistance" for adults in the adult group, from the first quarter that begins after December 31, 2026 at the latest. Congress added this rule as 42 U.S.C. 1396a(xx) in Public Law 119-21, section 71119 (139 Stat. 306-307). An adult meets it with 80 hours a month of work, community service, a work program or half-time school, or with monthly income of at least the federal minimum wage times 80 hours.
- California applies the requirement to adults with unsatisfactory immigration status (UIS) whose full-scope coverage the state funds alone, though Congress did not require it. The LAO reports that Chapter 27 of 2026 (SB 164) "extends these requirements to individuals with UIS who receive comprehensive Medi-Cal coverage through state-only funding" (The 2026-27 California Spending Plan: Health, October 19, 2026).
- The LAO analyzed the Governor's proposal to extend the requirement in The 2026-27 Budget: Medi-Cal Analysis (March 2, 2026). It wrote that UIS adults who fail the requirement "may generally remain eligible for restricted-scope Medi-Cal coverage, an option not available to adults with satisfactory immigration status". The LAO did not restate that point in its October report on the enacted budget.
- Under its enacted 2026-27 budget, California moves noncitizens who lose federally funded full-scope coverage, such as refugees and asylees, to "restricted-scope Medi-Cal" on July 1, 2027 (enacted budget summary, p. 103). In its October report, the LAO describes the coverage they move to as "restricted to emergency and pregnancy-related services".
- Congress excludes pregnant and postpartum people from the requirement (paragraph (9)(A)(ii)(IX)), so an adult who fails it would use restricted scope for emergency care.
Citizens and lawful permanent residents past the five-year bar have no such fallback, and the model's result for them matches the law. Congress wrote the emergency-care exception in 42 U.S.C. 1396b(v)(2) for "an alien described in paragraph (1)", one "not lawfully admitted for permanent residence or otherwise permanently residing in the United States under color of law". The LAO wrote the same of restricted scope in California.
In the code
- In
is_emergency_medicaid_eligible.py, the model requires~is_medicaid_immigration_status_eligibleand reads no work-requirement result. - In
is_medicaid_immigration_status_eligible.py, the model ORs the federal test with the state routes, California's among them. - In
is_ca_medicaid_immigration_status_eligible.py, the model passes undocumented adults with current coverage and every DACA or TPS holder. It turns the age brackets for adults 19 and older false from 2026 ineligible_regardless_of_immigration_status.yaml. - In
is_medicaid_eligible.py, the model ANDs the work requirement onto category and immigration status oncework_requirements/applies.yamlturns true on 2027-01-01. - In
is_medicaid_ineligible_due_to_work_requirement.py, the model flags adults who pass the category and immigration tests and fail the work requirement. - In
medicaid_work_requirement_eligible.py, the model tests the 80 hours and the income threshold.
The model defaults has_emergency_medical_condition to false, and no other variable reads is_emergency_medicaid_eligible, so no population result depends on it. Users meet the gap in household calculations for 2027 and later that set the condition. A user can also set is_hospitalized_for_medicaid_ce, the input for the inpatient hardship exception that states may elect under paragraph (3)(B), and the model then treats the person as meeting the requirement for the whole year. The household above has no hospital stay.
Possible fix
The model already keeps the federal immigration test in its own variable, is_federal_medicaid_immigration_status_eligible. We could let is_emergency_medicaid_eligible also pass a person who fails that test and for whom is_medicaid_ineligible_due_to_work_requirement returns true. The same change would reach the undocumented-adult routes the model gives the District of Columbia, Massachusetts, New York and Oregon, so we could add a California condition to keep it to the state these sources cover.
Related: #10986 (the federal share of these state routes), #11128 and #11150 (California's route for DACA recipients), #10950 (open; changes to is_federal_medicaid_immigration_status_eligible), and #8575 (closed; hardship exceptions).
🤖 Generated with Claude Code
- Lenguaje dominante
- Python
- Estrellas
- 178
- Forks
- 224
- Merge medio
- 2 d 7 h
- PR fusionados (30 d)
- 309
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PolicyEngine/policyengine-us
-
Secondary earnings threshold description names a stale 2035 capPosiblemente ocupada @Prabh022 la tomó hace 1 día. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
PolicyEngine/policyengine-us#11252 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
PolicyEngine/policyengine-us#11201 ·
Los mantenedores suelen responder en 2 días
-
Idaho BBCE households without an elderly or disabled member should face the SNAP net income testPosiblemente ocupada @DTrim99 la tomó hace 4 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
PolicyEngine/policyengine-us#11199 ·
Los mantenedores suelen responder en 2 días
-
California's Medi-Cal immigration test passes pregnant people but not those in the postpartum periodAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
PolicyEngine/policyengine-us#11192 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
PolicyEngine/policyengine-us#11084 ·
Los mantenedores suelen responder en 2 días
Todos los issues de PolicyEngine/policyengine-us
Issues similares
-
S2-12 Atualizar README.mdAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
-
bug help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
cofade/open-garden-planner#1044 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
python-commandline-toolsAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
codecrafters-io/build-your-own-x#2126 ·
Los mantenedores suelen responder en 5 días
-
documentation good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
julianleno/cortai#10 ·
-
difficulty:easy func:python os:windows prio:high type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
NatronGitHub/Natron#2029 ·
Los mantenedores suelen responder en 1 día