HomeERCP & Biliary InterventionProphylactic Pancreatic Duct Stent Placement Simulator

🩺 Prophylactic Pancreatic Duct Stent Placement Simulator

This simulation helps users understand and practice the placement of a stent in the pancreatic duct as a preventive measure.

ERCP & Biliary Intervention2DModerate60 FPS
prophylactic-pd-stent-placement ↗ Open standalone

Risk Stratification for Post-ERCP Pancreatitis — Patient and Procedure Factors

Post-ERCP pancreatitis (PEP) is the most common major complication of endoscopic retrograde cholangiopancreatography, occurring in roughly 3–10% of unselected procedures but climbing to 15–25% when multiple patient- and procedure-related risk factors stack together. Accurate pre- and intra-procedural risk stratification is the foundation on which every downstream prophylaxis decision — pancreatic stenting, rectal NSAID administration, or both — is built.

  • 3–10%: Overall PEP incidence (unselected ERCP cohorts)
  • 15–25%: High-risk cohort incidence (multiple factors stacked)
  • ~3.4×: Difficult cannulation OR (>10 min or >5 attempts)
  • ~2.7×: PD guidewire passage OR (≥1 wire pass into PD)

Patient-related risk factors

A cluster of patient characteristics reproducibly predicts higher PEP risk across large prospective cohorts and forms the basis of ASGE and ESGE risk calculators. Suspected sphincter of Oddi dysfunction (SOD) carries the single largest patient-related odds ratio, in the range of 2.6–4.1×, reflecting both the underlying papillary spasm/hypertension and the technically difficult cannulation these patients require. Female sex independently raises risk roughly 2.2×, and younger age (typically <60) adds further risk, likely reflecting a more reactive, less fibrotic pancreatic parenchyma.

A prior history of post-ERCP pancreatitis is one of the strongest predictors of recurrence, with reported odds ratios near 2.5×, and should prompt maximal prophylaxis on any repeat procedure. Somewhat counterintuitively, a normal serum bilirubin at the time of ERCP (implying a non-obstructed, non-dilated duct) increases risk (~1.9×) because these ducts are narrower and more difficult to selectively cannulate. Absence of chronic pancreatitis is also a risk factor — a healthy, non-fibrotic gland is more vulnerable to enzymatic autodigestion and the inflammatory cascade than a duct already scarred by chronic disease, which is comparatively protected.

None of these factors act in isolation. Guideline risk calculators (ASGE 2023, ESGE 2020) treat them as an additive-to-multiplicative score: a young woman with suspected SOD and a prior PEP episode may already carry a baseline risk exceeding 20% before a single cannulation attempt is made.

Procedure-related risk factors

Technique-dependent variables generally carry the highest odds ratios of any PEP risk factor because they reflect direct mechanical and thermal trauma to the papilla and pancreatic orifice. Difficult or prolonged cannulation — conventionally defined as more than 10 minutes of attempted cannulation time or more than 5 contact attempts with the papilla — carries an odds ratio near 3.4× and is the single most common trigger for escalating to prophylactic stenting.

Any pancreatic guidewire passage, whether intentional (double-wire technique) or inadvertent, raises risk roughly 2.7-fold — the wire itself causes papillary edema even without contrast injection. Pancreatic duct contrast injection, particularly acinarization from over-injection, compounds this further (~2.2×). Precut (access) sphincterotomy, used when standard cannulation fails, carries an odds ratio around 2.7–3.1× — though much of this risk is confounded by the underlying difficult anatomy that necessitated precut in the first place rather than the precut technique itself.

Balloon dilation of an intact, non-sphincterotomized biliary sphincter is the highest-risk single maneuver identified in prospective trials, with odds ratios reported as high as 4.5× compared with standard sphincterotomy, and is now generally avoided unless sphincterotomy is contraindicated (e.g., coagulopathy).

Composite risk and the prophylaxis threshold

Because patient- and procedure-related factors are largely independent, guideline bodies define "high risk" as meeting any one of: ≥2 patient-related factors, OR any single strong procedure-related factor such as difficult cannulation with pancreatic guidewire passage, precut sphincterotomy, or pancreatic duct injection. In practice, most academic ERCP units apply this threshold intraoperatively, in real time — the interventionalist reassesses risk after every wire pass and adjusts the prophylaxis plan (stent, indomethacin, or both) accordingly rather than deciding purely from pre-procedural criteria.

