Sounds more like Irritable Bowel Syndrome (IBS)
I have experienced everything you've described all within a 24 hour period. Went through test after test after test, all were normal. I was diagnosed with Acid (not heartburn as I never had the pain in my chest, just in my upper abdomen) and IBS. I took Prilosec for 3 years to deal with the acid pain and it worked wonders. I only stopped it because I got pregnant and after I had my daughter my acid seemed to all but disappear.
My IBS acts up as well. I've learned what foods cause me issues, and what foods are "safe".
I'd recommend taking a good quality probiotic daily to help with the bowel issues.
And yes anxiety can trigger episodes