PATH-210 · Lesson 10 of 12 · 26 min

Gastrointestinal and liver disorders

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

Raymond Castellanos, 56, vomits a large amount of bright red blood at home and collapses. In the emergency department his abdomen is swollen with fluid, the whites of his eyes are yellow, small spider-shaped blood vessels mark his chest and his spleen can be felt below the left ribs. He has drunk heavily for twenty years and was told five years ago that he had a "fatty liver". Endoscopy shows bleeding from swollen veins in the lower esophagus. Raymond's liver has passed through the stages of injury, inflammation and fibrosis described in lesson 2, and its scarring has raised the pressure in the portal venous system, producing almost every one of his findings.

The digestive system is a long tube with accessory organs, the liver, gallbladder and pancreas, that together digest and absorb food, defend against microbes and toxins swallowed with it, and process absorbed nutrients and drugs. This lesson covers disorders of the esophagus and stomach, inflammatory and other bowel diseases, the pancreas and biliary tract, and the liver, ending with cirrhosis and portal hypertension.

Gastroesophageal reflux disease

Gastroesophageal reflux disease (GERD) occurs when reflux of stomach contents into the esophagus causes troublesome symptoms or complications. The lower esophageal sphincter normally prevents reflux; it fails through transient relaxations unrelated to swallowing, low resting pressure, or a hiatal hernia, in which part of the stomach slides up through the diaphragm and loses the support of the diaphragmatic crura. Obesity, pregnancy, large fatty meals, lying down after eating, smoking and some drugs increase reflux. Acid and pepsin injure the squamous epithelium, causing heartburn, regurgitation and sometimes chest pain, chronic cough or hoarseness.

Persistent injury causes inflammation and erosions (esophagitis), and healing by fibrosis can narrow the esophagus (stricture), causing difficulty swallowing. In some people, the squamous lining is replaced by intestinal-type columnar epithelium, the metaplasia called Barrett esophagus (lesson 1). Barrett esophagus can progress through dysplasia to adenocarcinoma of the esophagus, so it is monitored by endoscopy.

Peptic ulcer disease and gastritis

The stomach lining protects itself from acid and pepsin with a layer of mucus and bicarbonate, tight junctions between cells, rapid renewal of epithelium and a rich blood supply, all supported by prostaglandins. A peptic ulcer is a break in the mucosa of the stomach or duodenum extending through the muscularis mucosae, and it forms when aggressive factors overwhelm these defenses.

The two dominant causes are infection with Helicobacter pylori and use of nonsteroidal anti-inflammatory drugs (NSAIDs), including aspirin. H. pylori is a spiral bacterium that survives in the stomach by producing urease, which converts urea to ammonia and buffers the acid around it. It causes chronic gastritis; depending on where it settles, it can increase acid secretion (favoring duodenal ulcers) or damage acid-secreting mucosa (favoring gastric ulcers, atrophic gastritis and, over decades, gastric cancer and a gastric lymphoma, lesson 5). NSAIDs block cyclooxygenase and so remove the protective prostaglandins, and they also injure the mucosa directly. Smoking, alcohol, glucocorticoids combined with NSAIDs, severe physiologic stress in critical illness and, rarely, acid-secreting tumors also contribute.

Ulcers cause burning epigastric pain, which in duodenal ulcers classically improves with eating and recurs hours later, although many ulcers, especially those caused by NSAIDs in older adults, are painless until a complication occurs. Complications are bleeding, the most common, causing vomiting of blood or black tarry stools (melena); perforation, which spills gastric contents into the peritoneum and causes sudden severe pain and a rigid abdomen; and obstruction of the gastric outlet by swelling or scarring. Eradicating H. pylori with antibiotics and acid suppression cures most H. pylori ulcers and prevents recurrence.

Inflammatory bowel disease

