Upper GI Module: Esophagus, Stomach, and Duodenum
Clinical scope: heartburn, dyspepsia, epigastric pain, nausea/vomiting, dysphagia, peptic ulcer disease, H. pylori, and upper GI bleeding.
This is an adult-oriented practical guide. Drug selection, availability, antimicrobial resistance, pregnancy status, renal function, and local protocols matter.
1. Essential anatomy
A. Esophagus
- A muscular tube from pharynx to stomach, about 25 cm long.
- It passes through the diaphragm at the esophageal hiatus, T10, and joins the stomach at the gastroesophageal junction.
- The lower esophageal sphincter (LES) is a functional high-pressure zone, not a clearly separate anatomical ring. Together with the diaphragm, it prevents reflux.
Important constrictions
- Cricopharyngeus, around 15 cm from incisors
- Where crossed by aortic arch/left main bronchus
- Diaphragmatic hiatus, around 40 cm from incisors
These matter in endoscopy, swallowed foreign bodies, caustic injury, strictures, and esophageal cancer.
Blood supply and portal-systemic relevance
- Upper esophagus: inferior thyroid artery.
- Middle: branches of thoracic aorta.
- Lower: left gastric artery.
- Lower esophageal venous drainage communicates between portal circulation through the left gastric vein and systemic circulation through azygos veins. Portal hypertension can produce esophageal varices, which may bleed massively.
Nerve supply
- Vagus: peristalsis, LES relaxation, gastric function.
- Sympathetic fibers: pain transmission.
- Esophageal pain may be felt retrosternally and can mimic cardiac chest pain.
B. Stomach
Parts: cardia, fundus, body, antrum, pylorus.
Key relations
- Posterior gastric ulcer can erode the pancreas or splenic artery.
- Posterior duodenal bulb ulcer can erode the gastroduodenal artery, causing major upper GI bleeding.
- Anterior duodenal ulcer is more likely to perforate, causing sudden severe pain and pneumoperitoneum.
Blood supply
- Celiac trunk branches:
- Left and right gastric arteries along lesser curvature
- Left and right gastroepiploic arteries along greater curvature
- Short gastric arteries to fundus
Nerve supply
- Vagus stimulates acid secretion and motility.
- Sympathetics inhibit motility and carry visceral pain.
C. Duodenum
- The first part, or duodenal bulb, is a common site of peptic ulcer.
- The second part receives bile and pancreatic juice at the major papilla.
- Proximal duodenum has celiac supply; distal duodenum has superior mesenteric artery supply.
D. Referred pain and useful localization
| Pain pattern | Useful interpretation |
|---|
| Retrosternal burning after meals or lying down | GERD likely, but first exclude cardiac ischemia if acute or exertional |
| Epigastric burning/gnawing | Dyspepsia, gastritis, PUD, pancreatic or biliary disease |
| Pain radiating to the back | Consider penetrating posterior ulcer, pancreatitis, aortic pathology |
| Sudden severe generalized abdominal pain with rigid abdomen | Perforated viscus until proven otherwise |
| Epigastric pain plus diaphoresis, dyspnea, exertional onset | Consider acute coronary syndrome, not “acidity” |
2. Essential physiology
Acid production
Parietal cells secrete hydrochloric acid using the H+/K+-ATPase proton pump. This is why PPIs are the most effective acid suppressants.
Major stimulants:
- Acetylcholine through vagal stimulation
- Gastrin
- Histamine at H2 receptors
Acid is normally balanced by:
- Mucus and bicarbonate barrier
- Prostaglandins, which preserve mucosal blood flow and mucus production
- Rapid epithelial repair
- Duodenal bicarbonate from pancreas and Brunner glands
Why NSAIDs cause ulcers
NSAIDs inhibit cyclooxygenase and reduce protective prostaglandins. Result:
- Less mucus/bicarbonate
- Reduced mucosal perfusion and repair
- Higher ulcer and bleeding risk
Why H. pylori matters
H. pylori causes chronic active gastritis and disrupts acid regulation and mucosal defense. It is a major cause of duodenal ulcer, gastric ulcer, gastric MALT lymphoma, and gastric cancer.
Normal practical concepts
| Concept | Clinical use |
|---|
| Fasting gastric pH is strongly acidic, usually about 1-3 | Acid suppression improves reflux and ulcer healing |
| PPI timing | Most PPIs work best 30-60 minutes before food, usually breakfast |
| Gastric emptying | Delayed in diabetes, opioid use, anticholinergics, obstruction, and gastroparesis |
| Hematemesis | Vomiting fresh blood or coffee-ground material, usually upper GI source |
| Melena | Black tarry stool from digested blood, usually upper GI source but may occur with proximal small-bowel bleeding |
3. Common clinical problems
A. Gastroesophageal reflux disease, GERD
What it is
Reflux of gastric contents into the esophagus causing troublesome symptoms or mucosal injury.
Common risk factors
- Obesity, pregnancy
- Large meals and meals close to bedtime
- Hiatal hernia
- Smoking, alcohol
- Drugs that may lower LES tone or worsen reflux: nitrates, calcium-channel blockers, anticholinergics, theophylline, some sedatives
- Delayed gastric emptying
Typical symptoms
- Heartburn: retrosternal burning
- Acid regurgitation or sour taste
- Symptoms after meals, bending, or lying down
- Noncardiac chest pain
Possible extraesophageal associations include chronic cough, hoarseness, throat symptoms, and asthma, but do not assume GERD is the cause without considering other diagnoses.
Examination
Usually normal. Check:
- BMI and central obesity
- Epigastric tenderness
- Oral/dental erosion or chronic laryngeal symptoms, if relevant
- Signs that suggest another diagnosis: anemia, cervical lymph nodes, weight loss, chest-wall tenderness, wheeze, heart failure signs.
Red flags: arrange prompt endoscopy or referral
- Progressive dysphagia
- Odynophagia
- GI bleeding, melena, hematemesis, iron-deficiency anemia
- Persistent vomiting
- Unintentional weight loss
- Recurrent aspiration
- New symptoms in an older patient, especially with cancer risk factors
Important differentials
- Acute coronary syndrome or angina
- Peptic ulcer disease
- Biliary colic
- Achalasia or other motility disorders
- Eosinophilic esophagitis
- Esophageal cancer
- Pill esophagitis
- Functional heartburn
Investigations
Typical heartburn without alarms: no test initially. A therapeutic PPI trial is reasonable.
ECG and troponin: when chest pain could be cardiac, especially if exertional, acute, radiating, associated with sweating, breathlessness, nausea, diabetes, smoking, or cardiovascular risk.
Endoscopy, EGD: if alarm symptoms, symptoms unresponsive to correctly taken PPI, recurrent symptoms requiring long-term treatment, suspected stricture/Barrett esophagus/eosinophilic esophagitis.
Ambulatory reflux monitoring: if diagnosis is uncertain after normal endoscopy or before invasive anti-reflux therapy.
First-line treatment
- Weight reduction if overweight.
- Avoid meals for 2-3 hours before bed.
- Elevate head of bed for nocturnal symptoms.
- Identify personal triggers. Do not prescribe a universally restrictive diet.
- PPI once daily for 8 weeks, taken correctly before breakfast.
Examples:
- Omeprazole 20 mg orally once daily
- Pantoprazole 40 mg orally once daily
- Esomeprazole 20-40 mg orally once daily
The ACG approach supports an 8-week empirical once-daily PPI trial for classic heartburn/regurgitation without alarm features, followed by an attempt to stop therapy if symptoms resolve. See the
ACG GERD pathway.
If incomplete response
Before calling GERD “refractory,” check:
- Is the patient taking the PPI 30-60 minutes before meals?
- Adherence?
- Is it really reflux, rather than cardiac disease, dyspepsia, biliary disease, eosinophilic esophagitis, or functional heartburn?
You may increase to twice-daily PPI for a short supervised period or switch once to another PPI. Persistent symptoms need EGD and possibly reflux testing.
H2 blockers and antacids
- Famotidine 20 mg orally once or twice daily: useful for occasional or nocturnal symptoms. Tachyphylaxis limits continuous use.
- Antacid/alginate: rapid temporary relief. Useful for intermittent symptoms and as adjuncts, not for complicated disease.
Referral
Refer to gastroenterology for alarm symptoms, dysphagia, GI bleeding, suspected Barrett esophagus, persistent symptoms despite optimized therapy, or consideration of surgery.
B. Dyspepsia and functional dyspepsia
What it is
Dyspepsia is upper abdominal symptoms such as epigastric pain/burning, early satiety, post-meal fullness, bloating, or nausea.
Functional dyspepsia means these symptoms persist but no structural explanation is found on appropriate evaluation.
Common causes in OPD
- Functional dyspepsia
- H. pylori gastritis
- Peptic ulcer disease
- NSAID-related gastropathy
- GERD
- Biliary disease
- Pancreatic disease
- Gastric malignancy, less common but important not to miss
Focused history
Ask:
- Pain location, relation to meals, nocturnal pain, response to food/antacids
- Early satiety, recurrent vomiting, weight loss
- NSAIDs, aspirin, steroids, anticoagulants, alcohol, tobacco
- H. pylori treatment and antibiotic exposure
- Family history of gastric cancer
- Anemia or GI bleeding
- Anxiety/depression and sleep, after excluding organic red flags
OPD decision
Age under 60 years with no alarm features:
Use noninvasive H. pylori test-and-treat where prevalence and local policy support it. If negative or symptoms remain after eradication, give a PPI trial.
Age 60 years or more with new dyspepsia, or any major red flag:
Arrange EGD. Thresholds vary by country and gastric-cancer risk. A family medicine text supports noninvasive test-and-treat in younger uncomplicated patients, while early endoscopy is appropriate with alarm symptoms or older-onset disease. Textbook of Family Medicine, 9e, p. 1124.
Investigations
- CBC: anemia may indicate occult bleeding, cancer, nutritional deficiency, or chronic disease.
- Stool antigen or urea breath test: active H. pylori infection.
- Avoid serology for diagnosis of active infection or test-of-cure because antibodies can remain positive after eradication.
- LFT, lipase, ultrasound: only if symptoms suggest hepatobiliary or pancreatic pathology.
- EGD: alarm features, older onset, persistent/recurrent symptoms, suspected ulcer, malignancy, obstruction, or bleeding.
Treatment
- Stop or minimize NSAIDs if possible.
- Test and treat H. pylori where appropriate.
- PPI 4-8 weeks if H. pylori negative or persistent symptoms after eradication.
- If EGD is normal and symptoms continue: functional dyspepsia. Consider a low-dose tricyclic antidepressant or selected prokinetic under supervision, especially for persistent pain or postprandial distress.
C. Helicobacter pylori infection and gastritis
When to test
Test when the result will change management:
- Active or past peptic ulcer disease
- Uninvestigated dyspepsia in suitable lower-risk patients
- Gastric MALT lymphoma
- Unexplained iron-deficiency anemia or immune thrombocytopenia after appropriate evaluation
- Before long-term NSAID/aspirin in selected high-risk patients
- First-degree adult household contacts where local guidelines recommend it
Preferred tests
| Test | Best use | Limitation |
|---|
| Urea breath test | Diagnosis and test-of-cure | False negative with PPI, antibiotics, bismuth |
| Stool antigen | Diagnosis and test-of-cure | Same medication-related false negatives |
| Biopsy urease/histology | During EGD | Sampling error and medication effects |
| Serology | Usually avoid | Cannot reliably distinguish past from active infection |
Before stool antigen or urea breath test: stop PPI for about 2 weeks and antibiotics/bismuth for at least 4 weeks, if clinically safe.
Treatment
Eradicate all confirmed infections unless there is a specific reason not to.
A current ACG guideline recommends 14-day optimized bismuth quadruple therapy when antibiotic susceptibility is unknown:
- PPI twice daily
- Bismuth subcitrate 120-300 mg four times daily, or bismuth subsalicylate 300 mg four times daily
- Tetracycline 500 mg four times daily
- Metronidazole 500 mg three or four times daily
The
2024 ACG H. pylori guideline recommends this regimen over empirical clarithromycin triple therapy when susceptibility is unknown.
Practical cautions
- Tetracycline: avoid in pregnancy, breastfeeding, and children. Photosensitivity and esophagitis can occur. Take with water and remain upright.
- Metronidazole: metallic taste, nausea, peripheral neuropathy with prolonged use. Avoid alcohol during treatment and for at least 48-72 hours after the final dose.
- Bismuth: dark tongue/stool is harmless, but can confuse assessment of melena. Avoid or seek specialist input in severe renal failure; bismuth subsalicylate is unsuitable in salicylate allergy.
- Clarithromycin regimens: do not use empirically unless susceptibility is known, because resistance is common.
- Confirm adherence because pill burden is high.
Test-of-cure
Mandatory for every treated patient. Use urea breath test, stool antigen, or biopsy-based test at least 4 weeks after therapy. Stop PPI approximately 2 weeks before testing if possible.
D. Peptic ulcer disease, PUD
What it is
A mucosal break in stomach or duodenum, most commonly due to H. pylori or NSAIDs.
Risk factors
- H. pylori
- NSAIDs, aspirin
- Older age
- Previous ulcer or bleed
- Corticosteroids combined with NSAIDs
- Anticoagulants, antiplatelets, SSRIs combined with NSAIDs
- Smoking
- Severe physiological stress in critically ill inpatients
Symptoms
- Epigastric pain/burning
- Nausea or dyspepsia
- Nocturnal pain
- Sometimes asymptomatic until bleeding or perforation
Meal timing is not reliable enough to diagnose gastric versus duodenal ulcer.
Important examination findings
- Epigastric tenderness
- Pallor or postural hypotension if bleeding
- Peritonism, guarding, rigidity if perforation
- Succussion splash and dehydration if gastric outlet obstruction
Investigations
- CBC, ferritin if bleeding/anemia suspected.
- H. pylori test.
- EGD for alarms, bleeding, suspected gastric ulcer, recurrent ulcers, persistent symptoms.
- Biopsy all gastric ulcers to exclude malignancy. The surgical text emphasizes adequate sampling of base and rim of gastric ulcers. Schwartz’s Principles of Surgery, 11e, p. 100.
- In suspected perforation: erect chest radiograph may show free air; CT abdomen is more sensitive.
Treatment of uncomplicated ulcer
- Stop NSAID if possible.
- Test and eradicate H. pylori if present.
- PPI:
- Duodenal ulcer: generally 4 weeks
- Gastric ulcer: generally 8 weeks
- If NSAID must continue: use lowest-risk/lowest-dose NSAID plus daily PPI. Consider COX-2 selective therapy only after cardiovascular-risk assessment.
Common regimen
- Pantoprazole 40 mg orally once daily, or omeprazole 20 mg once daily.
- Use twice-daily dosing if severe symptoms, large ulcer, ongoing high-risk exposure, or after a bleeding-ulcer protocol.
Urgent referral/admission
- Hematemesis/melena
- Syncope, hypotension, tachycardia
- Severe sudden pain, guarding, rigid abdomen
- Persistent vomiting/dehydration, suspected obstruction
- Severe anemia
- Suspected gastric cancer or complicated ulcer
E. Dysphagia and odynophagia
First distinction: oropharyngeal versus esophageal
| Feature | Oropharyngeal dysphagia | Esophageal dysphagia |
|---|
| Problem initiating swallow | Yes | No |
| Cough/choking/nasal regurgitation | Common | Less common |
| Aspiration risk | High | Variable |
| Food feels stuck after swallowing | Usually no | Yes, often retrosternal |
Mechanical obstruction versus motility disorder
| Pattern | Likely cause |
|---|
| Progressive solids then liquids | Mechanical obstruction: cancer, stricture |
| Intermittent solids | Schatzki ring, eosinophilic esophagitis |
| Solids and liquids from onset | Motility disorder: achalasia, spasm |
| Pain on swallowing | Pill esophagitis, infectious esophagitis, ulceration, malignancy |
Red flags
- Progressive dysphagia
- Weight loss
- Iron-deficiency anemia
- Persistent vomiting
- Odynophagia
- Food bolus impaction
- Aspiration/recurrent pneumonia
- New dysphagia in older patient
These warrant urgent endoscopy. A surgical reference lists progressive dysphagia, weight loss, persistent vomiting, anemia/GI bleed, palpable mass, and family history among upper-GI alarm features. Schwartz’s Principles of Surgery, 11e, p. 100.
Initial approach
- Airway or inability to swallow saliva: emergency assessment.
- Food bolus impaction: nil by mouth, IV access, urgent endoscopy, especially if complete obstruction.
- Stable dysphagia: EGD is usually first test. Obtain esophageal biopsies when eosinophilic esophagitis is suspected, even if mucosa looks normal.
F. Nausea and vomiting
Common OPD causes
- Gastroenteritis
- Pregnancy
- Drug adverse effects, especially opioids, antibiotics, metformin, digoxin, GLP-1 agonists
- GERD, gastritis, PUD
- Migraine/vestibular disease
- Diabetic gastroparesis
- Uremia, DKA, hypercalcemia
- Bowel obstruction
- Raised intracranial pressure
Danger signs
- Hematemesis
- Dehydration, hypotension, oliguria
- Bilious vomiting or feculent vomiting
- Abdominal distension, colicky pain, constipation/obstipation
- Severe headache, neurological deficit, altered mental status
- Pregnancy with inability to maintain oral intake
- Severe epigastric pain radiating to back: assess for pancreatitis
Practical evaluation
- Pregnancy test in all patients of reproductive potential where appropriate.
- Capillary glucose and ketones if diabetic or unwell.
- CBC/electrolytes/urea/creatinine for significant vomiting or dehydration.
- LFT/lipase when biliary/pancreatic disease is possible.
- ECG if using QT-prolonging antiemetics in high-risk patients or if electrolyte disturbances exist.
- Ultrasound/CT if obstruction, biliary disease, appendicitis, perforation, or pancreatitis is suspected.
Symptomatic treatment
- Oral rehydration for mild dehydration.
- IV crystalloids for hypovolemia.
- Ondansetron 4 mg orally/IV every 8-12 hours as needed. Watch QT prolongation, constipation, and interactions with other QT-prolonging drugs.
- Metoclopramide 10 mg orally/IV up to three times daily for short duration. Avoid in Parkinson disease, bowel obstruction, pheochromocytoma, and prior dystonia; can cause acute dystonia, akathisia, and tardive dyskinesia.
- Treat the cause, not merely the vomiting.
G. Upper GI bleeding: emergency condition
Presentation
- Hematemesis: fresh red blood or coffee-ground material
- Melena
- Syncope, dizziness, weakness
- In severe bleeding: shock, confusion, cool extremities, low urine output
Common causes:
- Peptic ulcer
- Esophageal/gastric varices
- Erosive gastritis/esophagitis
- Mallory-Weiss tear after retching
- Malignancy
Immediate management: ABCDE
- Airway: protect airway if massive hematemesis, reduced consciousness, or ongoing vomiting.
- Breathing: oxygen only if hypoxemic/respiratory compromise.
- Circulation:
- Two large-bore IV cannulas
- CBC, urea/creatinine, electrolytes, LFT, coagulation profile, blood group and crossmatch
- IV crystalloid while arranging blood when needed
- Monitor BP, pulse, urine output, mental state
- Stop NSAIDs and review antiplatelet/anticoagulant therapy with the relevant specialist.
- Give IV PPI when nonvariceal bleeding is likely:
- Pantoprazole 80 mg IV bolus, then 8 mg/hour infusion where protocol uses this, or intermittent high-dose IV PPI per local protocol.
- Urgent gastroenterology/endoscopy referral.
Risk and transfusion
Use the Glasgow-Blatchford Score before endoscopy. A score of 0-1 identifies selected very-low-risk patients who may be managed as outpatients with follow-up. Most others require admission.
For hospitalized upper GI bleeding, a restrictive red-cell transfusion strategy with threshold hemoglobin around
7 g/dL is usual, but use a higher threshold in selected patients with active ischemia, major cardiovascular disease, or ongoing massive hemorrhage. The
ACG upper GI bleeding guideline supports endoscopy within 24 hours after resuscitation.
If variceal bleed is possible
Think varices in known cirrhosis, ascites, jaundice, splenomegaly, thrombocytopenia, or prior varices.
Start, per local emergency protocol:
- Octreotide 50 micrograms IV bolus, then 50 micrograms/hour infusion
- Ceftriaxone 1 g IV once daily
- Urgent endoscopy for band ligation
- Early ICU/hepatology involvement if unstable
Do not delay resuscitation while trying to determine the exact source.
4. Clinical examination in OPD
A. Focused history
Symptom analysis
Ask the patient to point with one finger to the pain.
| Finding in history | Clinical meaning |
|---|
| Burning behind sternum, worse lying down | GERD likely |
| Epigastric pain plus NSAID use | PUD/NSAID gastropathy |
| Early satiety and weight loss | Gastric outlet obstruction or malignancy until evaluated |
| Pain radiating to back | Pancreatic or penetrating ulcer disease |
| Colicky RUQ pain after fatty meal | Biliary disease more likely than dyspepsia |
| Exertional chest discomfort | Treat as possible cardiac ischemia |
| Progressive solids-to-liquids dysphagia | Esophageal obstruction/cancer |
| Repeated vomiting with abdominal distension/obstipation | Gastric outlet or intestinal obstruction |
| Melena/hematemesis | Upper GI bleeding until proven otherwise |
Essential medication history
Specifically ask about:
- Ibuprofen, diclofenac, naproxen, aspirin, traditional medications containing NSAIDs
- Steroids
- Anticoagulants and antiplatelets
- SSRIs
- Bisphosphonates, doxycycline, iron, potassium chloride, which can cause pill esophagitis
- Alcohol, smoking, recreational drug use
B. General examination
Look for:
- Pallor: anemia or blood loss
- Tachycardia, hypotension, orthostatic fall: volume loss/bleeding
- Fever: infection, perforation, cholangitis, other inflammatory condition
- Weight loss, temporal wasting: malignancy/chronic disease
- Jaundice, ascites, spider angiomas: chronic liver disease and possible varices
- Dehydration: dry mucosa, reduced skin turgor, reduced urine output
- Cervical/supraclavicular lymph nodes, especially left supraclavicular node: possible malignancy
C. Abdominal examination
- Inspect: distension, scars, visible peristalsis.
- Auscultate: high-pitched tinkling sounds may support obstruction, but do not delay urgent care.
- Palpate gently, then deeply:
- Epigastric tenderness: gastritis/PUD/pancreatitis, nonspecific.
- Guarding/rigidity: peritonitis, urgent surgical assessment.
- Mass: malignancy, enlarged stomach, pancreatic disease.
- Percuss: loss of liver dullness can suggest free intraperitoneal air, but absence does not exclude perforation.
- Rectal examination: if GI bleeding is suspected. Melena supports upper GI blood loss.
5. Practical OPD algorithms
Algorithm 1: Heartburn
Heartburn/regurgitation
→ Ask about exertional chest pain, alarms, dysphagia, weight loss, GI bleed
→ If possible cardiac pain: ECG/troponin and emergency pathway
→ If alarm symptoms: EGD referral
→ If classic uncomplicated GERD: lifestyle steps + PPI once daily for 8 weeks
→ At review:
- Resolved: taper/stop or lowest effective on-demand strategy
- Partial/no response: verify timing/adherence, reconsider diagnosis, EGD/referral
Algorithm 2: Dyspepsia/epigastric pain
Epigastric discomfort
→ Screen alarms, NSAIDs, bleeding, weight loss, vomiting, anemia, dysphagia
→ If unstable, bleeding, peritonitis: emergency referral
→ If age under local endoscopy threshold and no alarms: H. pylori stool antigen/urea breath test
→ Positive: eradicate and test cure
→ Negative or persistent: 4-8 week PPI trial
→ Persistent/recurrent symptoms: EGD, assess biliary/pancreatic causes and functional dyspepsia
Algorithm 3: Vomiting
Vomiting
→ Check ABCs, hydration, pregnancy possibility, glucose/ketones
→ Look for blood, bilious vomit, severe pain, distension, neurological signs
→ Mild uncomplicated: oral fluids, antiemetic, cause-directed treatment
→ Dehydration/metabolic concern: CBC, electrolytes, creatinine, glucose, urine ketones, pregnancy test as appropriate
→ Severe pain/distension/obstipation: urgent imaging and surgical review
→ Hematemesis: upper GI bleed pathway
Algorithm 4: Dysphagia
Dysphagia
→ Oropharyngeal or esophageal?
→ Is saliva manageable? Is there food impaction?
→ If complete obstruction/aspiration: emergency assessment and urgent endoscopy
→ Progressive, weight loss, anemia, odynophagia: urgent EGD
→ Intermittent food impaction: consider eosinophilic esophagitis, ring, stricture; EGD with biopsies
→ Solids and liquids from onset: consider achalasia; EGD then barium/manometry via specialist
6. Investigations: when they matter
| Test | Order when | Interpretation and effect on management |
|---|
| CBC | Bleeding, fatigue, chronic dyspepsia with concern for anemia, weight loss | Low Hb suggests blood loss or other anemia. Microcytosis/low ferritin suggests iron deficiency and needs source evaluation |
| Urea/creatinine, electrolytes | Significant vomiting, dehydration, GI bleeding, before contrast/medication decisions | High urea with relatively preserved creatinine may support upper GI bleeding or dehydration; low potassium/chloride suggests prolonged vomiting |
| LFT | Jaundice, RUQ pain, chronic alcohol use, suspected liver disease/varices | High bilirubin/ALP suggests biliary obstruction; low albumin/raised INR may indicate impaired hepatic synthesis |
| Lipase | Severe epigastric pain radiating to back, vomiting | Lipase more than 3 times upper limit of normal supports acute pancreatitis in compatible illness |
| Blood glucose/ketones | Diabetic, vomiting, weight loss, altered sensorium | Excludes DKA/hypoglycemia as a cause or complication |
| ECG/troponin | Chest pain, epigastric pain in older or high-risk patient | Never attribute possible cardiac ischemia to reflux without assessment |
| Stool antigen / urea breath test | Suspected H. pylori, confirmation of cure | Positive = active infection. Ensure correct medication washout |
| EGD | Alarms, suspected ulcer/cancer, bleeding, dysphagia, failed initial therapy | Diagnoses esophagitis, ulcer, stricture, varices, cancer; enables biopsy and hemostasis |
| Ultrasound abdomen | RUQ pain, jaundice, biliary symptoms | Detects gallstones, biliary dilatation, liver disease; limited for gastric/duodenal mucosal disease |
| CT abdomen | Perforation, obstruction, severe unexplained pain, suspected malignancy/pancreatic disease | Free air, obstruction, mass, pancreatitis complications; not routine dyspepsia test |
| Erect chest X-ray | Suspected perforation | Free subdiaphragmatic gas supports perforation. A normal film does not rule it out |
7. Common drugs: practical list
| Drug | Common use | Typical adult dose | Important cautions | Major adverse effects/monitoring |
|---|
| Omeprazole | GERD, ulcer, dyspepsia | 20 mg PO daily, 30-60 min before breakfast | Consider interaction with clopidogrel, especially at higher doses; reassess long-term indication | Headache, diarrhea; long-term use may associate with hypomagnesemia, B12/iron deficiency, enteric infections |
| Pantoprazole | GERD, ulcer, GI bleed protocol | 40 mg PO daily; high-dose IV protocol for bleed | Review long-term need | Similar to omeprazole |
| Famotidine | Intermittent/nocturnal reflux | 20 mg PO once or twice daily | Renal dose adjustment | Headache, confusion rarely in older/frail patients |
| Alginate/antacid | Rapid symptom relief | As product instructions, after meals/bedtime | Separate from interacting drugs | Constipation or diarrhea; sodium load in some formulations |
| Bismuth-based quadruple therapy | H. pylori | PPI BID + bismuth QID + tetracycline 500 mg QID + metronidazole 500 mg TID/QID for 14 d | Pregnancy, salicylate allergy, renal impairment, alcohol use | Dark stools/tongue, nausea, photosensitivity, metallic taste |
| Ondansetron | Nausea/vomiting | 4 mg PO/IV every 8-12 h as needed | QT prolongation, severe constipation | Headache, constipation, arrhythmia risk in predisposed patients |
| Metoclopramide | Short-term nausea/gastroparesis | 10 mg PO/IV up to TID, short course | Avoid in obstruction, Parkinson disease, prior dystonia | Dystonia, akathisia, tardive dyskinesia |
| Sucralfate | Selected ulcer/dyspepsia cases | 1 g PO QID, empty stomach | Separate from other drugs by at least 2 h; caution in renal failure | Constipation, aluminum accumulation in severe renal impairment |
| Paracetamol/acetaminophen | Pain/fever when ulcer risk exists | 500-1000 mg PO every 6-8 h, maximum adjusted to patient risk/local policy | Liver disease, alcohol use | Hepatotoxicity in overdose |
| NSAIDs | Avoid where possible in active ulcer/bleeding | Not routine for upper-GI pain | PUD, anticoagulation, CKD, heart failure, pregnancy considerations | Ulcer, bleeding, AKI, fluid retention |
8. Clinical cases
Case 1: Typical GERD in OPD
History: A 34-year-old with obesity reports retrosternal burning and sour regurgitation after dinner and when lying down. No dysphagia, vomiting, bleeding, weight loss, or exertional chest pain.
Examination: Normal vitals, BMI 31 kg/m², mild epigastric tenderness only.
Diagnosis: Probable uncomplicated GERD.
Differentials: Functional heartburn, dyspepsia, cardiac pain if the pattern changes.
Plan:
- Weight reduction and avoid late meals.
- Pantoprazole 40 mg orally, 30 minutes before breakfast for 8 weeks.
- Review in 6-8 weeks.
- Advise immediate care for chest pain with exertion, hematemesis/melena, dysphagia, or weight loss.
Follow-up: If improved, step down or stop. If not improved despite correct use, arrange EGD and reconsider diagnosis.
Case 2: Dyspepsia with H. pylori
History: A 29-year-old reports 3 months of epigastric burning and post-meal discomfort. No NSAID use, anemia symptoms, vomiting, weight loss, or family history of gastric cancer.
Examination: Stable vitals, no mass, no pallor.
Investigations: Stool antigen positive for H. pylori. CBC normal.
Diagnosis: H. pylori-associated dyspepsia, possible peptic disease.
Treatment:
- 14-day optimized bismuth quadruple therapy.
- Explain dark stool from bismuth and strict avoidance of alcohol with metronidazole.
- Check adherence by phone if possible.
Follow-up: Stool antigen or urea breath test at least 4 weeks after therapy, after withholding PPI for about 2 weeks.
Case 3: NSAID-associated ulcer risk
History: A 67-year-old taking daily naproxen for knee osteoarthritis and aspirin for cardiovascular prevention has epigastric pain and new fatigue.
Examination: Mild pallor and epigastric tenderness. Hemodynamically stable.
Investigations: CBC shows microcytic anemia. Ferritin is low.
Likely diagnosis: NSAID-associated ulcer with occult GI blood loss until proven otherwise.
Differentials: Gastric cancer, angiodysplasia, colonic bleeding, H. pylori ulcer.
Plan:
- Stop naproxen if possible.
- Start PPI.
- Urgent EGD because of iron-deficiency anemia and age.
- Test for H. pylori.
- Coordinate antiplatelet decisions with cardiology, rather than stopping secondary-prevention aspirin without discussion.
Case 4: Progressive dysphagia
History: A 61-year-old smoker reports 2 months of progressive dysphagia, initially for solids and now liquids, with 7 kg unintentional weight loss.
Examination: Thin, pale, left supraclavicular node palpable.
Diagnosis to exclude urgently: Esophageal or gastric cardia malignancy.
Plan:
- Urgent EGD with biopsy.
- CBC, renal function, LFT, nutritional assessment.
- CT staging after tissue diagnosis or as directed by the specialist team.
- Do not manage as “GERD” with prolonged empirical PPI alone.
Case 5: Suspected perforated peptic ulcer
History: A 48-year-old with frequent diclofenac use develops sudden severe epigastric pain that becomes generalized.
Examination: Tachycardia, board-like abdominal rigidity, rebound tenderness.
Diagnosis: Perforated hollow viscus, likely perforated PUD.
Immediate management:
- Nil by mouth, ABCs, two IV lines, IV fluids.
- CBC, electrolytes, renal function, group/crossmatch, lactate.
- IV broad-spectrum antibiotics and IV PPI per surgical protocol.
- Erect chest X-ray or CT if stable.
- Immediate surgical referral. Do not delay referral for imaging if unstable.
Case 6: Upper GI bleed
History: A 58-year-old with prior ulcer and aspirin use presents with melena, dizziness, and coffee-ground vomitus.
Examination: BP 92/58 mmHg, pulse 118/min, cool peripheries.
Diagnosis: Upper GI bleeding with hypovolemia, likely bleeding ulcer.
Management:
- Resuscitate, two large IV cannulas, CBC/coagulation/renal function/crossmatch.
- Calculate Glasgow-Blatchford score.
- IV PPI, transfuse according to hemodynamics and hemoglobin.
- Admit and arrange endoscopy within 24 hours after resuscitation, sooner if unstable or ongoing bleeding.
9. End-of-system revision
Top 20 upper-GI OPD/emergency conditions
- GERD
- Dyspepsia
- Functional dyspepsia
- H. pylori gastritis
- NSAID gastropathy
- Duodenal ulcer
- Gastric ulcer
- Upper GI bleeding
- Erosive esophagitis
- Barrett esophagus
- Esophageal stricture
- Eosinophilic esophagitis
- Achalasia
- Esophageal cancer
- Gastric cancer
- Mallory-Weiss tear
- Esophageal variceal bleeding
- Pill esophagitis
- Gastric outlet obstruction
- Perforated peptic ulcer
Drug-of-choice list
| Situation | Usual first choice |
|---|
| Typical uncomplicated GERD | Once-daily PPI for 8 weeks |
| Occasional rapid reflux relief | Alginate/antacid |
| Nocturnal breakthrough reflux | H2 blocker, usually famotidine |
| Confirmed H. pylori, susceptibility unknown | Optimized bismuth quadruple therapy for 14 days |
| Uncomplicated NSAID ulcer | Stop NSAID if possible + PPI |
| Ulcer prophylaxis in high-risk necessary NSAID user | Daily PPI |
| Acute nonvariceal upper GI bleed | Resuscitation + IV high-dose PPI + endoscopic hemostasis |
| Suspected variceal bleed | Octreotide + ceftriaxone + urgent endoscopy |
| Short-term uncomplicated nausea | Ondansetron if QT risk acceptable |
Important diagnostic cut-offs and rules
- Glasgow-Blatchford score 0-1: selected very-low-risk upper GI bleed patients may be considered for outpatient care.
- Hemoglobin around 7 g/dL: usual restrictive transfusion threshold in hospitalized upper GI bleeding, individualized for clinical context.
- Lipase more than 3 times upper limit of normal: supports acute pancreatitis with compatible symptoms.
- PPI timing: 30-60 minutes before a meal.
- H. pylori test-of-cure: at least 4 weeks after antibiotics; withhold PPI about 2 weeks before testing if possible.
- New-onset dyspepsia in older age: consider EGD. The exact age threshold varies by local guideline and cancer risk.
- Progressive dysphagia: urgent EGD, not a prolonged empirical PPI trial.
Red flags requiring urgent referral
- Hematemesis, melena, syncope, shock
- Peritonitis, rigid abdomen, sudden severe pain
- Progressive dysphagia or food impaction
- Unintentional weight loss
- Iron-deficiency anemia
- Recurrent/persistent vomiting or dehydration
- Palpable mass or supraclavicular lymphadenopathy
- Jaundice with epigastric symptoms
- New upper-GI symptoms in older/high gastric-cancer-risk patient
- Chest pain where cardiac ischemia is possible
Immediate emergency actions
| Emergency | Immediate priorities |
|---|
| Upper GI bleed | ABCDE, two IV lines, blood tests/crossmatch, fluids/blood as needed, IV PPI, urgent endoscopy |
| Suspected variceal bleed | Above plus octreotide, ceftriaxone, urgent endoscopy |
| Perforation | NPO, IV fluids, antibiotics, analgesia, imaging if stable, immediate surgical review |
| Food bolus with inability to swallow saliva | Airway assessment, NPO, urgent endoscopy |
| Vomiting with shock/DKA/obstruction | Resuscitate, glucose/ketones/electrolytes, cause-directed imaging and specialty review |
Common clinical mistakes
- Labeling all epigastric or chest pain as “acidity” without considering ACS.
- Giving repeated PPIs to a patient with dysphagia, weight loss, anemia, or vomiting instead of arranging endoscopy.
- Ordering H. pylori serology and interpreting it as active infection.
- Forgetting the medication washout period before stool antigen or urea breath testing.
- Treating H. pylori but not confirming eradication.
- Missing NSAIDs in over-the-counter, combination, or traditional medicines.
- Continuing NSAIDs after ulcer bleeding without gastroprotection and risk review.
- Assuming black stool from bismuth is always harmless in a patient with possible bleeding.
- Under-resuscitating upper GI bleeding while waiting for endoscopy.
- Giving metoclopramide repeatedly without recognizing extrapyramidal adverse effects or obstruction.
Clinical pearls
- “Solids then liquids” suggests an obstructive lesion until proven otherwise.
- “Solids and liquids from the beginning” suggests a motility disorder.
- Normal abdominal examination does not rule out ulcer, early cancer, or significant esophageal disease.
- A “PPI failure” is often wrong timing, poor adherence, or the wrong diagnosis.
- In an older patient, first presentation of “indigestion” can be acute coronary syndrome.
- Gastric ulcers require biopsy and usually repeat assessment to document healing/exclude malignancy.
- Melena may persist for several days after bleeding stops, so assess hemodynamics and hemoglobin trend, not stool color alone.
High-yield viva/MCQ questions
-
What are the two leading causes of peptic ulcer disease?
H. pylori infection and NSAID use.
-
What is the correct timing of a once-daily PPI?
About 30-60 minutes before breakfast.
-
What does progressive dysphagia from solids to liquids suggest?
Mechanical obstruction, especially malignancy or stricture.
-
What does dysphagia to solids and liquids from onset suggest?
Esophageal motility disorder, such as achalasia.
-
Which ulcer is classically associated with major arterial bleeding?
Posterior duodenal ulcer eroding the gastroduodenal artery.
-
Which ulcer is classically associated with perforation?
Anterior duodenal ulcer.
-
Which noninvasive tests diagnose active H. pylori infection?
Urea breath test and stool antigen test.
-
Why is H. pylori serology poor for test-of-cure?
Antibodies may remain positive after eradication.
-
When should post-treatment H. pylori testing be done?
At least 4 weeks after antibiotics, with PPI withheld for around 2 weeks if feasible.
-
What is the usual first-line empirical treatment for uncomplicated GERD?
An 8-week once-daily PPI trial plus lifestyle measures.
-
Name three alarm symptoms in dyspepsia.
Weight loss, progressive dysphagia, GI bleeding/anemia, recurrent vomiting, odynophagia, palpable mass.
-
What is the initial priority in upper GI bleeding?
ABC resuscitation and hemodynamic stabilization.
-
Which score helps identify very-low-risk upper GI bleed patients?
Glasgow-Blatchford Score.
-
What drug combination should be started when variceal bleed is suspected?
Vasoactive agent such as octreotide plus antibiotic prophylaxis, commonly ceftriaxone, alongside resuscitation.
-
What is the key management step for NSAID-related ulcer disease?
Stop the NSAID if possible and treat with a PPI; test for and eradicate H. pylori if present.
One-page rapid revision
Upper-GI symptoms
- Heartburn/regurgitation: think GERD.
- Epigastric pain/fullness: dyspepsia, PUD, gastritis, biliary/pancreatic disease.
- Dysphagia: urgently identify obstruction, cancer, food impaction.
- Hematemesis/melena: upper GI bleed until proven otherwise.
GERD
- Typical symptoms, no alarms: PPI once daily for 8 weeks.
- Take before food.
- Alarm symptoms or PPI nonresponse: EGD.
- Chest pain may be cardiac: do ECG/troponin when clinically indicated.
Dyspepsia
- Check age/risk and alarm features.
- Lower-risk, no alarms: H. pylori test-and-treat.
- Positive: 14-day bismuth quadruple therapy where susceptibility unknown.
- Negative/persistent: PPI 4-8 weeks.
- Alarms/older onset: EGD.
PUD
- Main causes: H. pylori, NSAIDs.
- Stop NSAID, give PPI, eradicate H. pylori.
- Gastric ulcer: biopsy to exclude cancer.
- Sudden pain + rigid abdomen: perforation, urgent surgery.
Dysphagia
- Solids then liquids: cancer/stricture.
- Solids and liquids from start: motility disorder.
- Food impaction or inability to swallow saliva: emergency endoscopy.
UGI bleed
- ABCDE, two IV lines, CBC/renal/coagulation/crossmatch.
- IV PPI for likely nonvariceal bleed.
- Suspected varices: octreotide + ceftriaxone.
- Endoscopy within 24 hours after stabilization.
- GBS 0-1: selected low-risk outpatient pathway only.
Never miss
- ACS presenting as epigastric pain
- Perforated ulcer
- Bleeding ulcer/varices
- Esophageal or gastric cancer
- Obstruction/food impaction
- Severe dehydration, DKA, pancreatitis in vomiting patient
The next GI module should be hepatobiliary system: liver, gallbladder, and biliary tree, with jaundice, fatty liver, hepatitis, gallstones, cholecystitis, cholangitis, cirrhosis, ascites, and hepatic encephalopathy.