Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/remove-is-pregnant-adds.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Removed adds from is_pregnant, making it a pure input variable.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
input:
people:
head:
is_pregnant: true
current_pregnancies: 1
spouse:
current_pregnancies: 0
Expand All @@ -60,6 +61,7 @@
input:
people:
head:
is_pregnant: true
current_pregnancies: 2
spouse:
current_pregnancies: 0
Expand All @@ -73,3 +75,26 @@
state_group_str: CONTIGUOUS_US
output:
tax_unit_medicaid_income_level: 1

- name: Multiple people with income and a pregnant person expecting triplets
period: 2024
input:
people:
head:
is_pregnant: true
current_pregnancies: 3
spouse:
current_pregnancies: 0
tax_units:
tax_unit:
medicaid_magi: 36_580
tax_unit_size: 2
members: [head, spouse]
households:
household:
state_group_str: CONTIGUOUS_US
output:
# Effective size: 2 + 3 = 5
# 2024 FPL for 5: 36,580
# 36,580 / 36,580 = 1.0
tax_unit_medicaid_income_level: 1
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,34 @@
period: 2024-01
input:
state_code: IL
current_pregnancies: 1
is_pregnant: true
medicaid_income_level: 1.5
output:
is_pregnant: true
il_mpe_eligible: true

- name: Case 2, pregnant with income at 200% FPL.
period: 2024-01
input:
state_code: IL
current_pregnancies: 1
is_pregnant: true
medicaid_income_level: 2
output:
is_pregnant: true
il_mpe_eligible: true

- name: Case 3, pregnant with income above 200% FPL.
period: 2024-01
input:
state_code: IL
current_pregnancies: 1
is_pregnant: true
medicaid_income_level: 2.5
output:
is_pregnant: true
il_mpe_eligible: false

- name: Case 4, not pregnant with low income.
period: 2024-01
input:
state_code: IL
current_pregnancies: 0
is_pregnant: false
medicaid_income_level: 1
output:
is_pregnant: false
il_mpe_eligible: false
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
people:
person1:
age: 28
is_pregnant: true
current_pregnancies: 1
employment_income: 15_000
person2:
Expand Down Expand Up @@ -36,6 +37,7 @@
people:
person1:
age: 28
is_pregnant: true
current_pregnancies: 2
employment_income: 35_000
tax_units:
Expand Down Expand Up @@ -63,6 +65,7 @@
people:
person1:
age: 28
is_pregnant: true
current_pregnancies: 1
employment_income: 80_000
tax_units:
Expand Down Expand Up @@ -90,6 +93,7 @@
people:
person1:
age: 28
is_pregnant: true
current_pregnancies: 1
employment_income: 31_000
tax_units:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ class current_pregnancies(Variable):
entity = Person
definition_period = YEAR
label = "The number of children a pregnant person is expecting"
adds = ["is_pregnant"]
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@ class is_pregnant(Variable):
entity = Person
label = "Is pregnant"
definition_period = YEAR
adds = ["current_pregnancies"]
Loading