Skip to content
Merged
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/veteran-disability-flag-followups.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Document the VA disability rating flags for app and API users, and tighten the notes and references in the veteran rules that read them.
9 changes: 6 additions & 3 deletions policyengine_us/parameters/gov/usda/disabled_programs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ values:
- social_security_disability
# Clause (6) of the definition covers "a veteran with a service-connected
# or non-service-connected disability rated by the Veteran's
# Administration (VA) as total or paid as total". The first flag covers a
# service-connected rating, temporary or permanent; the second covers a
# Administration (VA) as total or paid as total".
# is_fully_disabled_service_connected_veteran covers a service-connected
# rating, temporary or permanent; is_permanently_disabled_veteran covers a
# permanent and total rating, which a non-service-connected (pension)
# rating requires.
# rating requires. Clause (7), aid-and-attendance or housebound status
# alone, has no input; a total rating the veteran also holds is entered
# with these flags.
- is_fully_disabled_service_connected_veteran
- is_permanently_disabled_veteran
- is_surviving_spouse_of_disabled_veteran
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,11 @@

- name: Case 42, a veteran with a 100% service-connected rating is exempt.
period: 2027
# is_veteran is left at its default (veterans_benefits > 0, so false): the
# VA 100% flag alone must exempt.
input:
age: 40
monthly_hours_worked: 0
is_veteran: true
is_fully_disabled_service_connected_veteran: true
medicaid_community_engagement_pass_through_eligible: false
output:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1103,3 +1103,55 @@
county: HONOLULU_COUNTY_HI
output:
hi_liheap_points: [5, 4]

- name: Case 18, the VA 100% flag earns one disabled-adult point from age 18 and does not stack.
period: 2026
# Each unit has 4 points before vulnerability, as in Case 17.
# person1 (18, VA flag) reaches the adult minimum age: 5.
# person2 (40, VA flag and SSDI) still earns one vulnerability point: 5, not 6.
# person3 (17, VA flag) is under the adult minimum age: 4.
input:
people:
person1:
age: 18
ssi: 0
employment_income: 12_000
is_fully_disabled_service_connected_veteran: true
person2:
age: 40
ssi: 0
social_security_disability: 12_000
is_fully_disabled_service_connected_veteran: true
person3:
age: 17
ssi: 0
employment_income: 12_000
is_fully_disabled_service_connected_veteran: true
spm_units:
spm_unit1:
members: [person1]
heating_type: NATURAL_GAS
hi_tanf: 0
spm_unit2:
members: [person2]
heating_type: NATURAL_GAS
hi_tanf: 0
spm_unit3:
members: [person3]
heating_type: NATURAL_GAS
hi_tanf: 0
households:
household1:
members: [person1]
state_code: HI
county: HONOLULU_COUNTY_HI
household2:
members: [person2]
state_code: HI
county: HONOLULU_COUNTY_HI
household3:
members: [person3]
state_code: HI
county: HONOLULU_COUNTY_HI
output:
hi_liheap_points: [5, 5, 4]
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@
input:
people:
person1:
is_permanently_and_totally_disabled: false
is_veteran: true
is_fully_disabled_service_connected_veteran: false
is_permanently_disabled_veteran: false
employment_income: 50_000
tax_units:
tax_unit:
Expand All @@ -142,17 +143,19 @@
state_code: KS
output:
# Base exemption for single: $9,160
# No disabled veteran exemption (not disabled)
# No disabled veteran exemption (neither VA rating flag is set)
# Total exemptions: $9,160
ks_exemptions: 9_160

- name: Disabled but not veteran - no veteran exemption in 2025
- name: Tax disability flag without a VA rating - no veteran exemption in 2025
period: 2025
input:
people:
person1:
is_permanently_and_totally_disabled: true
is_veteran: false
is_veteran: true
is_fully_disabled_service_connected_veteran: false
is_permanently_disabled_veteran: false
employment_income: 50_000
tax_units:
tax_unit:
Expand All @@ -163,6 +166,7 @@
state_code: KS
output:
# Base exemption for single: $9,160
# No disabled veteran exemption (not a veteran)
# No disabled veteran exemption: neither VA rating flag is set, and the
# IRC 22(e)(3) flag is not read.
# Total exemptions: $9,160
ks_exemptions: 9_160
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- name: Case 1, the filer is a disabled veteran, get exemptions.
- name: Case 1, the filer is a disabled veteran, get exemptions.
period: 2023
input:
is_fully_disabled_service_connected_veteran: true
Expand All @@ -7,15 +7,16 @@
output:
ks_disabled_veteran_exemptions_eligible_person: true

