One of the worst things for the human body is to not be productive.
When the body is in that state, it is hard not to concentrate on the health issue. But, what's worse is that the more you concentrate on it, the more of it you experience.
Doesn't sound like your diet is bad, congrats on not eating out (you are part of like the 15% of people that go even that far)
To go further, have you ever gone a any specific diets?
If not, since meds are not working, I think this could be a good shot at trying something new.
I only like to go based of results and science, so if you are up for it, we can muster up a 30-day challenge!
The first thing I would put into place is to eliminate: grains, refined carbs, sugars (not all, sugar from fruits and veggies is allowed), dairy and get on 2 liters of water a day.
This would suck for about 7 days, due to withdrawals, but the benefits could be huge.
There is mixed data on the subject of grains, so I will let you explore that yourself, but what is a fact is that you would do 2 great things for your body:
1. The regime would consist of meals every 3-4 hours (this would help your intestines from having spasms
2. Your glucose levels would be balanced very nicely throughout the day. Meaning you won't have ups and downs = much greater energy levels
I would highly recommend putting meats back into the diet for complete protein sources. Also you will have no problem digesting them vs. the grains that are more complex for the intestines.
Lastly, the marijuana as you noticed is not really an effective solution. I highly recommend yoga (not only for improved intestinal health and bone structure) but because of it's mental effects.
That would also get you some exercise back into your routine = greater productivity
greater productivity = more focus on the things you want
more focus = better health
P.s. I would also recommend some calcium supplements for the time being and naturally fish oil + probiotics are a given