You may be suffering from the serious neurological side effects of codeine.
Depression, anxiety, confusion, and suicidal thoughts are serious side effects of codeine in severe addiction. (as you are)
Here is online info for your ref:
http://www.stopyouraddiction.com/dru...ine-addiction/
You need to go through a detox from your codeine ASAP.
My suggestion for you are the followings and do these NOW:
1. Call your healthcare provider and let them know about your codeine addiction and your suicidal depression.
2. Checking yourself into an in-patient psychiatric facility or a rehab center TODAY.
Addiction is now known as a genetic condition. So, some people are susceptible to addiction of any kinds than others.
Your wife was just an extension of your addiction. She herself has lots of addictions and poor coping skills. So, you two got together to continue on with each other's addictions and dysfunctions.
Two dysfunctional people do NOT make one functional relationship.
Two dysfunctional people make one relationship with two dysfunctions in it.
Therefore, it is GOOD that she is no-longer in your life.
Be thankful that the marriage lasted ONLY 7 yrs, and NOT 17 yrs or longer.
Don't worry about her, unless your child is with her.
You need to take care of yourself right now.