The Decision to Place a Prophylactic Pancreatic Duct Stent

Once a patient is classified as high risk — most commonly because the pancreatic duct was repeatedly wire-accessed during a difficult biliary cannulation — ASGE and ESGE guidelines recommend placement of a small-caliber prophylactic pancreatic stent. The stent physically decompresses the pancreatic orifice, preventing the papillary edema and outflow obstruction believed to drive the enzymatic autodigestion cascade of PEP.

  • 5Fr: Recommended stent caliber (3Fr reserved for small ducts)
  • 3–5 cm: Stent length (single-pigtail, unflanged)
  • Strong / moderate GRADE: Guideline strength (ASGE 2023 · ESGE 2020)
  • PD wire access: Typical trigger (during difficult cannulation)

ASGE / ESGE indications for prophylactic PD stenting

Both major endoscopy societies recommend prophylactic pancreatic duct stenting in patients deemed high risk for PEP, with the strongest and most consistent evidence in patients who underwent inadvertent or intentional pancreatic guidewire cannulation during a difficult biliary access attempt. Additional accepted indications include precut (access) papillotomy, pancreatic sphincterotomy, ampullectomy, balloon dilation of an intact biliary sphincter, and extensive pancreatic duct instrumentation for suspected SOD manometry or therapy.

The guiding physiologic rationale is straightforward: a stent bridges the freshly traumatized or edematous pancreatic orifice, guaranteeing free outflow of pancreatic secretions during the critical first 24–72 hours when ductal hypertension and enzyme activation within the gland are most likely to trigger autodigestive injury. Randomized trials and subsequent meta-analyses consistently show this single maneuver meaningfully lowers PEP incidence in exactly the population who needs it most.

Stent selection — caliber, length, and migration design

The default prophylactic stent is 5French (5Fr) in outer diameter, chosen to fit comfortably within a normal-caliber, non-dilated pancreatic duct while still allowing adequate secretory flow around and through the stent lumen. In patients with a small, tortuous, or genetically narrow pancreatic duct — more common in young women, the population most often at highest PEP risk — a 3Fr stent may be substituted, though it is technically more difficult to place and more prone to early occlusion.

Length is typically 3–5cm, just long enough to bridge from the papillary orifice into the proximal-to-mid main pancreatic duct without impacting the duct wall at a sharp angle or crossing a genu that could cause ductal injury. Design is deliberately unflanged, or minimally flanged, with a single pigtail curl retained at the duodenal (proximal) end only — the internal, intraductal end is left straight and unflanged specifically so the stent is not anchored and will migrate distally and pass spontaneously into the duodenum over subsequent weeks, rather than requiring a dedicated retrieval procedure.

Real-time technical triggers during the procedure

In practice the decision to stent is rarely made in advance — it crystallizes intraoperatively, the moment a pancreatic guidewire pass, a precut sphincterotomy, or a prolonged failed cannulation attempt occurs. Many high-volume ERCP endoscopists adopt a low threshold: any unintentional pancreatic duct cannulation during attempted biliary access is treated as sufficient justification to place a prophylactic stent before ending the procedure, since the marginal risk and cost of stenting is low relative to the morbidity, prolonged hospitalization, and rare mortality associated with severe PEP.

Deploying the Stent Across the Papilla — Guidewire-Directed Placement

With a guidewire already seated in the pancreatic duct — whether placed deliberately as part of a double-wire cannulation technique or retained after an inadvertent pancreatic pass — the small-caliber stent is advanced over this wire, across the sphincter, and released so that its pigtail curl seats safely in the duodenal lumen while the straight distal end sits in the mid pancreatic duct.

  • 90–98%: Technical success rate (experienced endoscopists)
  • Mandatory: Fluoroscopy (confirm ductal position/depth)
  • Duodenal end only: Pigtail retention (prevents proximal impaction)
  • 2–5 min: Added procedure time (per stent placed)

Guidewire-directed stent delivery

The 0.025 or 0.035-inch pancreatic guidewire, already confirmed fluoroscopically to lie within the main pancreatic duct, functions as the delivery rail. The pre-loaded stent — mounted on an inner pusher catheter — is threaded over the wire and advanced under combined fluoroscopic and endoscopic visualization through the duodenoscope working channel, across the major papilla, and into the ductal orifice.

