Peptic Ulcer Disease Diagnosis
Peptic Ulcer Disease Diagnosis
Diagnosis in peptic ulcer disease rests on looking. A symptom pattern can raise the suspicion and can decide how urgently to act, but it cannot establish an ulcer, cannot separate an ulcer from functional dyspepsia, and cannot tell a benign gastric ulcer from an ulcerated cancer. Gastroscopy does all three jobs at once, and the tests that surround it answer the second question — why the ulcer formed, and whether it has really gone. This page sets out what each test contributes and what it cannot show.
Gastroscopy — the test that cannot be replaced
Gastroscopy passes a flexible instrument through the mouth to look directly at the lining of the oesophagus, the stomach and the first part of the small intestine. It is the test that establishes the diagnosis because it does three things no other test does together: it sees the ulcer and describes its site, size and appearance; it takes tissue for examination; and where the ulcer is bleeding, it treats it in the same session.
The examination is usually performed with sedation or with a throat spray, and takes a short time. It is not, however, a test that can be replaced by a decision made from symptoms. A trial of acid medicine will reduce the pain of an ulcer, of inflammation and of functional dyspepsia alike, so improvement carries very little information. What the examination adds is the thing the symptoms cannot supply: the difference between a duodenal ulcer and a gastric ulcer, the difference between an ulcer and a cancer, and the presence or absence of the infection that caused it.
Timing is part of the diagnosis rather than an administrative detail. An ulcer that is bleeding, or that is accompanied by difficulty swallowing, persistent vomiting, weight loss or anaemia, is looked at urgently. An ulcer that is not is still looked at, because the alternative explanations for the same pain are not all benign and because the treatment differs depending on what is found.
Two limitations are worth stating. Endoscopy of the upper digestive tract does not examine the small bowel beyond its first part, so a person whose bleeding has no source in the stomach or duodenum needs a different examination; our gastroenterology department covers that with small-bowel endoscopy and with capsule endoscopy. And an ulcer can be missed, which is uncommon but not impossible, particularly when it is small or in an unusual position — which is one reason the examination is read alongside the history and the blood results rather than on its own.
H. pylori testing, and why the wrong test is worse than none
Testing for Helicobacter pylori is the step that turns a healed ulcer into a treated one, and the tests are not interchangeable. Each answers a slightly different question, and one of them answers a question that is no longer being asked.
| Test | The question it answers |
|---|---|
| Biopsy-based testing at gastroscopy | Is the organism in the stomach lining now? Convenient, because the examination is already under way, and it can be combined with examining the tissue directly |
| Urea breath test | Is there active infection now? The usual non-invasive test, simple to perform, and usable to check whether treatment worked |
| Stool antigen test | The same question by a different route, and often the more practical option outside a hospital setting |
| Blood antibody testing | Whether the immune system has ever met the organism — which is not the same as whether it is present now, and is why a positive antibody result cannot confirm a cure |
The practical rule that follows is about what to stop before the test. Acid suppression, and especially a proton pump inhibitor, can suppress the organism enough to make an active infection test negative, so the usual instruction is to pause it for the period the treating team specifies. Antibiotics taken for any reason in the preceding weeks have the same effect. A test performed without those precautions can produce a false reassurance, which is worse than not testing at all, because it closes the question that should have been answered.
The second rule is about retesting. A treated infection is not a cleared infection until it has been measured, and a retest is arranged after the regimen has finished and after the appropriate interval, with the same precautions applied. Where the organism is not cleared, the next step is not another identical course but a regimen chosen differently — which is why the result is worth having in writing.
Biopsy: why every gastric ulcer is sampled
An ulcer in the stomach is sampled at endoscopy, and this is not a precaution against a rare event. An ulcerated stomach cancer and a benign gastric ulcer can look identical through the endoscope, feel identical to the instrument, and respond identically to acid suppression, at least at first. Sampling is what distinguishes them, and it is the reason a "typical-looking benign ulcer" is not a diagnosis on its own.
Several samples are usually taken from the edge of the ulcer, and the number matters because a cancer can occupy only part of the circumference. The stomach is also sampled away from the ulcer to look for the infection and for the changes in the lining that accompany it. Where the appearance is unusual, an ultrasound probe can be passed with the endoscope and a fine needle used to sample tissue beneath the surface.
A duodenal ulcer is a different matter. Malignancy in the duodenal bulb is rare to the point of being exceptional, so a duodenal ulcer is usually not sampled routinely: it is healed, and its cause is treated. Recognising this difference is one of the ways the two conditions are kept distinct in practice, and it is why the same symptom can lead to two different follow-up plans.
One caution closes the section. A biopsy that shows no cancer at the first examination does not by itself settle the question, because a cancer can be missed by sampling as well as by sight. That is why the healing is checked — a benign gastric ulcer heals, and a cancer usually does not behave that way — and why an ulcer that has not healed at the follow-up examination is sampled again rather than simply treated for longer.
When imaging is used instead, or as well
Imaging does not diagnose an uncomplicated ulcer, and it is a mistake to expect it to. What it does is answer the questions endoscopy cannot: whether the ulcer has perforated, whether it has caused an obstruction, and whether the pain is coming from something else entirely.
A computed tomography scan is the usual first investigation when perforation or obstruction is suspected, and it can also show an ulcer penetrating into an adjacent organ. It is also used when the clinical picture does not fit the endoscopic findings, or when a mass is found and its relationship to surrounding structures needs to be understood. Where a narrowing of the digestive tract, the bile duct or the pancreatic duct needs relief rather than diagnosis, it can be treated endoscopically under X-ray or ultrasound guidance with an expandable stent.
Barium studies of the upper digestive tract belong to a period before direct endoscopy, and are now used only where endoscopy is not possible. Ultrasound is excellent for the gallbladder and the bile ducts and is often the test that redirects a diagnosis of "ulcer" towards gallstone disease, but it does not show an ulcer of the stomach or duodenum. A chest X-ray still has a place when perforation is suspected, since free air under the diaphragm is a specific sign.
Two blood tests sit alongside the imaging rather than replacing it. A full blood count and iron studies detect the anaemia of an ulcer that has been bleeding slowly, and a test for coeliac disease is worth considering where the picture does not fit, because it can produce the same symptoms and has a different treatment.
Confirming the result: the retests that close the loop
Two retests finish the assessment, and both are easy to omit because the person usually feels well by the time they are due. Feeling well is exactly what treatment is supposed to produce, so it is evidence that the treatment is working and not evidence that the retest is unnecessary.
The first is the Helicobacter pylori retest. It is arranged after the eradication regimen has finished and after the specified interval, with acid suppression paused beforehand as instructed, because a treated infection has to be measured rather than assumed. A negative result means the cause has been removed; a positive result means the regimen needs rethinking rather than repeating, and it is worth knowing which one applies before deciding that the problem is solved.
The second is the repeat gastroscopy for a gastric ulcer. Its purpose is to confirm that the ulcer has healed and that it still looks benign, and it is the step that excludes a cancer which the first examination could not distinguish from a benign ulcer. If the ulcer has healed, the loop is closed, and the plan becomes about preventing another one. If it has not healed, the answer is not a longer course of the same medicine but another look and another sample.
Both retests are arranged with dates in advance rather than left to be remembered. They are recorded in the plan you leave with, together with the site and appearance of the ulcer, the biopsy result, the Helicobacter pylori result, which anti-inflammatory drugs were stopped, reduced or continued, and the date of the next review. What that plan should contain is on the living-with-it page.