Teach me gastro intestinal tract system of the human body system-wise with a strong focus on practical OPD and day-to-day clinical medicine. Do NOT make it excessively detailed or textbook-like. Teach me only the knowledge that is commonly useful in OPD, emergency situations, clinical examination, diagnosis, investigations, treatment, and medical decision-making. Cover one organ system at a time, and complete one system before moving to the next. For each system, follow this structure: 1. Essential Anatomy Teach only clinically relevant anatomy: important organs and structures, major blood supply and nerve supply, important anatomical relations, referred pain, and anatomical points that help in examination, diagnosis, procedures, or understanding disease. 2. Essential Physiology Explain the normal function of the system in simple language. Include only important physiological mechanisms, normal values, and concepts that are useful for understanding common diseases and interpreting clinical findings. 3. Common Clinical Problems Focus mainly on diseases and conditions I am likely to encounter in routine OPD and common emergencies. Prioritize common and clinically important conditions rather than rare diseases. For every important disease, explain: What it is Common causes/risk factors Basic pathophysiology Typical symptoms Important examination findings Red flags Important differential diagnoses Which investigations to order and why How to interpret the important investigation results Diagnostic criteria/cut-offs when clinically relevant First-line treatment Drug of choice where applicable Common alternative drugs Important drug contraindications and adverse effects Basic dose/range and duration when clinically appropriate When referral/admission is required Emergency management when applicable Follow-up and prevention 4. Clinical Examination For each system, teach me how to actually examine a patient in OPD: History → General examination → Systemic examination → Important positive findings → Interpretation → Differential diagnosis. Explain what each finding means clinically rather than simply giving a checklist. 5. OPD Approach Give practical algorithms such as: Patient presents with symptom → important history → examination → initial investigations → differential diagnosis → treatment/referral. Include common presentations such as pain, fever, cough, breathlessness, vomiting, diarrhea, headache, dizziness, edema, chest pain, abdominal pain, urinary symptoms, joint pain, etc., wherever relevant to that system. 6. Investigations Teach me the common investigations used in OPD and how to interpret them: CBC Blood glucose LFT RFT Electrolytes Lipid profile Urine examination ECG X-ray USG CT/MRI when relevant System-specific investigations Do not just list tests. Explain when to order them, what abnormal results mean, and how they change management. 7. Common Drugs At the end of each system, give a practical drug list containing: Drug → indication → usual adult dose/range → route → important contraindication → major adverse effects → important monitoring. Focus on drugs commonly encountered in OPD and emergency practice. 8. Clinical Cases Give 2–3 short realistic OPD cases for each major/common disease. Include: History → examination → investigations → diagnosis → differential diagnosis → treatment → follow-up. Keep cases realistic and clinically practical rather than excessively complicated. 9. End-of-System Revision Finish every system with: Top 20 OPD conditions Important drug-of-choice list Important diagnostic cut-offs Red flags requiring urgent referral Emergency conditions and immediate management Common clinical mistakes Clinical pearls 10–15 high-yield viva/MCQ questions One-page rapid revision

Reading File
I’ll teach this as a sequence of clinically usable GI modules, starting with the most frequent OPD and emergency presentations rather than anatomy-heavy chapters.
Asking for Preferences

Which GI module should we start and complete in detail first?

I’ll teach this as a sequence of clinically usable GI modules, starting with the most frequent OPD and emergency presentations rather than anatomy-heavy chapters.The gastrointestinal tract is best taught in practical clinical modules, not as one huge chapter. We will complete one module fully before moving to the next.

Proposed GI sequence

  1. Upper GI: esophagus, stomach, duodenum
    • GERD, dyspepsia, peptic ulcer disease, gastritis, H. pylori, upper GI bleed, dysphagia, vomiting, gastric outlet obstruction.
  2. Hepatobiliary system: liver, gallbladder, biliary tree
    • Jaundice, hepatitis, fatty liver, cirrhosis, ascites, hepatic encephalopathy, gallstones, acute cholecystitis, cholangitis.
  3. Pancreas
    • Acute pancreatitis, chronic pancreatitis, pancreatic insufficiency, pancreatic cancer red flags.
  4. Small intestine
    • Acute gastroenteritis, diarrhea, dehydration, malabsorption, celiac disease, intestinal obstruction, appendicitis basics.
  5. Colon, rectum, and anus
    • Constipation, irritable bowel syndrome, inflammatory bowel disease, diverticulitis, lower GI bleeding, colorectal cancer red flags, hemorrhoids, fissure, fistula, anorectal abscess.

How each module will be taught

