AhmedSMLE
The Gastrointestinal Tract
Chapter 54 of 89
Hepatobiliary · General surgery
Ahmed Al Johani

Gallbladder & Biliary Disease

High-yield surgical revision
Biliary anatomy and the physiology behind the colic; gallstones and who forms them; biliary colic, acute cholecystitis and its dangerous variants; the obstructed duct and ascending cholangitis; gallstone pancreatitis and gallstone ileus; gallbladder malignancy, polyps and the porcelain gallbladder; and cholecystectomy before, during and after.
Contents
  1. 1Anatomy and physiology that carries marks
  2. 2Gallstones: who gets them, and which kind
  3. 3Biliary colic and acute cholecystitis
  4. 4When the gallbladder turns dangerous
  5. 5The obstructed duct
  6. 6Ascending cholangitis
  7. 7Gallstone pancreatitis
  8. 8Gallstone ileus
  9. 9Malignancy, polyps and the porcelain gallbladder
  10. 10Cholecystectomy: before, during and after

1Anatomy and physiology that carries marks

The tree: bile drains from the liver down the right and left hepatic ducts, which join as the common hepatic duct; the cystic duct brings the gallbladder in, and from there the common bile duct runs to the ampulla of Vater in the second part of the duodenum.

Calot’s triangle

MediallyCommon hepatic duct
InferolaterallyCystic duct
SuperiorlyInferior border of the liver
ContentsCystic artery · cystic lymph node of Lund · sometimes the right hepatic artery

The cystic artery arises from the right hepatic artery — that is its origin, and the right hepatic is only an occasional content of the triangle, so it is never the answer to “which artery is a content”. The other decoys are the left hepatic and gastroduodenal arteries. This triangle is dissected at every cholecystectomy, which is why it is the most repeated piece of anatomy in the chapter.

The rest of what gets asked

Gallbladder originCaudal bud of the hepatic diverticulum
Sphincter of BoydenGuards the common bile duct
Sphincter of OddiGuards the ampulla
Cantlie’s lineGallbladder fossa → IVC; splits the liver into functional halves
Pain referralRight shoulder tip and the inferior angle of the right scapula (phrenic, C3–5)

Two mechanisms worth holding on to

2Gallstones: who gets them, and which kind

StoneArises fromClue in the stem
Mixed / cholesterolSupersaturated bile — the commonest type by farThe classic risk profile: obese, diabetic, female
Pure cholesterolSame mechanism, less common than mixedUsually a single large stone
Pigment (black)Chronic haemolysisSickle cell disease, thalassaemia, hereditary spherocytosis
Pigment (brown)Biliary infection and stasisStones forming inside the duct, often after instrumentation

Risk factors

The stone that causes no trouble

An asymptomatic gallstone found incidentally is observed, not removed — even when it turns up during the workup of something else entirely, such as an aortic aneurysm. The exceptions are a porcelain gallbladder, a polyp meeting the size rule, and selected high-risk groups.

3Biliary colic and acute cholecystitis

The difference is time and infection: a stone that blocks the cystic duct transiently gives colic; one that stays impacted gives cholecystitis.

Biliary colicAcute cholecystitisAscending cholangitis
PainEpisodic, after a fatty meal, 30 min to a few hours, settles fullyConstant, > 6 hours, does not settleConstant, with rigors
FeverAbsentPresentPresent, with rigors
Murphy’sNegativePositiveVariable
JaundiceNoNo — cholecystitis does not jaundiceYes
BloodsNormal WBC and amylaseLeukocytosis, normal bilirubinLeukocytosis + obstructive LFTs
UltrasoundStones, normal wallStones + thick wall + pericholecystic fluid + sonographic Murphy’sStones + dilated CBD

Three readings decide most stems. Afebrile, well, normal bloods, pain already gone → colic → elective surgery. Febrile, tender, high WBC, thick wall → cholecystitis → operate on this admission. Add jaundice → the duct is involved, so think ERCP before theatre. That jaundice row is the one to memorise: a jaundiced patient with an inflamed gallbladder has a duct stone or Mirizzi’s syndrome, not simple cholecystitis.

