Browse Source

Update reasonable preference and letting allocation questions

pull/298/head
Kat 3 years ago
parent
commit
1027f6969d
  1. 206
      config/forms/2021_2022.json
  2. 7
      db/migrate/20220209155009_add_unknown_letting_allocation.rb
  3. 1
      db/schema.rb

206
config/forms/2021_2022.json

@ -1898,9 +1898,9 @@
"description": "", "description": "",
"questions": { "questions": {
"reasonpref": { "reasonpref": {
"check_answer_label": "Was the household given Reasonable Preference (i.e. priority) for housing by the Local Authority?", "check_answer_label": "Was the household given 'reasonable preference' by the local authority?",
"header": "Was the household given reasonable preference by the local authority?", "header": "Was the household given 'reasonable preference' by the local authority?",
"hint_text": "", "hint_text": "Households may be given ‘reasonable preference’ for social housing, also known as ‘priority need’, by the local authority.",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": { "0": {
@ -1922,29 +1922,24 @@
"reasonable_preference_reason": { "reasonable_preference_reason": {
"header": "Reason for reasonable preference being given", "header": "Reason for reasonable preference being given",
"description": "", "description": "",
"depends_on": [
{
"reasonpref": "Yes"
}
],
"questions": { "questions": {
"reasonable_preference_reason": { "reasonable_preference_reason": {
"check_answer_label": "Reason for reasonable preference", "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.", "hint_text": "Select all that apply.",
"type": "checkbox", "type": "checkbox",
"answer_options": { "answer_options": {
"rp_homeless": { "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": { "rp_insan_unsat": {
"value": "Living in insanitary or overcrowded or unsatisfactory housing" "value": "They were living in unsanitary, overcrowded or unsatisfactory housing"
}, },
"rp_medwel": { "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": { "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": { "divider": {
"value": true "value": true
@ -1954,57 +1949,191 @@
} }
} }
} }
} },
"depends_on": [{
"reasonpref": "Yes"
}]
}, },
"lettings_policy": { "lettings_policy": {
"header": "", "header": "",
"description": "", "description": "",
"questions": { "questions": {
"cbl": { "letting_allocation": {
"check_answer_label": "Choice-based letting?", "check_answer_label": "How was this letting allocated?",
"header": "Was the letting made under choice-based lettings (CBL)? ", "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": "", "hint_text": "",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": { "0": {
"value": "Yes" "value": "Internal transfer"
}, },
"1": { "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?", "depends_on": [{"providertype": "LA", "needstype": "General needs"}]
"header": "Was the letting made under common housing register (CHR)? ", },
"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": "", "hint_text": "",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": { "0": {
"value": "Yes" "value": "Internal transfer"
}, },
"1": { "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?", "depends_on": [{"providertype": "PRP", "needstype": "General needs"}]
"header": "Was the letting made under common allocation policy (CAP)? ", },
"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": "", "hint_text": "",
"type": "radio", "type": "radio",
"answer_options": { "answer_options": {
"0": { "0": {
"value": "Yes" "value": "Internal transfer"
}, },
"1": { "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": "", "header": "",
"description": "", "description": "",
"questions": { "questions": {
@ -2036,16 +2165,16 @@
"value": "Community learning disability team" "value": "Community learning disability team"
}, },
"7": { "7": {
"value": "Police, probation or prison" "value": "Community mental health team"
}, },
"8": { "8": {
"value": "Youth offending team" "value": "Health service"
}, },
"9": { "9": {
"value": "Community mental health team" "value": "Police, probation or prison"
}, },
"10": { "10": {
"value": "Health service" "value": "Youth offending team"
}, },
"11": { "11": {
"value": "Voluntary agency" "value": "Voluntary agency"
@ -2055,7 +2184,8 @@
} }
} }
} }
} },
"depends_on": [{"providertype": "PRP", "needstype": "Supported housing"}]
} }
} }
}, },

7
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

1
db/schema.rb

@ -190,6 +190,7 @@ ActiveRecord::Schema[7.0].define(version: 202202071123100) do
t.integer "previous_postcode_known" t.integer "previous_postcode_known"
t.integer "previous_la_known" t.integer "previous_la_known"
t.boolean "is_previous_la_inferred" 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 ["managing_organisation_id"], name: "index_case_logs_on_managing_organisation_id"
t.index ["owning_organisation_id"], name: "index_case_logs_on_owning_organisation_id" t.index ["owning_organisation_id"], name: "index_case_logs_on_owning_organisation_id"
end end

Loading…
Cancel
Save