diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index 4fecaded1..1f2369db4 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -1898,9 +1898,9 @@ "description": "", "questions": { "reasonpref": { - "check_answer_label": "Was the household given Reasonable Preference (i.e. priority) for housing by the Local Authority?", - "header": "Was the household given reasonable preference by the local authority?", - "hint_text": "", + "check_answer_label": "Was the household given 'reasonable preference' by the local authority?", + "header": "Was the household given 'reasonable preference' by the local authority?", + "hint_text": "Households may be given ‘reasonable preference’ for social housing, also known as ‘priority need’, by the local authority.", "type": "radio", "answer_options": { "0": { @@ -1922,29 +1922,24 @@ "reasonable_preference_reason": { "header": "Reason for reasonable preference being given", "description": "", - "depends_on": [ - { - "reasonpref": "Yes" - } - ], "questions": { "reasonable_preference_reason": { "check_answer_label": "Reason for reasonable preference", - "header": "Why were they given reasonable preference?", + "header": "Why was the household given 'reasonable preference'?", "hint_text": "Select all that apply.", "type": "checkbox", "answer_options": { "rp_homeless": { - "value": "Homeless or about to lose their home (within 56 days)" + "value": "They were homeless or about to lose their home (within 56 days)" }, "rp_insan_unsat": { - "value": "Living in insanitary or overcrowded or unsatisfactory housing" + "value": "They were living in unsanitary, overcrowded or unsatisfactory housing" }, "rp_medwel": { - "value": "A need to move on medical and welfare grounds (including a disability)" + "value": "They needed to move due to medical and welfare reasons (including disability)" }, "rp_hardship": { - "value": "A need to move to avoid hardship to themselves or others" + "value": "They needed to move to avoid hardship to themselves or others" }, "divider": { "value": true @@ -1954,57 +1949,191 @@ } } } - } + }, + "depends_on": [{ + "reasonpref": "Yes" + }] }, "lettings_policy": { "header": "", "description": "", "questions": { - "cbl": { - "check_answer_label": "Choice-based letting?", - "header": "Was the letting made under choice-based lettings (CBL)? ", + "letting_allocation": { + "check_answer_label": "How was this letting allocated?", + "header": "How was this letting allocated?", + "hint_text": "Select all that apply.", + "type": "checkbox", + "answer_options": { + "cbl": { + "value": "Choice-based lettings (CBL)" + }, + "chr": { + "value": "Common housing register (CHR)" + }, + "cap": { + "value": "Common Allocation Policy (CAP)" + }, + "divider": { + "value": true + }, + "letting_allocation_unknown": { + "value": "None of these allocation systems" + } + } + } + } + }, + "referral": { + "header": "", + "description": "", + "questions": { + "referral": { + "check_answer_label": "Source of referral for letting", + "header": "What was the source of referral for this letting?", "hint_text": "", "type": "radio", "answer_options": { "0": { - "value": "Yes" + "value": "Internal transfer" }, "1": { - "value": "No" + "value": "Tenant applied directly (no referral or nomination)" + }, + "2": { + "value": "Re-located through official housing mobility scheme" + }, + "3": { + "value": "Other social landlord" + }, + "4": { + "value": "Community learning disability team" + }, + "5": { + "value": "Community mental health team" + }, + "6": { + "value": "Health service" + }, + "7": { + "value": "Police, probation or prison" + }, + "8": { + "value": "Youth offending team" + }, + "9": { + "value": "Voluntary agency" + }, + "10": { + "value": "Other" } } - }, - "chr": { - "check_answer_label": "Common housing register letting?", - "header": "Was the letting made under common housing register (CHR)? ", + } + }, + "depends_on": [{"providertype": "LA", "needstype": "General needs"}] + }, + "referral_prp": { + "header": "", + "description": "", + "questions": { + "referral": { + "check_answer_label": "Source of referral for letting", + "header": "What was the source of referral for this letting?", "hint_text": "", "type": "radio", "answer_options": { "0": { - "value": "Yes" + "value": "Internal transfer" }, "1": { - "value": "No" + "value": "Tenant applied directly (no referral or nomination)" + }, + "2": { + "value": "Private registered provider (PRP) lettings only - nominated by a local housing authority" + }, + "3": { + "value": "Re-located through official housing mobility scheme" + }, + "4": { + "value": "Other social landlord" + }, + "5": { + "value": "Community learning disability team" + }, + "6": { + "value": "Community mental health team" + }, + "7": { + "value": "Health service" + }, + "8": { + "value": "Police, probation or prison" + }, + "9": { + "value": "Youth offending team" + }, + "10": { + "value": "Voluntary agency" + }, + "11": { + "value": "Other" } } - }, - "cap": { - "check_answer_label": "Common allocation policy letting?", - "header": "Was the letting made under common allocation policy (CAP)? ", + } + }, + "depends_on": [{"providertype": "PRP", "needstype": "General needs"}] + }, + "referral_supported_housing": { + "header": "", + "description": "", + "questions": { + "referral": { + "check_answer_label": "Source of referral for letting", + "header": "What was the source of referral for this letting?", "hint_text": "", "type": "radio", "answer_options": { "0": { - "value": "Yes" + "value": "Internal transfer" }, "1": { - "value": "No" + "value": "Tenant applied directly (no referral or nomination)" + }, + "2": { + "value": "Private registered provider (PRP) supported lettings only - referred by local authority housing department" + }, + "3": { + "value": "Re-located through official housing mobility scheme" + }, + "4": { + "value": "Other social landlord" + }, + "5": { + "value": "Community learning disability team" + }, + "6": { + "value": "Community mental health team" + }, + "7": { + "value": "Health service" + }, + "8": { + "value": "Police, probation or prison" + }, + "9": { + "value": "Youth offending team" + }, + "10": { + "value": "Voluntary agency" + }, + "11": { + "value": "Other" } } } - } + }, + "depends_on": [{"providertype": "LA", "needstype": "Supported housing"}] }, - "referral": { + "referral_supported_housing_prp": { "header": "", "description": "", "questions": { @@ -2036,16 +2165,16 @@ "value": "Community learning disability team" }, "7": { - "value": "Police, probation or prison" + "value": "Community mental health team" }, "8": { - "value": "Youth offending team" + "value": "Health service" }, "9": { - "value": "Community mental health team" + "value": "Police, probation or prison" }, "10": { - "value": "Health service" + "value": "Youth offending team" }, "11": { "value": "Voluntary agency" @@ -2055,7 +2184,8 @@ } } } - } + }, + "depends_on": [{"providertype": "PRP", "needstype": "Supported housing"}] } } }, diff --git a/db/migrate/20220209155009_add_unknown_letting_allocation.rb b/db/migrate/20220209155009_add_unknown_letting_allocation.rb new file mode 100644 index 000000000..6dd62cd91 --- /dev/null +++ b/db/migrate/20220209155009_add_unknown_letting_allocation.rb @@ -0,0 +1,7 @@ +class AddUnknownLettingAllocation < ActiveRecord::Migration[7.0] + def change + change_table :case_logs, bulk: true do |t| + t.column :letting_allocation_unknown, :boolean + end + end +end diff --git a/db/schema.rb b/db/schema.rb index ced88fb96..b45d23e7b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -190,6 +190,7 @@ ActiveRecord::Schema[7.0].define(version: 202202071123100) do t.integer "previous_postcode_known" t.integer "previous_la_known" t.boolean "is_previous_la_inferred" + t.boolean "letting_allocation_unknown" t.index ["managing_organisation_id"], name: "index_case_logs_on_managing_organisation_id" t.index ["owning_organisation_id"], name: "index_case_logs_on_owning_organisation_id" end