NUTR-310 · Lesson 9 of 12 · 21 min

Disorders of the upper gastrointestinal tract

▶ Video coming soon A video version of this lesson is on the way.

Lucia Bernardi, 47, had lived with heartburn for years, treating it with antacids she kept in her desk, her car and her purse. When it began waking her at night and a piece of steak seemed to stick in her chest, her physician referred her for an endoscopy, which showed inflammation of the lower esophagus, and to a dietitian. Lucia expected a long list of forbidden foods. Instead, the dietitian asked when her symptoms happened and what she had noticed. Together they found the pattern: a large dinner at 9 p.m. after her evening class, followed by bed an hour later, two glasses of wine most nights, and tight waistbands at work. Moving dinner earlier, eating a smaller evening meal, raising the head of her bed and cutting back on wine did more than any food list. Coffee and tomatoes, which she had given up on the advice of a friend, turned out not to bother her at all.

The upper gastrointestinal tract, from the mouth to the duodenum, prepares food for digestion and controls the rate at which it enters the small intestine. Disorders here affect what and how much people can eat, and some cause malnutrition. This lesson covers the nutrition care of common disorders of the mouth and esophagus, including gastroesophageal reflux disease and eosinophilic esophagitis, disorders of the stomach, including dyspepsia, peptic ulcer disease and gastroparesis, nausea and vomiting, and nutrition after gastric surgery.

A simplified diagram of the upper gastrointestinal tract: mouth, esophagus, lower esophageal sphincter, stomach, pylorus and duodenum. Labels point to disorders at each site: dry mouth and mouth sores at the mouth; reflux disease and eosinophilic esophagitis at the esophagus; reflux at the lower esophageal sphincter; dyspepsia, peptic ulcer and gastroparesis at the stomach; peptic ulcer at the duodenum.
Figure 1. The upper gastrointestinal tract and the disorders covered in this lesson.

The mouth

Eating begins with chewing and swallowing, and problems in the mouth can reduce intake quickly. Poor dentition or ill-fitting dentures limit food choices, often toward soft, refined foods. Dry mouth (xerostomia), common with many medications, radiation to the head and neck, and Sjögren syndrome, makes chewing, swallowing and tasting difficult; moist foods, sauces and gravies, sipping water with meals, and sugar-free gum or lozenges to stimulate saliva help. Mouth sores and mucositis, for example during cancer treatment, make eating painful; soft, cool, non-acidic, non-spicy foods and good oral care are used, and cancer-related care is covered in NUTR-311 Medical Nutrition Therapy II. Dysphagia, discussed in Lesson 2, may begin in the mouth or throat (oropharyngeal dysphagia) or in the esophagus.

Gastroesophageal reflux disease

Gastroesophageal reflux, the backflow of stomach contents into the esophagus, happens to everyone occasionally. Gastroesophageal reflux disease (GERD) is diagnosed when reflux causes troublesome symptoms, such as heartburn and regurgitation, or complications, such as erosive esophagitis, strictures or Barrett’s esophagus, a change in the esophageal lining that increases the risk of adenocarcinoma. Reflux occurs when the lower esophageal sphincter relaxes inappropriately or is weak, when a hiatal hernia displaces the junction between esophagus and stomach, when pressure in the abdomen is high, or when the stomach empties slowly.

Medical treatment usually involves acid suppression with proton pump inhibitors (PPIs) or other acid-reducing medications, prescribed by the physician, and sometimes surgery. Diet and lifestyle measures are an important part of care, but the evidence supports fewer of them than traditional advice suggests. The American College of Gastroenterology (ACG) 2022 guideline on GERD recommends weight loss for people with overweight or obesity, avoiding meals within two to three hours of lying down, raising the head of the bed for people with night-time symptoms, stopping tobacco, and avoiding foods that trigger symptoms in that individual. Canadian gastroenterology guidance takes a similar approach.

Table 1. Diet and lifestyle measures for GERD
MeasureEvidence and rationale
Weight loss if overweight or obeseStrongest evidence; reduces abdominal pressure and reflux episodes
No meals 2 to 3 hours before lying downReduces night-time reflux
Raise the head of the bed (blocks or a wedge)Helps night-time symptoms; extra pillows alone bend the body and work less well
Smaller mealsLess gastric distension and fewer sphincter relaxations
Avoid individual triggersCommon reported triggers include fatty meals, chocolate, mint, alcohol, coffee, citrus, tomato and spicy foods, but responses vary and blanket avoidance is not needed
Stop smoking; limit alcoholBoth lower sphincter pressure and harm the esophageal lining

