diff --git a/app/models/constants/case_log.rb b/app/models/constants/case_log.rb
index 6d3f46e1e..9985120de 100644
--- a/app/models/constants/case_log.rb
+++ b/app/models/constants/case_log.rb
@@ -70,9 +70,9 @@ module Constants::CaseLog
LEFTREG = {
"Yes" => 6,
- "No - they left up to 5 years ago" => 4,
- "No - they left more than 5 years ago" => 5,
- "Prefer not to say" => 3,
+ "No, they left up to and including 5 years ago" => 4,
+ "No, they left more than 5 years ago" => 5,
+ "Person prefers not to say" => 3,
}.freeze
NATIONAL = {
@@ -99,7 +99,7 @@ module Constants::CaseLog
PREGNANCY = {
"Yes" => 1,
"No" => 2,
- "Prefer not to say" => 3,
+ "Tenant prefers not to say" => 3,
}.freeze
PREVIOUS_TENANCY = {
@@ -980,11 +980,11 @@ module Constants::CaseLog
}.freeze
ARMED_FORCES = {
- "A current or former regular in the UK Armed Forces (excluding National Service)" => 1,
+ "Yes, the person is a current or former regular" => 1,
"No" => 2,
- "Tenant prefers not to say" => 3,
- "A current or former reserve in the UK Armed Forces (excluding National Service)" => 4,
- "A spouse / civil partner of a UK Armed Forces member who has separated or been bereaved within the last 2 years" => 5,
+ "Person prefers not to say" => 3,
+ "Yes, the person is a current or former reserve" => 4,
+ "Yes, the tenant is a spouse or civil partner of a UK armed forces member and has been bereaved or separated from them within the last 2 years" => 5,
}.freeze
RENT_TYPE = {
diff --git a/app/models/validations/household_validations.rb b/app/models/validations/household_validations.rb
index 5b3d7c4d1..58997fb9d 100644
--- a/app/models/validations/household_validations.rb
+++ b/app/models/validations/household_validations.rb
@@ -24,16 +24,16 @@ module Validations::HouseholdValidations
end
def validate_armed_forces(record)
- if (record.armedforces == "No" || record.armedforces == "Tenant prefers not to say") && record.reservist.present?
+ if (record.armedforces == "No" || record.armedforces == "Person prefers not to say") && record.reservist.present?
record.errors.add :reservist, I18n.t("validations.household.reservist.injury_not_required")
end
- if record.armedforces != "A current or former regular in the UK Armed Forces (excluding National Service)" && record.leftreg.present?
+ if record.armedforces != "Yes, the person is a current or former regular" && record.leftreg.present?
record.errors.add :leftreg, I18n.t("validations.household.leftreg.question_not_required")
end
end
def validate_pregnancy(record)
- if (record.preg_occ == "Yes" || record.preg_occ == "Prefer not to say") && !women_of_child_bearing_age_in_household(record)
+ if (record.preg_occ == "Yes" || record.preg_occ == "Tenant prefers not to say") && !women_of_child_bearing_age_in_household(record)
record.errors.add :preg_occ, I18n.t("validations.household.preg_occ.no_female")
end
end
diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json
index 95f9ec429..ffe3b0cb6 100644
--- a/config/forms/2021_2022.json
+++ b/config/forms/2021_2022.json
@@ -2042,6 +2042,243 @@
}
}
},
+ "household_needs": {
+ "label": "Household needs",
+ "depends_on": [
+ {
+ "setup": "completed"
+ }
+ ],
+ "pages": {
+ "armed_forces": {
+ "header": "",
+ "description": "",
+ "questions": {
+ "armedforces": {
+ "header": "Does anybody in the household have any links to the UK armed forces?",
+ "hint_text": "This excludes national service.
If there are several people in the household with links to the UK armed forces, you should answer for the regular. If there’s no regular, answer for the reserve. If there’s no reserve, answer for the spouse or civil partner.",
+ "type": "radio",
+ "check_answer_label": "Household links to UK armed forces",
+ "answer_options": {
+ "0": {
+ "value": "Yes, the person is a current or former regular"
+ },
+ "1": {
+ "value": "Yes, the person is a current or former reserve"
+ },
+ "2": {
+ "value": "Yes, the person is a spouse or civil partner of a UK armed forces member and has been bereaved or separated from them within the last 2 years"
+ },
+ "3": {
+ "value": "No"
+ },
+ "4": {
+ "value": "Person prefers not to say"
+ }
+ }
+ }
+ }
+ },
+ "armed_forces_member": {
+ "header": "",
+ "description": "",
+ "depends_on": [
+ {
+ "armedforces": "Yes, the person is a current or former regular"
+ }
+ ],
+ "questions": {
+ "leftreg": {
+ "header": "Is the person still serving in the UK armed forces?",
+ "hint_text": "",
+ "type": "radio",
+ "check_answer_label": "Person still serving in UK armed forces",
+ "answer_options": {
+ "0": {
+ "value": "Yes"
+ },
+ "1": {
+ "value": "No, they left up to and including 5 years ago"
+ },
+ "2": {
+ "value": "No, they left more than 5 years ago"
+ },
+ "3": {
+ "value": "Person prefers not to say"
+ }
+ }
+ }
+ }
+ },
+ "armed_forces_reservist": {
+ "header": "",
+ "description": "",
+ "depends_on": [
+ {
+ "armedforces": "Yes, the person is a current or former regular"
+ },
+ {
+ "armedforces": "Yes, the person is a current or former reserve"
+ }
+ ],
+ "questions": {
+ "reservist": {
+ "header": "Was the person seriously injured or ill as a result of serving in the UK armed forces?",
+ "hint_text": "",
+ "type": "radio",
+ "check_answer_label": "Person seriously injured or ill as result of serving in UK armed forces",
+ "answer_options": {
+ "0": {
+ "value": "Yes"
+ },
+ "1": {
+ "value": "No"
+ },
+ "2": {
+ "value": "Person prefers not to say"
+ }
+ }
+ }
+ }
+ },
+ "pregnancy": {
+ "header": "",
+ "description": "",
+ "questions": {
+ "preg_occ": {
+ "header": "Is anybody in the household pregnant?",
+ "hint_text": "",
+ "type": "radio",
+ "check_answer_label": "Anybody in household pregnant",
+ "answer_options": {
+ "0": {
+ "value": "Yes"
+ },
+ "1": {
+ "value": "No"
+ },
+ "2": {
+ "value": "Tenant prefers not to say"
+ }
+ }
+ }
+ }
+ },
+ "accessibility_requirements": {
+ "header": "",
+ "description": "",
+ "questions": {
+ "accessibility_requirements": {
+ "header": "Does anybody in the household have any disabled access needs?",
+ "hint_text": "",
+ "type": "checkbox",
+ "check_answer_label": "Anybody in household with disabled access needs",
+ "answer_options": {
+ "housingneeds_a": {
+ "value": "Fully wheelchair accessible housing"
+ },
+ "housingneeds_b": {
+ "value": "Wheelchair access to essential rooms"
+ },
+ "housingneeds_c": {
+ "value": "Level access housing"
+ },
+ "housingneeds_f": {
+ "value": "Other disabled access needs"
+ },
+ "divider": {
+ "value": true
+ },
+ "housingneeds_g": {
+ "value": "No disabled access needs"
+ },
+ "housingneeds_h": {
+ "value": "Don’t know"
+ }
+ }
+ }
+ }
+ },
+ "medical_conditions": {
+ "header": "",
+ "description": "",
+ "questions": {
+ "illness": {
+ "header": "Does anybody in the household have a physical or mental health condition (or other illness) expected to last 12 months or more?",
+ "hint_text": "",
+ "type": "radio",
+ "check_answer_label": "Anybody in household with physical or mental health condition",
+ "answer_options": {
+ "0": {
+ "value": "Yes"
+ },
+ "1": {
+ "value": "No"
+ },
+ "2": {
+ "value": "Tenant prefers not to say"
+ }
+ }
+ }
+ }
+ },
+ "condition_effects": {
+ "header": "",
+ "description": "",
+ "depends_on": [
+ {
+ "illness": "Yes"
+ }
+ ],
+ "questions": {
+ "condition_effects": {
+ "header": "How is the person affected by their condition or illness?",
+ "hint_text": "Select all that apply.",
+ "type": "checkbox",
+ "check_answer_label": "How is person affected by condition or illness",
+ "answer_options": {
+ "illness_type_1": {
+ "value": "Vision",
+ "hint": "For example, blindness or partial sight."
+ },
+ "illness_type_2": {
+ "value": "Hearing",
+ "hint": "For example, deafness or partial hearing."
+ },
+ "illness_type_3": {
+ "value": "Mobility",
+ "hint": "For example, walking short distances or climbing stairs."
+ },
+ "illness_type_4": {
+ "value": "Dexterity",
+ "hint": "For example, lifting and carrying objects or using a keyboard."
+ },
+ "illness_type_5": {
+ "value": "Learning or understanding or concentrating"
+ },
+ "illness_type_6": {
+ "value": "Memory"
+ },
+ "illness_type_7": {
+ "value": "Mental health",
+ "hint": "For example, depression or anxiety."
+ },
+ "illness_type_8": {
+ "value": "Stamina or breathing or fatigue"
+ },
+ "illness_type_9": {
+ "value": "Socially or behaviourally",
+ "hint": "For example, associated with autism spectrum disorder (ASD) which includes Asperger’s or attention deficit hyperactivity disorder (ADHD)."
+ },
+ "illness_type_10": {
+ "value": "Other"
+ }
+ }
+ }
+ }
+ }
+ }
+ },
"household_situation": {
"label": "Household situation",
"depends_on": [
@@ -3216,239 +3453,6 @@
]
}
}
- },
- "household_needs": {
- "label": "Household needs",
- "depends_on": [
- {
- "setup": "completed"
- }
- ],
- "pages": {
- "armed_forces": {
- "header": "Experience of the UK Armed Forces",
- "description": "",
- "questions": {
- "armedforces": {
- "header": "Is anyone in the household...",
- "hint_text": "This excludes national service.",
- "type": "radio",
- "check_answer_label": "Armed Forces",
- "answer_options": {
- "0": {
- "value": "A current or former regular in the UK Armed Forces (excluding National Service)"
- },
- "1": {
- "value": "A current or former reserve in the UK Armed Forces (excluding National Service)"
- },
- "2": {
- "value": "A spouse / civil partner of a UK Armed Forces member who has separated or been bereaved within the last 2 years"
- },
- "3": {
- "value": "No"
- },
- "4": {
- "value": "Tenant prefers not to say"
- }
- }
- }
- }
- },
- "armed_forces_member": {
- "header": "Experience of the UK Armed Forces",
- "description": "",
- "depends_on": [
- {
- "armedforces": "A current or former regular in the UK Armed Forces (excluding National Service)"
- }
- ],
- "questions": {
- "leftreg": {
- "header": "Are they still serving?",
- "hint_text": "",
- "type": "radio",
- "check_answer_label": "When did they leave the Armed Forces?",
- "answer_options": {
- "0": {
- "value": "Yes"
- },
- "1": {
- "value": "No - they left up to 5 years ago"
- },
- "2": {
- "value": "No - they left more than 5 years ago"
- },
- "3": {
- "value": "Prefer not to say"
- },
- "divider": {
- "value": true
- }
- }
- },
- "reservist": {
- "header": "Were they seriously injured or ill as a result of their service?",
- "hint_text": "",
- "type": "radio",
- "check_answer_label": "Has anyone in the household been seriously injured or ill as a result of their service in the armed forces?",
- "answer_options": {
- "0": {
- "value": "Yes"
- },
- "1": {
- "value": "No"
- },
- "2": {
- "value": "Prefer not to say"
- },
- "divider": {
- "value": true
- }
- }
- }
- }
- },
- "medical_conditions": {
- "header": "",
- "description": "",
- "questions": {
- "illness": {
- "header": "Does anyone in the household have any of the following that they expect to last for 12 months or more: