You should tell the hospital nursing staff as soon as possible, so that they know that you will be homeless when you are discharged. They will ask the hospital discharge team to help if they can.
The discharge team may refer you to the housing advice team at the council. They will assess your situation and you may be offered temporary accommodation while your application is assessed.
If you have a home already but it needs to be adapted, the hospital will refer you to the Residenital Enviormental Health Team who are responsible for Disabled Facilities Grants.
For professionals releasing a patient - please contact firstname.lastname@example.org should you need any further assistance.