The key message is individualization. Long lists of forbidden foods reduce diet quality and enjoyment without helping most people. A symptom diary, recording food, timing, posture and symptoms for a week or two, helps people like Lucia identify their own triggers. Avoiding tight clothing around the waist and managing constipation, which raises abdominal pressure, may also help.

Long-term acid suppression and nutrients

PPIs are among the most widely used medications, and many people take them for years. Stomach acid helps release vitamin B12 from food proteins and improves absorption of non-heme iron and calcium carbonate, so long-term PPI use is associated with lower B12 status and, less consistently, with iron deficiency, low magnesium and reduced calcium absorption. Dietitians watch for these in people on long-term acid suppression, particularly older adults, and share concerns with the prescriber, who decides whether the medication is still needed.

Eosinophilic esophagitis

Eosinophilic esophagitis (EoE) is a chronic immune-mediated disease in which eosinophils, a type of white blood cell, infiltrate the esophagus, usually triggered by food antigens. It causes difficulty swallowing and food sticking (food impaction) in adults and feeding difficulties, vomiting and poor growth in children. Its incidence has risen in recent decades, and it often occurs in people with other allergic conditions. Diagnosis requires endoscopy with biopsies showing eosinophils. EoE is a non-IgE food reaction, so skin prick and blood allergy tests do not reliably identify the trigger foods (Lesson 11).

Treatment options include acid suppression, swallowed topical corticosteroids, biologic medications and dietary therapy. Elimination diets remove the most common triggers, then reintroduce foods one at a time with repeat endoscopy to identify which cause disease. In adults, the most common triggers are milk, wheat, egg and soy, followed by nuts, fish and shellfish. Approaches include the six-food elimination diet (milk, wheat, egg, soy, nuts and seafood), a four-food diet (milk, wheat, egg and soy), stepwise “step-up” diets that start with milk alone or milk and wheat, and, rarely, an elemental diet of amino acid formula, which is highly effective but hard to follow. A 2020 guideline from the American Gastroenterological Association and the Joint Task Force on Allergy-Immunology Practice Parameters recognized these options. Because elimination diets are restrictive and require several endoscopies, they need careful dietitian support to maintain nutritional adequacy and quality of life, and the choice between diet and medication is shared with the person.

Dyspepsia and peptic ulcer disease

Dyspepsia describes upper abdominal pain or burning, early fullness or uncomfortable fullness after meals. Most people with dyspepsia have functional dyspepsia, with no structural cause found on investigation; others have peptic ulcers, gastritis or, rarely, cancer. Small, regular meals, limiting high-fat meals, which slow gastric emptying, and identifying personal triggers can help functional dyspepsia; there is no single evidence-based diet.

Peptic ulcers are breaks in the lining of the stomach or duodenum. The two main causes are infection with Helicobacter pylori and use of nonsteroidal anti-inflammatory drugs (NSAIDs) such as ibuprofen and acetylsalicylic acid. Treatment eradicates H. pylori with a combination of medications, stops or reduces NSAIDs, and suppresses acid. The old bland diet of milk and cream, once a standard treatment, does not heal ulcers, and milk can stimulate acid secretion. Today, people with ulcers are advised to eat a normal, varied diet, avoid foods that worsen their symptoms, limit alcohol and stop smoking. Bleeding ulcers can cause iron deficiency anemia, which needs attention to iron status. In a person with an acute upper gastrointestinal bleed, the team decides when eating can resume, often within a day for lower-risk bleeds.

Gastroparesis

Gastroparesis is delayed emptying of the stomach without a mechanical blockage. The most common causes are diabetes, through damage to the vagus nerve and the stomach’s pacemaker cells, previous surgery and unknown (idiopathic) causes; some medications, including GLP-1-based medications and opioids, also slow emptying. Symptoms include nausea, vomiting, early fullness, bloating and upper abdominal pain, and in diabetes, unpredictable glucose because food reaches the intestine at irregular times. Severe gastroparesis can cause weight loss, dehydration and malnutrition.