Advancement is performed slowly and under continuous fluoroscopy to avoid over-insertion, which risks perforating a ductal side branch or impacting the stent against a tortuous genu of the duct. Once the pusher catheter has advanced the stent to the target depth — typically positioning the distal straight tip in the mid-body of the duct, well short of the tail — the pusher is withdrawn while the wire is held stationary, releasing the stent into final position. The guidewire is then removed, allowing the proximal pigtail to spring open and curl within the duodenal lumen, anchoring the stent against premature inward migration while still permitting it to migrate outward over time.

Confirming position and avoiding complications

Correct position is confirmed by fluoroscopic spot imaging demonstrating the pigtail curl fully formed within the duodenal lumen (not still straightened within the duct) and free flow of contrast or pancreatic juice around the stent. Endoscopic visualization additionally confirms the pigtail has not been extruded too far into the duodenum, where it could migrate and be lost before achieving any therapeutic decompression.

Technical success — defined as successful deployment of a correctly positioned stent — is achieved in 90–98% of attempts by experienced pancreaticobiliary endoscopists, with most failures attributable to an inability to re-cannulate the duct after an initial guidewire loss, or a duct too tortuous or narrow to accept even a 3Fr stent. Placement adds only 2–5 minutes to total procedure time, a strong contributor to its favorable risk-benefit profile.

Quantifying Protection — PD Stenting, Rectal Indomethacin, and Combined Prophylaxis

Two prophylactic interventions have transformed high-risk ERCP outcomes over the past two decades: mechanical decompression via pancreatic duct stenting, and pharmacologic suppression of the inflammatory cascade via periprocedural rectal indomethacin. Used together, in the patients who need them most, they produce the largest relative risk reductions seen for any PEP prevention strategy.

  • 5–8%: PEP with stent alone (down from 15–20% unstented)
  • 16.9% → 9.2%: Elmunzer NEJM 2012 (placebo vs rectal indomethacin)
  • ~13: NNT, indomethacin (high-risk patients)
  • Lowest observed risk: Combined stent + NSAID (per ASGE/ESGE 2023 update)

Meta-analytic evidence for pancreatic stent efficacy

Multiple randomized controlled trials and subsequent meta-analyses, pooling thousands of high-risk ERCP patients, consistently demonstrate that prophylactic pancreatic duct stenting reduces PEP incidence from a baseline of approximately 15–20% in unstented high-risk patients down to roughly 5–8% with a technically successful stent — a relative risk reduction on the order of 60–65%. The magnitude of benefit scales with how accurately the "high risk" population was defined: trials enrolling patients purely on the basis of pancreatic guidewire passage or difficult cannulation show the largest absolute benefit, since these patients have the highest baseline event rate to reduce.

The number needed to treat (NNT) to prevent one case of PEP with stenting in a genuinely high-risk cohort is favorable, generally cited in the range of 8–10, making it one of the most cost-effective interventions in therapeutic endoscopy despite the added procedure time, fluoroscopy exposure, and small risk of stent-related ductal injury.

The Elmunzer NEJM 2012 rectal indomethacin trial

The landmark multicenter, randomized, placebo-controlled trial by Elmunzer and colleagues (New England Journal of Medicine, 2012) enrolled 602 patients at elevated risk for PEP and randomized them to a single dose of rectal indomethacin 100mg or placebo suppository, administered immediately before or immediately after ERCP. Indomethacin, a non-selective NSAID, inhibits cyclooxygenase (COX-1 and COX-2), thereby blunting the phospholipase A2-mediated arachidonic acid cascade and downstream prostaglandin- and leukotriene-driven inflammation believed to amplify the earliest phase of pancreatic acinar cell injury after ductal instrumentation.

The trial was stopped early for efficacy: PEP occurred in 9.2% of the indomethacin group compared with 16.9% of the placebo group — an absolute risk reduction of roughly 7.7 percentage points and a number needed to treat of approximately 13. Critically, the protective effect was seen even though roughly 80% of enrolled patients already had a pancreatic stent placed, suggesting indomethacin acts through a mechanism at least partly independent of, and additive to, mechanical ductal decompression.

The Elmunzer trial reframed periprocedural prophylaxis: a two-dollar, five-minute suppository given to essentially all high-risk ERCP patients — regardless of whether a stent is also placed — produces one of the largest relative risk reductions of any single intervention in interventional endoscopy. Current ASGE and ESGE guidance now recommends rectal indomethacin (or diclofenac) for all high-risk patients as a default, with pancreatic stenting reserved as an additional, complementary measure rather than a substitute.

