Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/restore-medical-oop-expenses-alias.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Restore `medical_out_of_pocket_expenses` as a deprecation alias that forwards into `other_medical_expenses`, easing migration from the variable removed in 1.673.0. The alias is documented as deprecated and will be removed in a future release.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
- name: Legacy medical_out_of_pocket_expenses input flows into other_medical_expenses.
period: 2025
input:
medical_out_of_pocket_expenses: 1_000
output:
other_medical_expenses: 1_000

- name: Direct other_medical_expenses input overrides the legacy alias.
period: 2025
input:
medical_out_of_pocket_expenses: 1_000
other_medical_expenses: 250
output:
other_medical_expenses: 250

- name: Legacy alias defaults to zero when not supplied.
period: 2025
input:
age: 30
output:
medical_out_of_pocket_expenses: 0
other_medical_expenses: 0
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
from policyengine_us.model_api import *


class medical_out_of_pocket_expenses(Variable):
value_type = float
entity = Person
label = "Medical out-of-pocket expenses (deprecated)"
unit = USD
definition_period = YEAR
documentation = (
"DEPRECATED. Removed in 1.673.0 and restored as a temporary "
"alias to ease migration. Values supplied here are forwarded "
"into `other_medical_expenses`. Migrate to `other_medical_expenses` "
"for non-premium medical spending and to `health_insurance_premiums` "
"if your value previously included health insurance premiums. "
"This alias will be removed in a future release."
)
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ class other_medical_expenses(Variable):
unit = USD
definition_period = YEAR
uprating = "calibration.gov.hhs.cms.moop_per_capita"
adds = ["medical_out_of_pocket_expenses"]
Loading