For education and revision only. Not individual medical advice; check current NICE/BNF and local guidance before clinical use.

MAKINDO MEDICINE · Gastroenterology & Hepatology35 / 290

Gastroenterology: Anatomy Physiology Pharmacology

🍽️ Gastrointestinal anatomy, physiology and pharmacology - the gut digests food, absorbs nutrients and water, and gets rid of waste; the liver processes almost everything absorbed, including most drugs. Knowing the blood supply, the portal circulation, where things are absorbed and what the liver does explains most GI symptoms, blood tests and complications. Most GI drugs reduce acid, stop vomiting, change bowel movement, calm gut inflammation or treat liver disease.
Your four questions for every drug: How does it work? What is it used for? What are the important side effects and safety issues? What does it interact with, and how is it monitored?


The Gut Wall and Enteric Nervous System
Mouth, Oesophagus and Stomach
Small Intestine
Large Intestine, Rectum and Anus
Blood Supply of the Gut
Gut regionArtery (aortic level)SuppliesPain felt
ForegutCoeliac trunk (T12)Lower oesophagus to the 2nd part of the duodenum (ampulla), liver, gallbladder, pancreas (part), spleenEpigastrium
MidgutSuperior mesenteric artery (L1)Ampulla to two-thirds of the way along the transverse colon (small bowel, caecum, appendix, ascending colon)Around the umbilicus
HindgutInferior mesenteric artery (L3)Distal transverse colon to the upper anal canalSuprapubic
Portal Venous System
Liver
Gallbladder and Bile Ducts
Pancreas
Peritoneum and Abdominal Regions
Swallowing
Gastric Acid and Mucosal Protection
Digestion and Absorption
Iron, B12, Folate and Vitamins
NutrientWhere absorbedKey points
IronDuodenum and upper jejunumAbsorbed as ferrous (Fe2+) iron - helped by acid and vitamin C, reduced by PPIs, tea and calcium. Controlled by hepcidin (made by the liver - blocks iron release from gut cells); inflammation raises hepcidin (anaemia of chronic disease). Oral iron raises hepcidin for about a day, so alternate-day dosing can improve absorption and tolerance.
Vitamin B12Terminal ileumReleased from food by acid, bound to intrinsic factor (from parietal cells), absorbed in the terminal ileum. Body stores last 3–5 years. Deficiency - pernicious anaemia, gastrectomy, ileal disease or resection, bacterial overgrowth, metformin, long-term PPIs, vegan diet.
FolateJejunumStores last only about 4 months. Deficiency - poor diet, alcohol, coeliac disease, pregnancy, haemolysis, drugs (methotrexate, trimethoprim, phenytoin, sulfasalazine).
CalciumDuodenum (active, needs vitamin D)Reduced in coeliac disease, vitamin D deficiency, fat malabsorption.
Fat-soluble vitamins (A, D, E, K)Small bowel, with fatLost in fat malabsorption; vitamin K deficiency raises INR (corrects with IV vitamin K if cholestatic, not if the liver can't make clotting factors).
Bile acidsTerminal ileumLoss causes bile acid diarrhoea and, if large, fat malabsorption.
Thiamine (B1)JejunumLow stores (weeks); deficient in alcohol excess, vomiting, malnutrition - Wernicke's encephalopathy; give before glucose in at-risk patients.
Fluid, Electrolytes and Diarrhoea
Motility, Defecation and Vomiting
Gut Hormones
HormoneMade byMain actionsClinical link
GastrinG cells (antrum)Stimulates acid; growth of the stomach liningGastrinoma; high on PPIs and in atrophic gastritis
CCKI cells (duodenum, jejunum)Gallbladder contraction; pancreatic enzymes; satietyPain after fatty meals in gallstones
SecretinS cells (duodenum)Pancreatic bicarbonate; reduces acidSecretin-enhanced MRCP
SomatostatinD cells (stomach, pancreas)Inhibits most gut hormones and secretionsOctreotide - varices (some use), NETs, high-output stomas
MotilinSmall bowelMigrating motor complexErythromycin mimics it
GLP-1 and GIPL cells and K cellsInsulin release, slower gastric emptying, satietySemaglutide, tirzepatide
GhrelinStomachHungerFalls after sleeve gastrectomy
VIPEnteric neuronsRelaxes smooth muscle; secretionVIPoma - watery diarrhoea, low potassium
Serotonin (5-HT)Enterochromaffin cells (most of the body's 5-HT)Motility, secretion, nauseaCarcinoid syndrome; ondansetron; prucalopride
What the Liver Does
Bilirubin and Bile Acids
Gut Defences and the Microbiome
Portal Hypertension and Ascites
Normal Values and LFT Patterns
TestTypical adult rangeWhat it shows
BilirubinUnder 21 micromol/LExcretion; visible jaundice usually over about 40–50
ALTUnder about 40 U/L (varies)Liver cell damage (hepatocellular)
ASTUnder about 40 U/LLiver, muscle, heart, red cells; AST:ALT over 2 suggests alcohol
ALPAbout 30–130 U/LBile ducts (cholestasis), bone, placenta, growing children
GGTUnder about 50 U/LConfirms a liver source of ALP; raised by alcohol and enzyme-inducing drugs
Albumin35–50 g/LChronic synthetic function (also nutrition, inflammation, losses)
Prothrombin time / INRINR about 0.8–1.2Acute synthetic function (and vitamin K status)
Platelets150–400 × 10⁹/LLow in portal hypertension (splenic pooling)
Amylase / lipaseLab-specificOver 3 times the upper limit supports acute pancreatitis
Faecal calprotectinUnder about 50 micrograms/gGut inflammation - helps separate IBD from IBS
Ascitic neutrophilsUnder 250 cells/mm³Over 250 - spontaneous bacterial peritonitis
Acid Suppression
Helicobacter pylori Eradication
Antiemetics
DrugReceptorBest forKey cautions
MetoclopramideD2 antagonist (also speeds gastric emptying)Gastric stasis, migraine, post-operative, drug-inducedExtrapyramidal effects - acute dystonia (young women), tardive dyskinesia; maximum 5 days, 10 mg up to 3 times a day (MHRA); avoid in Parkinson's, bowel obstruction, under 1 year
DomperidonePeripheral D2 antagonist (doesn't cross the blood–brain barrier)Nausea in Parkinson's (e.g. with dopaminergic drugs), gastroparesisQT prolongation and sudden cardiac death - lowest dose, shortest time (usually up to 7 days), avoid with QT-prolonging drugs and CYP3A4 inhibitors and in cardiac disease (MHRA)
Ondansetron5-HT3 antagonistChemotherapy, radiotherapy, post-operative, gastroenteritisConstipation, headache, QT prolongation; small increased risk of oral clefts if used in the first trimester (MHRA) - not first-line in pregnancy
CyclizineH1 antihistamine (and antimuscarinic)Motion sickness, vertigo, bowel obstruction, raised intracranial pressure, pregnancyDrowsiness, dry mouth; can worsen heart failure; misuse potential (IV)
ProchlorperazineD2 antagonist (phenothiazine)Vertigo, labyrinthitis, migraine, pregnancyExtrapyramidal effects, drowsiness, postural hypotension; avoid in Parkinson's
Haloperidol (low dose)D2 antagonistChemical causes (drugs, renal failure, high calcium) - palliative careExtrapyramidal effects, QT; avoid in Parkinson's and Lewy body dementia
LevomepromazineBroad (D2, 5-HT2, H1, alpha)Palliative care when others failSedation, hypotension
Hyoscine (hydrobromide patch or butylbromide)AntimuscarinicMotion sickness (hydrobromide); colic and secretions in bowel obstruction (butylbromide)Dry mouth, confusion in older people (hydrobromide), urinary retention, glaucoma
AprepitantNK1 antagonistChemotherapy (with ondansetron and dexamethasone)CYP3A4 interactions (reduces the effect of the pill and warfarin)
DexamethasoneCorticosteroidChemotherapy; raised intracranial pressure; palliative careHyperglycaemia, insomnia (give in the morning)
Laxatives
TypeExamplesHow they workKey points
Bulk-formingIspaghula husk, methylcellulose, sterculiaHold water in stool; increase bulkNeed plenty of fluid; take days to work; avoid in opioid constipation and obstruction; bloating
OsmoticMacrogol (polyethylene glycol), lactulose, magnesium salts, phosphate enemasHold water in the bowelMacrogol - first-line in many; faecal impaction (high dose). Lactulose - bloating and wind; used in hepatic encephalopathy. Magnesium - avoid in CKD
StimulantSenna, bisacodyl, sodium picosulfate, glycerol suppositoriesIncrease gut movement and secretionCramps; work in 6–12 hours (orally); avoid in obstruction; add to macrogol for opioid constipation
SoftenersDocusate, arachis oil enemaSoften stool (docusate is also a weak stimulant)Arachis oil contains peanut oil - avoid in peanut allergy
Opioid receptor antagonists (peripheral)Naloxegol, methylnaltrexone, naldemedineBlock gut opioid receptors without reversing pain reliefFor opioid-induced constipation not responding to laxatives; avoid in obstruction
Prokinetic / secretagoguePrucalopride (5-HT4 agonist), linaclotideIncrease colonic movement or fluid secretionChronic constipation and IBS with constipation not helped by other laxatives (specialist or after 6–12 months)
Antidiarrhoeals and IBS Drugs
IBD Drugs - Aminosalicylates, Steroids and Immunomodulators
IBD Drugs - Biologics and Small Molecules
DrugTargetKey points
Infliximab (IV), adalimumab (SC), golimumab (UC)TNF-alphaModerate to severe Crohn's and UC, perianal fistulas; TB reactivation, serious infections, worsens heart failure, demyelination, drug-induced lupus, paradoxical psoriasis, lymphoma (especially with thiopurines); infusion reactions; antibody formation - check drug levels and antibodies
VedolizumabAlpha-4 beta-7 integrin (blocks white cells entering the gut only)Gut-selective - fewer systemic infections; slower onset; useful in older people and those with infection risk
Ustekinumab; risankizumab, mirikizumab, guselkumabIL-12/23; IL-23Crohn's and UC; generally well tolerated; IV induction then SC maintenance
Tofacitinib, upadacitinib, filgotinibJAK inhibitors (oral)Fast acting; MHRA - increased risk of VTE, major cardiovascular events, cancer and serious infection: avoid in people over 65, smokers and those with cardiovascular or cancer risk unless no alternative; shingles (vaccinate); raised lipids; teratogenic
Ozanimod, etrasimodS1P receptor modulators (oral - keep lymphocytes in lymph nodes)UC; bradycardia on starting (ECG), macular oedema (eye checks), raised LFTs, infections; teratogenic
Drugs for Liver Disease
Drugs for Alcohol-Related Disease
Pancreatic Enzymes and Bile Acid Drugs
Prescribing in Liver Disease
Drug-Induced Liver Injury
PatternTypical drugs
Hepatocellular (ALT up)Paracetamol (overdose), isoniazid, rifampicin, pyrazinamide, valproate, methotrexate, statins (usually mild), amiodarone, nitrofurantoin, ketoconazole, NSAIDs (diclofenac), herbal supplements (green tea extract, kava, turmeric), checkpoint inhibitors
Cholestatic (ALP up)Co-amoxiclav (may start up to 6 weeks after the course), flucloxacillin (older people; may be delayed), chlorpromazine, combined pill, anabolic steroids, carbimazole, sulfonylureas, erythromycin, terbinafine
Fatty liverAmiodarone, methotrexate, steroids, tamoxifen, valproate (microvesicular), tetracyclines (IV)
Fibrosis and cirrhosisMethotrexate (long term), amiodarone, vitamin A excess
Autoimmune-like hepatitisNitrofurantoin, minocycline, methyldopa, anti-TNF drugs
Vascular (sinusoidal obstruction)Chemotherapy (oxaliplatin), azathioprine, herbal pyrrolizidine alkaloids
Liver tumoursCombined pill and anabolic steroids (adenomas)
Drugs That Harm the Gut
ProblemTypical drugs
Peptic ulcer and GI bleedingNSAIDs, aspirin, anticoagulants, clopidogrel, SSRIs (with NSAIDs), steroids (with NSAIDs), bisphosphonates, potassium tablets - combinations multiply the risk
Pill oesophagitisDoxycycline, bisphosphonates, potassium chloride, iron, NSAIDs
ConstipationOpioids, anticholinergics (oxybutynin, TCAs), iron, calcium, aluminium antacids, verapamil, ondansetron, clozapine (can cause fatal bowel obstruction - MHRA)
DiarrhoeaAntibiotics (and C. difficile), metformin, magnesium, colchicine (also an early sign of toxicity), mycophenolate, PPIs, SSRIs, laxative misuse, checkpoint inhibitors (colitis)
C. difficile riskClindamycin, cephalosporins, co-amoxiclav, quinolones; PPIs
Microscopic colitisNSAIDs, PPIs (lansoprazole), SSRIs, statins
Nausea and vomitingOpioids, digoxin toxicity, theophylline, chemotherapy, antibiotics, GLP-1 agonists, iron, metformin
PancreatitisAzathioprine, mesalazine, valproate, thiazides and furosemide, GLP-1 agonists and gliptins, steroids, oestrogens (via triglycerides), some HIV drugs
Gastroparesis / slow emptyingOpioids, GLP-1 agonists, tirzepatide, anticholinergics
Gingival overgrowth and dry mouthPhenytoin, ciclosporin, calcium channel blockers (overgrowth); anticholinergics (dry mouth)
Hepatic encephalopathySedatives, opioids, diuretics (low potassium and sodium), constipation
Drug Reference Table
DrugKey points
Omeprazole / lansoprazole (PPIs)Before breakfast; C. difficile, low magnesium, fractures, B12; omeprazole reduces clopidogrel activation; stop 2 weeks before H. pylori testing.
Famotidine (H2 blocker)Weaker than PPIs; ranitidine withdrawn.
Alginates / antacidsSodium load; separate from other drugs by 2 hours.
MisoprostolProtects stomach lining; diarrhoea; contraindicated in pregnancy.
H. pylori triple therapyPPI + amoxicillin + clarithromycin or metronidazole for 7 days; metronidazole and alcohol react.
MetoclopramideD2 antagonist and prokinetic; dystonia; maximum 5 days; avoid in Parkinson's and obstruction.
DomperidoneSafe in Parkinson's; QT and cardiac risk.
Ondansetron5-HT3 antagonist; constipation, QT; small cleft risk in first trimester.
CyclizineH1 antihistamine; vertigo, obstruction; avoid in heart failure.
Macrogol / senna / ispaghulaOsmotic / stimulant / bulk; no bulk-forming for opioid constipation.
LactuloseOsmotic; hepatic encephalopathy -2–3 soft stools a day.
NaloxegolPeripheral opioid antagonist for opioid constipation.
LoperamideAvoid in bloody diarrhoea, C. difficile, IBD flares; arrhythmias in overdose.
ColestyramineBile acid diarrhoea and cholestatic itch; binds other drugs.
Mebeverine / hyoscine butylbromideIBS antispasmodics; Buscopan injection - caution in heart disease.
Mesalazine / sulfasalazineUC; interstitial nephritis (U&E), blood disorders; sulfasalazine - low sperm count, orange urine.
Prednisolone / IV hydrocortisone / budesonideIBD flares only; 100 mg hydrocortisone QDS for acute severe UC; budesonide - high first-pass.
Azathioprine / mercaptopurineCheck TPMT; marrow suppression, pancreatitis, skin cancer; avoid allopurinol.
MethotrexateWeekly; folic acid; teratogenic; avoid trimethoprim.
Infliximab / adalimumabAnti-TNF; screen TB and hepatitis B; no live vaccines; avoid in heart failure.
Vedolizumab / ustekinumabGut-selective integrin / IL-12/23 blockade.
Tofacitinib / upadacitinibJAK inhibitors; VTE, cardiovascular and cancer risk (MHRA); shingles.
RifaximinWith lactulose to prevent recurrent hepatic encephalopathy.
Carvedilol / propranololLower portal pressure; prevent variceal bleeding; hold if hypotensive or AKI.
TerlipressinVariceal bleed and hepatorenal syndrome; ischaemia, hyponatraemia, respiratory failure (MHRA).
SpironolactoneFirst-line for ascites; hyperkalaemia, gynaecomastia.
Human albumin solution 20%After paracentesis over 5 L (8 g per litre), SBP, hepatorenal syndrome.
Ursodeoxycholic acidFirst-line for primary biliary cholangitis.
Pabrinex (thiamine)Wernicke's prevention and treatment; before glucose.
Chlordiazepoxide / lorazepamAlcohol withdrawal; lorazepam or oxazepam in liver impairment.
Acamprosate / naltrexone / disulfiramRelapse prevention; naltrexone - not with opioids; disulfiram - reaction with any alcohol.
Pancreatin (Creon)With every meal and snack; pork-derived.
AcetylcysteineParacetamol overdose - replenishes glutathione; UK nomogram line 100 mg/L at 4 hours.
Oral vancomycin / fidaxomicinC. difficile infection.
Spot the Answer
ClueAnswer
Massive bleed from a posterior duodenal ulcerGastroduodenal artery erosion
Older patient with AF, severe abdominal pain, soft abdomen and high lactateAcute mesenteric ischaemia (SMA embolus)
Left-sided pain and bloody diarrhoea after a hypotensive episodeIschaemic colitis at the splenic flexure (watershed)
Painless bright red bleeding with a lump above the dentate lineInternal haemorrhoids (visceral innervation)
Painless jaundice and a palpable gallbladderPancreatic head cancer (Courvoisier's law)
B12 deficiency after a terminal ileal resection for Crohn'sLoss of the B12 absorption site
Watery diarrhoea after ileal resection, relieved by colestyramineBile acid diarrhoea
Diarrhoea that stops completely on fastingOsmotic diarrhoea
Vomiting with low chloride, low potassium and high bicarbonateMetabolic alkalosis from gastric losses
Low B12 with high folate and bloating after bowel surgerySmall intestinal bacterial overgrowth
Bilirubin 45 (unconjugated), normal LFTs, worse when fastingGilbert's syndrome
Dark urine, pale stools and itchObstructive (post-hepatic) jaundice
Raised ALP with normal GGT in an older man with bone painBone source - Paget's or metastases
SAAG 15 g/LPortal hypertension (e.g. cirrhosis)
Ascitic neutrophils 400 cells/mm³ in a confused cirrhoticSpontaneous bacterial peritonitis - antibiotics and albumin
Recurrent stent thrombosis in a patient on clopidogrel and omeprazoleCYP2C19 interaction - switch to lansoprazole or pantoprazole
Low magnesium and hypocalcaemia on long-term PPIPPI-induced hypomagnesaemia
Young woman with neck twisting and eyes rolling up after an antiemeticMetoclopramide dystonia - procyclidine
Vomiting in a patient with Parkinson's diseaseDomperidone (doesn't cross the blood–brain barrier)
Pancytopenia when allopurinol is added to azathioprineXanthine oxidase interaction - thiopurine toxicity
TB reactivation after starting a drug for Crohn'sAnti-TNF therapy (should have been screened)
Cholestatic jaundice 4 weeks after a course of co-amoxiclavDrug-induced cholestasis (can be delayed)
Confused cirrhotic patient after codeine and constipationHepatic encephalopathy - lactulose, stop codeine
Flushing and vomiting after a drink on H. pylori treatmentMetronidazole disulfiram-like reaction
Exam-style Scenarios

1. A 58-year-old man with alcohol-related cirrhosis vomits 500 mL of fresh blood. HR 118, BP 92/58, Hb 78.
Answer: Suspected acute variceal bleeding.

2. A 68-year-old woman with a recent coronary stent takes aspirin, clopidogrel, omeprazole and ibuprofen for knee pain. She is admitted with melaena.
Answer: Upper GI bleed from NSAID-related ulceration, with a CYP2C19 interaction risk.

3. A 34-year-old man with Crohn's disease starts azathioprine. Six weeks later he has a sore throat and fever. He also takes allopurinol for gout, started by his GP last month.
Answer: Likely thiopurine-induced marrow suppression (neutropenic sepsis), worsened by allopurinol.

4. A 22-year-old woman is given IV metoclopramide for vomiting. An hour later her eyes deviate upwards and her neck twists to one side.
Answer: Acute dystonic reaction (oculogyric crisis).

5. A 65-year-old man with cirrhosis and ascites becomes drowsy and confused 3 days after admission. He has been given codeine for back pain and has not opened his bowels. He has a flapping tremor.
Answer: Hepatic encephalopathy precipitated by opioid and constipation.

Key Points
Guidelines and Further Reading