Current combined-prophylaxis guideline recommendations

Following the Elmunzer trial and its confirmatory meta-analyses, both ASGE (2023) and ESGE (2020, updated 2023) guidance converge on a combined-prophylaxis strategy for high-risk patients: rectal NSAID (indomethacin or diclofenac 100mg) administered periprocedurally in essentially all high-risk patients, plus prophylactic pancreatic duct stenting specifically in those with mechanical risk factors such as pancreatic guidewire passage, precut sphincterotomy, or difficult cannulation. Aggressive periprocedural intravenous hydration with lactated Ringer's solution is frequently added as a third, low-cost adjunct in centers without contraindication (e.g., heart failure).

Modeled and observed PEP rates for the combined strategy — stent plus indomethacin — fall below either intervention alone, consistent with two at least partially independent protective mechanisms: mechanical decompression of ductal hypertension, and pharmacologic dampening of the inflammatory cascade that amplifies whatever acinar injury does occur.

Spontaneous Stent Passage — Surveillance and Management of Retained Stents

A prophylactic pancreatic stent is intentionally designed as a temporary device. Its unflanged, single-pigtail geometry is engineered to migrate distally under normal peristaltic and ductal flow forces and pass spontaneously into the duodenum — and onward through the GI tract — within a predictable window, sparing the patient a second endoscopic procedure for removal in the great majority of cases.

  • >95%: Spontaneous passage (within 2–3 weeks, 5Fr unflanged)
  • 2–3 weeks: KUB check timing (if passage unconfirmed)
  • 5–10%: Retained stent rate (require endoscopic retrieval)
  • Ductal injury: Retained-stent risk (stricture, calcification, pain)

Mechanics of spontaneous migration

Because the intraductal end of a prophylactic pancreatic stent is left straight and unflanged, normal pancreatic secretory flow and duodenal peristaltic activity are usually sufficient to gradually push the stent distally out of the duct and into the duodenal lumen, from which it passes naturally through the remaining GI tract and is excreted. Most 5Fr unflanged stents migrate and pass within 1–3 weeks of placement; the shorter and straighter the stent, and the less tortuous the duct, the faster passage tends to occur.

Stent design is a deliberate trade-off: a longer, more flanged, or internally anchored stent would provide more durable ductal decompression during the highest-risk early window, but would also be far less likely to pass spontaneously, converting a prophylactic device into one that reliably requires a dedicated retrieval endoscopy. The current unflanged 3–5cm single-pigtail design is optimized to provide just enough decompression during the critical first days while maximizing the odds of trouble-free spontaneous passage thereafter.

Radiographic surveillance protocol

Because a retained pancreatic stent is largely asymptomatic until it causes a complication, structured surveillance is standard practice. Patients are counseled to watch for the stent passing (which may be visually apparent) but, more reliably, undergo a scheduled plain abdominal radiograph (kidneys-ureters-bladder, or KUB film) at approximately 2–3 weeks after placement if spontaneous passage has not been clinically confirmed. The stent's radiopaque markers make it readily visible on a plain film, allowing a simple, low-cost, low-radiation confirmation of passage without requiring repeat endoscopy or cross-sectional imaging in most patients.

If the KUB confirms the stent is no longer present, no further action is needed. If the stent is still visualized in expected ductal position, continued observation with a repeat film in another 1–2 weeks is reasonable, since many stents simply take slightly longer than the average window to migrate.

Management of retained stents

Approximately 5–10% of prophylactic pancreatic stents fail to pass spontaneously within the expected timeframe and are classified as retained. Retained stents are not merely a nuisance: prolonged intraductal dwell time can incite local ductal inflammation, epithelial hyperplasia, and — over months — stricture formation or intraductal calcification (stent-induced ductal changes), occasionally producing chronic pancreatitis-like symptoms in an otherwise healthy gland.

Management of a confirmed retained stent is endoscopic retrieval via repeat ERCP, using a snare, forceps, or balloon catheter to grasp the duodenal pigtail (or, if migrated fully intraductally, an over-the-wire retrieval technique) and withdraw the stent through the duodenoscope. Retrieval is generally straightforward when performed within a few months of placement, before significant ductal wall changes have occurred, reinforcing the rationale for timely radiographic surveillance rather than indefinite watchful waiting.

⚙ Under the hood

This simulation helps users understand and practice the placement of a stent in the pancreatic duct as a preventive measure.

CanvasBiomedicine

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)