Most Likely Diagnosis and Pre-Endoscopy Management
You most likely have gastroparesis or severe gastric dysmotility causing delayed gastric emptying, superimposed on gastroesophageal reflux disease (GERD), and you require immediate upper endoscopy given your alarm symptoms of recurrent vomiting of undigested food and iron-deficiency anemia. 1
Immediate Diagnostic Studies Required Before Endoscopy
Upper Endoscopy (EGD) – Urgent Priority
Your presentation meets multiple red-flag criteria mandating immediate endoscopy: 1
- Recurrent vomiting (persistent vomiting may indicate obstruction, severe esophagitis, or other significant pathology) 1
- Iron-deficiency anemia (may indicate chronic blood loss from GERD complications, including erosive esophagitis or malignancy) 1
- Vomiting undigested food 4–7 hours after eating strongly suggests gastric outlet obstruction or severe gastroparesis 1
Do not delay endoscopy for further PPI trials – the presence of alarm symptoms means you proceed directly to EGD regardless of GERD symptom duration or PPI response 1
Additional Pre-Endoscopy Testing
- Complete blood count with iron studies to quantify the severity of your documented iron-deficiency anemia 1
- Metabolic panel to assess for electrolyte abnormalities from recurrent vomiting 2
- Thyroid function tests (TSH, free T4) because hypothyroidism can cause gastroparesis-like symptoms and constipation 3
- Hemoglobin A1c to screen for diabetes, the most common cause of gastroparesis in adults 3
Post-Endoscopy Diagnostic Studies
If Endoscopy Shows Erosive Esophagitis or Bile
- Repeat endoscopy after 8 weeks of twice-daily PPI therapy is mandatory to assess healing, exclude Barrett's esophagus, and evaluate ongoing bile reflux 4
If Endoscopy is Normal or Shows Only Mild Findings
- High-resolution esophageal manometry to exclude achalasia, esophageal spasm, or other motility disorders that can mimic GERD and cause dysphagia 5
- Gastric emptying scintigraphy (4-hour solid-phase study) to objectively confirm gastroparesis, given your pattern of vomiting undigested food hours after eating 3
- Ambulatory 48–96 hour wireless pH monitoring off PPI to confirm pathologic acid reflux if symptoms persist despite normal endoscopy 4, 5
Initial Medical Therapy to Start Now
Proton Pump Inhibitor – Twice Daily Dosing
Start pantoprazole 40 mg twice daily, taken 30–60 minutes before breakfast and dinner 6, 1, 4
Twice-daily PPI therapy is indicated immediately because: 6, 4
- You have severe symptoms (nighttime regurgitation, choking on acid)
- Standard once-daily dosing has implicitly failed (your symptoms are severe and progressive)
- PPIs are more effective than H2-receptor antagonists, which are more effective than placebo for healing erosive esophagitis 6
Continue this regimen for a full 8 weeks before reassessing 6, 1
Prokinetic Agent – Avoid Metoclopramide
- Do not use metoclopramide – it is specifically recommended against as monotherapy or adjunctive therapy in GERD patients due to poor efficacy and significant risk of tardive dyskinesia 6
- No other prokinetic agents are FDA-approved for gastroparesis in the United States; this will need specialist gastroenterology input after endoscopy 3
Lifestyle Modifications – Implement Immediately
- Eat 5–6 small meals per day (4–6 ounces per meal maximum) rather than 2–3 larger meals 4
- Avoid lying down for at least 3–4 hours after eating (you've already identified this threshold) 6, 4
- Eliminate high-fat foods, barbecue, and charred foods that you've identified as triggers 7
- Avoid late-night meals entirely 6, 4
- Elevate the head of your bed by 6–8 inches using blocks under the bed frame (not just pillows) 6
- Sleep on your left side when possible, as this reduces reflux episodes 4
Weight management: 6
- If your BMI is elevated, weight loss should be advised as it improves GERD outcomes 6
Critical Clinical Reasoning
Why Gastroparesis is the Leading Diagnosis
Your symptom constellation is pathognomonic for delayed gastric emptying: 3
- Lifelong weak hunger cues and early satiety
- Chronic constipation and bloating (suggesting pan-enteric dysmotility)
- Vomiting undigested food 4–7 hours after eating
- Dramatic symptom improvement with stimulants (caffeine, lisdexamfetamine)
- Symptom threshold directly proportional to meal volume (>7–8 oz triggers symptoms)
The caffeine and Vyvanse response is particularly telling: 8
- While caffeine increases gastric acid secretion, it also enhances gastric motility 8
- Lisdexamfetamine (a sympathomimetic) likely improved gastric emptying through adrenergic stimulation 3
- Your symptom relief with these agents suggests the primary problem is motility, not just acid 8
Why GERD is Secondary but Severe
- Your GERD symptoms dramatically worsened in late October 2024 when you reduced caffeine, suggesting that impaired gastric emptying led to increased gastric distention and reflux 2, 8
- The pattern of nighttime regurgitation of undigested food is classic for gastroparesis-induced reflux 2
- Your chronic belching (dry, watery, and food-tasting) represents both aerophagia and reflux, commonly seen in functional GI disorders 9
The Respiratory-GI Connection
- Your resolved "cough-variant asthma" that worsened when lying down and improved with GI symptom resolution was almost certainly reflux-induced laryngospasm and bronchospasm, not primary lung disease 6
- This is a well-recognized extraesophageal manifestation of GERD 6, 2
Common Pitfalls to Avoid
Do not continue empiric PPI therapy beyond 8 weeks without endoscopy – you have already met criteria for urgent endoscopy due to alarm symptoms 1, 5
Do not assume your symptoms are purely psychiatric – while anxiety can worsen functional GI disorders, your objective findings (anemia, constipation on X-ray, dramatic response to prokinetic agents) indicate organic pathology 6, 3
Do not restart high-dose caffeine as a treatment strategy – while it temporarily improved your symptoms, chronic high caffeine intake can worsen GERD through increased acid secretion and should not replace appropriate medical therapy 8
Do not delay endoscopy to trial dietary changes alone – your alarm symptoms (recurrent vomiting, anemia) mandate immediate endoscopic evaluation regardless of symptom response to conservative measures 1
Expected Endoscopy Findings and Next Steps
If endoscopy shows erosive esophagitis (likely): 10
- Continue twice-daily PPI for 8 weeks, then repeat endoscopy to confirm healing and exclude Barrett's esophagus 1, 4
- Proceed with gastric emptying study to confirm gastroparesis 3
If endoscopy shows bile reflux or severe esophagitis: 4
- Mandatory repeat endoscopy at 8 weeks on PPI therapy 4
- Consider pH-impedance monitoring to quantify bile reflux episodes 4
- Surgical consultation may be needed if medical therapy fails 4, 5
If endoscopy is normal (less likely given your alarm symptoms): 1, 5