Esofagitis
Published on September 11, 2026
Risk Factors
Immunocompromised state (HIV/AIDS with CD4 <100), GERD, atopic history (asthma, eczema, food allergies), medication use (bisphosphonates, doxycycline, NSAIDs, KCl, iron), radiation therapy to the chest
Etiology
Reflux of gastric acid (reflux esophagitis), eosinophilic infiltration (eosinophilic esophagitis), opportunistic infection in immunosuppressed patients (Candida, HSV, CMV), direct mucosal injury from pills or radiation
Presentation
Odynophagia (painful swallowing), dysphagia, retrosternal chest pain, heartburn; in immunocompromised patients: severe odynophagia with inability to swallow; in eosinophilic esophagitis: food impaction and intermittent solid-food dysphagia in a young atopic male
Classic Exam
Oral thrush (suggests Candida esophagitis), signs of immunosuppression (wasting, lymphadenopathy), atopic dermatitis or wheezing (eosinophilic esophagitis); physical exam is often unremarkable in reflux and pill esophagitis
Diagnostics
Upper endoscopy with biopsy is the confirmatory test for all forms; Candida: white adherent plaques; HSV: well-circumscribed shallow ulcers ("volcano-like"); CMV: large, deep, linear ulcers; Eosinophilic: ringed esophagus, linear furrows, strictures, biopsy showing >=15 eosinophils per high-power field; Reflux: erythema, erosions, possible Barrett metaplasia
Management
Candida: oral fluconazole; HSV: acyclovir or valacyclovir; CMV: ganciclovir or valganciclovir; Eosinophilic: swallowed topical corticosteroids (fluticasone or budesonide), dietary elimination, PPI trial; Reflux: PPI therapy; Pill: discontinue offending agent, take pills with adequate water while upright
01Pathophysiology
Esophagitis refers to inflammation of the esophageal mucosa, and the mechanism differs based on the underlying cause. Understanding what drives each subtype is essential because the pathophysiology directly predicts the clinical presentation, endoscopic appearance, and treatment approach.
Reflux esophagitis results from prolonged exposure of the esophageal squamous epithelium to gastric acid and pepsin. The lower esophageal sphincter (LES) is either transiently relaxed or chronically hypotonic, allowing retrograde flow of acidic contents. The distal esophagus bears the brunt of the injury, leading to erosions that start at the gastroesophageal junction and extend proximally. Chronic reflux can trigger Barrett metaplasia, where the normal stratified squamous epithelium undergoes intestinal metaplasia to columnar epithelium with goblet cells, a precancerous change.
Eosinophilic esophagitis (EoE) is an immune-mediated, antigen-driven process. In genetically predisposed individuals (often with a strong atopic background), food or aeroallergens trigger a Th2-mediated inflammatory cascade. Interleukin-5 and interleukin-13 recruit eosinophils into the esophageal mucosa, where they degranulate and release cytotoxic proteins. Over time, this causes subepithelial fibrosis and stricture formation, which explains why patients present with solid-food dysphagia and episodes of food impaction rather than heartburn.
Infectious esophagitis occurs almost exclusively in patients with impaired cell-mediated immunity, most classically in HIV/AIDS with a CD4 count below 100 cells/mm. The three major pathogens are:
Candida albicans: The most common cause. The organism adheres to damaged squamous epithelium and forms pseudomembranes (white plaques). Because Candida also colonizes the oropharynx, concurrent oral thrush is a strong clinical clue.
Herpes simplex virus (HSV): The virus infects squamous epithelial cells, causing cell lysis at the ulcer margins. This produces well-circumscribed, shallow, "punched-out" or volcano-like ulcers, often in the mid to distal esophagus. Histology reveals multinucleated giant cells with Cowdry type A inclusions (intranuclear eosinophilic inclusions with a surrounding halo).
Cytomegalovirus (CMV): Unlike HSV, CMV infects endothelial cells and fibroblasts in the ulcer base, not the squamous epithelium at the margins. This produces fewer but larger, deeper, and more linear ulcers. Biopsy must be taken from the base of the ulcer (not the edges), and histology shows large cells with intranuclear "owl-eye" inclusions.
Pill esophagitis results from direct chemical injury to the mucosa when a tablet lodges in the esophagus, usually at points of anatomic narrowing (aortic arch, left atrium, LES). The medication dissolves locally and creates a caustic environment. Common culprits include bisphosphonates (alendronate), doxycycline, potassium chloride, NSAIDs, and iron supplements. Patients characteristically report sudden-onset odynophagia and can often pinpoint exactly when it started. The injury is typically a discrete ulcer at the mid-esophagus level.
Radiation esophagitis develops in patients receiving thoracic radiation therapy (commonly for lung, esophageal, or mediastinal cancers). Ionizing radiation damages rapidly dividing basal epithelial cells, leading to mucosal atrophy, ulceration, and in chronic cases, fibrosis and stricture.
02Classification and Clinical Manifestation
Reflux esophagitis
TYPICAL PATIENT
Obese adult, smoker, hiatal hernia
CHIEF COMPLAINT
Heartburn, regurgitation, retrosternal burning
DISTINGUISHING CLINICAL FEATURES
Symptoms worse when supine or postprandial; responds to antacids; may develop chronic cough or hoarseness from laryngopharyngeal reflux
Eosinophilic esophagitis
TYPICAL PATIENT
Young adult male (20s-30s) with atopy
CHIEF COMPLAINT
Intermittent solid-food dysphagia, food impaction
DISTINGUISHING CLINICAL FEATURES
History of asthma, eczema, or food allergies; does NOT respond to PPI alone (though partial response possible); may present emergently with a food bolus lodged in the esophagus
Candida esophagitis
TYPICAL PATIENT
Immunocompromised (HIV with CD4 <100, transplant recipients, prolonged corticosteroid use)
CHIEF COMPLAINT
Odynophagia, dysphagia
DISTINGUISHING CLINICAL FEATURES
Concurrent oral thrush in many cases; white adherent plaques on endoscopy
HSV esophagitis
TYPICAL PATIENT
Immunocompromised (HIV, chemotherapy, transplant)
CHIEF COMPLAINT
Severe odynophagia
DISTINGUISHING CLINICAL FEATURES
Well-circumscribed shallow ulcers on endoscopy; may have concurrent orolabial herpes lesions
CMV esophagitis
TYPICAL PATIENT
Immunocompromised (HIV with CD4 <100, transplant)
CHIEF COMPLAINT
Odynophagia, sometimes with GI bleeding
DISTINGUISHING CLINICAL FEATURES
Large, deep, linear or geographic ulcers on endoscopy; fewer but bigger ulcers than HSV
Pill esophagitis
TYPICAL PATIENT
Any patient taking culprit medications, especially if swallowed with little water or taken before lying down
CHIEF COMPLAINT
Sudden-onset odynophagia, retrosternal pain
DISTINGUISHING CLINICAL FEATURES
Temporal relation to medication ingestion; discrete mid-esophageal ulcer; history of taking pills without enough water or at bedtime
Radiation esophagitis
TYPICAL PATIENT
Patient undergoing thoracic radiation
CHIEF COMPLAINT
Odynophagia, dysphagia developing weeks into treatment
DISTINGUISHING CLINICAL FEATURES
Predictable timeline (begins 2-3 weeks into radiation); may progress to stricture
TYPE | TYPICAL PATIENT | CHIEF COMPLAINT | DISTINGUISHING CLINICAL FEATURES |
|---|---|---|---|
Reflux esophagitis | Obese adult, smoker, hiatal hernia | Heartburn, regurgitation, retrosternal burning | Symptoms worse when supine or postprandial; responds to antacids; may develop chronic cough or hoarseness from laryngopharyngeal reflux |
Eosinophilic esophagitis | Young adult male (20s-30s) with atopy | Intermittent solid-food dysphagia, food impaction | History of asthma, eczema, or food allergies; does NOT respond to PPI alone (though partial response possible); may present emergently with a food bolus lodged in the esophagus |
Candida esophagitis | Immunocompromised (HIV with CD4 <100, transplant recipients, prolonged corticosteroid use) | Odynophagia, dysphagia | Concurrent oral thrush in many cases; white adherent plaques on endoscopy |
HSV esophagitis | Immunocompromised (HIV, chemotherapy, transplant) | Severe odynophagia | Well-circumscribed shallow ulcers on endoscopy; may have concurrent orolabial herpes lesions |
CMV esophagitis | Immunocompromised (HIV with CD4 <100, transplant) | Odynophagia, sometimes with GI bleeding | Large, deep, linear or geographic ulcers on endoscopy; fewer but bigger ulcers than HSV |
Pill esophagitis | Any patient taking culprit medications, especially if swallowed with little water or taken before lying down | Sudden-onset odynophagia, retrosternal pain | Temporal relation to medication ingestion; discrete mid-esophageal ulcer; history of taking pills without enough water or at bedtime |
Radiation esophagitis | Patient undergoing thoracic radiation | Odynophagia, dysphagia developing weeks into treatment | Predictable timeline (begins 2-3 weeks into radiation); may progress to stricture |
03Diagnostic Workup
Empiric fluconazole trial
ROLE
Best initial step for an HIV patient with odynophagia and oral thrush
KEY FINDINGS
Resolution of symptoms within 5-7 days confirms Candida esophagitis without need for endoscopy
Upper endoscopy (EGD) with biopsy
ROLE
Most accurate test and gold standard for all forms of esophagitis
KEY FINDINGS
Allows direct visualization and tissue sampling; required when empiric therapy fails or when oral thrush is absent in an immunocompromised patient
Histopathology / biopsy
ROLE
Confirmatory
KEY FINDINGS
Candida: yeast and pseudohyphae on biopsy or brushings; HSV: multinucleated giant cells, Cowdry type A inclusions, biopsy from ulcer EDGE; CMV: large cells with owl-eye intranuclear inclusions, biopsy from ulcer BASE; EoE: >=15 eosinophils per high-power field in esophageal mucosa
Viral culture
ROLE
Adjunctive for HSV and CMV
KEY FINDINGS
Can confirm viral etiology when histology is equivocal
Barium swallow
ROLE
Limited role; may show mucosal irregularity, strictures, or ringed appearance
KEY FINDINGS
Not first-line; may show "shaggy esophagus" in severe Candida or ringed/corrugated esophagus in EoE
Ambulatory pH monitoring
ROLE
Used when GERD is suspected but endoscopy is normal
KEY FINDINGS
Confirms pathologic acid exposure; most useful for nonerosive reflux disease
Allergy testing (skin prick, patch testing)
ROLE
Adjunctive in EoE
KEY FINDINGS
Helps identify food triggers for elimination diet; not diagnostic on its own
TEST | ROLE | KEY FINDINGS |
|---|---|---|
Empiric fluconazole trial | Best initial step for an HIV patient with odynophagia and oral thrush | Resolution of symptoms within 5-7 days confirms Candida esophagitis without need for endoscopy |
Upper endoscopy (EGD) with biopsy | Most accurate test and gold standard for all forms of esophagitis | Allows direct visualization and tissue sampling; required when empiric therapy fails or when oral thrush is absent in an immunocompromised patient |
Histopathology / biopsy | Confirmatory | Candida: yeast and pseudohyphae on biopsy or brushings; HSV: multinucleated giant cells, Cowdry type A inclusions, biopsy from ulcer EDGE; CMV: large cells with owl-eye intranuclear inclusions, biopsy from ulcer BASE; EoE: >=15 eosinophils per high-power field in esophageal mucosa |
Viral culture | Adjunctive for HSV and CMV | Can confirm viral etiology when histology is equivocal |
Barium swallow | Limited role; may show mucosal irregularity, strictures, or ringed appearance | Not first-line; may show "shaggy esophagus" in severe Candida or ringed/corrugated esophagus in EoE |
Ambulatory pH monitoring | Used when GERD is suspected but endoscopy is normal | Confirms pathologic acid exposure; most useful for nonerosive reflux disease |
Allergy testing (skin prick, patch testing) | Adjunctive in EoE | Helps identify food triggers for elimination diet; not diagnostic on its own |
The diagnostic approach depends heavily on the clinical context.
In an immunocompromised patient presenting with odynophagia, the best initial step is to look for oral thrush. If thrush is present, the most likely diagnosis is Candida esophagitis, and the correct next step is an empiric trial of oral fluconazole without endoscopy. This is a commonly tested principle. Endoscopy is reserved for patients who fail empiric antifungal therapy (no improvement in 5-7 days) or who present without oral thrush, because the absence of thrush raises the likelihood of HSV or CMV, which require biopsy for diagnosis.
When endoscopy is performed, the appearance of the ulcers and the location of biopsy are both high-yield concepts. For HSV, the characteristic finding is multiple small, shallow, well-circumscribed ulcers, and biopsies must be taken from the edges of the ulcers because HSV infects squamous epithelial cells at the ulcer margin. For CMV, the ulcers are large and deep, and biopsies must be obtained from the base of the ulcer because CMV infects the granulation tissue (endothelial cells and fibroblasts) at the ulcer floor. Getting the biopsy location wrong leads to a false-negative result, and this distinction is frequently tested.
For eosinophilic esophagitis, endoscopy reveals a constellation of findings: concentric rings (trachealization or "ringed esophagus"), linear furrows, white exudates (eosinophilic microabscesses), and mucosal fragility (crepe-paper mucosa). However, the diagnosis is confirmed only by biopsy showing >=15 eosinophils per high-power field in the esophageal mucosa, taken from both the proximal and distal esophagus. A critical step before making this diagnosis is ensuring the patient has had an adequate PPI trial (8 weeks of high-dose PPI), because PPI-responsive esophageal eosinophilia can mimic EoE. Current guidelines have evolved on this point, with newer consensus statements recognizing that PPI responsiveness does not exclude EoE, but exam questions may still frame PPI trial as a prerequisite.
For reflux esophagitis, the diagnosis is usually clinical. Endoscopy is indicated for alarm features (dysphagia, weight loss, anemia, age >60 with new symptoms) and reveals erosions in the distal esophagus classified by the Los Angeles grading system (A through D based on erosion length and circumferential extent). Barrett esophagus is identified by salmon-colored mucosa extending above the GEJ, confirmed on biopsy by intestinal metaplasia with goblet cells.
04Management and Treatment
Candida esophagitis
FIRST-LINE TREATMENT
Oral fluconazole 200 mg loading dose, then 100 mg daily for 14-21 days
ALTERNATIVE / REFRACTORY
IV fluconazole or IV caspoffungin if unable to swallow or azole-resistant
KEY NOTES
Empiric fluconazole is appropriate without endoscopy if oral thrush is present
HSV esophagitis
FIRST-LINE TREATMENT
Acyclovir 400 mg PO five times daily for 14-21 days, or valacyclovir 1 g PO twice daily
ALTERNATIVE / REFRACTORY
IV acyclovir 5 mg/kg every 8 hours for severe disease or inability to swallow
KEY NOTES
Foscarnet for acyclovir-resistant HSV
CMV esophagitis
FIRST-LINE TREATMENT
Ganciclovir 5 mg/kg IV every 12 hours for 3-6 weeks
ALTERNATIVE / REFRACTORY
Valganciclovir 900 mg PO twice daily (for patients who can take oral medication)
KEY NOTES
Monitor for ganciclovir toxicity: neutropenia and thrombocytopenia; foscarnet is the alternative if ganciclovir causes severe cytopenias
Eosinophilic esophagitis
FIRST-LINE TREATMENT
Swallowed topical corticosteroids: fluticasone MDI 880-1760 mcg/day (swallowed, not inhaled) or oral budesonide slurry 1-2 mg twice daily for 8 weeks
ALTERNATIVE / REFRACTORY
Six-food elimination diet (remove milk, wheat, egg, soy, nuts, seafood); esophageal dilation for symptomatic strictures
KEY NOTES
Patients must NOT rinse mouth or eat/drink for 30 minutes after swallowed steroids; dupilumab (anti-IL-4R alpha) is now approved for refractory EoE
Reflux esophagitis
FIRST-LINE TREATMENT
PPI therapy: omeprazole 20-40 mg daily or equivalent, taken 30-60 minutes before meals, for 8 weeks
ALTERNATIVE / REFRACTORY
H2 receptor antagonists (famotidine) for mild disease; fundoplication (Nissen) for refractory GERD
KEY NOTES
Lifestyle modifications: weight loss, elevate head of bed, avoid late meals, reduce caffeine/alcohol/fatty foods
Pill esophagitis
FIRST-LINE TREATMENT
Discontinue or substitute the offending medication; supportive care with liquid or sucralfate suspension
ALTERNATIVE / REFRACTORY
No targeted pharmacotherapy; prevention is key
KEY NOTES
Instruct patients to swallow pills with a full glass of water and remain upright for at least 30 minutes
Radiation esophagitis
FIRST-LINE TREATMENT
Symptomatic management with viscous lidocaine, sucralfate, and PPI
ALTERNATIVE / REFRACTORY
Dilation for radiation-induced strictures
KEY NOTES
Usually self-limited after completion of radiation course
TYPE | FIRST-LINE TREATMENT | ALTERNATIVE / REFRACTORY | KEY NOTES |
|---|---|---|---|
Candida esophagitis | Oral fluconazole 200 mg loading dose, then 100 mg daily for 14-21 days | IV fluconazole or IV caspoffungin if unable to swallow or azole-resistant | Empiric fluconazole is appropriate without endoscopy if oral thrush is present |
HSV esophagitis | Acyclovir 400 mg PO five times daily for 14-21 days, or valacyclovir 1 g PO twice daily | IV acyclovir 5 mg/kg every 8 hours for severe disease or inability to swallow | Foscarnet for acyclovir-resistant HSV |
CMV esophagitis | Ganciclovir 5 mg/kg IV every 12 hours for 3-6 weeks | Valganciclovir 900 mg PO twice daily (for patients who can take oral medication) | Monitor for ganciclovir toxicity: neutropenia and thrombocytopenia; foscarnet is the alternative if ganciclovir causes severe cytopenias |
Eosinophilic esophagitis | Swallowed topical corticosteroids: fluticasone MDI 880-1760 mcg/day (swallowed, not inhaled) or oral budesonide slurry 1-2 mg twice daily for 8 weeks | Six-food elimination diet (remove milk, wheat, egg, soy, nuts, seafood); esophageal dilation for symptomatic strictures | Patients must NOT rinse mouth or eat/drink for 30 minutes after swallowed steroids; dupilumab (anti-IL-4R alpha) is now approved for refractory EoE |
Reflux esophagitis | PPI therapy: omeprazole 20-40 mg daily or equivalent, taken 30-60 minutes before meals, for 8 weeks | H2 receptor antagonists (famotidine) for mild disease; fundoplication (Nissen) for refractory GERD | Lifestyle modifications: weight loss, elevate head of bed, avoid late meals, reduce caffeine/alcohol/fatty foods |
Pill esophagitis | Discontinue or substitute the offending medication; supportive care with liquid or sucralfate suspension | No targeted pharmacotherapy; prevention is key | Instruct patients to swallow pills with a full glass of water and remain upright for at least 30 minutes |
Radiation esophagitis | Symptomatic management with viscous lidocaine, sucralfate, and PPI | Dilation for radiation-induced strictures | Usually self-limited after completion of radiation course |
Acute stabilization differs by subtype. For infectious esophagitis in a severely immunocompromised patient who cannot swallow, the priority is IV therapy (IV fluconazole for Candida, IV acyclovir for HSV, IV ganciclovir for CMV) along with IV fluid support. For food impaction in EoE, emergent endoscopic disimpaction is the immediate step, followed by initiation of maintenance therapy to prevent recurrence.
Long-term management of EoE centers on maintaining remission with either ongoing swallowed topical steroids or dietary elimination. Unlike reflux esophagitis, PPI monotherapy is typically insufficient. Esophageal dilation is reserved for patients with established strictures causing persistent dysphagia, and it should be performed carefully because the esophageal mucosa in EoE is notably fragile.
For reflux esophagitis, the standard course is 8 weeks of PPI therapy followed by reassessment. Patients with erosive esophagitis (Los Angeles grade C or D) or Barrett esophagus generally require long-term PPI maintenance. When stepping down, switching to an H2 blocker or on-demand PPI use is appropriate for patients with mild disease.
A commonly tested contraindication: ganciclovir is myelosuppressive. In patients already pancytopenic from HIV or chemotherapy, ganciclovir may worsen the neutropenia. In this scenario, foscarnet is the preferred alternative, though it carries its own toxicity profile (nephrotoxicity, electrolyte abnormalities including hypocalcemia, hypomagnesemia, and hypokalemia).
05Differential Diagnosis and Distractors
Candida vs. HSV vs. CMV esophagitis
WHY IT IS SIMILAR
All present with odynophagia in an immunocompromised patient
KEY DISCRIMINATOR
Oral thrush favors Candida; shallow, multiple, well-circumscribed ulcers with biopsy from the edge = HSV; deep, large, linear ulcers with biopsy from the base = CMV
Eosinophilic esophagitis vs. GERD
WHY IT IS SIMILAR
Both cause dysphagia, and EoE may partially respond to PPI
KEY DISCRIMINATOR
EoE presents with solid-food dysphagia and food impaction in a young atopic male; biopsy shows >=15 eos/HPF; GERD presents with heartburn/regurgitation that fully responds to PPI
Esophageal cancer vs. esophagitis
WHY IT IS SIMILAR
Progressive dysphagia, weight loss, and odynophagia can overlap
KEY DISCRIMINATOR
Cancer causes progressive dysphagia (solids then liquids), weight loss, and anorexia in an older patient; endoscopy shows mass lesion rather than diffuse inflammation
Esophageal spasm vs. esophagitis
WHY IT IS SIMILAR
Both can cause retrosternal chest pain
KEY DISCRIMINATOR
Spasm causes intermittent, non-progressive dysphagia to both solids AND liquids simultaneously; barium swallow may show "corkscrew" esophagus; no inflammatory findings on endoscopy
Pill esophagitis vs. infectious esophagitis
WHY IT IS SIMILAR
Both present with acute odynophagia
KEY DISCRIMINATOR
Pill esophagitis occurs in an immunocompetent patient with a clear history of recent medication ingestion; infectious esophagitis occurs in immunocompromised patients
GERD vs. cardiac chest pain
WHY IT IS SIMILAR
Retrosternal burning can mimic angina
KEY DISCRIMINATOR
GERD pain is related to meals, worsened by recumbency, and relieved by antacids; cardiac pain is exertional, may radiate to jaw/arm, and is associated with ECG changes or troponin elevation
Achalasia vs. EoE
WHY IT IS SIMILAR
Both cause dysphagia to solids, and both may show a narrowed esophageal lumen
KEY DISCRIMINATOR
Achalasia causes dysphagia to both solids and liquids from the outset, bird-beak appearance on barium swallow, and elevated LES pressure on manometry; EoE causes predominantly solid-food dysphagia with ringed/furrowed appearance on endoscopy
DIFFERENTIAL | WHY IT IS SIMILAR | KEY DISCRIMINATOR |
|---|---|---|
Candida vs. HSV vs. CMV esophagitis | All present with odynophagia in an immunocompromised patient | Oral thrush favors Candida; shallow, multiple, well-circumscribed ulcers with biopsy from the edge = HSV; deep, large, linear ulcers with biopsy from the base = CMV |
Eosinophilic esophagitis vs. GERD | Both cause dysphagia, and EoE may partially respond to PPI | EoE presents with solid-food dysphagia and food impaction in a young atopic male; biopsy shows >=15 eos/HPF; GERD presents with heartburn/regurgitation that fully responds to PPI |
Esophageal cancer vs. esophagitis | Progressive dysphagia, weight loss, and odynophagia can overlap | Cancer causes progressive dysphagia (solids then liquids), weight loss, and anorexia in an older patient; endoscopy shows mass lesion rather than diffuse inflammation |
Esophageal spasm vs. esophagitis | Both can cause retrosternal chest pain | Spasm causes intermittent, non-progressive dysphagia to both solids AND liquids simultaneously; barium swallow may show "corkscrew" esophagus; no inflammatory findings on endoscopy |
Pill esophagitis vs. infectious esophagitis | Both present with acute odynophagia | Pill esophagitis occurs in an immunocompetent patient with a clear history of recent medication ingestion; infectious esophagitis occurs in immunocompromised patients |
GERD vs. cardiac chest pain | Retrosternal burning can mimic angina | GERD pain is related to meals, worsened by recumbency, and relieved by antacids; cardiac pain is exertional, may radiate to jaw/arm, and is associated with ECG changes or troponin elevation |
Achalasia vs. EoE | Both cause dysphagia to solids, and both may show a narrowed esophageal lumen | Achalasia causes dysphagia to both solids and liquids from the outset, bird-beak appearance on barium swallow, and elevated LES pressure on manometry; EoE causes predominantly solid-food dysphagia with ringed/furrowed appearance on endoscopy |
06Traps and High-Yield Pearls
The most common way students lose points on esophagitis questions is by jumping to endoscopy in every immunocompromised patient with odynophagia. The tested principle is that if an HIV patient has odynophagia AND oral thrush, the next best step is empiric fluconazole, not endoscopy. Endoscopy becomes the answer only when empiric therapy fails or when thrush is absent.
The second major trap involves biopsy technique in infectious esophagitis. Students frequently forget that HSV and CMV require biopsies from different locations. HSV infects squamous cells at the ulcer margin (biopsy the edge), while CMV infects stromal cells at the ulcer floor (biopsy the base). If a question describes endoscopic findings and asks about the best biopsy approach, this distinction is what they are testing.
For eosinophilic esophagitis, the trap is confusing it with GERD because both may show partial PPI response and both involve the esophagus. The discriminators are the patient profile (young, male, atopic), the symptom pattern (solid-food dysphagia with food impaction rather than heartburn), and the biopsy threshold (>=15 eos/HPF). Another subtle trap is the treatment: students sometimes choose inhaled fluticasone, but the correct answer for EoE is swallowed fluticasone (the patient is instructed to puff the inhaler into the mouth and swallow, not inhale).
For pill esophagitis, the classic vignette describes a patient who took a medication (often doxycycline or alendronate) with minimal water just before going to bed, then woke up with acute retrosternal pain and odynophagia. The key teaching point is that the ulcer is typically at the mid-esophagus (level of the aortic arch), and management is supportive with medication discontinuation, not antifungals or antivirals.
The overarching competency being tested across all esophagitis subtypes is the ability to integrate the patient's immune status, symptom pattern, and endoscopic appearance to arrive at the correct diagnosis and then select the appropriate next step in management without over-testing or under-treating.