What diagnostic evaluation and management are recommended for a 37-year-old man with an 11-month history of epigastric pain that worsens on an empty stomach, prior treated Helicobacter pylori infection, lack of response to proton‑pump inhibitor (PPI) therapy, fatigue, occasional leg cramps, loose foul‑smelling stools, halitosis, cholecystectomy two months ago, pre‑diabetes (hemoglobin A1c in the pre‑diabetic range), and vitamin D insufficiency, with normal abdominal computed tomography (CT) and ultrasound (US)?

Medical Advisory BoardAll articles are reviewed for accuracy by our Medical Advisory Board
Educational purpose only • Exercise caution as content is pending human review
Article Review Status
Submitted
Under Review
Approved

Last updated: March 7, 2026View editorial policy

Personalize

Help us tailor your experience

Which best describes you? Your choice helps us use language that's most understandable for you.

Proceed Directly to Upper Endoscopy with Biopsies

This 37-year-old man requires upper endoscopy (EGD) with gastric and duodenal biopsies to evaluate for persistent peptic ulcer disease, malabsorption disorders (particularly celiac disease), and to confirm H. pylori eradication. The constellation of PPI-refractory epigastric pain, foul-smelling loose stools, fatigue, leg cramps, and 11-month symptom duration despite treated H. pylori infection mandates direct visualization and tissue diagnosis 1, 2.

Why Endoscopy is Essential Now

The patient has already failed the standard "test and treat" pathway. According to dyspepsia management guidelines, patients who do not respond to initial H. pylori eradication therapy and subsequent PPI therapy should be referred for endoscopy 1. This is not optional at this stage—you've exhausted empirical management.

Critical Red Flags in This Case:

  • Malabsorption symptoms: Foul-smelling loose stools strongly suggest fat malabsorption (steatorrhea), which can indicate celiac disease, chronic pancreatitis, or small bowel bacterial overgrowth
  • Nutritional deficiencies: Leg cramps may reflect electrolyte abnormalities or vitamin deficiencies beyond the documented vitamin D insufficiency
  • 11-month duration: Prolonged symptoms increase pre-test probability of organic disease
  • Post-cholecystectomy: Recent surgery may have unmasked or contributed to bile acid malabsorption or sphincter of Oddi dysfunction
  • Failed PPI therapy: This eliminates acid-related functional dyspepsia as the primary diagnosis 1

Specific Endoscopic Protocol

During EGD, obtain:

  1. Multiple gastric biopsies (antrum and body) for:

    • H. pylori confirmation (histology + rapid urease test) to verify eradication 2
    • Exclude H. pylori-negative peptic ulcer disease (increasingly common) 1
    • Rule out gastric atrophy or intestinal metaplasia
  2. Duodenal biopsies (at least 4-6 from second portion) for:

    • Celiac disease (most likely diagnosis given malabsorption pattern)
    • Giardiasis or other parasitic infections
    • Microscopic enteritis
  3. Document any ulcers, erosions, or mucosal abnormalities

Concurrent Diagnostic Workup

While scheduling endoscopy, order:

Blood Tests:

  • Tissue transglutaminase IgA with total IgA (celiac serology—must be done while patient is consuming gluten)
  • Complete blood count (anemia from malabsorption)
  • Comprehensive metabolic panel (electrolytes for leg cramps)
  • Magnesium, calcium, phosphate (PPI use can cause deficiencies)
  • Vitamin B12, folate, iron studies
  • Fecal elastase or fecal fat (if steatorrhea suspected)

Stool Studies:

  • Fecal calprotectin (inflammatory bowel disease screening)
  • Stool culture and ova/parasites
  • Giardia antigen

Management Based on Endoscopy Results

If H. pylori Persists:

Use 14-day bismuth quadruple therapy (bismuth + PPI + 2 antibiotics not previously used) or consider antibiotic susceptibility testing if available 3, 4. The patient needs confirmation of eradication with urea breath test 4+ weeks after completing therapy 2.

If Celiac Disease Confirmed:

Strict gluten-free diet with dietitian consultation. This would explain the epigastric pain, malabsorption, fatigue, and nutritional deficiencies.

