You're really a fantastic man, Genetic.
I've been in same position as your girlfriend a number of times. From 15-19 I was consistently in and out of psych wards for suicide attempts and severe depression. Of course she wants to leave, but that's not always the best answer. Those places, while helpful, feel like hell sometimes. Being told when/if you can see family and friends, when to go to bed, what you're eating, etc. is never a good feeling and makes a person feel as she said "cooped up and useless". Encourage her to follow through with her therapy, and when she's out continue to see a shrink or therapist.
It takes A LOT of effort to get through stuff like this and any and all help is always appreciated in the end. I can say with some certainty that I've dealt with the majority of my shit but life is never the same and people are never 'fixed'. Those feelings still come back to haunt you once it's over and she just needs to take them head-on.
You're in my prayers, hombre. You're one of the few decent people left and don't let any discouragement get you down. You can only keep your sanity by giving it to others.
__________________
|