To get a more clear picture of the ulcers and to be entirely sure about the severity of stomach ulcers, the doctor might use a scope to test your upper digestive system. This process of getting an image by using the scope is known as endoscopy. To perform the endoscopy, the doctor inserts a hollow tube having a lens known as endoscope down the throat and then into the esophagus, the stomach, and small intestine. If the doctor detects an ulcer through the endoscope, he or she takes the small tissue samples of the ulcer and further go for biochemical testing. The biochemical testing of the small tissue sample is known as a biopsy. The biopsy results identify whether the H. pylori bacteria are present in the stomach lining or not.
The doctor goes for the endoscopy if the patient is an older adult, or have any kind of bleeding, or have difficulty in eating, or is suffering from weight loss. If the endoscopy shows the presence of ulcers, then the doctor performs another follow-up endoscopy to check the healing of the ulcers.