What is the appropriate evaluation and management of epigastric pain in a patient with diabetes (and in non‑diabetic patients) who does not respond to standard proton‑pump inhibitor (PPI) therapy?

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: July 16, 2026 • View editorial policy

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.

Epigastric Pain Not Responding to PPI Therapy

Patients with epigastric pain failing PPI therapy should undergo upper endoscopy with biopsies to exclude structural disease, followed by H. pylori testing if not already done, and consideration of alternative diagnoses including functional dyspepsia, eosinophilic esophagitis, and gastroparesis—with the approach being identical for both diabetic and non-diabetic patients.

Initial Assessment and PPI Optimization

Before proceeding to invasive testing, confirm that the patient has truly failed adequate PPI therapy. Patients should be on twice-daily PPI dosing (e.g., omeprazole 20 mg twice daily) for 4-8 weeks before being considered treatment failures 1. This is critical because most clinical trial data supports once-daily dosing, yet expert consensus strongly recommends twice-daily dosing for refractory symptoms based on pharmacodynamic principles 1.

Verify:

  • Compliance: Is the patient actually taking the medication?
  • Timing: PPIs should be taken 30-60 minutes before meals for optimal effect
  • Duration: Has the patient completed at least 4-8 weeks of twice-daily therapy?

Consider switching to an alternative PPI if side effects (headache, diarrhea, constipation, abdominal pain) are limiting adherence 1.

Diagnostic Pathway After PPI Failure

Step 1: Upper Endoscopy with Biopsies (Grade B Recommendation)

Endoscopy is recommended for all patients with suspected GERD or dyspepsia who have not responded to twice-daily PPI therapy 1. This is the single most important diagnostic test.

During endoscopy, obtain biopsies targeting:

  • Any areas of suspected metaplasia, dysplasia, or malignancy
  • Normal-appearing mucosa (at least 5 samples) to evaluate for eosinophilic esophagitis, which can present identically to PPI-refractory GERD 2
  • Gastric biopsies for H. pylori if not previously tested

Key finding: In one study of 275 patients with PPI-refractory symptoms, multimodality evaluation changed the diagnosis in 34.5% of cases, with eosinophilic esophagitis found in 5.5% and other structural abnormalities in many others 3.

Step 2: H. Pylori Testing and Eradication

If not previously done, test for H. pylori using:

  • 13C-urea breath test (preferred)
  • Stool antigen test
  • Gastric biopsies during endoscopy 4, 5

Eradicate H. pylori if positive, even though many infected patients with functional dyspepsia will not gain symptomatic benefit. The rationale is eliminating future peptic ulcer mortality risk 4.

Step 3: Consider Esophageal Manometry (if endoscopy normal)

Manometry should be performed in patients with normal endoscopy findings 1. This serves to:

  • Localize the lower esophageal sphincter for potential pH monitoring
  • Evaluate peristaltic function
  • Diagnose major motor disorders (achalasia was found in 2.5% of PPI-refractory patients in one series) 3

High-resolution manometry has superior sensitivity for recognizing atypical presentations of achalasia and esophageal spasm 1.

Step 4: Ambulatory pH or Impedance-pH Monitoring

For patients with normal endoscopy and no major motility abnormality, perform ambulatory reflux testing OFF PPI therapy (withheld for 7 days) 1. This determines whether pathologic acid reflux is even present.

Options include:

  • Wireless pH monitoring (48-hour recording, superior sensitivity) 1
  • Catheter-based pH monitoring
  • Combined impedance-pH monitoring

Critical finding: In PPI-refractory patients, 40% had true nonerosive reflux disease (pathologic acid on pH testing), but 16% had functional heartburn with normal pH studies 3.

Management Based on Findings

If Structural Disease Found on Endoscopy:

  • Erosive esophagitis: Continue high-dose PPI, consider adding H2-receptor antagonist at bedtime
  • Eosinophilic esophagitis: Initiate dietary elimination therapy or swallowed topical corticosteroids 2
  • Peptic ulcer disease: Ensure H. pylori eradication, discontinue NSAIDs if possible

If Endoscopy Normal but Abnormal Acid Reflux on pH Testing:

This represents true PPI-refractory GERD. Options include:

  • Baclofen to reduce transient lower esophageal sphincter relaxations 6, 7
  • Consider antireflux surgery or endoscopic procedures (only with documented abnormal acid reflux) 6

If Normal Endoscopy and Normal pH Testing (Functional Heartburn):

More than 50% of PPI-refractory patients fall into this category 6. Management includes:

  • Discontinue PPI (no acid-related pathology present)
  • Tricyclic antidepressants (e.g., amitriptyline 10-25 mg at bedtime, titrate up) as pain modulators 8, 6
  • Consider prokinetic agents if dysmotility symptoms predominate 4
  • Behavioral interventions, acupuncture, or hypnotherapy 6

If Dysmotility Found:

  • Gastroparesis: Dietary modifications, prokinetic agents (metoclopramide with caution due to side effects)
  • Achalasia: Refer for pneumatic dilation or surgical myotomy

Special Considerations for Diabetes

The diagnostic and management approach is identical for diabetic and non-diabetic patients—the guidelines do not differentiate based on diabetes status [4-9]. However, be aware that:

  • Diabetic patients may have gastroparesis contributing to symptoms (found in 5.8% of PPI-refractory patients) 3
  • Consider gastric emptying scintigraphy if symptoms suggest delayed gastric emptying (early satiety, postprandial fullness, nausea)
  • Recent observational data suggest PPI use may be associated with increased cardiovascular risk and diabetes complications, though causality is unproven 10, 11. This should not alter acute management but supports avoiding unnecessary long-term PPI use

Common Pitfalls to Avoid

  1. Assuming all epigastric pain is acid-related: Up to 40% of PPI-refractory patients have functional heartburn with no acid pathology 3, 6

  2. Continuing to escalate PPI doses indefinitely: Twice-daily PPI is the reasonable upper limit; further escalation lacks evidence 1

  3. Missing eosinophilic esophagitis: This requires biopsies of normal-appearing mucosa and can present identically to GERD 2

  4. Performing antireflux surgery without objective evidence of pathologic reflux: Surgery should be limited to patients with abnormal pH testing 6

  5. Not considering overlap diagnoses: 67% of eosinophilic esophagitis patients and 75% of gastroparesis patients had concomitant pathologic acid reflux 3

References

Research

Multimodality evaluation of patients with gastroesophageal reflux disease symptoms who have failed empiric proton pump inhibitor therapy.

Diseases of the esophagus : official journal of the International Society for Diseases of the Esophagus, 2013

Research

Step-by-step management of refractory gastresophageal reflux disease.

Diseases of the esophagus : official journal of the International Society for Diseases of the Esophagus, 2013

Research

ACG and CAG Clinical Guideline: Management of Dyspepsia.

The American journal of gastroenterology, 2017

Guideline

acr appropriateness criteria® epigastric pain.

Journal of the American College of Radiology, 2021

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.