If a GP thinks you have a stomach ulcer, you may be tested for an Helicobacter pylori (H. pylori) infection.
You may be referred to hospital for a procedure to look inside your stomach called a gastroscopy.
If your GP thinks your symptoms are caused by an H. pylori infection, they may recommend one of the following tests:
If you test positive for H. pylori, you'll need treatment to clear it, which can heal the ulcer and prevent it returning.
This is a test to look inside your stomach directly and see whether you have a stomach ulcer.
It involves passing a thin, flexible tube (an endoscope) with a camera through into your stomach and the 1st section of the small intestine (duodenum).
You may be given a mild sedative injection before the procedure and have your throat sprayed with a local anaesthesia to make it more comfortable to pass the endoscope.
The images taken by the camera will usually confirm or rule out an ulcer. A small tissue sample may also be taken from your stomach or duodenum so it can be tested for the H. pylori bacteria.
A gastroscopy is carried out at a hospital and usually on the same day, so you won't have to spend the night in hospital.