Well, you yourself can't, but you learn, when you've been an in-patient in a hospital enough times, what to tell doctors in order to get them to do what you need them to do. I was able to get out of hospital when I shouldn't have been. I was able to get into hospital when I shouldn't have been, perhaps. When you're a “frequent flyer”, as I was frequently called, you learn how the system works.
I saw that as a mental health professional, as well. Patients do that all the time.