Inflammatory bowel disease (IBD) comprises two chronic, relapsing inflammatory disorders of the gut: Crohn disease and ulcerative colitis. Both are thought to result from an inappropriate immune response to the gut's own bacteria in genetically susceptible people, with environmental triggers. Variants in genes affecting bacterial sensing (such as NOD2) and the epithelial barrier increase risk. Canada has one of the highest rates of IBD in the world, and rates are rising in many countries as they industrialize, which points to environmental factors such as diet and early-life microbial exposure.

Table 1. Crohn disease and ulcerative colitis compared.
FeatureCrohn diseaseUlcerative colitis
LocationAnywhere from mouth to anus; terminal ileum most oftenColon only, starting in the rectum
DistributionSkip lesions with normal bowel betweenContinuous from the rectum upward
DepthTransmural (full thickness)Mucosa and submucosa
Characteristic featuresGranulomas, fistulas, strictures, cobblestone mucosaBloody diarrhea, crypt abscesses, pseudopolyps
ComplicationsObstruction, fistulas, abscesses, malabsorption, vitamin B12 deficiencySevere bleeding, toxic megacolon, colorectal cancer risk
SmokingIncreases risk and worsens diseaseAssociated with lower risk

Crohn disease can affect any part of the gut, most often the terminal ileum and colon, in patches separated by normal bowel. Inflammation extends through the full thickness of the wall, often with granulomas, which explains its tendency to form fistulas (abnormal channels to other loops of bowel, the bladder, vagina or skin), abscesses and strictures from fibrosis. Involvement of the terminal ileum impairs absorption of vitamin B12 and bile salts (lesson 6). Symptoms include abdominal pain, diarrhea, weight loss and fatigue.

Ulcerative colitis is confined to the colon, beginning in the rectum and extending continuously upward. Inflammation is limited to the mucosa and submucosa, with ulcers and crypt abscesses. Its hallmark is bloody diarrhea with urgency. A severe attack can cause toxic megacolon, a dilated, inflamed colon at risk of perforation. Long-standing extensive colitis increases the risk of colorectal cancer, so surveillance colonoscopy is recommended. Both diseases have extraintestinal manifestations, including arthritis, inflammation of the eye, skin lesions and, especially with ulcerative colitis, primary sclerosing cholangitis, an inflammatory scarring of the bile ducts.

Other intestinal disorders

Celiac disease is an immune reaction to gluten, a protein in wheat, barley and rye, in people with particular HLA types (HLA-DQ2 or DQ8). The enzyme tissue transglutaminase modifies gluten peptides so that they bind strongly to these HLA molecules, triggering a T cell response that flattens the villi of the small intestine. Loss of absorptive surface causes malabsorption, with diarrhea, weight loss, iron deficiency anemia (iron is absorbed in the duodenum), osteoporosis and, in children, poor growth; many people have mild or atypical symptoms. Antibodies against tissue transglutaminase help diagnosis, and a strict gluten-free diet allows the villi to recover.

Diverticular disease is common in older adults in North America. Increased pressure within the colon, associated with low-fiber diets, pushes the mucosa out through weak points in the wall where blood vessels penetrate, forming pouches called diverticula, most often in the sigmoid colon. Most cause no symptoms; inflammation (diverticulitis) causes left lower abdominal pain and fever and can lead to abscess or perforation, and diverticula are a common source of painless lower gastrointestinal bleeding.

Acute appendicitis usually begins with obstruction of the appendix lumen, after which bacteria multiply, the wall becomes inflamed and its blood supply is compromised. Pain typically starts around the umbilicus, because the appendix shares visceral nerve supply with the midgut, then moves to the right lower abdomen when inflammation reaches the overlying parietal peritoneum, which is precisely innervated. Untreated, the appendix can perforate, causing peritonitis.

Bowel obstruction results from adhesions after previous surgery (the most common cause of small bowel obstruction), hernias, tumors (the most common cause of large bowel obstruction) and twisting of the bowel (volvulus). Gas and fluid accumulate above the blockage, causing distension, colicky pain and vomiting, and fluid sequestered in the bowel causes hypovolemia (lesson 3). If pressure compromises the blood supply, the bowel becomes ischemic and can perforate, a surgical emergency.

