The model gives Californians on state-funded Medi-Cal no emergency Medicaid once they fail the 2027 work requirement
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Python
- スター
- 178
- フォーク
- 224
- 平均マージ
- 2日 7時間
- マージ済み PR(30日)
- 296
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PolicyEngine/policyengine-us のほかの issue
-
Secondary earnings threshold description names a stale 2035 cap対応中かも @Prabh022 が 1 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
PolicyEngine/policyengine-us#11252 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PolicyEngine/policyengine-us#11201 ·
メンテナーはふだん 2 日以内に返信
-
Idaho BBCE households without an elderly or disabled member should face the SNAP net income test対応中かも @DTrim99 が 4 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
PolicyEngine/policyengine-us#11199 ·
メンテナーはふだん 2 日以内に返信
-
California's Medi-Cal immigration test passes pregnant people but not those in the postpartum periodオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
PolicyEngine/policyengine-us#11192 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
PolicyEngine/policyengine-us#11084 ·
メンテナーはふだん 2 日以内に返信
PolicyEngine/policyengine-us の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
cofade/open-garden-planner#1044 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
codecrafters-io/build-your-own-x#2126 ·
メンテナーはふだん 5 日以内に返信
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
julianleno/cortai#10 ·
-
difficulty:easy func:python os:windows prio:high type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
NatronGitHub/Natron#2029 ·
メンテナーはふだん 1 日以内に返信