General Surgery · offline copy

UCT Division of General Surgery

Peptic Ulcer Disease

General Surgery

Division of General Surgery, University of Cape Town · Draft · downloaded 2026-11-29

15Upper Gastrointestinal Conditions

Peptic Ulcer Disease

Peptic ulcers are defects in the gastric or duodenal mucosa that extend through the muscularis mucosa, driven mainly by Helicobacter pylori and NSAIDs. This section covers the acid-versus-defence imbalance, the work-up of dyspepsia, PPI plus eradication therapy, and the recognition and emergency management of the two complications students must not miss — perforation and gastric outlet obstruction.

Draftpp 100–104

Definition

Peptic ulcer = defect in the gastric or duodenal mucosa that extends through the muscularis mucosa
  • Peptic ulcer = defect in the gastric or duodenal mucosa that extends through the muscularis mucosa
  • Involves the stomach or the duodenum
  • Normally a physiologic balance exists between gastric acid secretion and gastroduodenal mucosal defence
  • Mucosal injury and ulceration occur when the balance between aggressive factors and defensive mechanisms is disrupted

Epidemiology

Frequency variable · determined primarily by the two major causes: H pylori (HP) and NSAIDs
  • Frequency variable · determined primarily by the two major causes: H pylori (HP) and NSAIDs
  • Global incidence, prevalence, hospitalisation rates and mortality have all been declining over the past couple of decades
  • Decline attributed to ↓ prevalence of HP infection and widespread use of antisecretory agents
  • HP prevalence varies with geographical region and between ethnic groups of the same region
  • Africa has very high prevalence — organism present in 61-100% of study populations
  • South Africa: HP associated with at least 90% of duodenal and 70% of gastric ulcers

Pathophysiology

Ulceration = aggression outweighs defence.

Ulceration = aggression outweighs defence.

Aggressive factorsDefensive mechanisms
NSAIDsTight intercellular junctions
H pylori infectionMucus
AlcoholBicarbonate
Bile saltsMucosal blood flow
AcidCellular restitution
PepsinEpithelial renewal

H pylori

  • Gram-negative bacterium found on the gastric epithelium
  • Induces chronic inflammation of the underlying mucosa
  • Infection usually contracted in the first few years of life · persists indefinitely unless treated
  • Associated with chronic gastritis, peptic ulcer disease and gastric malignancy
  • It is the antral gastritis group who are at risk of developing peptic ulcer disease

Ulcer sites and classification

Gastric ulcers — three traditional types

Gastric ulcers — three traditional types

  1. Prepyloric — <2 cm from the pylorus
  2. Combination of a duodenal and a gastric ulcer — the duodenal ulcer is usually inactive when the patient presents with the gastric ulcer
  3. Lesser curve ulcers >2 cm from the pylorus, usually above the angulus — at the junction zone of the antrum and the parietal cell mass

Ulcers occurring elsewhere in the stomach should raise the suspicion of analgesic abuse or gastric carcinoma.

Duodenal ulcers

  • More than 95% are found in the first part of the duodenum
  • Almost always benign

Aetiology and risk factors

Main driving forces: Helicobacter pylori and, in an increasing elderly population, NSAIDs.

Main driving forces: Helicobacter pylori and, in an increasing elderly population, NSAIDs. Peptic ulcer disease may be due to any, or a combination, of:

  • H pylori infection
  • Drugs
  • Lifestyle factors
  • Severe physiologic stress
  • Hypersecretory states — uncommon
  • Genetic factors

Drugs

  • NSAIDs a common cause, especially in the elderly
  • Up to 30% of adults taking NSAIDs have GI adverse effects
  • Mechanism: hamper the mucosal permeability barrier → mucosa vulnerable to injury
  • ↑ risk of duodenal ulcer with NSAIDs when: previous peptic ulcer disease · older age · female sex · severe comorbid illness
  • High doses · combinations of NSAIDs · long-term use all ↑ risk
  • HP and NSAIDs are synergistic
  • Corticosteroids potentiate ulcer risk in patients using NSAIDs concurrently