The pancreas and biliary tract

Gallstones form in the gallbladder when bile becomes supersaturated with cholesterol, or, less often, from excess bilirubin in hemolytic disease (pigment stones, lesson 6). Risk factors for cholesterol stones include female sex, pregnancy, obesity, rapid weight loss and older age. Most gallstones cause no symptoms. A stone that blocks the cystic duct temporarily causes biliary colic, a steady pain in the right upper abdomen after fatty meals; persistent blockage causes acute cholecystitis, with inflammation, fever and tenderness. A stone that passes into the common bile duct can block bile flow, causing jaundice and, if bacteria multiply above it, ascending cholangitis, a serious infection that can lead to sepsis. A stone lodged where the bile duct meets the pancreatic duct can trigger acute pancreatitis.

Acute pancreatitis is inflammation of the pancreas caused by premature activation of digestive enzymes inside the gland. The two leading causes are gallstones and alcohol; others include very high triglycerides, high calcium, some drugs, trauma and endoscopic procedures on the pancreatic duct. Activated trypsin activates other enzymes, which digest the pancreas and surrounding fat (fat necrosis, lesson 2), damage blood vessels and trigger an intense inflammatory response. The typical presentation is severe, constant upper abdominal pain radiating to the back, with nausea and vomiting. Diagnosis usually rests on two of three findings: characteristic pain, serum lipase (or amylase) at least three times the upper limit of normal, and typical imaging findings. Most attacks are mild, but in severe pancreatitis inflammatory mediators enter the circulation, causing capillary leak with massive fluid sequestration, hypovolemia, hypocalcemia (as calcium is deposited in fat necrosis), ARDS (lesson 8), acute kidney injury, disseminated intravascular coagulation and multiple organ failure, the pathway explored in lesson 12.

Chronic pancreatitis, most often from long-term alcohol use, causes progressive fibrosis and loss of pancreatic tissue. Destruction of the exocrine pancreas causes malabsorption of fat, with pale, oily, foul-smelling stools (steatorrhea) and deficiency of fat-soluble vitamins; destruction of the islets causes diabetes. Chronic pain is common.

The liver

The liver performs hundreds of functions. It makes most plasma proteins, including albumin and the clotting factors; stores and releases glucose; makes and clears cholesterol and lipoproteins; makes bile; metabolizes and excretes bilirubin, hormones, drugs and toxins; converts ammonia from protein breakdown into urea; and contains macrophages (Kupffer cells) that filter bacteria from portal blood. Its blood supply is unusual: about three-quarters comes from the portal vein, carrying nutrient-rich blood from the gut and spleen, and the rest from the hepatic artery.

Liver tests reflect different aspects of liver health. Alanine aminotransferase (ALT) and aspartate aminotransferase (AST) are enzymes inside liver cells, released when the cells are injured. Alkaline phosphatase and gamma-glutamyl transferase rise with obstruction of bile flow. Bilirubin reflects the liver's ability to process and excrete bile pigment. Albumin and the INR reflect the liver's synthetic function, and they are the most important markers of how well the liver is actually working.

Jaundice

Jaundice is yellowing of the skin and sclerae caused by bilirubin, visible when the serum level is roughly two to three times the upper limit of normal. Bilirubin is made from the breakdown of heme. In its unconjugated form it is water-insoluble and travels bound to albumin to the liver, where it is conjugated with glucuronic acid, making it water-soluble, and excreted into bile.

