Dealing with dementia when home is no longer an option for safety reasons

We have a family member we had to put into dementia care.   This person went to a local hospital and was put in a ward where he was strapped...