-
Notifications
You must be signed in to change notification settings - Fork 207
Add at-interview health coverage rule inputs #7821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
09b9b43
Add reported health coverage rule inputs
daphnehanse11 fb98831
Add changelog for health coverage inputs
daphnehanse11 0439096
Address health coverage review feedback
daphnehanse11 44c8a9d
Add Marketplace at-interview conflict input
daphnehanse11 b540873
Clarify legacy Marketplace coverage variable
daphnehanse11 2da9303
Merge branch 'main' into codex/7816-health-coverage-rules
MaxGhenis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| Added reported current health coverage inputs and ACA/Medicaid coverage reconciliation helpers. |
27 changes: 27 additions & 0 deletions
27
...cyengine_us/tests/policy/baseline/gov/aca/eligibility/coverage_report_model_conflict.yaml
This file contains hidden or 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,27 @@ | ||
| - name: Case 1, Marketplace plus Medicaid conflict is flagged. | ||
| period: 2025 | ||
| input: | ||
| has_marketplace_health_coverage_at_interview: true | ||
| has_medicaid_health_coverage_at_interview: true | ||
| output: | ||
| coverage_report_model_conflict: true | ||
|
|
||
| - name: Case 2, Marketplace without conflicting coverage is not flagged. | ||
| period: 2025 | ||
| input: | ||
| age: 40 | ||
| medicaid_enrolled: false | ||
| is_chip_eligible: false | ||
| medicare_enrolled: false | ||
| has_esi: false | ||
| has_marketplace_health_coverage_at_interview: true | ||
| output: | ||
| coverage_report_model_conflict: false | ||
|
|
||
| - name: Case 3, non-Marketplace coverage without reported Marketplace is not flagged. | ||
| period: 2025 | ||
| input: | ||
| has_marketplace_health_coverage_at_interview: false | ||
| has_non_marketplace_direct_purchase_health_coverage_at_interview: true | ||
| output: | ||
| coverage_report_model_conflict: false |
25 changes: 25 additions & 0 deletions
25
...line/gov/aca/eligibility/has_qualifying_non_marketplace_health_coverage_at_interview.yaml
This file contains hidden or 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,25 @@ | ||
| - name: Case 1, Medicaid enrollment counts as qualifying non-Marketplace coverage. | ||
| period: 2025 | ||
| input: | ||
| medicaid_enrolled: true | ||
| output: | ||
| has_qualifying_non_marketplace_health_coverage_at_interview: true | ||
|
|
||
| - name: Case 2, IHS-only coverage does not count as qualifying non-Marketplace coverage. | ||
| period: 2025 | ||
| input: | ||
| age: 40 | ||
| medicaid_enrolled: false | ||
| is_chip_eligible: false | ||
| medicare_enrolled: false | ||
| has_esi: false | ||
| has_indian_health_service_coverage_at_interview: true | ||
| output: | ||
| has_qualifying_non_marketplace_health_coverage_at_interview: false | ||
|
|
||
| - name: Case 3, off-exchange coverage counts as qualifying non-Marketplace coverage. | ||
| period: 2025 | ||
| input: | ||
| has_non_marketplace_direct_purchase_health_coverage_at_interview: true | ||
| output: | ||
| has_qualifying_non_marketplace_health_coverage_at_interview: true |
This file contains hidden or 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
14 changes: 14 additions & 0 deletions
14
policyengine_us/variables/gov/aca/eligibility/coverage_report_model_conflict.py
This file contains hidden or 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,14 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class coverage_report_model_conflict(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| label = "Marketplace coverage conflicts with modeled qualifying non-Marketplace coverage" | ||
| definition_period = YEAR | ||
|
|
||
| def formula(person, period, parameters): | ||
| return person("has_marketplace_health_coverage_at_interview", period) & person( | ||
| "has_qualifying_non_marketplace_health_coverage_at_interview", | ||
| period, | ||
| ) |
17 changes: 17 additions & 0 deletions
17
...iables/gov/aca/eligibility/has_qualifying_non_marketplace_health_coverage_at_interview.py
This file contains hidden or 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,17 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class has_qualifying_non_marketplace_health_coverage_at_interview(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| label = "Person has qualifying non-Marketplace health coverage at interview" | ||
| definition_period = YEAR | ||
|
|
||
| def formula(person, period, parameters): | ||
| return ( | ||
| person( | ||
| "qualifying_non_marketplace_health_coverage_type_count_at_interview", | ||
| period, | ||
| ) | ||
| > 0 | ||
| ) | ||
20 changes: 20 additions & 0 deletions
20
...gov/aca/eligibility/qualifying_non_marketplace_health_coverage_type_count_at_interview.py
This file contains hidden or 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,20 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class qualifying_non_marketplace_health_coverage_type_count_at_interview(Variable): | ||
| value_type = int | ||
| entity = Person | ||
| label = "Count of qualifying non-Marketplace health coverage types at interview" | ||
| definition_period = YEAR | ||
| adds = [ | ||
| "has_esi", | ||
| "medicaid_enrolled", | ||
| "has_medicaid_health_coverage_at_interview", | ||
| "is_chip_eligible", | ||
| "medicare_enrolled", | ||
| "has_non_marketplace_direct_purchase_health_coverage_at_interview", | ||
| "has_other_means_tested_health_coverage_at_interview", | ||
| "has_tricare_health_coverage_at_interview", | ||
| "has_champva_health_coverage_at_interview", | ||
| "has_va_health_coverage_at_interview", | ||
| ] |
This file contains hidden or 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
8 changes: 8 additions & 0 deletions
8
...yengine_us/variables/household/expense/health/has_champva_health_coverage_at_interview.py
This file contains hidden or 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,8 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class has_champva_health_coverage_at_interview(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| label = "Person currently has CHAMPVA health coverage" | ||
| definition_period = YEAR |
8 changes: 8 additions & 0 deletions
8
..._us/variables/household/expense/health/has_indian_health_service_coverage_at_interview.py
This file contains hidden or 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,8 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class has_indian_health_service_coverage_at_interview(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| label = "Person currently has Indian Health Service coverage" | ||
| definition_period = YEAR |
This file contains hidden or 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
8 changes: 8 additions & 0 deletions
8
...ine_us/variables/household/expense/health/has_marketplace_health_coverage_at_interview.py
This file contains hidden or 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,8 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class has_marketplace_health_coverage_at_interview(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| label = "Person currently has Marketplace health coverage" | ||
| definition_period = YEAR |
8 changes: 8 additions & 0 deletions
8
...engine_us/variables/household/expense/health/has_medicaid_health_coverage_at_interview.py
This file contains hidden or 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,8 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class has_medicaid_health_coverage_at_interview(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| label = "Person currently has Medicaid health coverage" | ||
| definition_period = YEAR |
8 changes: 8 additions & 0 deletions
8
...sehold/expense/health/has_non_marketplace_direct_purchase_health_coverage_at_interview.py
This file contains hidden or 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,8 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class has_non_marketplace_direct_purchase_health_coverage_at_interview(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| label = "Person currently has non-Marketplace direct-purchase health coverage" | ||
| definition_period = YEAR |
8 changes: 8 additions & 0 deletions
8
...variables/household/expense/health/has_other_means_tested_health_coverage_at_interview.py
This file contains hidden or 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,8 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class has_other_means_tested_health_coverage_at_interview(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| label = "Person currently has other means-tested health coverage" | ||
| definition_period = YEAR |
8 changes: 8 additions & 0 deletions
8
...yengine_us/variables/household/expense/health/has_tricare_health_coverage_at_interview.py
This file contains hidden or 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,8 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class has_tricare_health_coverage_at_interview(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| label = "Person currently has TRICARE health coverage" | ||
| definition_period = YEAR |
8 changes: 8 additions & 0 deletions
8
policyengine_us/variables/household/expense/health/has_va_health_coverage_at_interview.py
This file contains hidden or 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,8 @@ | ||
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class has_va_health_coverage_at_interview(Variable): | ||
| value_type = bool | ||
| entity = Person | ||
| label = "Person currently has VA health coverage" | ||
| definition_period = YEAR |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use adds