Management

Ultrasound is first-line in both. Symptomatic stones → laparoscopic cholecystectomy. Acute cholecystitis → antibiotics and early laparoscopic cholecystectomy.
High-yield: the 72-hour rule Acute cholecystitis is operated within about 72 hours of symptom onset, on the same admission — the “hot” cholecystectomy. Early surgery has fewer complications than a delayed interval operation, not more. ERCP has no role unless there is a duct stone, cholangitis or gallstone pancreatitis. A patient unfit for theatre gets a percutaneous cholecystostomy instead, with cholecystectomy later.

4When the gallbladder turns dangerous

VariantRecognise it byDo
Acalculous cholecystitisCritically ill patient — ICU, ventilated, major burns, sepsis, TPN. Distended thick-walled gallbladder with pericholecystic fluid and no stonesPercutaneous cholecystostomy if unfit (usually); cholecystectomy if fit
Emphysematous cholecystitisDiabetic, rapidly toxic; gas in the gallbladder wall. Clostridium welchii (perfringens) and E. coliResuscitate, antibiotics, urgent cholecystectomy
Empyema / gangreneToxic, swinging fever; gallbladder full of pusStabilise, then drain — percutaneous cholecystostomy
MucoceleChronic cystic-duct obstruction, sterile mucus; afebrile and well with a palpable non-tender gallbladderElective cholecystectomy
Mirizzi’s syndromeStone impacted in the cystic duct or gallbladder neck pressing on the common hepatic duct → jaundice with stonesCareful cholecystectomy; ERCP first if obstructed

Whenever the patient is too sick for an operation — the ICU patient on day twelve of antibiotics, the ventilated burns patient, the toxic elderly man with a gallbladder full of pus — the answer is the same: drain it percutaneously and come back for the gallbladder later.

Gas is an emergency, not a finding Gas in the gallbladder wall in a diabetic is emphysematous cholecystitis — it perforates fast and carries a mortality far above ordinary cholecystitis. It is also one of the causes of air in the biliary tree that is not gallstone ileus.

5The obstructed duct

Choledocholithiasis: biliary pain + obstructive LFTs (raised ALP and conjugated bilirubin) + a dilated common bile duct on ultrasound, with or without a visible stone. Clinically: dark urine, pale stools, pruritus.

The investigation ladder

Ultrasound always first — cheap, quick, shows stones, duct calibre and the level of obstruction. → MRCP when the probability is intermediate: it images only. → ERCP when the probability is high: it treats — sphincterotomy and stone extraction.

Ultrasound is the answer to “the first investigation” in obstructive jaundice even when CT and MRCP sit on the option list. And once the stem has already proved obstruction, the answer moves to ERCP, because by then you need a treatment rather than another picture.

SituationNext step
Obstructive jaundice, cause unknownAbdominal ultrasound — first-line whatever the suspected cause
Raised ALP + conjugated bilirubin before an elective cholecystectomyERCP with stone extraction first, then the cholecystectomy
CBD stone cleared by ERCPStill needs laparoscopic cholecystectomy — the source is the gallbladder
ERCP fails, stone in both gallbladder and ductCBD exploration + T-tube, with cholecystectomy
Cholangitis after two failed ERCPsCholecystectomy and CBD exploration (PTC is the other drainage route)

6Ascending cholangitis

Cholangitis is an obstructed and infected biliary tree — most often a stone in the common bile duct. It is the biliary diagnosis that kills.

The two eponyms

Charcot’s triadRUQ pain + jaundice + fever with rigors
Reynolds' pentadThe triad + hypotension + confusion = severe

The pentad is not a different disease — it is the triad in a patient who has become septic. Jaundice is the member of the triad that separates cholangitis from cholecystitis.

