From 2e8c5f1af3b19bcd96cbd3a5e46e696e6fb15546 Mon Sep 17 00:00:00 2001 From: Kat Date: Wed, 9 Feb 2022 11:42:18 +0000 Subject: [PATCH] update homeless and benefitcap questions --- app/models/constants/case_log.rb | 6 +-- config/forms/2021_2022.json | 67 +++++++++++++++++--------------- docs/api/DLUHC-CORE-Data.v1.json | 2 +- spec/factories/case_log.rb | 2 +- 4 files changed, 40 insertions(+), 37 deletions(-) diff --git a/app/models/constants/case_log.rb b/app/models/constants/case_log.rb index c09f3b996..8272b5438 100644 --- a/app/models/constants/case_log.rb +++ b/app/models/constants/case_log.rb @@ -2,7 +2,7 @@ module Constants::CaseLog BENEFITCAP = { "Yes - benefit cap" => 5, "Yes - removal of the spare room subsidy" => 4, - "Yes - both the benefit cap and the removal of the spare room subsidy" => 6, + "Yes - both" => 6, "No" => 2, "Don’t know" => 3, "Prefer not to say" => 100, @@ -57,8 +57,8 @@ module Constants::CaseLog }.freeze HOMELESS = { - "Yes - assessed as homeless by a local authority and owed a homelessness duty. Including if threatened with homelessness within 56 days" => 11, - "Yes - other homelessness" => 7, + "Assessed as homeless (or threatened with homelessness within 56 days) by a local authority and owed a homelessness duty" => 11, + "Other homeless - not found statutorily homeless but considered homeless by landlord" => 7, "No" => 1, }.freeze diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index 469aa3602..d39bd3458 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -1304,37 +1304,9 @@ } }, "other_reason_for_leaving_last_settled_home": { - "header": "Please state the reason for leaving last settled home", + "header": "What is the reason?", "hint_text": "", "type": "text" - }, - "underoccupation_benefitcap": { - "header": "Was the reason for leaving because of the benefit cap or removal of the spare room subsidy?", - "hint_text": "", - "type": "radio", - "answer_options": { - "0": { - "value": "Yes - benefit cap" - }, - "1": { - "value": "Yes - removal of the spare room subsidy" - }, - "2": { - "value": "Yes - both the benefit cap and the removal of the spare room subsidy" - }, - "3": { - "value": "No" - }, - "4": { - "value": "Don’t know" - }, - "5": { - "value": "Prefer not to say" - }, - "divider": { - "value": true - } - } } } }, @@ -1420,20 +1392,51 @@ } } }, + "underoccupation_benefitcap": { + "header": "", + "description": "", + "questions": { + "underoccupation_benefitcap": { + "header": "Was the reason for leaving a direct result of the removal of the spare room subsidy or benefit cap introduced from 2013?", + "hint_text": "", + "type": "radio", + "answer_options": { + "0": { + "value": "Yes - removal of the spare room subsidy" + }, + "1": { + "value": "Yes - benefit cap" + }, + "2": { + "value": "Yes - both" + }, + "3": { + "value": "No" + }, + "4": { + "value": "Don’t know" + }, + "divider": { + "value": true + } + } + } + } + }, "homelessness": { "header": "", "description": "", "questions": { "homeless": { - "header": "Did the tenant experience homelessness immediately before this letting?", + "header": "Did the household experience homelessness immediately before this letting?", "hint_text": "", "type": "radio", "answer_options": { "0": { - "value": "Yes - assessed as homeless by a local authority and owed a homelessness duty. Including if threatened with homelessness within 56 days" + "value": "Assessed as homeless (or threatened with homelessness within 56 days) by a local authority and owed a homelessness duty" }, "1": { - "value": "Yes - other homelessness" + "value": "Other homeless - not found statutorily homeless but considered homeless by landlord" }, "2": { "value": "No" diff --git a/docs/api/DLUHC-CORE-Data.v1.json b/docs/api/DLUHC-CORE-Data.v1.json index cb0b42641..6cda929df 100644 --- a/docs/api/DLUHC-CORE-Data.v1.json +++ b/docs/api/DLUHC-CORE-Data.v1.json @@ -771,7 +771,7 @@ "enum": [ "Yes - benefit cap", "Yes - removal of the spare room subsidy", - "Yes - both the benefit cap and the removal of the spare room subsidy", + "Yes - both", "No", "Don’t know", "Prefer not to say" diff --git a/spec/factories/case_log.rb b/spec/factories/case_log.rb index 446ba286c..0287f45f5 100644 --- a/spec/factories/case_log.rb +++ b/spec/factories/case_log.rb @@ -47,7 +47,7 @@ FactoryBot.define do age2 { 32 } sex2 { "Male" } ecstat2 { "Not seeking work" } - homeless { "Yes - other homelessness" } + homeless { "Other homeless - not found statutorily homeless but considered homeless by landlord" } underoccupation_benefitcap { "No" } leftreg { "No - they left up to 5 years ago" } reservist { "No" }