For every module, I will cover:
  • Clinically relevant anatomy and physiology
  • Symptom-first OPD approach and emergency triage
  • Focused history and examination with interpretation
  • Common conditions, differential diagnoses, investigations, treatment, doses, contraindications, referral criteria, and follow-up
  • Practical investigation interpretation
  • Commonly used drugs
  • Realistic OPD cases
  • End-module rapid revision, drug-of-choice list, cut-offs, red flags, common mistakes, and viva/MCQs

Clinical priority

The course will emphasize what changes a decision in real practice:
  • Is this safe for outpatient care or does it need admission?
  • What dangerous diagnosis must not be missed?
  • Which test is actually useful now?
  • When is empirical treatment reasonable?
  • When is endoscopy, ultrasound, CT, surgery, or specialist referral needed?
  • Which medicines are unsafe in pregnancy, renal disease, liver disease, elderly patients, or suspected GI bleeding?
Reply with “Start Upper GI” to begin with the highest-yield first module: esophagus, stomach, and duodenum.

Start

Reading File
Finding Sources
Searching PubMed

dyspepsia AND management

Searching the Web

ACG clinical guideline GERD dyspepsia Helicobacter pylori upper gastrointestinal bleeding guideline

Finding Sources
Finding Sources
Finding Sources
Finding Sources
Searching PubMed

Helicobacter pylori treatment guideline

Searching PubMed

gastroesophageal reflux management

Searching the Web

2024 ACG Helicobacter pylori treatment guideline optimized bismuth quadruple therapy 14 days

Searching the Web

ACG 2022 GERD guideline PPI 8 weeks alarm symptoms endoscopy

Reading File
Reading File
Reading File
Reading File
Reading Article

PMID: 39626064

Reading Article

PMID: 33929377

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
  1. Cricopharyngeus, around 15 cm from incisors
  2. Where crossed by aortic arch/left main bronchus
  3. 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 patternUseful interpretation
Retrosternal burning after meals or lying downGERD likely, but first exclude cardiac ischemia if acute or exertional
Epigastric burning/gnawingDyspepsia, gastritis, PUD, pancreatic or biliary disease
Pain radiating to the backConsider penetrating posterior ulcer, pancreatitis, aortic pathology
Sudden severe generalized abdominal pain with rigid abdomenPerforated viscus until proven otherwise
Epigastric pain plus diaphoresis, dyspnea, exertional onsetConsider 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

ConceptClinical use
Fasting gastric pH is strongly acidic, usually about 1-3Acid suppression improves reflux and ulcer healing
PPI timingMost PPIs work best 30-60 minutes before food, usually breakfast
Gastric emptyingDelayed in diabetes, opioid use, anticholinergics, obstruction, and gastroparesis
HematemesisVomiting fresh blood or coffee-ground material, usually upper GI source
MelenaBlack 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

  1. Weight reduction if overweight.
  2. Avoid meals for 2-3 hours before bed.
  3. Elevate head of bed for nocturnal symptoms.
  4. Identify personal triggers. Do not prescribe a universally restrictive diet.
  5. 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

TestBest useLimitation
Urea breath testDiagnosis and test-of-cureFalse negative with PPI, antibiotics, bismuth
Stool antigenDiagnosis and test-of-cureSame medication-related false negatives
Biopsy urease/histologyDuring EGDSampling error and medication effects
SerologyUsually avoidCannot 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

  1. Stop NSAID if possible.
  2. Test and eradicate H. pylori if present.
  3. PPI:
    • Duodenal ulcer: generally 4 weeks
    • Gastric ulcer: generally 8 weeks
  4. 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

FeatureOropharyngeal dysphagiaEsophageal dysphagia
Problem initiating swallowYesNo
Cough/choking/nasal regurgitationCommonLess common
Aspiration riskHighVariable
Food feels stuck after swallowingUsually noYes, often retrosternal

Mechanical obstruction versus motility disorder

PatternLikely cause
Progressive solids then liquidsMechanical obstruction: cancer, stricture
Intermittent solidsSchatzki ring, eosinophilic esophagitis
Solids and liquids from onsetMotility disorder: achalasia, spasm
Pain on swallowingPill 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

  1. Airway: protect airway if massive hematemesis, reduced consciousness, or ongoing vomiting.
  2. Breathing: oxygen only if hypoxemic/respiratory compromise.
  3. 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
  4. Stop NSAIDs and review antiplatelet/anticoagulant therapy with the relevant specialist.
  5. 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.
  6. 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 historyClinical meaning