Management

  • Resuscitate; IV antibiotics
  • Urgent biliary decompression by ERCP — within 24 hours if severe
  • Interval cholecystectomy once settled

Two failed attempts at ERCP send the patient to surgical CBD exploration, or to PTC for percutaneous drainage.

Antibiotics alone are not treatment An infected duct that stays obstructed does not clear with antibiotics. The obstruction must be decompressed. Every stem that offers “IV antibiotics and observe” beside “ERCP” is testing exactly this, and the answer is always the drainage.
The shock numbers Septic shock here is distributive: high cardiac output with low systemic vascular resistance, warm peripheries, wide pulse pressure. Cardiogenic and hypovolaemic shock are the reverse — low output, high resistance, cold and clammy.

7Gallstone pancreatitis

Diagnosis: epigastric pain radiating to the back + amylase or lipase more than three times the upper limit. Gallstones and alcohol are the two commonest causes.

PointWhat to do, and why it is asked
Initial managementAggressive IV crystalloid (Ringer’s lactate, about 250 mL/h) + analgesia + antiemetics. This is the answer to “initial” and to “most proven benefit” alike
AntibioticsNot routine. Only for infected necrosis or coexisting cholangitis. Steroids are never the answer
Late presentationSerum amylase falls within days, so a late patient may have a normal serum amylase — use urine amylase or serum lipase, which stay up longer
CTFor diagnostic uncertainty or severity, after an erect chest X-ray has excluded perforation
ERCPOnly for cholangitis or persistent duct obstruction — not for the pancreatitis itself
CholecystectomySame admission, before discharge, once mild gallstone pancreatitis has settled. Delaying it to an interval list risks another attack

Pseudocyst

About four weeks or more after the attack: epigastric pain and fullness, early satiety and postprandial vomiting from gastric compression, and a persistently raised amylase. It is an encapsulated, amylase-rich collection with a fibrous wall and no epithelial lining, classically in the lesser sac behind the stomach. Diagnose on ultrasound or CT; observe if small and quiet, drain if large or symptomatic.

After ERCP

ComplicationNote
Pancreatitis (~5%)The commonest; treat with fluids, as above
Perforation (~1%)Duodenal, retroperitoneal — air tracks up to give subcutaneous emphysema
Bleeding · infectionLess common

8Gallstone ileus

Mechanism: a chronically inflamed gallbladder erodes into the duodenum — a cholecystoenteric fistula — and a large stone passes into the bowel and impacts at the terminal ileum, the narrowest point, causing mechanical small-bowel obstruction. Typically an elderly woman.

Rigler’s triad

  • Pneumobilia — air in the biliary tree
  • Small-bowel obstruction
  • An ectopic gallstone

CT is diagnostic. Treat by enterolithotomy — open the bowel and remove the stone. The fistula is dealt with later, or left alone altogether in a frail patient. The words air in the biliary tree beside an obstruction are the whole diagnosis.

Air in the biliary tree

Gallstone ileus (the fistula)
Emphysematous cholecystitis
After a bilio-enteric anastomosis
After ERCP or sphincterotomy

9Malignancy, polyps and the porcelain gallbladder

High-yield: Courvoisier’s law Painless obstructive jaundice with a palpable, non-tender, distended gallbladder is not stones — it means a malignant obstruction low in the duct, classically carcinoma of the head of the pancreas or a periampullary tumour. The reason is mechanical: stone disease scars and shrinks the gallbladder, so it cannot distend. This is the single most repeated concept in the chapter.

Reading the level off the imaging

LevelDuctsGallbladderTypical lesion
DistalIntrahepatic and extrahepatic dilatedDistendedPancreatic head · periampullary · distal CBD
HilarIntrahepatic only; distal CBD not dilatedCollapsedKlatskin tumour (hilar cholangiocarcinoma)

