Give emergency Medicaid an output that cost and enrollment totals can read

Open
#11,213 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start from is_emergency_medicaid_eligible in policyengine_us/variables/gov/hhs/medicaid/emergency_medicaid/, then find where medicaid_cost and the existing Medicaid enrollment totals are defined. Decide whether a new emergency Medicaid output or an extension of medicaid_cost carries the cost, and split it between federal and state funds. Done when the Massachusetts 2025 test case (undocumented adult aged 35 at 100% of poverty with an emergency condition) gives a cost above 0 and the existing tests still pass.

Written by the indexing model from the issue text.

Description

is_emergency_medicaid_eligible passes a person who fails Medicaid's immigration test, has an emergency condition and meets a Medicaid category's other tests. At PolicyEngine/policyengine-us#11130's head 735542eb87, no variable reads it: tests assert it, but no cost, enrollment or benefit total uses it.

#11130 moves undocumented residents of New York and Massachusetts out of full Medicaid unless pregnant or postpartum or, in New York from 2024, aged 65 or older. Undocumented New York children under 19 now pass the CHIP immigration test instead. Those with an emergency condition who meet a Medicaid category's tests now pass is_emergency_medicaid_eligible, New York's CHIP children among them. #11127 notes that the model counts no cost for emergency-only coverage in any state.

Possible fix

Add an emergency Medicaid enrollment and cost output, with its own take-up and per-person cost, and decide whether medicaid_cost or a separate total carries it. State how it splits between federal and state funds.

Test case

Massachusetts 2025: an undocumented adult aged 35 at 100% of the poverty line with an emergency condition. is_emergency_medicaid_eligible reads true, and the new cost output reads above 0.

Dominant language
Python
Stars
178
Forks
224
Avg merge
2d 7h
Merged PRs (30d)
309

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from PolicyEngine/policyengine-us

All issues in PolicyEngine/policyengine-us

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.