Burning behind sternum, worse lying downGERD likely
Epigastric pain plus NSAID usePUD/NSAID gastropathy
Early satiety and weight lossGastric outlet obstruction or malignancy until evaluated
Pain radiating to backPancreatic or penetrating ulcer disease
Colicky RUQ pain after fatty mealBiliary disease more likely than dyspepsia
Exertional chest discomfortTreat as possible cardiac ischemia
Progressive solids-to-liquids dysphagiaEsophageal obstruction/cancer
Repeated vomiting with abdominal distension/obstipationGastric outlet or intestinal obstruction
Melena/hematemesisUpper 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

  1. Inspect: distension, scars, visible peristalsis.
  2. Auscultate: high-pitched tinkling sounds may support obstruction, but do not delay urgent care.
  3. Palpate gently, then deeply:
    • Epigastric tenderness: gastritis/PUD/pancreatitis, nonspecific.
    • Guarding/rigidity: peritonitis, urgent surgical assessment.
    • Mass: malignancy, enlarged stomach, pancreatic disease.
  4. Percuss: loss of liver dullness can suggest free intraperitoneal air, but absence does not exclude perforation.
  5. 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

TestOrder whenInterpretation and effect on management
CBCBleeding, fatigue, chronic dyspepsia with concern for anemia, weight lossLow Hb suggests blood loss or other anemia. Microcytosis/low ferritin suggests iron deficiency and needs source evaluation
Urea/creatinine, electrolytesSignificant vomiting, dehydration, GI bleeding, before contrast/medication decisionsHigh urea with relatively preserved creatinine may support upper GI bleeding or dehydration; low potassium/chloride suggests prolonged vomiting
LFTJaundice, RUQ pain, chronic alcohol use, suspected liver disease/varicesHigh bilirubin/ALP suggests biliary obstruction; low albumin/raised INR may indicate impaired hepatic synthesis
LipaseSevere epigastric pain radiating to back, vomitingLipase more than 3 times upper limit of normal supports acute pancreatitis in compatible illness
Blood glucose/ketonesDiabetic, vomiting, weight loss, altered sensoriumExcludes DKA/hypoglycemia as a cause or complication
ECG/troponinChest pain, epigastric pain in older or high-risk patientNever attribute possible cardiac ischemia to reflux without assessment
Stool antigen / urea breath testSuspected H. pylori, confirmation of curePositive = active infection. Ensure correct medication washout
EGDAlarms, suspected ulcer/cancer, bleeding, dysphagia, failed initial therapyDiagnoses esophagitis, ulcer, stricture, varices, cancer; enables biopsy and hemostasis
Ultrasound abdomenRUQ pain, jaundice, biliary symptomsDetects gallstones, biliary dilatation, liver disease; limited for gastric/duodenal mucosal disease
CT abdomenPerforation, obstruction, severe unexplained pain, suspected malignancy/pancreatic diseaseFree air, obstruction, mass, pancreatitis complications; not routine dyspepsia test
Erect chest X-raySuspected perforationFree subdiaphragmatic gas supports perforation. A normal film does not rule it out

7. Common drugs: practical list

DrugCommon useTypical adult doseImportant cautionsMajor adverse effects/monitoring
OmeprazoleGERD, ulcer, dyspepsia20 mg PO daily, 30-60 min before breakfastConsider interaction with clopidogrel, especially at higher doses; reassess long-term indicationHeadache, diarrhea; long-term use may associate with hypomagnesemia, B12/iron deficiency, enteric infections
PantoprazoleGERD, ulcer, GI bleed protocol40 mg PO daily; high-dose IV protocol for bleedReview long-term needSimilar to omeprazole
FamotidineIntermittent/nocturnal reflux20 mg PO once or twice dailyRenal dose adjustmentHeadache, confusion rarely in older/frail patients
Alginate/antacidRapid symptom reliefAs product instructions, after meals/bedtimeSeparate from interacting drugsConstipation or diarrhea; sodium load in some formulations
Bismuth-based quadruple therapyH. pyloriPPI BID + bismuth QID + tetracycline 500 mg QID + metronidazole 500 mg TID/QID for 14 dPregnancy, salicylate allergy, renal impairment, alcohol useDark stools/tongue, nausea, photosensitivity, metallic taste
OndansetronNausea/vomiting4 mg PO/IV every 8-12 h as neededQT prolongation, severe constipationHeadache, constipation, arrhythmia risk in predisposed patients
MetoclopramideShort-term nausea/gastroparesis10 mg PO/IV up to TID, short courseAvoid in obstruction, Parkinson disease, prior dystoniaDystonia, akathisia, tardive dyskinesia
SucralfateSelected ulcer/dyspepsia cases1 g PO QID, empty stomachSeparate from other drugs by at least 2 h; caution in renal failureConstipation, aluminum accumulation in severe renal impairment
Paracetamol/acetaminophenPain/fever when ulcer risk exists500-1000 mg PO every 6-8 h, maximum adjusted to patient risk/local policyLiver disease, alcohol useHepatotoxicity in overdose
NSAIDsAvoid where possible in active ulcer/bleedingNot routine for upper-GI painPUD, anticoagulation, CKD, heart failure, pregnancy considerationsUlcer, 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

  1. GERD
  2. Dyspepsia
  3. Functional dyspepsia
  4. H. pylori gastritis
  5. NSAID gastropathy
  6. Duodenal ulcer
  7. Gastric ulcer
  8. Upper GI bleeding
  9. Erosive esophagitis
  10. Barrett esophagus
  11. Esophageal stricture
  12. Eosinophilic esophagitis
  13. Achalasia
  14. Esophageal cancer
  15. Gastric cancer
  16. Mallory-Weiss tear
  17. Esophageal variceal bleeding
  18. Pill esophagitis
  19. Gastric outlet obstruction
  20. Perforated peptic ulcer