Lifestyle factors

  • Smoking harmful to gastroduodenal mucosa, but studies contradictory
  • Smoking with HP infection may ↑ relapse rate and delays ulcer healing
  • Ethanol causes gastric mucosal irritation and non-specific gastritis
  • Evidence that alcohol consumption is a risk factor for peptic ulceration is inconclusive

Severe physiologic stress

  • Cushing's ulcers — CNS trauma
  • Curling's ulcers — burns patients
  • Also: surgery · sepsis · hypotension · respiratory and multi-organ failure · multiple traumatic injuries
  • Increasingly encountered in the critical care setting

Hypersecretory states

  • Gastrin-producing neuroendocrine tumour (gastrinoma) — uncommon
  • Consider in recurrent, atypical, extensive or non-healing PUD
  • Serum gastrin done when Zollinger Ellison Syndrome suspected
  • >500 pg/ml in the presence of peptic ulcer disease is highly suspicious of the diagnosis
  • Without an associated peptic ulcer, atrophic gastritis with achlorhydria (e.g. pernicious anaemia) may give similarly high levels
  • PPI therapy may give slightly raised gastrin levels

Genetics

  • >20% of patients with duodenal ulcers have a family history of PUD
  • Reasons for the genetic association are unclear

Other associated conditions

  • Uraemic gastropathy · bile gastropathy · CMV infection · Crohn's disease · Celiac disease · allergic gastritis · hepatic cirrhosis · recreational drug use (cocaine, methamphetamines)

Clinical features

Gastric and duodenal ulcers usually cannot be differentiated on history alone, although some findings are suggestive.

Gastric and duodenal ulcers usually cannot be differentiated on history alone, although some findings are suggestive.

FeatureGastric ulcerDuodenal ulcer
Timing of painShortly after meals2-3 hours after meals
Effect of food—Food may relieve the pain
Nocturnal pain—Common
  • Epigastric pain — gnawing or burning sensation after meals
  • Pain typically follows a daily pattern specific to the patient
  • Dyspepsia — belching, bloating
  • Heartburn

Alarm symptoms — prompt early referral to exclude malignancy

  • Bleeding or anaemia
  • Early satiety
  • Unexplained weight loss
  • Progressive dysphagia
  • Recurrent vomiting
  • Family history of gastric Ca

Examination

  • Findings, if present, are non-specific
  • Often only mild epigastric tenderness

A good history should elicit risk factors for PUD as well as any prior history of peptic ulcer disease and HP infection.

Differential diagnosis of dyspepsia

Acute cholecystitis / biliary colic
  • Non-ulcer dyspepsia
  • Acute cholecystitis / biliary colic
  • Acute Coronary Syndrome
  • Acute gastritis
  • Oesophagitis
  • GORD

Special investigations

Gastroscopy is highly sensitive in confirming the diagnosis of PUD

Endoscopy

  • Gastroscopy is highly sensitive in confirming the diagnosis of PUD
  • Allows biopsy of gastric ulcers — differentiates benign from malignant
  • Allows biopsy of the gastric antrum to confirm HP by rapid urease test or histopathology
Benign ulcerMalignant ulcer
EdgeSmooth · regular · roundedIrregular · heaped-up or overhanging
BaseFlat and smoothUlcerated mass protruding into the lumen
Surrounding mucosaRadiating foldsFolds nodular and irregular

Tests for HP without endoscopy

  • Where there is no indication for endoscopy: urea breath test or stool antigen assay

Barium meal

  • Now seldom used in the diagnosis of peptic ulcer disease

Medical treatment

Successful HP eradication plus avoidance of NSAIDs now achieves a very high cure rate.

Goals

  • Relief of ulcer symptoms
  • Healing of the ulcer
  • Prevention of complications
  • Prevention of recurrence

Successful HP eradication plus avoidance of NSAIDs now achieves a very high cure rate. PPIs combined with HP eradication is the standard regime for both duodenal and gastric ulcers.

First line regimen

