I know how you feel, Lardy. Hospital has tried four times to discharge a relative of ours who is obviously very sick, and neither fit nor safe for discharge, and have threatened us with Social Services and the police if we don't facilitate entry into their home.
Needless to say, we aren't budging until they get the care they so obviously need. We have the advantage that the sick person is already in their care, and we are, finally, making some headway because they have had no option but to keep the patient with them.
After your long battle you must be feeling both frustrated and absolutely exhausted.