Skip to content

Commit

Permalink
Merge pull request #366 from CrimsonOHara/new-branch
Browse files Browse the repository at this point in the history
Medicaid Tests + Income Threshold Formula for California
  • Loading branch information
MaxGhenis authored Dec 27, 2021
2 parents 988a73f + bf34636 commit 7fecba6
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@

* Broke down TANF eligibility into demographic and financial variables, with financial separated by current enrollment in program
* Specified demographic TANF eligibility per IL rules

### 0.5.0

* Added Medicaid Tests + Income Threshold Formula for California
19 changes: 19 additions & 0 deletions openfisca_us/parameters/hhs/medicaid/income_limit.yaml
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
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
33 changes: 33 additions & 0 deletions openfisca_us/variables/hhs/medicaid.py
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]
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="OpenFisca-US",
version="0.4.0",
version="0.5.0",
author="Nikhil Woodruff",
author_email="[email protected]",
classifiers=[
Expand Down

0 comments on commit 7fecba6

Please sign in to comment.