DrugDoseDuration
PPITwice daily1 week, then daily to complete 1 month
Amoxicillin1 g BD1 week
Clarithromycin or Metronidazole500 mg BD or 400 mg BD1 week
  • More complex regimes are given when first line treatment fails

Follow-up and maintenance

  • Endoscopy at 6-8 weeks after initial diagnosis to document healing of gastric ulcers and rule out gastric cancer
  • Where NSAIDs cannot be stopped for medical reasons → maintenance PPI therapy
  • Refractory ulcer = does not completely heal after 8 to 12 weeks of standard anti-secretory drug treatment → may continue daily PPI indefinitely
  • If HP is negative and NSAID use is excluded in a refractory ulcer → consider ZES

Indications for surgery

With the high cure rates achieved by HP eradication, definitive acid-reducing operations such as highly selective vagotomy are no longer…
  • With the high cure rates achieved by HP eradication, definitive acid-reducing operations such as highly selective vagotomy are no longer necessary for uncomplicated ulcer disease
  • Surgery is reserved primarily for complications:
    • Bleeding
    • Perforation
    • Stenosis
    • Occasionally persistent penetrating ulcers

Management of bleeding peptic ulcers is covered in the chapter on GIT bleeding.

Complication: perforation

Most commonly seen in elderly patients using NSAIDs and in patients with polysubstance abuse
  • Most commonly seen in elderly patients using NSAIDs and in patients with polysubstance abuse
  • Incidence of NSAID-related ulcer perforation ≈ 0.3% per year
  • Perforation requiring emergency surgery carries a mortality of 6-30%
  • Higher mortality: elderly · co-morbid disease · delayed presentation

Clinical presentation

  • Acute onset epigastric pain progressing to severe generalised pain within 24-48 hours
  • Acutely distressed with initial neurogenic shock
  • Hypovolaemia and severe metabolic derangement in delayed cases
  • Patient can often recall the exact time and place it occurred
  • Abdomen: board-like rigidity with absent bowel sounds
  • Gross distension later from gas and fluid in the peritoneal cavity and/or ileus
  • Early sealing → symptoms and signs may be confined to the epigastrium
  • Leak along the right paracolic gutter settling in the right iliac fossa may mimic acute appendicitis

Special investigations

  • Erect CXR and AXR show air under the diaphragm in 80% of cases
  • Serum amylase may be raised but is non-specific
  • CT abdomen with oral contrast — useful in doubtful cases or suspected sealed perforation
  • NB: Endoscopy is contra-indicated.

Initial resuscitation

  • IV fluids
  • Analgesics for neurogenic shock
  • Nasogastric tube
  • IV PPI
  • IV broad spectrum antibiotics

Perforation: operative options extended

Primary closure with an omental patch is the operation of choice — laparoscopically or by laparotomy
  • Primary closure with an omental patch is the operation of choice — laparoscopically or by laparotomy
  • Followed by HP eradication
  • Gastric ulcers require a biopsy to exclude malignancy — at the time of surgery or, preferably, by endoscopy 4-6 weeks post-op
  • Conservative therapy (nasogastric suction, IV fluids, antibiotics) only in selected patients with CT-confirmed sealed perforation
  • For large ulcers and those where malignancy is suspected → standard Billroth I gastrectomy

Complication: gastric outlet obstruction

Occurs with large chronic ulcers or where an ulcer heals with fibrosis.

Occurs with large chronic ulcers or where an ulcer heals with fibrosis. The ulcer may be pre-pyloric, in the pyloric channel, or duodenal.

Clinical features

  • Long-standing history of dyspepsia and loss of weight
  • Anorexia, nausea and vomiting of undigested food — usually non-bile stained
  • Dehydration
  • Upper abdominal distension
  • Visible peristalsis — left to right
  • Succussion splash

