The Department of Health and Social Care and Department for Levelling Up, Housing and Communities have published guidance on discharging people at risk of or experiencing homelessness.
Discharging people at risk of or experiencing homelessness – GOV.UK (www.gov.uk)