Hepatobiliary & Pancreatic Surgery
Biliary disease looks like a long list of similar-sounding conditions until you notice that they differ along only two axes.
The organising tool is this: follow the bile. Every biliary disease is defined by the level at which flow is obstructed and by whether bacteria have reached the obstructed segment.
Obstruction at the cystic duct gives biliary colic and then cholecystitis. Obstruction at the common bile duct gives obstructive jaundice, and if bacteria reach that obstructed duct, cholangitis. Obstruction at the ampulla can also block the pancreatic duct and cause pancreatitis.
Infection in an obstructed system is what converts a painful condition into a life-threatening one, which is why the second axis determines urgency.
1. The Anatomy That Decides
The right and left hepatic ducts join to form the common hepatic duct, which is joined by the cystic duct to become the common bile duct. That duct runs behind the first part of the duodenum and through the head of the pancreas, joining the pancreatic duct at the ampulla of Vater.
Two consequences follow directly. A mass in the head of the pancreas obstructs the bile duct and causes painless jaundice, and a stone impacted at the ampulla can block both systems at once, producing jaundice and pancreatitis together.
The gallbladder concentrates and stores bile and contracts in response to cholecystokinin released by fat in the duodenum. That explains why biliary pain follows a fatty meal.
Calot triangle is bounded by the cystic duct, the common hepatic duct and the inferior surface of the liver, and contains the cystic artery. Achieving the critical view of safety within it is the standard method of preventing bile duct injury at cholecystectomy.
2. Gallstones and Biliary Colic
Most gallstones in India and worldwide are cholesterol or mixed stones, forming when bile becomes supersaturated with cholesterol relative to bile salts and phospholipid.
The classical risk factors are female sex, forties, fertility, obesity and a positive family history. Rapid weight loss is an under-recognised risk because it mobilises cholesterol into bile.
Pigment stones have a different mechanism entirely. Black pigment stones form in chronic haemolysis, such as hereditary spherocytosis or sickle cell disease, from excess unconjugated bilirubin. Brown pigment stones form in infected or obstructed ducts and are far commoner in Asia.
Most gallstones are asymptomatic and are not operated on, because the annual risk of developing symptoms is low and prophylactic surgery does not benefit the majority.
Biliary colic is misnamed, because the pain is not truly colicky. It is a constant, severe right upper quadrant or epigastric pain, lasting minutes to hours, often radiating to the right scapula, typically after a fatty meal, and it settles completely.
The distinguishing feature from cholecystitis is that biliary colic resolves and leaves the patient well, with no fever and no tenderness between attacks. Cholecystitis persists.
Ultrasound is the investigation of choice, detecting stones with high sensitivity as mobile echogenic foci with posterior acoustic shadowing.
3. Acute Cholecystitis
Persistent obstruction of the cystic duct produces inflammation of the gallbladder wall, initially chemical from concentrated bile and later bacterial.
The presentation is continuous right upper quadrant pain with fever and tenderness. Murphy sign is arrest of inspiration on palpation below the right costal margin, and reflects the descending inflamed gallbladder meeting the examining hand.
Bilirubin is usually normal or only mildly raised. A significantly jaundiced patient with cholecystitis has something else as well, usually a duct stone or Mirizzi syndrome.
Ultrasound shows stones, a thickened gallbladder wall, pericholecystic fluid and a sonographic Murphy sign. The Tokyo Guidelines combine local signs, systemic inflammation and imaging to diagnose and grade severity.
Early laparoscopic cholecystectomy, within about seventy-two hours, is preferred to delayed surgery. The older practice of cooling the patient down for six weeks produced more readmissions and no reduction in complications.
A patient too unwell or too late for surgery is managed with antibiotics, and with percutaneous cholecystostomy if they fail to improve.
Complications include empyema, gangrene and perforation. Emphysematous cholecystitis, with gas in the wall from Clostridium or Escherichia coli, occurs disproportionately in diabetic men and is an emergency.
Acalculous cholecystitis occurs in critically ill patients on intensive care and carries a much higher mortality, because it arises from gallbladder ischaemia and stasis rather than from a stone.
4. Obstructive Jaundice and Duct Stones
A stone in the common bile duct produces jaundice with pale stools and dark urine, and the liver panel shows a cholestatic pattern with a disproportionately raised alkaline phosphatase.
Courvoisier law states that a palpable, non-tender gallbladder in a jaundiced patient is unlikely to be due to stones. The reasoning is that chronic stone disease scars and shrinks the gallbladder so it cannot distend, whereas malignant obstruction develops in a previously normal gallbladder.
The law is a probability statement, not an absolute, and Mirizzi syndrome is the classic exception, where a stone impacted in the cystic duct or Hartmann pouch compresses the common hepatic duct externally.
Investigation follows an escalating sequence. Ultrasound is first, showing duct dilatation reliably but visualising the distal duct poorly because of overlying bowel gas.
Magnetic resonance cholangiopancreatography is the non-invasive test of choice and has replaced diagnostic endoscopic retrograde cholangiopancreatography almost entirely.
Endoscopic retrograde cholangiopancreatography is now largely a therapeutic procedure, performed to remove stones by sphincterotomy or to stent a stricture, and it carries a real risk of post-procedure pancreatitis.
Endoscopic ultrasound is the most sensitive test for small distal stones and allows tissue sampling of a suspected mass in the same sitting.
5. Acute Cholangitis
Cholangitis is bacterial infection of an obstructed biliary tree, and it is a surgical emergency because the infected bile is under pressure and seeds the bloodstream.
Charcot triad is fever, jaundice and right upper quadrant pain. Adding hypotension and altered mental state gives Reynolds pentad, which indicates suppurative cholangitis with a high mortality.
Not all patients present with the full triad, and the elderly may present with confusion and hypotension alone, so a low threshold is needed.
Management has three components: resuscitation with fluid and broad-spectrum antibiotics, and then biliary drainage.
Drainage is the definitive treatment and antibiotics alone will not resolve it, because an obstructed infected system cannot be sterilised while it remains obstructed. Endoscopic drainage is first line, with percutaneous transhepatic drainage where endoscopy is unavailable or has failed.
The Tokyo Guidelines grade severity and match it to timing: mild disease may respond to antibiotics with drainage if there is no improvement, moderate disease requires early drainage, and severe disease with organ dysfunction requires urgent drainage alongside organ support.
6. Bile Duct Injury and Choledochal Cysts
Bile duct injury is the most feared complication of cholecystectomy, and it is largely a problem of misidentification rather than of technical failure.
The classical mechanism is mistaking the common bile duct for the cystic duct, which happens when the surgeon works from an assumed anatomy instead of a demonstrated one. Inflammation, a short cystic duct and aberrant right sectoral ducts all increase the risk.
The critical view of safety is the accepted preventive discipline: the hepatocystic triangle is cleared of fat and fibrous tissue, the lower third of the gallbladder is separated from the liver bed, and exactly two structures are seen entering the gallbladder before anything is divided.
Injuries are classified by the Strasberg system, which separates bile leaks from cystic duct and small ducts, which can often be managed endoscopically, from transection of the main duct, which cannot.
Presentation depends on whether the duct was occluded or divided. A clipped duct presents with progressive jaundice in the first days; a divided duct presents with bile leak, pain, ileus and biliary peritonitis.
Major injuries are repaired by hepaticojejunostomy at a specialist centre, and outcomes are substantially better when the first repair is performed by a hepatobiliary surgeon rather than by the operating surgeon at the time.
Choledochal cysts are congenital dilatations of the biliary tree, classified by Todani, of which type 1 fusiform dilatation of the common bile duct is much the commonest.
They present with the incomplete triad of jaundice, pain and a right upper quadrant mass, and they are excised rather than drained because the cyst lining carries a substantial lifetime risk of cholangiocarcinoma.
7. Gallstone Complications and Gallbladder Cancer
Gallstone ileus is mechanical small bowel obstruction caused by a large stone eroding through a cholecystoduodenal fistula and impacting at the terminal ileum. Rigler triad describes small bowel obstruction, pneumobilia and an ectopic gallstone.
Gallstone pancreatitis occurs when a stone passes the ampulla and obstructs the pancreatic duct transiently. The essential surgical point is that cholecystectomy should be performed during the same admission once the pancreatitis has settled, because delayed surgery leaves a substantial risk of recurrent attacks.
The medical management of acute pancreatitis, including early enteral feeding and the avoidance of prophylactic antibiotics, is developed in the Gastroenterology chapter.
Gallbladder carcinoma is far more common in North India than almost anywhere else in the world, particularly along the Gangetic belt, and this is one of the few epidemiological facts examiners expect from Indian candidates.
It is associated with gallstones, chronic inflammation and a porcelain gallbladder, presents late with vague symptoms, and is frequently discovered incidentally in a gallbladder removed for stones.
Prognosis is poor except when the tumour is confined to the mucosa, in which case cholecystectomy alone may be curative. Deeper invasion requires extended resection of the gallbladder bed with regional nodes.
8. Surgical Aspects of Pancreatitis
Most acute pancreatitis is managed medically, and surgery has a narrow and specific role.
Infected pancreatic necrosis is the main surgical indication, suspected when a patient with necrotising pancreatitis deteriorates after the first week, and confirmed by gas within the necrosis on imaging or by aspiration.
Intervention has moved decisively towards a step-up approach: percutaneous or endoscopic drainage first, escalating to minimally invasive necrosectomy only if the patient fails to improve. Open necrosectomy is now rare and carries substantially higher morbidity.
Sterile necrosis is not drained, however extensive it appears on imaging, because intervening introduces the infection that was not there.
A pseudocyst is a collection of pancreatic fluid enclosed by a wall of fibrous tissue with no epithelial lining, maturing over about four to six weeks. It is drained only if it is symptomatic, infected or enlarging, and endoscopic transgastric drainage is usually preferred.
Chronic pancreatitis produces intractable pain, steatorrhoea and diabetes, and surgery is reserved for pain that has failed medical management, choosing between drainage of a dilated duct and resection of an inflammatory head mass.
Tropical calcific pancreatitis is a distinct Indian entity affecting young non-alcoholic patients with large intraductal calculi and early diabetes.
9. Pancreatic and Periampullary Cancer
Painless progressive obstructive jaundice in an older patient is pancreatic head carcinoma until proved otherwise.
Weight loss, anorexia and back pain follow. Trousseau sign of migratory thrombophlebitis is the classical association, and new-onset diabetes in an older patient can be the earliest signal.
Most tumours are ductal adenocarcinoma. Computed tomography with a pancreatic protocol is the staging investigation, and resectability turns on involvement of the superior mesenteric artery and coeliac axis rather than on tumour size.
Only a minority are resectable at presentation. The operation for a tumour of the head is pancreaticoduodenectomy, the Whipple procedure, removing the head of the pancreas, duodenum, distal stomach in the classical form, gallbladder and distal bile duct.
Its extent follows from shared blood supply: the head of the pancreas and the duodenum are supplied by the same pancreaticoduodenal arcades and cannot be separated.
Periampullary tumours arising at the ampulla itself present earlier because they obstruct the bile duct while still small, and therefore carry a better prognosis than pancreatic head tumours of equivalent size.
Carbohydrate antigen 19-9 is used for monitoring rather than diagnosis, and is unreliable in a jaundiced patient because cholestasis alone raises it.
10. Liver Lesions
Liver surgery is organised around the Couinaud description of eight segments, each with its own portal inflow, hepatic arterial supply and biliary drainage.
That independence is what makes liver resection possible, because a segment can be removed without devascularising its neighbours, and it is why the surgical right and left lobes are divided along Cantlie line running from the gallbladder fossa to the inferior vena cava rather than along the visible falciform ligament.
The Pringle manoeuvre clamps the portal triad in the free edge of the lesser omentum to control inflow bleeding. Continued bleeding despite it indicates a hepatic venous or caval source, which is the more dangerous problem.
Amoebic liver abscess is typically solitary, in the right lobe, in a young man, with anchovy sauce pus that is sterile on culture because the organism lives in the abscess wall. Serology is positive and metronidazole is usually curative without drainage.
Pyogenic liver abscess is more often multiple, occurs in older patients with biliary disease, and requires antibiotics with drainage.
Hydatid cyst is caused by Echinococcus granulosus, shows daughter cysts and a calcified wall on imaging, and is treated with albendazole and either the PAIR technique or surgery.
Aspiration of a hydatid cyst risks anaphylaxis and dissemination, which is why scolicidal agents are instilled and the field is protected during any intervention.
Haemangioma is the commonest benign liver tumour and needs no treatment. Hepatic adenoma occurs in women on oral contraceptives, may rupture or undergo malignant change, and is therefore resected when large.
Hepatocellular carcinoma arises in cirrhosis, most often from hepatitis B or C, is screened for with ultrasound and alpha-fetoprotein, and shows characteristic arterial enhancement with venous washout on contrast imaging.
11. Worked Examples
Example 1. A 55-year-old woman has fever, jaundice and right upper quadrant pain, with a blood pressure of 85 over 50 and confusion.
Charcot triad establishes cholangitis, and the addition of hypotension and altered mental state makes this Reynolds pentad, indicating suppurative cholangitis with high mortality.
Resuscitation and broad-spectrum antibiotics are started immediately, but the definitive treatment is urgent biliary drainage, because an obstructed infected system cannot be sterilised while it remains obstructed. Endoscopic drainage is first line.
Example 2. A 68-year-old man has painless jaundice, weight loss, and a palpable non-tender gallbladder.
Courvoisier law states that a palpable, non-tender gallbladder in a jaundiced patient is unlikely to be due to stones, because chronic stone disease scars the gallbladder so that it cannot distend.
This is malignant distal biliary obstruction, most probably carcinoma of the head of the pancreas. Computed tomography with a pancreatic protocol is the correct staging investigation, and resectability depends on arterial involvement rather than on size.
Example 3. A patient with necrotising pancreatitis deteriorates in the third week with fever and rising inflammatory markers. Imaging shows gas within the necrosis.
Gas within necrosis indicates infected pancreatic necrosis, which is the principal surgical indication in pancreatitis and the main driver of late mortality.
Management follows the step-up approach: percutaneous or endoscopic drainage first, with minimally invasive necrosectomy only if the patient does not improve. Open necrosectomy carries substantially higher morbidity and is now rare. Sterile necrosis, by contrast, is left alone however extensive it looks.
Summary
- Follow the bile: the level of obstruction gives the diagnosis, infection gives the urgency.
- Cystic duct obstruction gives colic then cholecystitis; duct obstruction gives jaundice then cholangitis.
- Calot triangle contains the cystic artery; the critical view of safety prevents duct injury.
- Cholesterol stones dominate; black pigment stones follow haemolysis, brown ones infection.
- Asymptomatic gallstones are not operated on.
- Biliary colic is constant rather than colicky, and resolves completely.
- Cholecystitis persists with fever and tenderness; significant jaundice implies a second problem.
- Murphy sign is arrest of inspiration on palpation.
- Early laparoscopic cholecystectomy within 72 hours beats delayed surgery.
- Emphysematous cholecystitis occurs in diabetic men and is an emergency.
- Acalculous cholecystitis occurs in the critically ill and has higher mortality.
- Courvoisier law: a palpable non-tender gallbladder suggests malignancy, not stones.
- Mirizzi syndrome is the classic exception to Courvoisier.
- Magnetic resonance cholangiopancreatography is the non-invasive test of choice.
- Endoscopic retrograde cholangiopancreatography is now therapeutic and risks pancreatitis.
- Charcot triad is fever, jaundice and pain; Reynolds pentad adds shock and confusion.
- Drainage, not antibiotics, is the definitive treatment of cholangitis.
- Bile duct injury is misidentification, prevented by the critical view of safety.
- A clipped duct presents with jaundice; a divided duct presents with bile leak.
- Major duct injuries are repaired by hepaticojejunostomy at a specialist centre.
- Choledochal cysts are excised, not drained, because of cholangiocarcinoma risk.
- Cantlie line, not the falciform ligament, divides the surgical lobes.
- The Pringle manoeuvre controls inflow; continued bleeding means a venous source.
- Rigler triad is obstruction, pneumobilia and an ectopic gallstone.
- Cholecystectomy after gallstone pancreatitis is done in the same admission.
- Gallbladder cancer is exceptionally common in North India and the Gangetic belt.
- Infected necrosis is the main surgical indication in pancreatitis; sterile necrosis is left alone.
- The step-up approach precedes any necrosectomy.
- Pseudocysts are drained only if symptomatic, infected or enlarging.
- Painless progressive jaundice in an older patient is pancreatic head cancer until disproved.
- Resectability depends on arterial involvement, not tumour size.
- Whipple resection follows the shared blood supply of duodenum and pancreatic head.
- Periampullary tumours present earlier and do better than pancreatic head tumours.
- Carbohydrate antigen 19-9 monitors rather than diagnoses and is unreliable in jaundice.
- Amoebic abscess is solitary, right lobe, sterile pus, treated medically.
- Aspirating a hydatid cyst risks anaphylaxis and dissemination.