The double duct sign — dilated CBD and dilated main pancreatic duct — means a periampullary malignancy. With no mass visible in the pancreatic head, a small ampullary carcinoma is the likeliest; it obstructs early while still small, which is why it carries the best prognosis of the group.

Pancreatic head and periampullary cancer

Gallbladder polyps — a size rule

SizeDo
≥ 10 mmCholecystectomy
6–9 mmSurveillance; surgery if risk factors
< 6 mmNo follow-up needed

Risk factors that pull a smaller polyp to surgery: age over 50, sessile shape, coexisting gallstones, primary sclerosing cholangitis. A symptomatic polyp comes out whatever its size, and rapid growth on serial scans is ominous.

Porcelain gallbladder

A diffusely calcified gallbladder wall on ultrasound, usually found during a workup for vague right upper quadrant pain and often without stones.

Never observe it It carries a risk of gallbladder carcinoma → cholecystectomy. “Observation” and “repeat the ultrasound in six months” are the decoys.

10Cholecystectomy: before, during and after

Before

  • Elective cholecystectomy is a clean-contaminated wound — the biliary tract is entered in a controlled way
  • Prophylaxis is a single dose at induction, within 60 minutes of incision. A prolonged course is not prophylaxis
  • Recent myocardial infarction → defer elective surgery about 6 months
  • Well-controlled asthma → proceed and continue the inhalers; routine spirometry is not needed
  • Pregnancy with symptomatic stones → laparoscopic cholecystectomy, ideally second trimester, not conservative management

During

  • Bile duct injury is the one complication that is commoner laparoscopically than open. Incisional hernia and wound morbidity are all lower
  • Sudden bradycardia on insufflation is a vagal response to rapid peritoneal stretch — deflate, give atropine, re-insufflate slowly
  • An unexpected mass found at operation → stop, and stage, biopsy, consent and plan properly
Beyond the examination The modern safeguard against duct injury is the critical view of safety: clear Calot’s triangle of fat, detach the lower third of the gallbladder from the cystic plate, and confirm exactly two structures entering it before clipping anything.

After — the complication that fits the picture

PresentationDiagnosisDo
Jaundice, obstructive LFTs, dilated CBDRetained CBD stoneERCP and extraction
Subhepatic collection, raised direct bilirubin, vague painBiloma — cystic duct stump or duct of LuschkaImage-guided drainage + ERCP ± stent to seal the leak
Pain, distension, fever, free intraperitoneal fluidBile peritonitisDiagnostic laparoscopy, washout and source control
Transection of the duct above the cystic ductMajor CBD injuryRoux-en-Y hepaticojejunostomy
Swinging fever, upper abdominal tenderness, basal effusionSubphrenic abscessImage-guided percutaneous drainage + antibiotics
GI bleed + biliary colic + jaundice after PTC or liver biopsyHaemobiliaStable → upper GI endoscopy; significant → angiography and embolisation

Post-operative fever, by the day

DayThink
1–2Atelectasis — basal crackles, mild hypoxia → incentive spirometry, deep breathing, mobilise, good analgesia
3–5Urinary tract infection — especially with a catheter, and without abdominal pain
5–7Wound infection
5 onwardsCollection, abscess or leak

Naming the septic state

BacteraemiaBacteria in the blood; fever and rigors without meeting two SIRS criteria
SIRSTwo or more of: temp > 38 or < 36 °C · HR > 90 · RR > 20 · abnormal WBC
SepsisSIRS plus a source of infection
Severe sepsisSepsis plus organ dysfunction — collapse, intubation, hypotension, raised lactate

The pain that comes back after the gallbladder is gone

Recurrent biliary-type pain after cholecystectomy, made worse by opioids, is sphincter of Oddi dysfunction. Confirm with ERCP manometry of the common bile duct pressure; treat with endoscopic sphincterotomy. The opioid detail is the discriminator — opioids contract the sphincter and so reproduce the pain instead of relieving it.

First Aid to the SMLE · Ahmed Al Johani · Contents · Download the PDF