Metabolic effects

  • Gastric fluid contains on average: Cl 100 meq/l · Na 45 meq/l · K 10 meq/l
  • Excessive chloride loss → plasma chloride falls, plasma bicarbonate rises
  • Alkalotic tendency compensated by renal excretion of sodium bicarbonate
  • Large sodium deficit develops from losses in the vomitus and excessive urinary excretion
  • In advanced cases urine becomes acidic — compensatory excretion of H+ and K+ to conserve sodium
  • End result: hyponatraemic hypokalaemic metabolic alkalosis, severe dehydration with raised urea and haematocrit, and AKI with reduced urine output and raised creatinine

Special investigations

  • X-ray abdomen — dilated stomach with food
  • Endoscopy with biopsy to exclude carcinoma — the most commonly performed investigation
  • Barium meal occasionally helpful — shows hold-up at the pylorus or duodenum with a dilated stomach

Treatment

  • Rehydration with normal saline and correction of potassium deficit — may require up to 10 litres of fluid
  • Gastric washouts with a wide bore tube prior to endoscopy
  • Hyperalimentation or enteral feeding via a feeding tube placed endoscopically beyond the stenosis may be required
  • Peptic ulcer therapy

Obstruction and penetration: operative options extended

Endoscopic dilatation may avoid or defer surgery in selected high-risk patients

Gastric outlet obstruction

  • Endoscopic dilatation may avoid or defer surgery in selected high-risk patients
  • Surgery is required in the majority of cases
    • There is no urgency
    • Adequate nutrition is essential
    • Adequate decompression of the stomach is important to prevent post-operative stasis
  • Objective is to overcome the obstruction — usually some form of pyloroplasty

Penetrating ulcers

  • Rarely penetrate into the liver or pancreas
  • Can be managed with aggressive PPI therapy
  • Often require surgical resection (Billroth I)
Figure 1 Why an ulcer forms: aggression versus defence
yesnoAggressive factors · NSAIDs ·H pylori · alcohol · bile salts ·acid · pepsinIs defence still matchingaggression?Defensive mechanisms · tightjunctions · mucus · bicarbonate· mucosal blood flow ·restitution · epithelial renewalGastroduodenal mucosaIntact mucosaMucosal injury extendingthrough the muscularis mucosaPeptic ulcer
Peptic ulceration is a failure of the balance between aggressive luminal factors and gastroduodenal mucosal defence.
Figure 2 Work-up of dyspepsia
bleeding · anaemia · early satiety · weight loss · dysphagia · recurrent vomiting · family history of gastric Canonemalignant edge · heaped up or overhanging · nodular foldsbenign edge · smooth and rounded · radiating foldsDyspepsia or epigastric painAlarm symptoms present?Early referral for gastroscopyUrea breath test or stoolantigen assayBiopsy the gastric ulcer and thegastric antrum · rapid ureasetestUlcer benign or malignant?Manage as gastric carcinomaPeptic ulcer disease confirmedH pylori status establishedwithout endoscopy
Alarm symptoms drive the patient to gastroscopy; without them H pylori can be tested non-invasively.
Figure 3 Medical treatment and follow-up
yesnoyesnoyesnoPeptic ulcer confirmedPPI BD for 1 week plusamoxicillin 1g BD plusclarithromycin 500mg BD ormetronidazole 400mg BDDaily PPI to complete 1 month ·avoid NSAIDsGastric ulcer?Endoscopy at 6 to 8 weeks todocument healing and rule outgastric cancerHealed after 8 to 12 weeks ofanti secretory treatment?Treatment completeRefractory ulcerH pylori negative and NSAID useexcluded?Consider Zollinger EllisonSyndromeMore complex eradicationregime · daily PPI indefinitely
PPI plus H pylori eradication, then proof of healing for gastric ulcers and a search for Zollinger Ellison syndrome if the ulcer is refractory.
Figure 4 Suspected perforated peptic ulcer
yes · seen in 80 percentno or doubtfulyes and patient selectednoSudden epigastric pain becominggeneralised · board like rigidity· absent bowel soundsErect CXR and AXREndoscopy is contra indicatedAir under the diaphragm?Resuscitate · IV fluids ·analgesia · nasogastric tube ·IV PPI · IV broad spectrumantibioticsCT abdomen with oral contrastSealed perforation confirmed?Conservative · nasogastricsuction · IV fluids · antibioticsOmental patch closure bylaparoscopy or laparotomy thenHP eradication
Board-like rigidity to omental patch repair; endoscopy has no place and CT is reserved for the doubtful or sealed perforation.
Figure 5 Gastric outlet obstruction: from resuscitation to pyloroplasty
yesnoVomiting of undigested non bilestained food · weight loss ·succussion splash · visibleperistalsisRehydrate with normal salineand correct the potassiumdeficit · up to 10 litres may beneededGastric washouts with a widebore tube before endoscopyEndoscopy with biopsy toexclude carcinomaPeptic ulcer therapy · enteralfeeding beyond the stenosis ifneededSelected high risk patient?Endoscopic dilatation to avoidor defer surgeryPyloroplasty once nutrition andgastric decompression areadequateObstruction relieved
There is no urgency — correct the fluid and electrolyte deficit, decompress and feed the stomach, exclude carcinoma, then operate.
Figure 6 Metabolic cascade of gastric outlet obstruction
Persistent vomiting of gastricfluid · Cl 100 · Na 45 · K 10meq per litrePlasma chloride falls · plasmabicarbonate risesRenal excretion of sodiumbicarbonate compensates thealkalotic tendencyLarge sodium deficit fromvomitus and urinary lossesH and K excreted to conservesodium · urine becomes acidicHyponatraemic hypokalaemicmetabolic alkalosisSevere dehydration · raisedurea and haematocrit · acutekidney injury
How persistent vomiting of gastric fluid produces a hyponatraemic hypokalaemic metabolic alkalosis with paradoxically acid urine.
protocol Operative modalities for complicated peptic ulcer
ComplicationOperationNotes
Perforation — standardPrimary closure with an omental patchLaparoscopic or open · followed by HP eradication
Perforation — large ulcer or malignancy suspectedStandard Billroth I gastrectomyDistal gastrectomy
Perforation — sealed on CTConservative: nasogastric suction · IV fluids · antibioticsOnly in selected patients with CT-confirmed sealing
Gastric outlet obstructionPyloroplastyMajority need surgery · endoscopic dilatation may avoid or defer it in selected high-risk patients
Penetrating ulcer into liver or pancreasAggressive PPI · often surgical resection (Billroth I)Rare

