Endoscopic retrograde cholangiopancreatography — wire-guided access, sphincterotomy, and mechanical clearance of common bile duct stones
ERCP begins with the single hardest technical step in the entire procedure: selectively and deeply cannulating the common bile duct (CBD) without inadvertently entering, or repeatedly injuring, the pancreatic duct. The side-viewing duodenoscope is advanced to the second portion of the duodenum and rotated so the major papilla sits en face, after which a sphincterotome pre-loaded with a 0.025–0.035" guidewire is used to probe the ampullary orifice along its natural axis toward the 11 o'clock direction.
The major duodenal papilla sits on the medial wall of the second part of the duodenum, roughly 8–10 cm distal to the pylorus. A side-viewing (oblique) endoscope — the classic TJF/JF-series duodenoscope — is required rather than a forward-viewing gastroscope, because it places the imaging lens and the elevator-controlled accessory channel perpendicular to the papillary face, the only geometry that allows an axial, coaxial approach to the ampullary orifice.
The papilla itself has a longitudinal fold running from the orifice up toward 11–12 o'clock — this fold marks the intraduodenal course of the distal CBD and is the single most useful anatomic landmark for orienting the sphincterotome. The pancreatic duct usually exits at 5 o'clock on the papillary face, entering the ampulla at a shallower, more perpendicular angle, while the bile duct takes a steeper, more cephalad trajectory. Confusing the two orifices — or repeatedly cannulating the pancreatic duct while attempting biliary access — is the dominant driver of post-ERCP pancreatitis.
The elevator, a small hinged flap at the tip of the endoscope, is used to fine-tune the trajectory of the sphincterotome tip by a few millimeters at a time, effectively steering the catheter into the ampullary os once the endoscope position and papillary orientation are correct.
Modern practice favors wire-guided cannulation over contrast-guided cannulation: a guidewire is advanced just ahead of, or through, the sphincterotome tip, probing for the ductal lumen without injecting contrast into the pancreatic duct. Randomized trials and the 2020 ESGE guideline both support wire-guided technique as reducing post-ERCP pancreatitis compared with contrast-first cannulation, presumably because it avoids hydrostatic and chemical injury to the pancreatic acini from contrast injection.
Difficult biliary cannulation is formally defined by ESGE as more than 5 contacts with the papilla, more than 5 minutes spent attempting cannulation, or more than 1 unintended pancreatic duct cannulation/opacification — whichever occurs first. Once this threshold is crossed, continuing to probe blindly increases papillary edema and raises pancreatitis risk without improving the odds of success, so the algorithm branches toward alternative techniques: double-guidewire technique (leaving a wire parked in the pancreatic duct to straighten the septum and guide a second wire into the bile duct), pancreatic duct stent placement to protect against post-ERCP pancreatitis, or precut (access) sphincterotomy.
Precut technique — most commonly a needle-knife fistulotomy made just above the papillary orifice — is used in roughly 10–15% of ERCPs. Performed early by an experienced operator, precut achieves comparable success and safety to persistent standard cannulation; performed late, after prolonged unsuccessful attempts, it is associated with higher rates of pancreatitis, perforation, and bleeding, which is why current guidelines recommend early recourse to precut or a same-session second operator rather than escalating attempt count indefinitely.
Key Insight: the guideline-defined 5-attempts/5-minutes rule is not arbitrary — registry data show that pancreatitis risk climbs sharply once a papilla has been instrumented more than five times, largely from cumulative pancreatic-orifice trauma and papillary edema. Recognizing "difficult cannulation" early and switching strategy (double-wire, pancreatic stent, or precut) is a more effective pancreatitis-prevention maneuver than technical persistence.
Once the sphincterotome sits deep in the bile duct with its cutting wire bowed against the roof of the papilla, an electrosurgical generator delivers current through the exposed wire, dividing the biliary sphincter along its natural axis. This enlarges the papillary orifice from a few millimeters to 10–15 mm, wide enough for stone-retrieval balloons, baskets, or lithotripsy devices to pass without shearing the duct wall.
Sphincterotomes are monopolar electrosurgical devices: a thin wire runs along the distal few centimeters of the catheter, and current flows from the generator through the wire, through tissue, to a grounding pad on the patient. Two waveforms dominate practice:
Pure cutting current delivers continuous low-voltage energy that vaporizes tissue rapidly with minimal coagulation — fast, clean cuts but a higher risk of immediate bleeding because vessels are divided before they can be thermally sealed.
Blended current alternates cutting and coagulation waveforms (e.g., ERBE Endocut mode), automatically pulsing cut and coag phases based on real-time tissue impedance feedback. Endocut-type generators largely replaced manual blended current because they produce a more controlled, incremental cut with better hemostasis and less risk of the "zipper cut" — an uncontrolled, fast full-length incision caused by excessive pure-cut energy against low-impedance, edematous tissue.
Wire-tissue contact must be visually confirmed with roughly one-third to one-half of the wire touching the papillary roof before activating current; too little contact concentrates current density and risks perforation, too much predisposes to an uncontrolled cut.
The incision is carried along the 11 to 12 o'clock axis — the direction in which the intraduodenal segment of the CBD runs beneath the duodenal mucosa — because this trajectory follows the course of the duct itself and avoids the retroperitoneal wall laterally and the pancreatic orifice medially. Cutting outside this axis substantially raises perforation risk.
Incision length is titrated to the size of stones expected and the size of the papilla: typically the cut is extended to, but not beyond, the transverse duodenal fold, which approximates the point where the intraduodenal (intramural) portion of the CBD ends. Over-extension beyond this landmark risks retroperitoneal perforation; under-cutting may be insufficient for stone extraction, particularly for stones >10 mm.
Risk factors for post-sphincterotomy bleeding include coagulopathy, anticoagulant/antiplatelet use, cirrhosis with portal hypertension, low case volume of the operator, and a periampullary diverticulum distorting normal tissue planes. Immediate bleeding is usually managed endoscopically with balloon tamponade, dilute epinephrine injection, or thermal/mechanical hemostasis (coaptive coagulation or endoscopic clips); delayed bleeding, though less common, can occur up to two weeks post-procedure.
An alternative to pure sphincterotomy — endoscopic papillary balloon dilation (EPBD), sometimes combined with a limited sphincterotomy ("sphincteroplasty") — dilates the orifice with a balloon rather than cutting, reducing bleeding risk but carrying a higher pancreatitis risk unless a small sphincterotomy is performed first; it is favored in coagulopathic patients or those on uninterrupted anticoagulation.
With the sphincterotomy complete, the operator chooses among three complementary tools to physically remove stones from the duct: an extraction balloon dragged from above the stone down through the papilla, a Dormia-type wire basket that snares the stone for controlled traction, or — for stones too large to pass the sphincterotomy intact — a mechanical lithotripsy basket that crushes the stone against a metal sheath before extraction.
For straightforward stones — generally under 10 mm, and comfortably smaller than the completed sphincterotomy — an extraction balloon catheter is passed above the stone(s), inflated to a diameter matching the duct, and withdrawn distally in a controlled sweep, dragging the stone(s) ahead of it through the sphincterotomy and out into the duodenal lumen. Multiple sweeps are performed working from the most proximal (intrahepatic) stone downward, so that smaller fragments are not pushed past larger ones into a dead-end side branch.
A Dormia (wire) basket offers more active control: the basket is advanced past the stone under fluoroscopic guidance, opened, withdrawn until the stone falls into the wire framework, then closed around the stone before withdrawal. Baskets are preferred for large or irregularly shaped stones, for stones proximal to a ductal stricture where balloon sweeping might push the stone out of reach, and whenever precise, stone-by-stone control is needed.
Single-session complete ductal clearance is achieved in more than 90% of patients when all stones are under 10 mm; success falls as stone size, stone number, and duct-to-stone size mismatch increase.
Stones at or above roughly 15 mm — or any stone that becomes trapped inside a basket but cannot be withdrawn through the papilla (basket impaction) — are managed with mechanical lithotripsy. A dedicated lithotripsy basket (through-the-scope devices such as the Soehendra-type basket, or emergency salvage lithotripters that can be applied over an already-impacted basket) captures the stone, then a metal sheath is advanced over the basket handle and a hand-crank or geared mechanism progressively cinches the basket wires, crushing the stone against the confining sheath into fragments small enough to pass through the sphincterotomy individually.
Emergency mechanical lithotripsy is a critical rescue maneuver for basket impaction — a situation in which a standard (non-lithotripsy) basket has trapped a stone too large to release or withdraw, leaving the endoscope tethered to a captured stone. Dedicated emergency lithotripsy handles allow the basket to be crushed even after the endoscope has been withdrawn, leaving only the basket and sheath in place trans-orally.
Mechanical lithotripsy achieves fragmentation and eventual clearance in roughly 80–90% of appropriately selected cases. When lithotripsy fails — very hard, faceted, or intrahepatic stones — second-line modalities include intraductal electrohydraulic or laser lithotripsy performed under direct cholangioscopic visualization (SpyGlass-type systems), or extracorporeal shockwave lithotripsy as an adjunct.
When stones are numerous (≥3–5), very large, or clearance is otherwise incomplete within a reasonable procedure time, a staged approach is standard: a biliary stent (or nasobiliary drain) is placed to secure drainage and prevent cholangitis, and the patient returns for a second (or third) ERCP session — often after an interval that allows large stones to soften and fragment further from bile contact and stent-related friction. Long-dwelling straight or pigtail plastic stents left in place for several months can themselves reduce stone size and facilitate later extraction ("stone dissolution/softening" effect), though this strategy is generally reserved for patients unfit for repeated procedures or definitive surgery.
Guideline bodies (ASGE, ESGE) recommend against leaving large stones completely unaddressed with a stent as definitive therapy in patients who are reasonable candidates for further intervention, given the ongoing risk of cholangitis and stent occlusion; stenting is a bridge, not an endpoint, whenever feasible.
Before the procedure ends, the operator must prove — not assume — that the duct is stone-free. A completion cholangiogram, obtained by injecting contrast through the biliary cannula under live fluoroscopy, is the standard method; balloon occlusion cholangiography, cholangioscopy, or intraductal ultrasound are added when residual stone burden is uncertain or the initial clearance was difficult.
A standard completion cholangiogram is obtained by injecting water-soluble iodinated contrast through the cannula or catheter positioned in the bile duct, with fluoroscopic imaging capturing the full length of the duct from the intrahepatic radicles to the distal CBD and papilla. A clear duct shows smooth, uniform contrast opacification with free flow of contrast (and typically air, once the sphincter has been cut) into the duodenum, and no rounded or linear filling defects.
Balloon occlusion cholangiography increases sensitivity: an occlusion balloon is inflated in the distal CBD just above the papilla, and contrast is injected proximal to the balloon, distending the duct fully and preventing contrast from escaping before the entire ductal system has opacified. This technique is particularly useful for detecting small stones or biliary sludge that might otherwise be washed out or obscured during a non-occluded injection, and is considered best practice after any extraction where more than a trivial stone burden was present.
Fluoroscopic filling defects must be distinguished from artifact: air bubbles (which rise and are mobile, typically non-dependent), the normal cystic duct remnant or spiral valves of Heister, and blood clots can all mimic residual stones. Repositioning the patient, tilting the fluoroscopy table, or repeating the injection after aspirating air helps resolve ambiguous findings.
When fluoroscopic cholangiography remains equivocal — a subtle filling defect, a large or tortuous duct where distal segments are poorly visualized, or a strong pre-test suspicion of residual stone despite a "clean" cholangiogram — direct visual or ultrasonographic confirmation is added.
Per-oral cholangioscopy (single-operator systems such as SpyGlass DS) passes a dedicated mini-endoscope through the working channel and into the bile duct, giving the operator direct visual inspection of the ductal mucosa and lumen; any residual fragment can be confirmed and, if needed, immediately treated with intraductal electrohydraulic or laser lithotripsy under direct vision.
Intraductal ultrasound (IDUS) passes a thin high-frequency ultrasound catheter into the duct over a guidewire, generating a cross-sectional image of the ductal wall and lumen that can detect small stones, sludge, or strictures missed by fluoroscopy alone — studies suggest IDUS identifies additional stones in a meaningful minority of patients judged stone-free by cholangiogram, particularly small (<5 mm) fragments and biliary sludge, though its use is limited by cost, availability, and added procedure time, so it is reserved for higher-risk or diagnostically uncertain scenarios rather than applied routinely.
ERCP is the endoscopic procedure with the highest complication rate in routine gastrointestinal practice, and stone-extraction cases carry the added risks of sphincterotomy and instrumentation on top of cannulation itself. Structured post-procedure surveillance — clinical, biochemical, and in selected patients pharmacologic prophylaxis given before the risk window even opens — is what keeps these risks in an acceptable range.
Post-ERCP pancreatitis (PEP) is the most common serious complication, occurring in roughly 5–10% of unselected cases but climbing to 25–40% in the highest-risk subgroup: patients with suspected sphincter of Oddi dysfunction undergoing difficult cannulation. Patient-level risk factors include younger age, female sex, prior pancreatitis, and suspected SOD; procedure-level risk factors include difficult or repeated cannulation attempts, pancreatic duct injection or cannulation, precut sphincterotomy, and pancreatic sphincterotomy.
Mechanical prevention centers on prophylactic pancreatic duct stenting in high-risk patients — a small, short, often self-migrating 5 Fr stent placed in the pancreatic duct at the end of the procedure to maintain outflow and reduce ductal hypertension, which several meta-analyses show roughly halves PEP incidence in high-risk cases.
Diagnosis follows the revised Atlanta-type criteria adapted for the post-procedural setting: new or worsening abdominal pain plus serum lipase or amylase greater than 3× the upper limit of normal, measured at least 2–6 hours post-procedure (measuring immediately post-ERCP produces false positives from transient enzyme elevation without true pancreatitis). Severity ranges from mild (self-limited, managed with IV fluids and analgesia, discharge within days) to severe necrotizing pancreatitis requiring ICU-level care.
Key Insight: the landmark Elmunzer et al. trial (NEJM 2012) randomized high-risk ERCP patients to a single 100 mg rectal indomethacin suppository immediately before or after the procedure versus placebo, and found PEP incidence fell from 16.9% to 9.2% (relative risk reduction ~46%), with a number needed to treat of roughly 13. Rectal NSAID prophylaxis (indomethacin or diclofenac) is now near-universally recommended by ASGE and ESGE for patients at elevated PEP risk, and many centers give it routinely to all ERCP patients given its low cost and favorable safety profile, often combined with pancreatic stenting in the highest-risk cases.
Post-sphincterotomy bleeding occurs in roughly 1–2% of cases, most often immediately visible during the procedure but occasionally delayed by hours to two weeks. Immediate bleeding is managed with balloon tamponade, submucosal dilute epinephrine injection, thermal coagulation, or through-the-scope hemostatic clips; delayed bleeding presenting as melena or hematemesis after discharge requires prompt repeat endoscopy.
Perforation occurs in roughly 0.3–1% of ERCPs and is classified by mechanism: guidewire perforations (usually minor, often managed conservatively), periampullary/retroperitoneal perforation from sphincterotomy extending beyond the intramural duct segment (may require surgical or percutaneous drainage depending on severity and contrast/air extravasation), and duodenal wall perforation from the endoscope itself (least common with modern side-viewing scopes but potentially the most serious, often requiring surgery). CT with water-soluble contrast is the diagnostic study of choice when perforation is suspected; small, contained retroperitoneal perforations recognized promptly are frequently managed non-operatively with NPO status, IV antibiotics, and drainage if a collection develops.
Cholangitis after ERCP, occurring in roughly 1% of cases, typically reflects incomplete ductal drainage (residual stones, an undrained stricture, or a duct segment not fully cleared/opacified) or, rarely, contamination introduced during the procedure (a major driver behind strict duodenoscope reprocessing protocols following outbreaks linked to elevator-channel contamination). Fever, rigors, and right-upper-quadrant pain in the days following ERCP warrant blood cultures, broad-spectrum antibiotics, and prompt reimaging (ultrasound or repeat ERCP) to identify and relieve any persistent obstruction.
Routine post-procedure surveillance therefore combines a structured clinical exam, delayed (not immediate) lipase measurement when pancreatitis is suspected, a low threshold for cross-sectional imaging if perforation is suspected, and clear discharge instructions describing the symptoms of each complication so patients can seek care promptly if they develop after leaving the endoscopy unit.