- name: Case 2, the filer is a veteran, but not disabled, no exemption.
- name: Case 2, a veteran with neither VA rating flag gets no exemption.
period: 2023
input:
is_permanently_and_totally_disabled: false
is_veteran: true
is_fully_disabled_service_connected_veteran: false
is_permanently_disabled_veteran: false
state_code: KS
output:
ks_disabled_veteran_exemptions_eligible_person: false

- name: Case 3, a veteran unable to work without a 100% VA rating gets no exemption.
period: 2023
input:
Expand All @@ -25,7 +26,7 @@
output:
ks_disabled_veteran_exemptions_eligible_person: false

- name: Case 4, in 2022, the filer is a disabled veteran.
- name: Case 4, in 2022, the filer is a disabled veteran.
period: 2022
input:
is_fully_disabled_service_connected_veteran: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,12 @@
is_permanently_disabled_veteran: false
output:
is_usda_disabled: true

- name: Case 10, a veteran with a permanent and total VA rating that is not 100% service-connected is USDA disabled.
period: 2026
input:
age: 40
is_fully_disabled_service_connected_veteran: false
is_permanently_disabled_veteran: true
output:
is_usda_disabled: true
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class medicaid_work_requirement_eligible(Variable):
"https://www.medicaid.gov/federal-policy-guidance/downloads/cib12082025.pdf",
"https://www.law.cornell.edu/uscode/text/42/1382c#a_3",
"https://www.govinfo.gov/content/pkg/PLAW-119publ21/pdf/PLAW-119publ21.pdf#page=242",
"https://www.law.cornell.edu/cfr/text/42/435.554",
"https://www.ecfr.gov/current/title-42/section-435.554#p-435.554(c)(4)",
"https://www.govinfo.gov/content/pkg/FR-2026-06-03/pdf/2026-11094.pdf#page=25",
)

def formula(person, period, parameters):
Expand Down Expand Up @@ -66,16 +67,21 @@ def formula(person, period, parameters):
is_dependent = person("is_tax_unit_dependent", period)
is_disabled = person("is_disabled", period)
has_disabled = person.tax_unit.any(is_dependent & is_disabled)
# Clause (IV): a veteran with a disability rated as total under 38
# U.S.C. 1155, which 42 CFR 435.554(c)(4) reads as "a temporary or
# permanent disability ... rated as 100 percent (total)".
# SSA 1902(xx)(9)(A)(ii)(IV): a veteran with a disability rated as
# total under 38 U.S.C. 1155, which 42 CFR 435.554(c)(4) reads as "a
# temporary or permanent disability ... rated as 100 percent (total)".
# CMS treats a total rating based on individual unemployability the
# same way (91 FR 33372, preamble).
eligible_veteran = person("is_fully_disabled_service_connected_veteran", period)
# blind or disabled or is_incapable_of_self_care p.694 (V)
is_blind = person("is_blind", period)
is_incapable_of_self_care = person("is_incapable_of_self_care", period)
# "Blind or disabled" is defined by cross-reference to section 1614
# of the Social Security Act, so the SSI disability test also exempts.
is_ssi_disabled = person("is_ssi_disabled", period)
# NOTE: is_permanently_and_totally_disabled (IRC 22(e)(3)) is not read
# here. Enter a section 1614 disability as is_ssi_disabled or
# is_disabled.
eligible_disabled = (
is_blind | is_disabled | is_ssi_disabled | is_incapable_of_self_care
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ class hi_liheap_points(Variable):
"https://liheapch.acf.gov/docs/2026/state-plans/HI_Plan_2026.pdf#page=10",
# PDF pages 2-3
"https://liheapch.acf.gov/docs/2026/benefits-matricies/HI_BenefitMatrix_2026.pdf#page=2",
# PDF pages 2, 8
# PDF pages 2, 8, 20
"https://humanservices.hawaii.gov/wp-content/uploads/2019/07/Policies-and-Procedures-2020.pdf#page=2",
# PDF pages 55, 69
"https://humanservices.hawaii.gov/wp-content/uploads/2025/07/Model-Plan-Packet-2026.pdf#page=55",
)

