I hope your problem is not serious. At least it's good that you're doing something about it.
Not too long ago I had stomach ulcers and it was hell just going through all the tests to figure out what I had. It turned out o.k. and with medicine I was able to control it.
It's scary but hang in there.