Jaundice is classified by where the problem lies. Prehepatic jaundice results from excessive production, as in hemolysis (lesson 6); bilirubin is mostly unconjugated, and the urine is not dark because unconjugated bilirubin is not filtered by the kidney. Gilbert syndrome, a common harmless inherited reduction in conjugating enzyme activity, causes mild unconjugated jaundice during fasting or illness. Hepatic jaundice results from liver cell injury, as in hepatitis or cirrhosis, and affects both uptake and excretion, so both forms rise. Posthepatic, or obstructive, jaundice results from blockage of bile flow by gallstones, a tumor of the head of the pancreas or bile duct, or scarring of the ducts. Conjugated bilirubin backs up into the blood and is filtered by the kidneys, making the urine dark, while the stools become pale for lack of bile pigment; retained bile salts cause itching.

Hepatitis

Hepatitis means inflammation of the liver. Viral hepatitis is caused mainly by five unrelated viruses. Hepatitis A and E spread by the fecal-oral route, through contaminated food and water, and cause acute illness that does not become chronic in people with normal immunity, although hepatitis E can be severe in pregnancy. Hepatitis B spreads through blood, sexual contact and from mother to child at birth; most adults clear it, but infection in infancy usually becomes chronic. Hepatitis C spreads mainly through blood, most often now through shared drug-injection equipment, and becomes chronic in most people. Hepatitis D can infect only people who already have hepatitis B. Chronic hepatitis B and C cause years of low-grade inflammation and liver cell death and regeneration, leading to fibrosis, cirrhosis and hepatocellular carcinoma (lesson 5). Much of the injury is caused by the immune response to infected cells (lesson 4). Vaccines prevent hepatitis A and B, and direct-acting antiviral drugs now cure most people with hepatitis C.

Acute viral hepatitis causes fatigue, nausea, loss of appetite, right upper abdominal discomfort and jaundice, with very high ALT and AST. Other causes of hepatitis include drugs and toxins (acetaminophen overdose is a leading cause of acute liver failure in North America), autoimmune hepatitis and alcohol.

Fatty liver disease

Fat accumulates in liver cells (steatosis, lesson 1) when the supply of fatty acids, from diet, fat tissue and new synthesis, exceeds the liver's capacity to burn or export them. Alcohol is one cause: its metabolism generates an excess of NADH that shifts the liver toward fat synthesis and impairs fat oxidation, and its metabolite acetaldehyde is directly toxic. Alcohol-related liver disease progresses from steatosis to alcoholic hepatitis, with inflammation, liver cell death and jaundice, and then to cirrhosis.

In 2023, an international multisociety consensus replaced the term non-alcoholic fatty liver disease (NAFLD) with metabolic dysfunction-associated steatotic liver disease (MASLD), defined as steatosis with at least one cardiometabolic risk factor, such as excess weight or waist size, raised glucose or type 2 diabetes, high blood pressure, high triglycerides or low HDL cholesterol, in the absence of another cause. People with MASLD who also drink moderate amounts of alcohol are classified as having MetALD. The inflammatory form, previously called non-alcoholic steatohepatitis, is now metabolic dysfunction-associated steatohepatitis (MASH). MASLD is closely tied to insulin resistance (lesson 9), is now the most common chronic liver disease in Canada and the United States, and can progress through MASH and fibrosis to cirrhosis and liver cancer. The renaming aimed to describe the disease by its cause rather than by what it is not and to remove potentially stigmatizing language. Raymond Castellanos' "fatty liver" had both alcohol and metabolic contributors.

Cirrhosis and portal hypertension

Cirrhosis is the end stage of many chronic liver diseases. Chronic injury activates hepatic stellate cells, which transform into collagen-producing myofibroblasts under the influence of transforming growth factor beta (lesson 2). Bands of fibrosis divide the liver into nodules of regenerating liver cells that lack normal connections to blood vessels and bile ducts. The leading causes in North America are alcohol, MASLD, and chronic hepatitis C and B.

Cirrhosis has two sets of consequences. Loss of functioning liver cells causes liver failure: low albumin (contributing to edema and ascites), clotting factor deficiency with a raised INR and bleeding, jaundice, inability to clear ammonia and other toxins, and reduced metabolism of estrogen, causing spider angiomas, red palms and, in men, breast enlargement and testicular atrophy.

