Add reported health coverage rule inputs#7821
Conversation
|
Nice work — the mixin pattern keeps the input definitions clean, and the test coverage looks solid. Two things worth double-checking before merge:
|
| label = "Person has qualifying non-Marketplace health coverage at interview" | ||
| definition_period = YEAR | ||
|
|
||
| def formula(person, period, parameters): |
| from policyengine_us.model_api import * | ||
|
|
||
|
|
||
| class ReportedHealthCoverageAtInterview: |
There was a problem hiding this comment.
frame around reality not surveys. what insurance do they have at the moment?
| label = "Reported public health coverage at interview" | ||
|
|
||
|
|
||
| class reported_is_insured_at_interview(ReportedHealthCoverageAtInterview, Variable): |
There was a problem hiding this comment.
this would be a formula right
| label = "Reported Marketplace health coverage at interview" | ||
|
|
||
|
|
||
| class reported_has_subsidized_marketplace_health_coverage_at_interview( |
There was a problem hiding this comment.
isnt this a formula? marketplace + aca_ptc>0? but we should just remove it
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7821 +/- ##
===========================================
- Coverage 100.00% 98.85% -1.15%
===========================================
Files 3 6 +3
Lines 33 87 +54
===========================================
+ Hits 33 86 +53
- Misses 0 1 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Closes #7816
Summary
reported_*_health_coverage_at_interviewinput variables for the CPS current-coverage data imported in policyengine-us-datahas_esi,has_marketplace_health_coverage, andreceives_medicaidfrom the new reported current-coverage inputs so existing rules can consume the CPS signals without mutating themTesting
uv run policyengine-core test policyengine_us/tests/policy/baseline/gov/aca/eligibility/has_qualifying_non_marketplace_health_coverage_at_interview.yaml policyengine_us/tests/policy/baseline/gov/aca/eligibility/coverage_report_model_conflict.yaml policyengine_us/tests/policy/baseline/gov/hhs/medicaid/receives_medicaid.yaml policyengine_us/tests/policy/baseline/gov/hhs/medicaid/medicaid_enrolled.yaml -c policyengine_us./.venv/bin/python -m py_compile policyengine_us/variables/input/health_coverage.py policyengine_us/variables/gov/aca/eligibility/has_esi.py policyengine_us/variables/household/expense/health/has_marketplace_health_coverage.py policyengine_us/variables/gov/hhs/medicaid/receives_medicaid.py policyengine_us/variables/gov/aca/eligibility/has_qualifying_non_marketplace_health_coverage_at_interview.py policyengine_us/variables/gov/aca/eligibility/coverage_report_model_conflict.py