-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate out SSI eligibility from the general
uncapped_ssi
file (#4942
- Loading branch information
1 parent
47e6b6d
commit c02054c
Showing
5 changed files
with
60 additions
and
3 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
- bump: minor | ||
changes: | ||
added: | ||
- Separate out SSI eligibility from the general uncapped_ssi file. |
23 changes: 23 additions & 0 deletions
23
policyengine_us/tests/policy/baseline/gov/ssa/ssi/is_ssi_eligible.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,23 @@ | ||
- name: Eligible | ||
period: 2022 | ||
input: | ||
meets_ssi_resource_test: true | ||
is_ssi_eligible_individual: true | ||
output: | ||
is_ssi_eligible: true | ||
|
||
- name: Resource ineligible | ||
period: 2022 | ||
input: | ||
meets_ssi_resource_test: false | ||
is_ssi_eligible_individual: true | ||
output: | ||
is_ssi_eligible: false | ||
|
||
- name: Ineligible individual | ||
period: 2022 | ||
input: | ||
meets_ssi_resource_test: true | ||
is_ssi_eligible_individual: false | ||
output: | ||
is_ssi_eligible: false |
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,13 @@ | ||
from policyengine_us.model_api import * | ||
|
||
|
||
class is_ssi_eligible(Variable): | ||
value_type = float | ||
entity = Person | ||
label = "Is SSI eligible person" | ||
definition_period = YEAR | ||
|
||
def formula(person, period, parameters): | ||
meets_resource_test = person("meets_ssi_resource_test", period) | ||
eligible = person("is_ssi_eligible_individual", period) | ||
return meets_resource_test & eligible |
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