A diagram of cirrhosis and portal hypertension. A scarred liver raises resistance to portal flow. The raised portal pressure leads to: esophageal and gastric varices, which can bleed; splenomegaly with low platelets; ascites, aided by low albumin and sodium retention; caput medusae around the umbilicus; and portosystemic shunting, which allows ammonia and other toxins to bypass the liver, causing hepatic encephalopathy. Kidney failure from intense renal vasoconstriction (hepatorenal syndrome) is shown as a further consequence.
Figure 1. Cirrhosis raises resistance to portal blood flow; portal hypertension produces varices, splenomegaly, ascites and shunting.

Distortion of the liver's architecture also increases resistance to blood flow through it, causing portal hypertension. Stellate cells contract and blood vessels in the liver constrict, adding a reversible component. Meanwhile, blood vessels in the gut dilate, increasing portal inflow. The raised pressure forces blood through collateral channels that connect the portal and systemic veins, which become swollen and tortuous. At the lower esophagus and upper stomach these collaterals form varices, thin-walled veins that can rupture and bleed massively, as Raymond's did; variceal bleeding is a leading cause of death in cirrhosis. Collaterals around the umbilicus form a pattern called caput medusae, and rectal collaterals can also enlarge. Congestion of the spleen causes splenomegaly, which traps platelets and lowers the platelet count.

Ascites, fluid in the peritoneal cavity, results from a combination of raised portal pressure, low albumin and, crucially, salt and water retention by the kidneys. Dilation of the splanchnic arteries reduces the effective circulating volume, which activates the renin-angiotensin-aldosterone system, the sympathetic system and antidiuretic hormone, as in heart failure (lesson 7). The kidneys retain sodium and water, much of which leaks into the abdomen. Water retention also causes hyponatremia (lesson 3). Ascitic fluid can become infected without an obvious source, a condition called spontaneous bacterial peritonitis. In advanced cirrhosis, intense constriction of the kidneys' arteries can cause hepatorenal syndrome, a functional kidney failure with structurally normal kidneys.

Hepatic encephalopathy is a reversible disturbance of brain function caused by failure of the liver to clear ammonia and other substances absorbed from the gut, worsened by portosystemic shunting that carries them past the liver. Ammonia is converted to glutamine in brain astrocytes, which swell. Symptoms range from subtle changes in attention and sleep to confusion, a flapping tremor of the outstretched hands (asterixis) and coma. Episodes are often triggered by gastrointestinal bleeding (blood in the gut is a protein load that bacteria convert to ammonia), infection, constipation, dehydration, low potassium and sedatives. Treatment includes lactulose, which acidifies the colon and traps ammonia, and an antibiotic that reduces ammonia-producing bacteria.

Worked problem

Tracing the findings of decompensated cirrhosis

Link each of Raymond Castellanos' findings, vomiting blood, ascites, jaundice, spider angiomas and a palpable spleen, to its mechanism.

Show solution
  1. Vomiting blood: portal hypertension forced blood through portosystemic collaterals, forming esophageal varices that ruptured.
  2. Ascites: raised portal pressure and low albumin, together with renal sodium and water retention driven by the renin-angiotensin-aldosterone system responding to splanchnic vasodilation.
  3. Jaundice: failing liver cells cannot take up, conjugate and excrete bilirubin, so it accumulates in the blood (hepatic jaundice).
  4. Spider angiomas: the damaged liver metabolizes estrogen poorly, and raised estrogen dilates small skin vessels.
  5. Palpable spleen: portal congestion enlarges the spleen, which traps platelets, adding thrombocytopenia to his bleeding risk.

Answer: His findings fall into two groups: portal hypertension (varices, ascites, splenomegaly) and hepatocellular failure (jaundice, spider angiomas, low albumin and clotting factors). Bleeding into the gut also puts him at risk of hepatic encephalopathy.

