-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #366 from CrimsonOHara/new-branch
Medicaid Tests + Income Threshold Formula for California
- Loading branch information
Showing
5 changed files
with
117 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
description: Medicaid income limit as a percentage of the federal poverty guideline. | ||
CA: | ||
ADULT_WITHOUT_DEPENDENT: | ||
2021-01-01: 1.38 | ||
ADULT_WITH_DEPENDENT: | ||
2021-01-01: 1.38 | ||
CHILD_AGE_0: | ||
2021-01-01: 1.38 | ||
CHILD_AGE_1_5: | ||
2021-01-01: 1.38 | ||
CHILD_AGE_6_18: | ||
2021-01-01: 1.38 | ||
|
||
metadata: | ||
unit: /1 | ||
reference: | ||
title: California Medicaid Eligibility | ||
href: https://www.dhcs.ca.gov/services/medi-cal/Pages/DoYouQualifyForMedi-Cal.aspx | ||
period: year |
60 changes: 60 additions & 0 deletions
60
openfisca_us/tests/policy/baseline/hhs/medicaid/medicaid_income_threshold.yaml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
- name: California adult with no dependents | ||
period: 2022 | ||
input: | ||
people: | ||
person: | ||
medicaid_person_type: ADULT_WITHOUT_DEPENDENT | ||
households: | ||
household: | ||
state_code_str: CA | ||
members: [person] | ||
output: | ||
medicaid_income_threshold: 1.38 | ||
- name: California adult with dependents | ||
period: 2022 | ||
input: | ||
people: | ||
person: | ||
medicaid_person_type: ADULT_WITH_DEPENDENT | ||
households: | ||
household: | ||
state_code_str: CA | ||
members: [person] | ||
output: | ||
medicaid_income_threshold: 1.38 | ||
- name: Californian child age 0 | ||
period: 2022 | ||
input: | ||
people: | ||
person: | ||
medicaid_person_type: CHILD_AGE_0 | ||
households: | ||
household: | ||
state_code_str: CA | ||
members: [person] | ||
output: | ||
medicaid_income_threshold: 1.38 | ||
- name: California child between 1-5 years of age | ||
period: 2022 | ||
input: | ||
people: | ||
person: | ||
medicaid_person_type: CHILD_AGE_1_5 | ||
households: | ||
household: | ||
state_code_str: CA | ||
members: [person] | ||
output: | ||
medicaid_income_threshold: 1.38 | ||
- name: California child between 6-18 years of age | ||
period: 2022 | ||
input: | ||
people: | ||
person: | ||
medicaid_person_type: CHILD_AGE_6_18 | ||
households: | ||
household: | ||
state_code_str: CA | ||
members: [person] | ||
output: | ||
medicaid_income_threshold: 1.38 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
from openfisca_us.model_api import * | ||
|
||
|
||
class MedicaidPersonType(Enum): | ||
ADULT_WITHOUT_DEPENDENT = "Adult without dependent" | ||
ADULT_WITH_DEPENDENT = "Adult with dependent" | ||
CHILD_AGE_0 = "Child age 0" | ||
CHILD_AGE_1_5 = "Child age 1 to 5" | ||
CHILD_AGE_6_18 = "Child age 6 to 18" | ||
|
||
|
||
class medicaid_person_type(Variable): | ||
value_type = Enum | ||
possible_values = MedicaidPersonType | ||
default_value = MedicaidPersonType.ADULT_WITHOUT_DEPENDENT | ||
entity = Person | ||
definition_period = YEAR | ||
label = "Medicaid person type" | ||
documentation = "Person type for Medicaid" | ||
|
||
|
||
class medicaid_income_threshold(Variable): | ||
value_type = float | ||
entity = Person | ||
definition_period = YEAR | ||
label = "Medicaid FPL threshold" | ||
documentation = "Maximum income as a percentage of the federal poverty line to qualify for Medicaid" | ||
|
||
def formula(person, period, parameters): | ||
state_code = person.household("state_code_str", period) | ||
person_type = person("medicaid_person_type", period) | ||
income_threshold = parameters(period).hhs.medicaid.income_limit | ||
return income_threshold[state_code][person_type] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
setup( | ||
name="OpenFisca-US", | ||
version="0.4.0", | ||
version="0.5.0", | ||
author="Nikhil Woodruff", | ||
author_email="[email protected]", | ||
classifiers=[ | ||
|