Hi there ~
I am sorry you are having to deal with sleep difficulties despite using medications like temazepam
that used to help with your sleep problems in the past. It is not uncommon to suffer from depression
after such a bad physical condition however you would have to take other things into account before you feel like it is depression only that is making your sleep worse. I would suggest that you keep physically active and not sleep during the day, however not possible that may seem to be. Also there are other sleep medications that can help induce and make you stay asleep. I hope you consult a psychiatrist
to help with this condition.
Other over the counter tricks to try using before you see a shrink are to try drinking milk and use melatonin
during bedtime to help with the sleep difficulties.
I hope this helps. Take care and have a lovely day !