Every gastric ulcer operated on needs a biopsy to exclude malignancy — at surgery, or preferably by endoscopy 4-6 weeks post-op.

concept Why obstruction produces acid urine in an alkalotic patient

Gastric fluid averages Cl 100 meq/l, Na 45 meq/l, K 10 meq/l.

  1. Excessive chloride loss in the vomitus → plasma chloride falls, plasma bicarbonate rises
  2. The kidney compensates for the alkalotic tendency by excreting sodium bicarbonate
  3. Sodium is therefore lost twice — in the vomitus and in the urine → a large sodium deficit
  4. In advanced cases the kidney switches to conserving sodium, excreting H+ and K+ instead → the urine becomes acidic despite systemic alkalosis

End result: hyponatraemic hypokalaemic metabolic alkalosis, severe dehydration with raised urea and haematocrit, and acute kidney injury with reduced urine output and raised creatinine.

This is why resuscitation is with normal saline plus potassium, and why up to 10 litres may be needed.

pitfall Interpreting a raised serum gastrin
  • Test when PUD is recurrent, atypical, extensive or non-healing
  • >500 pg/ml with a peptic ulcer → highly suspicious of Zollinger Ellison Syndrome
  • >500 pg/ml without an ulcer → atrophic gastritis with achlorhydria (e.g. pernicious anaemia) gives similarly high levels
  • PPI therapy itself may give slightly raised gastrin levels

