Well firstly don't let depression of not performing publicly take over your mindset...instead look at all the positiveness and your new musical direction. Sell off some old gear and setup your home studio with gear that you can make music with and most of all make yourself happy creating songs, music tracks for others, recording, writing your own songs. Try other ways to create also using VST's with your DAW on your computer, or maybe learn a new instrument to add to your songs, Listen to your doctors advice and never give up.

I wish you luck with your new adventure!

take care