def formula(spm_unit, period, parameters):
Expand Down Expand Up @@ -55,7 +57,9 @@ def formula(spm_unit, period, parameters):
# Security disability payments, or "VA benefits for a 100%
# service-connected disability". Governmental disability retirement
# and railroad disability have no separate input, so is_disabled
# stands in for them. This affects points only.
# stands in for them. The manuals don't say whether a total rating
# based on individual unemployability counts; the VA flag includes
# it. This affects points only.
disabled = (
person("is_disabled", period)
| (person("ssi", period, options=[ADD]) > 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ class il_cta_military_service_pass_eligible(Variable):
def formula(person, period, parameters):
is_in_active_duty = person("military_basic_pay", period) > 0
# NOTE: The CTA covers a veteran with VA disability compensation "of
# 10% or greater". The model has no input for ratings below 100%, so
# veterans rated 10% to 90% are missed.
# 10% or greater", or with military disability retirement pay in lieu
# of VA compensation "at a rate of 10% or greater". The model has no
# shared input for ratings below 100%, so veterans rated 10% to 90%,
# and military disability retirees without a 100% VA rating, are
# missed.
disabled_veterans = person(
"is_fully_disabled_service_connected_veteran", period
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,28 @@ class ks_disabled_veteran_exemptions_eligible_person(Variable):
label = "Eligible person for the Kansas disabled veteran exemption"
definition_period = YEAR
reference = (
"https://law.justia.com/codes/kansas/chapter-79/article-32/section-79-32-121/",
"https://www.kslegislature.gov/li/b2025_26/statute/079_000_0000_chapter/079_032_0000_article/079_032_0121_section/079_032_0121_k/",
"https://www.kslegislature.gov/li/b2025_26/statute/079_000_0000_chapter/079_032_0000_article/079_032_0121b_section/079_032_0121b_k/",
"https://www.ksrevenue.gov/pdf/ip23.pdf#page=6",
"https://www.ksrevenue.gov/pdf/ip25.pdf#page=6",
)
defined_for = StateCode.KS

def formula(person, period, parameters):
p = parameters(period).gov.states.ks.tax.income.exemptions.disabled_veteran
# K.S.A. 79-32,121b(b)(2): a veteran the VA certifies "to be in
# receipt of disability compensation at the 100% rate, if the
# disability is permanent and was sustained through military action
# or accident or resulted from disease contracted while in such
# active service". The VA flags already imply veteran status. The
# model has no discharge input, so a flagged veteran is assumed to
# have been honorably discharged.
# K.S.A. 79-32,121(b) ($2,250 from 2023) and 79-32,121b(b)(2) ($2,320
# from 2025; the two 2025-session versions conflict from 2025 on, and
# the model follows 121b and the 2025 booklet): a veteran the VA
# certifies "to be in receipt of disability compensation at the 100%
# rate, if the disability is permanent and was sustained through
# military action or accident or resulted from disease contracted
# while in such active service". The VA flags already imply veteran
# status. The model has no discharge input, so a flagged veteran is
# assumed to have been honorably discharged. VA service connection also
# covers aggravation of an earlier condition (38 U.S.C. 1110, 1131);
# the model can't separate it, so any 100% service-connected rating is
# treated as meeting the Kansas origin test. Permanence is tested
# through is_permanently_disabled_veteran.
paid_at_100_percent = person(
"is_fully_disabled_service_connected_veteran", period
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ def formula(person, period, parameters):
# age and older or persons considered disabled, per OAC 340:50-5-4".
# 340:50-5-4(a) restates the 7 CFR 271.2 elderly or disabled member: age
# 60 ((a)(1), is_usda_elderly) or benefit receipt (is_usda_disabled). The
# veteran flags that is_usda_disabled reads stand in for (a)(6)-(9), so an
# aid-and-attendance or housebound veteran ((a)(7)) is entered as
# is_permanently_disabled_veteran. Categories with no input ((a)(3)-(5)
# and (a)(10)-(11), such as government disability retirement and interim
# assistance) are not modeled.
# veteran flags that is_usda_disabled reads stand in for (a)(6), (a)(8)
# and (a)(9). Categories with no input ((a)(3)-(5), the aid-and-attendance
# or housebound veteran in (a)(7), and (a)(10)-(11), such as government
# disability retirement and interim assistance) are not modeled.
medical_eligible = person("is_usda_elderly", period) | person(
"is_usda_disabled", period
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,21 @@
class is_fully_disabled_service_connected_veteran(Variable):
value_type = bool
entity = Person
label = "Is a fully disabled veteran who became so as a result of an injury during service"
label = "Veteran with a VA service-connected disability rated or paid at 100%"
documentation = (
"The Department of Veterans Affairs rates or pays a service-connected "
"disability at the 100% (total) rate, temporary or permanent, "
"including a total rating based on individual unemployability. Also "
"set 'Veteran with a VA permanent and total disability rating' "
"(is_permanently_disabled_veteran) when the VA rates the disability "
"permanent and total. Leave this false for a rating below 100%, unless "
"the VA pays at the 100% rate for individual unemployability. These "
"flags don't set is_veteran; enter VA payments as veterans_benefits."
)
definition_period = YEAR
# True when the Department of Veterans Affairs rates or pays a
# service-connected disability at the 100% rate, temporary or permanent,
# including a total rating based on individual unemployability. A
# permanent rating is is_permanently_disabled_veteran. The model has no
# input for ratings below 100%.
reference = (
"https://www.law.cornell.edu/uscode/text/38/1114",
"https://www.law.cornell.edu/uscode/text/38/1114#j",
"https://www.law.cornell.edu/uscode/text/38/1155",
"https://www.law.cornell.edu/cfr/text/38/3.340",
"https://www.law.cornell.edu/cfr/text/38/4.16",
"https://www.ecfr.gov/current/title-38/section-3.340#p-3.340(a)(1)",
"https://www.ecfr.gov/current/title-38/section-4.16#p-4.16(a)",
)
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@ class is_permanently_disabled_veteran(Variable):
value_type = bool
entity = Person
definition_period = YEAR
label = "Permanently disabled veteran"
# True when the Department of Veterans Affairs has rated the veteran's
# disability permanent and total, for service-connected compensation or
# for a pension, which requires a permanent and total non-service-connected
# disability (38 U.S.C. 1521(a)). A 100% service-connected rating that is
# not permanent is is_fully_disabled_service_connected_veteran.
label = "Veteran with a VA permanent and total disability rating"
documentation = (
"The Department of Veterans Affairs has rated the veteran's disability "
"permanent and total, for service-connected compensation or for a "
"disability pension under 38 U.S.C. 1521(a). North Carolina's military "
"retirement deduction reads this flag in place of a medical retirement "
"under 10 U.S.C. chapter 61, which has no input of its own; a chapter "
"61 retiree without this rating is not covered. Also set 'Veteran with "
"a VA service-connected disability rated or paid at 100%' "
"(is_fully_disabled_service_connected_veteran) when the disability is "
"service-connected and rated or paid at 100%. These flags don't set "
"is_veteran; enter VA payments as veterans_benefits. Aid-and-attendance "
"or housebound status alone does not count; enter any total rating the "
"veteran also holds with these flags."
)
reference = (
"https://www.law.cornell.edu/cfr/text/38/3.340",
"https://www.law.cornell.edu/uscode/text/38/1521",
"https://www.ecfr.gov/current/title-38/section-3.340#p-3.340(b)",
"https://www.law.cornell.edu/uscode/text/38/1521#a",
)
Loading
Loading