I'll generate a complete, self-contained HTML slide deck on Upper Gastrointestinal Disorders for USMLE Step 2. ```html Upper Gastrointestinal Disorders
01 / 20

Upper Gastrointestinal
Disorders

A high-yield review of GERD, peptic ulcer disease, gastritis, and esophageal disease for clinical diagnosis and management.

USMLE Step 2

The Upper GI Tract

Esophagus LES Stomach Duodenum

Key Terms

GERD
Retrograde flow of gastric acid into the esophagus causing heartburn and regurgitation.
PUD
Peptic ulcer disease: mucosal breaks in the stomach or duodenum > 5 mm.
Gastritis
Inflammation of gastric mucosa, often from H. pylori or NSAIDs.

Alarm Features & Why It Matters

Most dyspepsia is benign, but alarm features demand urgent upper endoscopy (EGD) to rule out malignancy or complication:

!
Age > 60 with new-onset dyspepsia
!
Weight loss, anemia, dysphagia, or odynophagia
!
GI bleeding (hematemesis, melena) or persistent vomiting
!
Palpable mass or family history of GI cancer

GERD: Core Mechanism

Weak LES Acid reflux

Peptic Ulcer Pathogenesis

PUD reflects an imbalance: aggressive factors overwhelm mucosal defense. The two dominant causes:

H. pylori
~70–90% of duodenal ulcers. Urease-producing organism disrupts mucosa and increases acid.
NSAIDs
Inhibit prostaglandin synthesis, reducing protective mucus and bicarbonate.

Gastric vs. Duodenal Ulcer

Gastric Duodenal
Pain with foodWorseRelieved
WeightLoss (food fear)Gain
Malignancy riskPossibleRare
Need biopsyYesUsually no
Acid levelNormal/lowHigh

Diagnostic Approach

1
Assess for alarm features. If present → urgent EGD regardless of age.
2
Age < 60, no alarm features? Test for H. pylori (urea breath test or stool antigen) and treat.
3
Classic GERD symptoms? Empiric PPI trial — no testing needed first.
4
Confirm H. pylori eradication 4 weeks after therapy completion.

Worked Example 1

A 34-year-old woman reports burning retrosternal pain after large meals and when lying down, worse at night. No dysphagia, weight loss, or bleeding.

Worked Example 2

A 45-year-old man has epigastric pain that improves with eating but recurs 2–3 hours later, sometimes waking him at night. Takes no NSAIDs.

Worked Example 3

A 68-year-old man has 3 months of epigastric pain, a 5 kg weight loss, and iron-deficiency anemia.

Common Mistakes

✕ Skipping alarm features
Test-and-treat is only for younger patients WITHOUT red flags. Alarm features → EGD first.
✕ Serology to confirm cure
H. pylori serology stays positive after eradication. Use breath/stool test to confirm cure.
✕ Forgetting to stop the PPI
PPIs cause false-negative breath/stool tests. Hold PPI ~2 weeks before testing.
✕ Not biopsying gastric ulcers
Gastric ulcers can be malignant — always biopsy and confirm healing on repeat EGD.

Summary Table

Hallmark First Step
GERDHeartburn, worse lying downEmpiric PPI
Duodenal ulcerPain relieved by foodTest & treat Hp
Gastric ulcerPain worse with foodEGD + biopsy
Alarm dyspepsiaAge >60, bleed, weight lossUrgent EGD
Refractory GERDFails PPIEGD / pH study

Key Complications

Barrett Esophagus
Chronic GERD → metaplasia (squamous to columnar). Risk of adenocarcinoma; needs surveillance.
GI Bleeding
Posterior duodenal ulcers can erode the gastroduodenal artery → hematemesis/melena.
Perforation
Anterior ulcers perforate → sudden severe pain, free air under diaphragm on imaging.

Question 1 of 5

A 28-year-old woman has classic nighttime heartburn and regurgitation for 3 months. No alarm features. What is the best initial step?

Question 2 of 5

A 40-year-old man has epigastric pain that improves with eating and recurs at night. This pattern most suggests which diagnosis?

Question 3 of 5

A 66-year-old man presents with new dyspepsia, unintentional weight loss, and iron-deficiency anemia. What is the most appropriate next step?

Question 4 of 5

A patient completed triple therapy for H. pylori. Which test best confirms successful eradication 4 weeks later?

Question 5 of 5

A patient with chronic GERD undergoes EGD showing columnar metaplasia of the distal esophagus. This finding most increases the risk of which cancer?

Key Takeaways

1
Always screen for alarm features first — they override test-and-treat and trigger urgent EGD.
2
Typical GERD → empiric PPI; reserve EGD for failure or red flags.
3
PUD is driven by H. pylori and NSAIDs; gastric ulcers need biopsy.
4
Confirm eradication with breath/stool test (PPI held), never serology.
``` I've created a complete 20-slide deck on Upper Gastrointestinal Disorders. Here's the structure: **Slides 1-4:** Title, anatomy of the upper GI tract (with diagram), key terms, and alarm features **Slides 5-7:** Core mechanisms (GERD pathophysiology with diagram, PUD pathogenesis with KaTeX-rendered imbalance equation), and gastric vs. duodenal comparison **Slide 8:** Step-by-step diagnostic approach **Slides 9-11:** Three worked examples of increasing complexity (GERD → duodenal ulcer → alarm-feature malignancy workup) **Slides 12-14:** Common mistakes, summary table, and complications **Slides 15-19:** Five MCQ assessment questions covering management decisions **Slide 20:** Key takeaways The deck uses the exact CSS template, includes KaTeX for the ulcer pathogenesis equation, has full keyboard/touch navigation, single-attempt MCQs with correct/incorrect feedback, and mobile accordion behavior for card groups.