If Endoscopy is Normal:

  • Reconfirm H. pylori eradication with 13C-urea breath test (gold standard) 1
  • If truly H. pylori-negative with normal endoscopy, diagnose functional dyspepsia
  • Trial tricyclic antidepressant (amitriptyline 10 mg nightly, titrate to 30-50 mg) as second-line therapy 5, 6
  • Consider prokinetic therapy if dysmotility symptoms predominate 1, 5

If H. pylori-Negative Ulcer Found:

Continue high-dose PPI therapy (omeprazole 40 mg daily or equivalent) for 8 weeks for duodenal ulcer, 12 weeks for gastric ulcer 1. Investigate NSAID use, Zollinger-Ellison syndrome if recurrent.

Common Pitfalls to Avoid

  1. Do not assume H. pylori was successfully eradicated without confirmatory testing—treatment failure rates are 15-30% with standard regimens 3, 4

  2. Do not continue empirical PPI therapy indefinitely in this scenario—you're masking potential serious pathology and risking PPI-related complications (hypomagnesemia, B12 deficiency, increased infection risk) 7

  3. Do not obtain celiac serology after starting a gluten-free diet—it will be falsely negative

  4. Do not dismiss the malabsorption symptoms as "IBS"—the foul-smelling stools are a hard sign requiring investigation

  5. Do not delay endoscopy for gastric emptying studies or pH monitoring—these are not indicated in typical FD and won't change management at this stage 5

Timeline

Schedule endoscopy within 2-4 weeks. Order celiac serology and basic labs immediately. If endoscopy is delayed beyond 4 weeks, consider empirical trial of high-dose PPI (omeprazole 40 mg twice daily) while awaiting procedure 1, but this should not substitute for definitive diagnosis.

The halitosis may reflect H. pylori persistence, poor gastric emptying, or small bowel bacterial overgrowth—all of which will be clarified by the endoscopic evaluation and subsequent management.

Related Questions

In a 37-year-old man with 18‑lb unintentional weight loss over 15 months, chronic epigastric pain that worsens on an empty stomach, prior treated Helicobacter pylori infection, failure of proton‑pump inhibitor therapy, fatigue, occasional leg cramps, loose foul‑smelling stools, halitosis, recent cholecystectomy, prediabetes (A1c 5.5 %), vitamin D deficiency (30.6 ng/mL), and normal abdominal CT and ultrasound, what diagnostic evaluation and management are recommended?
In a 37-year-old man with persistent epigastric pain despite Helicobacter pylori eradication and a proton pump inhibitor trial, does worsening pain after eating sweets constitute a red‑flag sign requiring further diagnostic evaluation?
Should patients discontinue proton pump inhibitors and H2‑receptor antagonists before an esophagogastroduodenoscopy when testing for Helicobacter pylori?
What are the first‑line and second‑line treatment regimens for Helicobacter pylori infection in adults?
What is the appropriate treatment regimen for Helicobacter pylori gastritis?
For how many months can melatonin be safely used to treat insomnia?
When is metformin contraindicated in the management of diabetes mellitus?
Should a patient be diagnosed with panic disorder if they do not meet at least four DSM‑5 panic‑attack criteria, despite a Panic Disorder Severity Scale (PDSS) score of 28?
A female patient reports increased anxiety after starting lamotrigine 50 mg daily for three weeks; is this a side effect and how should it be managed?
What are examples of medications commonly prescribed on an every‑8‑hour (q8hr) schedule?
Which clinician is responsible for managing a fracture of the proximal humerus at the surgical neck?

Professional Medical Disclaimer

This information is intended for healthcare professionals. Any medical decision-making should rely on clinical judgment and independently verified information. The content provided herein does not replace professional discretion and should be considered supplementary to established clinical guidelines. Healthcare providers should verify all information against primary literature and current practice standards before application in patient care. Dr.Oracle assumes no liability for clinical decisions based on this content.

Have a follow-up question?

Our Medical A.I. is used by practicing medical doctors at top research institutions around the world. Ask any follow up question and get world-class guideline-backed answers instantly.