Diet is first-line treatment. The ACG 2022 guideline on gastroparesis recommends a diet of small particle size, based on trial evidence that it reduces symptoms. Practical strategies include the following.

  • Small, frequent meals, such as five or six a day, rather than three large ones.
  • Small particle size: well-cooked, soft or puréed foods, chewed thoroughly.
  • Less insoluble fiber and tough skins, such as raw vegetables, corn, popcorn, nuts and fruit skins, which empty slowly and can form bezoars, compact masses in the stomach.
  • Moderate fat, mainly from liquids if tolerated, since fat in solid foods slows emptying, while fat in liquids is often tolerated better.
  • Liquid calories when solids are poorly tolerated, because liquids empty from the stomach more easily; smoothies, soups and oral nutrition supplements help.
  • Staying upright after meals and taking a gentle walk.

For people with diabetes, good glucose control matters because high glucose itself slows emptying, and insulin timing may need adjustment by the diabetes team so that it matches delayed absorption. When oral intake cannot maintain nutrition despite these measures, enteral feeding into the jejunum, bypassing the stomach, may be considered by the clinical team. Medications that speed emptying or control nausea are prescribed by the physician.

Worked problem

Adapting a meal plan for gastroparesis

Kevin, 41, has type 1 diabetes and gastroparesis. He eats three large meals including big salads with raw vegetables, steak and corn on the cob, and has nausea, early fullness and glucose that swings from 3.5 to 16 mmol/L [63 to 288 mg/dL]. He has lost 4 kg in two months. Plan changes.

Show solution
  1. Meal pattern: change to five or six small meals and snacks a day.
  2. Particle size and fiber: replace raw salads with well-cooked or puréed vegetables and vegetable soups; peel fruit or use canned fruit; avoid corn, nuts and tough skins.
  3. Protein: use tender, minced or ground meats, fish, eggs, tofu and dairy instead of steak.
  4. Liquids: add a smoothie or oral nutrition supplement when solids are poorly tolerated, counting its carbohydrate.
  5. Diabetes coordination: share the new meal pattern with the diabetes team so insulin timing and doses can be adjusted to slower absorption; use CGM data to review.
  6. Monitor: weight, symptoms, intake, glucose patterns; escalate to the team if weight loss continues.

Answer: Smaller, more frequent meals with small particle size, low insoluble fiber, soft proteins and liquid nutrition, coordinated with diabetes care, address his symptoms, intake and glucose swings.

Nausea and vomiting

Nausea and vomiting have many causes, including infections, medications, pregnancy (covered in NUTR-230 Nutrition Across the Life Cycle), gastroparesis, bowel obstruction, cancer treatment and metabolic disorders. Nutrition strategies complement medical treatment: small, frequent, dry and bland foods such as crackers and toast; cold or room-temperature foods, which have less odor; sipping fluids between rather than with meals; avoiding greasy, very sweet or strongly seasoned foods; and resting upright after eating. Persistent vomiting causes dehydration and losses of potassium, chloride and hydrogen ions, which can lead to metabolic alkalosis, and prolonged vomiting with poor intake can cause thiamin deficiency, so it needs medical assessment. Oral rehydration solutions, containing balanced glucose and electrolytes, replace fluid losses better than plain water or sugary drinks.

Nutrition after gastric surgery

Partial or total gastrectomy, performed for stomach cancer, some ulcers and other conditions, as well as bariatric procedures (Lesson 3), changes how food is handled. Loss of stomach capacity causes early fullness; loss of the pyloric valve or a bypass allows food to enter the small intestine rapidly, causing dumping syndrome; and loss of acid and intrinsic factor impairs absorption of vitamin B12, iron and calcium. After total gastrectomy, people cannot absorb oral vitamin B12 normally and need lifelong replacement arranged by the medical team.

Nutrition principles after gastric surgery include small, frequent meals; protein at each meal; limiting concentrated sugars and sweet drinks to prevent dumping; drinking fluids between rather than with meals; adding soluble fiber, which slows transit; and monitoring weight, B12, iron, folate, vitamin D and calcium. Many people lose weight after gastrectomy, so energy-dense foods and supplements may be needed, in contrast with bariatric surgery, where weight loss is the goal.

