As someone else with severe mental health issues I found going back to work helped me significantly. The structure of the routine, the social aspect and the extra money all combined to being extremely beneficial to my wellbeing.
I've been honest with work and they couldn't have been more accomodating if they tried!
As moonicorn says, you have to want to get better, and I do. Treat it like physiotherapy, the more you put in the more you get out. Take medication when the pain is too much and have rest breaks as and when required.