Derive other health insurance premiums#844
Draft
daphnehanse11 wants to merge 7 commits intomainfrom
Draft
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
policyengine-us>=1.673.0, the release expected to include Decompose SPM MOOP premiums policyengine-us#8178's clean MOOP variables.other_health_insurance_premiumsfrom reported non-Medicare health insurance premiums after subtracting baseline modeled Marketplace, CHIP, and Medicaid premiums.medicare_part_b_premiumtarget/input surface directly and stops exporting legacy reportedmedicare_part_b_premiumsfrom CPS.Addresses PolicyEngine/policyengine-us#8089.
Notes
This should merge after PolicyEngine/policyengine-us#8178 is merged and released as
policyengine-us>=1.673.0. Until that release exists, dependency resolution is expected to fail because the latest publishedpolicyengine-usis1.672.0and does not defineother_health_insurance_premiumsormedicare_part_b_premium.The SPM premium stack is
other_health_insurance_premiumsplus modeled Marketplace, CHIP, Medicaid, and Medicare Part B premiums.Tests
.venv/bin/python -m pytest tests/unit/test_medical_expense_inputs.py tests/unit/datasets/test_other_health_insurance_premiums.py tests/unit/calibration/test_target_config.py -q.venv/bin/ruff format --check pyproject.toml policyengine_us_data/utils/policyengine.py policyengine_us_data/datasets/cps/cps.py policyengine_us_data/db/etl_national_targets.py policyengine_us_data/storage/calibration_targets/pull_hardcoded_targets.py policyengine_us_data/utils/loss.py policyengine_us_data/datasets/puf/puf.py tests/unit/test_medical_expense_inputs.py tests/unit/calibration/test_target_config.py tests/unit/datasets/test_other_health_insurance_premiums.py && .venv/bin/ruff check policyengine_us_data/utils/policyengine.py policyengine_us_data/datasets/cps/cps.py policyengine_us_data/db/etl_national_targets.py policyengine_us_data/storage/calibration_targets/pull_hardcoded_targets.py policyengine_us_data/utils/loss.py policyengine_us_data/datasets/puf/puf.py tests/unit/test_medical_expense_inputs.py tests/unit/calibration/test_target_config.py tests/unit/datasets/test_other_health_insurance_premiums.pygit diff --checkenv -u UV_FROZEN uv lock --lockedfails becausepolicyengine-us>=1.673.0is not published yet.