Putting it together

Across upper gastrointestinal disorders, a few themes recur. Symptoms, not diagnoses alone, guide the plan, and a symptom diary is often the most useful tool. Restrictive diets should be justified by evidence or by the individual’s response, because they reduce enjoyment and nutritional adequacy. Meal size, timing, texture and posture often matter more than specific foods. And people with upper gastrointestinal disease are at risk of malnutrition, so screening with tools such as the CNST or MUST and assessment with the GLIM criteria are part of every plan.

Common mistakes

  • MistakeEveryone with GERD should avoid coffee, chocolate, citrus, tomatoes and spicy foods.

    InsteadAvoid individual triggers identified by symptoms; weight loss, meal timing and raising the head of the bed have stronger evidence.

  • MistakeA bland, milk-based diet heals peptic ulcers.

    InsteadUlcers heal with H. pylori eradication, stopping NSAIDs and acid suppression; a normal varied diet is appropriate.

  • MistakeAllergy blood tests identify the trigger foods in eosinophilic esophagitis.

    InsteadEoE is non-IgE-mediated; triggers are identified by elimination and reintroduction with repeat endoscopy.

  • MistakeHigh-fiber raw vegetables are ideal in gastroparesis.

    InsteadSmall particle size and low insoluble fiber reduce symptoms and bezoar risk.

  • MistakeLong-term PPI use has no nutritional effects.

    InsteadIt can lower vitamin B12 status and is associated with low magnesium and iron.

Summary and key terms

  • Dry mouth, poor dentition and mouth sores reduce intake and need texture and moisture adjustments.
  • For GERD, the ACG 2022 guideline supports weight loss, avoiding meals 2 to 3 hours before lying down, raising the head of the bed and avoiding individual triggers.
  • Long-term PPI use can reduce vitamin B12 status and is linked to low magnesium and iron.
  • Eosinophilic esophagitis is treated with medications or elimination diets (six-food, four-food or step-up), confirmed by repeat endoscopy.
  • Peptic ulcers result mainly from H. pylori and NSAIDs; bland diets are not needed.
  • Gastroparesis responds to small, frequent meals of small particle size, low insoluble fiber, moderate fat and liquid nutrition, with glucose control in diabetes.
  • After gastric surgery, small meals, protein, limited sugars, separating fluids from meals and monitoring B12, iron and other micronutrients are key.
Xerostomia
Dry mouth from reduced saliva.
Gastroesophageal reflux disease
Reflux of stomach contents causing troublesome symptoms or complications.
Barrett’s esophagus
A change in the lining of the lower esophagus from chronic reflux that raises cancer risk.
Eosinophilic esophagitis
A chronic immune-mediated esophageal disease with eosinophil infiltration, often triggered by foods.
Functional dyspepsia
Chronic upper abdominal symptoms with no structural cause found.
Peptic ulcer
A break in the lining of the stomach or duodenum.
Helicobacter pylori
A bacterium that infects the stomach and is a main cause of peptic ulcers.
Gastroparesis
Delayed gastric emptying without mechanical obstruction.
Bezoar
A compact mass of undigested material in the stomach.

Practice problems

Work each problem on paper first, then reveal the answer to check.

  1. A man with night-time heartburn eats dinner at 10 p.m. and goes to bed at 11 p.m. on three pillows. What two changes would you suggest first?

    Show answer

    Eat dinner at least 2 to 3 hours before lying down, and raise the head of the bed with blocks or a wedge rather than extra pillows; if relevant, discuss weight loss and alcohol.

  2. Why are skin prick tests not used to guide diet in eosinophilic esophagitis?

    Show answer

    EoE is a non-IgE-mediated reaction, so IgE-based tests do not reliably identify triggers; elimination and reintroduction with endoscopy are used.

  3. Give three diet changes for a person with gastroparesis.

    Show answer

    Small, frequent meals; small particle size with well-cooked or puréed foods; less insoluble fiber and tough skins; moderate fat, mainly in liquids; liquid nutrition when solids are poorly tolerated.

  4. Which micronutrient needs lifelong replacement after total gastrectomy, and why?

    Show answer

    Vitamin B12, because intrinsic factor from the stomach is needed for its absorption.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz