This is good that you have know that you are depressed,next step should be you must consult a Physician/Psychiatrist
. As you are already having some features of depression
for long time.It is always easy to treat and even therapeutic response is much better if you treat it early.
As you have recovered from jaundice
any cocomittant disease may increase problem of Depression.
Do not take too much pain killers. They may have unwanted effects.
Once again It would be nice if you take proper consultaion
Hope you will improve soon.