Add at-interview 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
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7821 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 12 13 +1
Lines 174 101 -73
Branches 0 1 +1
=========================================
- Hits 174 101 -73
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:
|
MaxGhenis
left a comment
There was a problem hiding this comment.
Rechecked after the cleanup pass. The structural review comments are addressed and the targeted tests pass.
Closes #7816
Summary
has_*_health_coverage_at_interviewinput variables for CPS current-coverage data imported inpolicyengine-us-datahas_qualifying_non_marketplace_health_coverage_at_interview,qualifying_non_marketplace_health_coverage_type_count_at_interview, andcoverage_report_model_conflictfor ACA-facing reported-coverage reconciliationhas_marketplace_health_coverage_at_interviewso Marketplace/non-Marketplace conflict checks use an explicit reported current-coverage inputTesting
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/medicaid_enrolled.yaml -c policyengine_usmake format