Hi MD and welcome!
I am sorry to hear that you are dealing with gastro trouble and pain. This is not unusual, and is often co-morbid with anxiety issues.
That is to say, that stress/anxiety can contribute and or exacerbate the stomach problems, but is not necessarily the single cause.
Example, for years ulcers were considered purely a 'stress disease'...until h-pylori was identified.
Therefore it is good that you are getting the medical tests that you need. Continuing this course for answers is a great path...as you simultaneously do your best to also follow your anxiety management plan, for the best overall treatment goals!
Be sure to check out our Resources at the top of the main forum page here for great self help material to add to your regimen of coping skills...
...and post with us anytime for understanding, sharing and support!
Hoping you get the answers and relief you need soon.
"Courage is not the abscence of fear, it is feeling afraid and doing it anyway!"
"Worrying does not empty tomorrow of its troubles...it empties today of its strength."
Corrie Ten Boom
Panic Syndrome recovery due to CBT