My personal opinion but...
Your health really should take priority over your work. If you need the medication you need the medication. You won't get any thanks from management if you have an accident/incident/assault etc which could be attributed to you being hell bent on working rather than taking some time off. Chain of care (supposedly) applies to health issues and life events not related to work as well.
Plenty of railway staff in every grade are on antidepressants, anti-anxiety meds, mood stabilisers... we all compare notes about our pills, therapies, NHS waiting lists etc at our place, though I concede that not every workplace will be quite that open!