Numbers to know

  • More than 95% of duodenal ulcers are found in the first part of the duodenum p100
  • Prepyloric gastric ulcers lie <2 cm from the pylorus p100
  • The third type of gastric ulcer lies >2 cm from the pylorus on the lesser curve, usually above the angulus p100
  • H pylori is present in 61-100% of study populations in Africa p101
  • In South Africa H pylori is associated with at least 90% of duodenal and 70% of gastric ulcers p101
  • Up to 30% of adults taking NSAIDs have GI adverse effects p101
  • Serum gastrin >500 pg/ml in the presence of peptic ulcer disease is highly suspicious of Zollinger Ellison Syndrome p101
  • More than 20% of patients with duodenal ulcers have a family history of PUD p101
  • Duodenal ulcer pain occurs 2-3 hours after meals; gastric ulcer pain shortly after meals p101
  • First line eradication: PPI twice daily for 1 week with amoxicillin 1g BD and clarithromycin 500mg BD or metronidazole 400mg BD p102
  • Daily PPI is continued to complete 1 month of treatment p102
  • Endoscopy is repeated 6-8 weeks after initial diagnosis to document healing of gastric ulcers and rule out gastric cancer p102
  • A refractory ulcer is one that does not completely heal after 8 to 12 weeks of standard anti-secretory drug treatment p102
  • The incidence of NSAID-related ulcer perforation is approximately 0.3% per year p102
  • Peptic ulcer perforation requiring emergency surgery carries a mortality risk of 6-30% p102
  • Perforation pain progresses from epigastric to severe generalised pain within 24-48 hours p102
  • Erect CXR and AXR show air under the diaphragm in 80% of perforated peptic ulcers p103
  • Gastric ulcers closed at surgery should be biopsied, preferably by endoscopy 4-6 weeks post-op p103
  • Gastric fluid contains on average 100 meq/l chloride, 45 meq/l sodium and 10 meq/l potassium p103
  • Patients with gastric outlet obstruction may require up to 10 litres of fluid to achieve adequate rehydration p104

Pearls

  • Peptic ulcer = mucosal defect extending through the muscularis mucosa, in the stomach or the duodenum.
  • A gastric ulcer anywhere other than the prepyloric region or the lesser curve above the angulus → suspect analgesic abuse or gastric carcinoma.
  • >95% of duodenal ulcers sit in D1 and are almost always benign; every gastric ulcer needs a biopsy.
  • Duodenal ulcer pain: 2-3 hours after meals, relieved by food, wakes the patient at night.
  • Alarm symptoms (bleeding/anaemia, early satiety, weight loss, dysphagia, recurrent vomiting, family history of gastric Ca) mean early endoscopy.
  • It is the antral gastritis pattern of H pylori infection that puts the patient at risk of peptic ulceration.
  • Gastric ulcers must be re-scoped at 6-8 weeks to document healing and rule out cancer — duodenal ulcers need not be.
  • Endoscopy is contra-indicated in suspected perforation.
  • A normal erect CXR does not exclude perforation — 20% have no free air.
  • Omental patch closure plus H pylori eradication is the operation of choice for a perforated ulcer.
  • Vomiting of undigested, non-bile-stained food with a succussion splash and visible left-to-right peristalsis = gastric outlet obstruction.
  • Obstruction is not an emergency operation: rehydrate with normal saline and potassium, decompress and feed the patient first.
  • Refractory ulcer + HP negative + no NSAIDs → measure serum gastrin and think Zollinger Ellison Syndrome.

A 54-year-old man has a biopsy-proven benign gastric ulcer with a positive rapid urease test. Which first line regimen does the chapter specify?

A patient presents with sudden epigastric pain, board-like rigidity and absent bowel sounds. The erect chest X-ray is normal. Which statement is correct?

A patient with long-standing dyspepsia now vomits large volumes of undigested, non-bile-stained food and has a succussion splash. What is the expected biochemical picture?

Which finding at gastroscopy most suggests a malignant rather than a benign gastric ulcer?

A duodenal ulcer has failed to heal after 12 weeks of standard anti-secretory treatment. H pylori tests are negative and the patient takes no NSAIDs. What should be considered next?

Division of General Surgery, University of Cape Town · Draft · downloaded 2026-11-29