Common mistakes

  • MistakeMost peptic ulcers are caused by stress and spicy food.

    InsteadMost are caused by Helicobacter pylori infection or NSAIDs, which disrupt mucosal defenses.

  • MistakeCrohn disease and ulcerative colitis differ only in name.

    InsteadCrohn disease is transmural, patchy and can affect any part of the gut; ulcerative colitis is mucosal, continuous and limited to the colon.

  • MistakeDark urine occurs in all types of jaundice.

    InsteadDark urine reflects conjugated bilirubin, so it occurs in hepatic and obstructive jaundice but not in hemolytic jaundice.

  • MistakeNAFLD is still the current name for fatty liver disease linked to obesity and diabetes.

    InsteadSince 2023 the condition is called MASLD (metabolic dysfunction-associated steatotic liver disease), with MASH for its inflammatory form.

  • MistakeAscites in cirrhosis results only from low albumin.

    InsteadPortal hypertension and renal sodium and water retention, driven by splanchnic vasodilation, are central.

Summary and key terms

  • GERD results from failure of the lower esophageal sphincter and can lead to esophagitis, stricture and Barrett esophagus.
  • Peptic ulcers form when Helicobacter pylori or NSAIDs overwhelm mucosal defenses; complications are bleeding, perforation and obstruction.
  • Crohn disease is transmural and patchy; ulcerative colitis is mucosal and continuous from the rectum; celiac disease is a gluten-driven T cell response that flattens villi.
  • Acute pancreatitis is enzyme autodigestion, most often from gallstones or alcohol, and severe cases cause systemic inflammation and organ failure.
  • Jaundice is prehepatic, hepatic or posthepatic; hepatitis has viral, toxic, autoimmune and alcohol-related causes; MASLD replaced NAFLD in 2023.
  • Cirrhosis causes hepatocellular failure and portal hypertension, producing varices, ascites, splenomegaly, hepatic encephalopathy and hepatorenal syndrome.
Barrett esophagus
Intestinal metaplasia of the lower esophagus caused by chronic reflux.
Peptic ulcer
A break in the gastric or duodenal mucosa through the muscularis mucosae.
Helicobacter pylori
A urease-producing bacterium that causes gastritis, ulcers and gastric cancer.
Transmural
Involving the full thickness of the bowel wall.
Fistula
An abnormal channel between two epithelial surfaces.
Steatorrhea
Pale, fatty stools caused by fat malabsorption.
Jaundice
Yellow discoloration of skin and sclerae caused by bilirubin.
MASLD
Metabolic dysfunction-associated steatotic liver disease.
Cirrhosis
Diffuse fibrosis of the liver with regenerative nodules.
Portal hypertension
Raised pressure in the portal venous system.
Varices
Dilated collateral veins, especially in the esophagus, caused by portal hypertension.
Hepatic encephalopathy
Brain dysfunction caused by failure of the liver to clear toxins such as ammonia.

Practice problems

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

  1. Why does periumbilical pain move to the right lower abdomen in appendicitis?

    Show answer

    Early pain is visceral, referred to the midline segments shared with the midgut; later, inflammation reaches the parietal peritoneum, which localizes pain precisely.

  2. A person has itching, pale stools and dark urine with high alkaline phosphatase. What type of jaundice is this?

    Show answer

    Obstructive (posthepatic) jaundice, with conjugated bilirubin backing up into the blood.

  3. Why can gastrointestinal bleeding precipitate hepatic encephalopathy?

    Show answer

    Blood in the gut is a protein load that bacteria convert to ammonia, which the failing liver cannot clear.

  4. Why is calcium sometimes low in severe acute pancreatitis?

    Show answer

    Fatty acids released by fat necrosis bind calcium, depositing it as calcium soaps.

Lesson quiz · 5 questions

Score 60% or more to complete this lesson.

Take the quiz