USMLE STEP 2 • GASTROENTEROLOGY

Upper Gastrointestinal Disorders

A clinical survey of esophageal and gastroduodenal pathology essential for diagnosis and board-level management decisions.

Historical Context & Motivation

Upper gastrointestinal (GI) disorders encompass a broad range of pathology affecting the esophagus, stomach, and duodenum, and they remain among the most common reasons for outpatient gastroenterology referrals and emergency department visits worldwide. Historically, the understanding of these conditions evolved from purely anatomical descriptions toward a sophisticated appreciation of mucosal defense mechanisms, acid secretion physiology, and the role of infectious agents. The pivotal discovery that Helicobacter pylori (H. pylori) causes peptic ulcer disease fundamentally transformed treatment paradigms, shifting the field from palliative acid suppression toward curative antimicrobial therapy. Today, clinicians must integrate knowledge of motility disorders, malignancy risk stratification, acid-related injury, and mucosal immunology to manage these patients effectively.

1823
William Beaumont's Gastric Fistula Studies
Beaumont's experiments on Alexis St. Martin provided the first direct observations of gastric acid secretion and motility in a living human, laying the foundation for gastric physiology.
1910
Schwarz's Dictum — 'No Acid, No Ulcer'
Karl Schwarz articulated the principle that peptic ulceration requires gastric acid, driving decades of research into antisecretory therapies including antacids, H₂-receptor antagonists, and proton pump inhibitors.
1982
Discovery of Helicobacter pylori
Barry Marshall and Robin Warren identified the spiral bacterium in gastric biopsy specimens and demonstrated its causal role in chronic gastritis and peptic ulcer disease, earning the 2005 Nobel Prize in Physiology or Medicine.
1989
Introduction of Proton Pump Inhibitors
Omeprazole became widely available, offering profound and sustained acid suppression that revolutionized management of GERD, Zollinger-Ellison syndrome, and erosive esophagitis.
2010s
Endoscopic Advances & Barrett's Surveillance
High-definition endoscopy, chromoendoscopy, and radiofrequency ablation refined the detection and treatment of Barrett's esophagus with dysplasia, reducing the need for esophagectomy in select patients.

Despite these advances, upper GI disorders continue to pose diagnostic and therapeutic challenges. The central clinical question remains: how does a clinician rapidly differentiate benign acid-related disease from potentially life-threatening conditions such as upper GI bleeding, perforation, or malignancy — and how should management be prioritized in both ambulatory and acute settings?

Core Principles & Definitions

The pathophysiology of upper GI disorders can be understood through a framework balancing aggressive factors (acid, pepsin, bile, H. pylori, NSAIDs) against protective factors (mucus-bicarbonate barrier, mucosal blood flow, prostaglandins, epithelial restitution). When this balance is disrupted, a spectrum of disease emerges ranging from functional dyspepsia to frank ulceration and hemorrhage. A solid grasp of these foundational concepts enables the clinician to approach board-style vignettes and real patients with a structured differential diagnosis.

1

Gastroesophageal Reflux Disease (GERD)

Chronic retrograde flow of gastric contents into the esophagus causing heartburn, regurgitation, and potential mucosal injury. Pathogenesis involves transient lower esophageal sphincter relaxations, hiatal hernia, and impaired esophageal clearance.
2

Peptic Ulcer Disease (PUD)

Ulceration of the gastric or duodenal mucosa primarily caused by H. pylori infection or NSAID use. Complications include hemorrhage, perforation, and gastric outlet obstruction.
3

Upper GI Bleeding

Hemorrhage proximal to the ligament of Treitz, presenting as hematemesis, melena, or hematochezia in brisk bleeds. The Glasgow-Blatchford and Rockall scores guide risk stratification and need for intervention.
4

Barrett's Esophagus

Intestinal metaplasia of the distal esophageal squamous epithelium to specialized columnar epithelium, representing a premalignant condition with a 0.5% annual risk of progression to esophageal adenocarcinoma.
5

Gastric Malignancy

Includes adenocarcinoma (most common), lymphoma (MALToma), gastrointestinal stromal tumors (GIST), and carcinoid tumors. H. pylori is classified as a Group 1 carcinogen for gastric adenocarcinoma.
KEY TAKEAWAY
Think of the gastric mucosa as a castle wall: the mucus-bicarbonate layer is the moat, prostaglandins are the sentries maintaining the fortifications, and mucosal blood flow is the supply chain that repairs damage. NSAIDs disable the sentries by inhibiting cyclooxygenase, while H. pylori tunnels beneath the moat itself. Understanding this balance between aggression and defense is the single most important principle for approaching upper GI pathology on boards and in clinical practice.

Visual Explanation — Anatomy & Pathology Map

Anatomic map of the upper GI tract illustrating the typical locations of major disorders. Note that squamous cell carcinoma arises in the upper and middle esophagus, while adenocarcinoma develops at the gastroesophageal junction in the setting of Barrett's metaplasia. Duodenal ulcers on the anterior wall tend to perforate, whereas posterior wall ulcers erode into the gastroduodenal artery causing hemorrhage — a classic board association.

The diagram above illustrates a recurring theme in upper GI disorders: pathology is anatomically predictable. GERD occurs at the gastroesophageal junction where sphincter incompetence permits acid reflux. Duodenal ulcers are found in the duodenal bulb where acid load from gastric hypersecretion is highest, and they are strongly associated with H. pylori colonization of the gastric antrum, which disrupts somatostatin-mediated feedback inhibition of gastrin release. Gastric ulcers favor the lesser curvature and incisura angularis, regions where mucosal blood flow is relatively tenuous. Understanding these anatomic relationships enables rapid pattern recognition in clinical vignettes.

Pathophysiology & Mechanisms

Acid Secretion Physiology

Gastric acid is produced by parietal cells in the gastric body and fundus via the H⁺/K⁺-ATPase (proton pump) on the apical membrane. Three major stimulatory pathways converge on the parietal cell: acetylcholine from vagal efferents acting on muscarinic M₃ receptors, histamine from enterochromaffin-like (ECL) cells acting on H₂ receptors, and gastrin from G cells acting on cholecystokinin B (CCK-B) receptors. Somatostatin, released from antral D cells, provides the principal inhibitory feedback. This physiology is directly relevant to pharmacologic management, as proton pump inhibitors (PPIs) irreversibly block the final common pathway of acid secretion.

PROTON PUMP REACTION
H⁺(intracellular) + K⁺(luminal) ⇌ H⁺(luminal) + K⁺(intracellular)
The H⁺/K⁺-ATPase exchanges intracellular H⁺ for luminal K⁺ against a concentration gradient of approximately 10⁶-fold. PPIs (e.g., omeprazole) form a covalent disulfide bond with cysteine residues on this pump, producing irreversible inhibition. Recovery requires synthesis of new pump molecules (half-life ≈ 18 hours).

H. pylori Pathogenesis

H. pylori colonizes the gastric antral mucosa by producing urease, which hydrolyzes urea to ammonia and CO₂, creating a locally alkaline microenvironment that protects the organism from gastric acid. Virulence factors including CagA (cytotoxin-associated gene A) and VacA (vacuolating cytotoxin) mediate mucosal injury by disrupting tight junctions, inducing inflammatory cytokines, and promoting apoptosis. In the antrum, H. pylori-driven inflammation suppresses D-cell somatostatin release, leading to unchecked gastrin secretion and acid hypersecretion — the principal mechanism underlying duodenal ulcer formation. In contrast, pangastritis reduces the parietal cell mass, producing a hypochlorhydric state that increases the risk of gastric ulcer, atrophic gastritis, intestinal metaplasia, and ultimately gastric adenocarcinoma via the Correa cascade.

GERD Pathophysiology

The pathogenesis of GERD is multifactorial: transient lower esophageal sphincter relaxations (TLESRs) account for the majority of reflux episodes. Contributing factors include a mechanically defective LES (resting pressure < 10 mmHg), hiatal hernia (which separates the LES from the crural diaphragm), impaired esophageal peristalsis, delayed gastric emptying, and obesity-related increases in intra-abdominal pressure. The esophageal squamous epithelium, lacking the protective mucus-bicarbonate barrier present in the stomach, is particularly vulnerable to acid-pepsin injury, which produces the characteristic inflammatory cascade of erosive esophagitis. Chronic reflux can lead to columnar metaplasia (Barrett's esophagus), which carries the risk of dysplasia and malignant transformation.

This flowchart contrasts the two dominant pathways of mucosal injury. H. pylori produces either antral-predominant disease (leading to duodenal ulcers via acid hypersecretion) or pangastritis (leading to gastric ulcers and the Correa cascade toward adenocarcinoma). NSAIDs impair mucosal defense by suppressing prostaglandin synthesis. Both pathways converge on the same complications: hemorrhage, perforation, obstruction, and malignancy.

Detailed Classification & Diagnosis

Alarm Features (Red Flags) in Upper GI Disorders

🚩 ALARM FEATURES REQUIRING EGD
The mnemonic VBAD helps recall indications for urgent esophagogastroduodenoscopy: Vomiting (persistent), Bleeding (hematemesis or melena), Anemia (iron deficiency), Dysphagia/odynophagia. Additional red flags include unintentional weight loss (>5% in 6 months), palpable abdominal mass, lymphadenopathy, and new-onset dyspepsia in patients aged ≥ 55 years.

Peptic Ulcer Disease: Gastric vs. Duodenal

High-yield comparison of gastric versus duodenal ulcer features for USMLE Step 2
FeatureGastric UlcerDuodenal Ulcer
LocationLesser curvature, incisura angularisDuodenal bulb (first portion)
Acid levelsNormal or low (mucosal defense impaired)High (acid hypersecretion)
Pain patternWorsened by eating (30 min postprandial)Improved by eating; worse 2–5 hrs after meals and at night
H. pylori association~70%~90–95%
Malignancy riskYes — biopsy edges to exclude adenocarcinomaExtremely rare — biopsy not routinely required
Weight changeWeight loss (food aversion)Weight gain (eating relieves pain)
Perforation anatomyFree air; left subphrenic abscessAnterior → perforation; Posterior → GDA hemorrhage

H. pylori Diagnostic Testing

H. pylori testing modalities
TestInvasive?Use CaseNotes
Urea breath testNoTest of cure (preferred); initial diagnosisHold PPIs ≥2 wk, antibiotics ≥4 wk before testing
Stool antigenNoTest of cure (alternative); initial diagnosisSame PPI and antibiotic washout required
Serology (IgG)NoScreening in high-prevalence areasCannot confirm eradication (remains positive)
Rapid urease test (CLO)Yes (EGD)During endoscopyBiopsy from antrum placed in urea-containing gel; color change = positive
HistologyYes (EGD)Gold standard; assesses inflammation, metaplasiaSilver stain (Warthin-Starry) or immunohistochemistry

GERD Diagnosis & Staging

GERD is diagnosed clinically when typical symptoms (heartburn, regurgitation) respond to an empiric PPI trial. Esophagogastroduodenoscopy (EGD) is indicated when alarm features are present, when symptoms are refractory to 8 weeks of PPI therapy, or for Barrett's screening in high-risk patients (chronic GERD > 5 years, male sex, age > 50, obesity, Caucasian race, tobacco use, family history). 24-hour ambulatory pH monitoring remains the gold standard for quantifying acid exposure and is particularly useful when endoscopy is normal but symptoms persist, as it can distinguish true reflux from functional heartburn. The DeMeester score > 14.72 on pH testing is considered abnormal. High-resolution esophageal manometry is essential before anti-reflux surgery to exclude achalasia or severe hypomotility.

Worked Clinical Vignette

Clinical Vignette: 55-Year-Old Male with Epigastric Pain and Melena
1
Step 1 — Identify the PresentationA 55-year-old man with a history of chronic low back pain managed with daily ibuprofen (800 mg TID) presents with 3 days of worsening epigastric pain, two episodes of black tarry stools, and lightheadedness. Vital signs reveal HR 110 bpm, BP 95/60 mmHg, and orthostatic changes. CBC shows hemoglobin 8.2 g/dL (baseline 14 g/dL). The presentation of melena + hemodynamic instability + acute anemia strongly suggests acute upper GI hemorrhage.
Diagnosis: Acute upper GI bleeding, likely NSAID-induced peptic ulcer
2
Step 2 — Risk StratifyApply the Glasgow-Blatchford Score (GBS): BUN elevated, hemoglobin 8.2 g/dL (male), systolic BP 95 mmHg, tachycardia present, melena present. This yields a GBS ≥ 6, indicating high-risk status requiring inpatient management. A GBS of 0–1 would suggest low risk potentially suitable for outpatient management.
GBS ≥ 6 → High-risk; admit to ICU/monitored bed
3
Step 3 — Initial ResuscitationBegin aggressive IV crystalloid resuscitation. Transfuse packed red blood cells targeting hemoglobin ≥ 7 g/dL (a restrictive transfusion strategy has been shown to improve outcomes in upper GI bleeding compared to a liberal strategy). Initiate an IV PPI infusion (e.g., pantoprazole 80 mg bolus followed by 8 mg/hr continuous infusion) to raise intragastric pH above 6, which stabilizes clots. Discontinue NSAIDs immediately. Place two large-bore peripheral IVs; type and crossmatch 4 units.
IV PPI bolus + drip, restrictive transfusion, stop NSAID
4
Step 4 — Endoscopic InterventionPerform EGD within 24 hours of presentation (within 12 hours for high-risk patients). EGD reveals a 1.5 cm ulcer on the posterior duodenal wall with a visible vessel (Forrest classification IIa) at the base. This carries a ~43% rebleeding risk without intervention. Apply dual endoscopic therapy: epinephrine injection (1:10,000) plus thermal coagulation or hemoclip placement. Biopsies of the ulcer margins and antral mucosa are obtained for H. pylori testing.
Forrest IIa → Dual endoscopic hemostasis + H. pylori biopsy
5
Step 5 — Post-Procedure Management & Follow-UpContinue IV PPI for 72 hours then transition to oral PPI (e.g., omeprazole 40 mg daily) for 8 weeks. H. pylori biopsy returns positive: initiate quadruple therapy (PPI + bismuth subsalicylate + metronidazole + tetracycline × 14 days) given rising clarithromycin resistance. Confirm eradication with urea breath test or stool antigen ≥ 4 weeks after completing antibiotics and ≥ 2 weeks off PPI. Counsel the patient to avoid NSAIDs; if analgesics are needed, recommend acetaminophen or, if an NSAID is absolutely required, the lowest-dose COX-2 selective agent with a co-prescribed PPI. Duodenal ulcers that are H. pylori-positive and successfully eradicated do not require repeat endoscopy. Gastric ulcers would require repeat EGD at 8–12 weeks to document healing and exclude malignancy.
Quadruple therapy → Confirm eradication → NSAID avoidance → No repeat EGD for DU

Treatment Approaches — Strengths & Limitations

Comparison of major upper GI pharmacologic and surgical therapies
TherapyMechanism & UseLimitations / Side Effects
Proton Pump InhibitorsIrreversible H⁺/K⁺-ATPase inhibition; first-line for GERD, PUD, ZES, stress ulcer prophylaxisLong-term: C. difficile risk, hypomagnesemia, osteoporotic fractures, B₁₂ deficiency, fundic gland polyps, possible CKD
H₂-Receptor AntagonistsCompetitive H₂ blockade on parietal cells; second-line for GERD; nocturnal acid suppressionTachyphylaxis with chronic use; less potent than PPIs; cimetidine → anti-androgenic effects, CYP450 inhibition
SucralfatePolymerizes in acidic pH to form protective barrier over ulcer base; stress ulcer prophylaxis in critically illRequires acidic environment (avoid with PPIs); impairs absorption of other drugs; constipation
MisoprostolPGE₁ analog; replaces prostaglandins inhibited by NSAIDs; NSAID gastropathy prophylaxisDiarrhea, abdominal cramping; absolutely contraindicated in pregnancy (abortifacient)
Triple / Quadruple TherapyH. pylori eradication; PPI + clarithromycin + amoxicillin (triple) or PPI + bismuth + metronidazole + tetracycline (quadruple)Rising clarithromycin resistance (>15% in many regions favors quadruple Rx); compliance challenges with 14-day regimens; metallic taste, nausea
Nissen Fundoplication360° gastric wrap around LES; definitive anti-reflux surgery for refractory GERDGas-bloat syndrome, dysphagia, inability to belch/vomit; requires pre-op manometry to exclude motility disorder
💊 CLINICAL PEARL
When a board question describes a patient with recurrent peptic ulcers despite appropriate PPI therapy and negative H. pylori testing, consider Zollinger-Ellison syndrome (gastrinoma). The diagnosis is confirmed by a fasting serum gastrin level > 1000 pg/mL or a positive secretin stimulation test (paradoxical rise in gastrin > 120 pg/mL). ZES is associated with MEN1 (parathyroid adenoma + pituitary adenoma + pancreatic/duodenal gastrinoma), so check calcium and prolactin if ZES is confirmed.

Connections to Advanced GI Oncology & Motility

Upper GI disorders serve as a gateway to more advanced pathology frequently tested on Step 2 and encountered in clinical clerkships. The progression from chronic inflammation to metaplasia to dysplasia to carcinoma — the Correa cascade — exemplifies how benign conditions such as H. pylori gastritis can culminate in gastric adenocarcinoma over decades. Similarly, the Barrett's metaplasia-dysplasia-adenocarcinoma sequence in the esophagus underscores the importance of surveillance programs. Understanding these cascades connects fundamental upper GI pathophysiology to oncologic principles including tumor staging (TNM), surgical candidacy, and systemic therapy.

Step 2 foundations and their advanced clinical extensions
ConceptStep 2 FoundationAdvanced Extension
Barrett's EsophagusIntestinal metaplasia, surveillance intervals (no dysplasia: q3–5 yr; LGD: q6–12 mo; HGD: intervention)Radiofrequency ablation, endoscopic mucosal resection, esophagectomy for intramucosal carcinoma; genomic biomarkers under investigation
Gastric AdenocarcinomaIntestinal vs. diffuse (Lauren classification); Virchow node, Sister Mary Joseph nodule, Krukenberg tumorHER2/neu overexpression → trastuzumab; PD-L1 expression → pembrolizumab; perioperative chemotherapy (FLOT regimen)
AchalasiaBird's beak on barium swallow; manometry: absent peristalsis, incomplete LES relaxation; treatment with pneumatic dilation or Heller myotomyPer-oral endoscopic myotomy (POEM); Chicago classification v4.0 manometric subtypes predicting treatment response
GISTSubmucosal mass, CD117 (c-KIT) positive on IHC; surgical resectionImatinib (tyrosine kinase inhibitor) for unresectable/metastatic disease; mutational analysis (KIT exon 11 vs. PDGFRA D842V)

As you advance from Step 2 into clinical practice, the principles covered here — anatomic localization of pathology, systematic risk stratification, evidence-based H. pylori management, and judicious use of endoscopy — will form the scaffold upon which subspecialty gastroenterology and surgical oncology decision-making are built. Recognizing the clinical overlap between benign acid-related disease and early malignancy is perhaps the most critical skill, because timely identification of high-risk features can alter patient outcomes dramatically.

Practice Problems

PROBLEM 1CONCEPTUAL
A 40-year-old woman with rheumatoid arthritis has been taking naproxen 500 mg BID for 6 months. She now presents with epigastric pain. Explain the pathophysiologic mechanism by which NSAIDs predispose to peptic ulcer disease, and state which specific type of ulcer (gastric vs. duodenal) is more commonly caused by NSAIDs alone (without concurrent H. pylori infection).
PROBLEM 2BASIC CALCULATION
A patient undergoes 24-hour ambulatory esophageal pH monitoring. Total recording time is 24 hours. The total time with esophageal pH < 4 is measured as 2 hours and 24 minutes. Calculate the percentage of total time with acid exposure and state whether this result is considered normal or abnormal based on the standard threshold of < 4.2% total acid exposure time.
PROBLEM 3INTERMEDIATE
A 62-year-old man presents with hematemesis. EGD reveals a duodenal ulcer with a clean base (Forrest class III). H. pylori stool antigen is positive. He takes low-dose aspirin for secondary prevention of coronary artery disease. Outline the appropriate management plan, including whether endoscopic hemostasis is required, the H. pylori eradication regimen, and how to address his aspirin use.
PROBLEM 4APPLIED
A 58-year-old obese male with a 15-year history of GERD undergoes surveillance EGD. Biopsies from the distal esophagus demonstrate intestinal metaplasia with goblet cells and low-grade dysplasia (LGD) confirmed by two expert GI pathologists. Describe the recommended surveillance and management strategy, including the role of endoscopic eradication therapy.
PROBLEM 5CRITICAL THINKING
A 45-year-old man presents with recurrent duodenal ulcers despite two courses of H. pylori eradication therapy (confirmed negative on repeat testing) and consistent PPI compliance. He also reports chronic secretory diarrhea. Labs reveal a fasting serum gastrin of 1,250 pg/mL. Construct a comprehensive differential for this presentation, explain how you would confirm the most likely diagnosis, localize the lesion, and outline the definitive management strategy, including screening for associated syndromes.

Upper Gastrointestinal Disorders — Summary

Upper GI disorders represent a clinically interconnected spectrum driven by the imbalance between aggressive factors (acid, pepsin, H. pylori, NSAIDs) and mucosal defense mechanisms (prostaglandins, mucus-bicarbonate barrier, blood flow). GERD arises from LES dysfunction and is managed with lifestyle modifications, PPIs, and anti-reflux surgery in refractory cases. Peptic ulcer disease requires identification and treatment of the underlying cause — H. pylori eradication and NSAID cessation — alongside acid suppression. Upper GI bleeding demands rapid risk stratification (Glasgow-Blatchford Score), hemodynamic resuscitation, IV PPI therapy, and timely endoscopy with dual hemostatic therapy for high-risk lesions.

Barrett's esophagus surveillance and endoscopic eradication therapy (RFA) are critical for reducing the risk of progression to esophageal adenocarcinoma. Refractory ulcers in the absence of H. pylori or NSAIDs should raise suspicion for Zollinger-Ellison syndrome (confirmed by secretin stimulation test), with screening for MEN1. Mastery of the anatomic, pathophysiologic, and therapeutic framework reviewed here provides the clinical reasoning tools needed for both USMLE Step 2 vignettes and real-world patient care.

Varsity Tutors • USMLE Step 2 • Upper Gastrointestinal Disorders