Drug-of-choice list

SituationUsual first choice
Typical uncomplicated GERDOnce-daily PPI for 8 weeks
Occasional rapid reflux reliefAlginate/antacid
Nocturnal breakthrough refluxH2 blocker, usually famotidine
Confirmed H. pylori, susceptibility unknownOptimized bismuth quadruple therapy for 14 days
Uncomplicated NSAID ulcerStop NSAID if possible + PPI
Ulcer prophylaxis in high-risk necessary NSAID userDaily PPI
Acute nonvariceal upper GI bleedResuscitation + IV high-dose PPI + endoscopic hemostasis
Suspected variceal bleedOctreotide + ceftriaxone + urgent endoscopy
Short-term uncomplicated nauseaOndansetron 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

EmergencyImmediate priorities
Upper GI bleedABCDE, two IV lines, blood tests/crossmatch, fluids/blood as needed, IV PPI, urgent endoscopy
Suspected variceal bleedAbove plus octreotide, ceftriaxone, urgent endoscopy
PerforationNPO, IV fluids, antibiotics, analgesia, imaging if stable, immediate surgical review
Food bolus with inability to swallow salivaAirway assessment, NPO, urgent endoscopy
Vomiting with shock/DKA/obstructionResuscitate, glucose/ketones/electrolytes, cause-directed imaging and specialty review

Common clinical mistakes

  1. Labeling all epigastric or chest pain as “acidity” without considering ACS.
  2. Giving repeated PPIs to a patient with dysphagia, weight loss, anemia, or vomiting instead of arranging endoscopy.
  3. Ordering H. pylori serology and interpreting it as active infection.
  4. Forgetting the medication washout period before stool antigen or urea breath testing.
  5. Treating H. pylori but not confirming eradication.
  6. Missing NSAIDs in over-the-counter, combination, or traditional medicines.
  7. Continuing NSAIDs after ulcer bleeding without gastroprotection and risk review.
  8. Assuming black stool from bismuth is always harmless in a patient with possible bleeding.
  9. Under-resuscitating upper GI bleeding while waiting for endoscopy.
  10. 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

  1. What are the two leading causes of peptic ulcer disease?
    H. pylori infection and NSAID use.
  2. What is the correct timing of a once-daily PPI?
    About 30-60 minutes before breakfast.
  3. What does progressive dysphagia from solids to liquids suggest?
    Mechanical obstruction, especially malignancy or stricture.
  4. What does dysphagia to solids and liquids from onset suggest?
    Esophageal motility disorder, such as achalasia.
  5. Which ulcer is classically associated with major arterial bleeding?
    Posterior duodenal ulcer eroding the gastroduodenal artery.
  6. Which ulcer is classically associated with perforation?
    Anterior duodenal ulcer.
  7. Which noninvasive tests diagnose active H. pylori infection?
    Urea breath test and stool antigen test.
  8. Why is H. pylori serology poor for test-of-cure?
    Antibodies may remain positive after eradication.
  9. When should post-treatment H. pylori testing be done?
    At least 4 weeks after antibiotics, with PPI withheld for around 2 weeks if feasible.
  10. What is the usual first-line empirical treatment for uncomplicated GERD?
    An 8-week once-daily PPI trial plus lifestyle measures.
  11. Name three alarm symptoms in dyspepsia.
    Weight loss, progressive dysphagia, GI bleeding/anemia, recurrent vomiting, odynophagia, palpable mass.
  12. What is the initial priority in upper GI bleeding?
    ABC resuscitation and hemodynamic stabilization.
  13. Which score helps identify very-low-risk upper GI bleed patients?
    Glasgow-Blatchford Score.
  14. What drug combination should be started when variceal bleed is suspected?
    Vasoactive agent such as octreotide plus antibiotic prophylaxis, commonly ceftriaxone, alongside resuscitation.
  15. 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.
This is a shared conversation. Sign in to Orris to start your own chat.