Background

Endoscopic retrograde cholangiopancreatography (ERCP) remains the standard procedure for evaluation and management of pancreaticobiliary conditions. Over time, the utility of ERCP has increased dramatically, and the role of ERCP in medical management has expanded from a diagnostic procedure to one that is mostly therapeutic. While this expansion has improved treatment modalities for biliary pathology, complications and adverse events following ERCP continue to persist and may have a significant impact on patients’ morbidity and rarely mortality [1]. Generally, ERCP is considered to be safe and effective. Several retrospective studies have demonstrated that ERCP is safe and efficacious, even in high-risk populations such as the elderly, who often have chronic diseases that are aggravated by medical procedures [2, 3]. Though it is a safe, ERCP carries the highest risk of procedure-related complications among endoscopic procedures. Despite advances in endoscopic technology, operator skills, and research-driven safety protocols, the incidence of ERCP-related complications and mortality remains relatively constant. Several distinct studies reported consistent ERCP complications and mortality rates over a decade between 10–12% and 0.4–1.4%, respectively [4,5,6].

Common post-ERCP complications include pancreatitis, hemorrhage, cholecystitis, infection, and intestinal perforation (Fig. 1). Post-ERCP pancreatitis (PEP) is the most frequent adverse event following the procedure. The epidemiologic description of PEP is challenging depending on the presence of the patient, procedural and cumulative risk factors, and the clinical criteria used to define PEP and method of data collection/study design [7, 8]. In addition to morbidity and mortality, ERCP-related complications have important healthcare-associated cost implications, with annual costs surpassing 150 million dollars in the USA. Furthermore, a minority (5%) of complications are advanced, requiring the use of additional resources to treat them and extended hospital stay [9,10,11]. Beyond healthcare expenditures, ERCP-related complications are taxing and may impose significant psychosocial effects on endoscopists [12]. Given the burden on patients and clinicians, understanding and reducing post-ERCP complications are paramount. In this study, after a review of several articles, we present ERCP-related complications, patient and procedural risk factors for post-ERCP complications, strategies to prevent adverse complications, and potential strategies for management.

Fig. 1
figure 1

Complications of endoscopic retrograde cholangiopancreatography

Complications of ERCP

Post-ERCP Pancreatitis (PEP)

Post-ERCP pancreatitis (PEP) is the most frequent complication following ERCP, with an incidence ranging between 1.6 and 15%, with an average of 3–5% as reported in most studies [11, 13,14,15,16,17,18,19,20,21,22,23,24,25,26]. The discrepancy in incidence rates is mainly due to varying definitions of PEP and its classification system. In most cases, PEP is mild or moderate and follows a severe course in only a minority of cases. A systematic review of 108 placebo or no-stent arms of RCTs with 13,296 patients showed a global PEP incidence of 9.7% with a mortality of 0.7%. The PEP severity information was available only for 8857 patients, which were mild in 5.7%, moderate in 2.6%, and severe in only 0.5% of cases [11].

Two widely used definitions of PEP have been described in the literature (Table 1). The original consensus definition and classification of PEP were first described in 1991 by Cotton et al. The diagnosis of PEP is based on (1) the presence of new or worsening abdominal pain clinically consistent with acute pancreatitis, (2) serum lipase and/or amylase activity at least three times the upper limit of normal (ULN) at 24 h following the procedure and (3) hospitalization or prolongation of existing hospitalization of at least two nights [27]. The second definition is the revised Atlanta international consensus (RAC) definition and classification of acute pancreatitis (AP) (Table 1). The RAC defines AP as the presence of ≥ 2 of the following: characteristic acute abdominal pain, post-ERCP, serum amylase and/or lipase ≥ 3 times the upper limit of normal (ULN) after 24 h of ERCP, and/or an abdominal computed tomography (CT) scan with findings consistent with AP [28].

Table 1 Clinical definition and classification of post-ERCP complications

Mechanisms of PEP

The exact pathogenesis of PEP is not clear, but several mechanisms have been suggested in the literature (Fig. 2). One proposed mechanism of injury is direct mechanical trauma, whereby prolonged or difficult instrument manipulation, such as guidewire manipulation, causes ductal edema leading to obstruction to the outflow of pancreatic secretions. Another proposed mechanism is chemical injury due to injected contrast. Hydrostatic injury may also occur from increased pressure in the pancreatic duct from manometry without aspiration or contrast injection. Infection resulting from the introduction and ascension of intestinal flora and/or bacteria from endoscope or contrast media into the pancreatic duct may also represent another mechanism of injury. Additionally, a thermal injury may also result from the use of electrocautery during sphincterotomy [29, 30].

Fig. 2
figure 2

Possible proposed mechanisms of post-ERCP pancreatitis

Risk Factors for PEP

Understanding the risk factors for PEP is essential to reduce its risk and improve procedural safety. It is also vital to identify high-risk cases before the procedure so that the procedure can be avoided altogether if possible or the procedure time can be minimized. Risk factors for non-ERCP pancreatitis are vastly different from those involved in ERCP-induced pancreatitis. Unlike PEP, gallstones, alcohol abuse, and infection are the key risk factors for non-ERCP pancreatitis [31]. However, several other risk factors for PEP have been identified and have previously been categorized as the patient, procedure, and operator-related factors.

Most importantly, cumulative risk has been recognized as a significant factor as more than one risk factor exists. Established risk factors for PEP include suspected sphincter of Oddi dysfunction (SOD), female gender, medical history of acute pancreatitis, prior history of PEP, normal serum bilirubin levels, and nondilated extrahepatic bile ducts [17, 23, 32,33,34,35]. Earlier literature suggests that chronic pancreatitis serves as a protective factor against PEP, possibly because of decreased enzymatic exocrine function and pancreatic atrophy. However, a recent retrospective study by Phillip et al. identified chronic pancreatitis as an independent risk factor for PEP [odds ratio (OR) 3.7]. The reason for this phenomenon is not entirely apparent, but the extent of existing chronic pancreatitis may influence the risk for PEP [36].

Younger patient age (< 60 years) is also a well-known risk factor for the development of PEP. Studies have confirmed that the prevalence of PEP in patients younger than 60 years (14.14%) is significantly higher than the patients > 60 years old (5.03%) [37]. The decreased risk may reflect the functional decline of the pancreas associated with age or the degrading pancreatic parenchyma, resulting in a weaker response to mechanical insults by ERCP [23]. However, another proposed theory is that in younger patients, pancreatic function and sensitivity are more robust and elicit a greater response to injury compared to older patients [37]. Other less explored risk factors for PEP have been implicated including intraductal papillary mucinous neoplasms (IPMNs), the absence of common bile duct (CBD) stones, periampullary diverticula, pregnancy and obesity [37,38,39,40,41]. Initially, early feeding was thought to increase the risk of PEP, but an RCT by Park et al. [42] on asymptomatic patients with serum amylase < 1.5 fold the ULN at 4 h revealed that early feeding does not increase the incidence of PEP and associated with reduced costs. Similarly, underlying diseases, such as hypertension, diabetes, cirrhosis, have also been shown to have little to no effect on the occurrence of PEP [37].

Cumulative Effect

It is essential to understand that risk factors for PEP have a cumulative effect, and the risk of PEP is increased for each additional patient risk factor. In patients with multiple risk factors, the rate of PEP has been reported to be as high as 40%. This phenomenon also explains the different reports of the incidence of PEP [24, 28]. For example, a female patient, with a suspected SOD, normal bilirubin, and difficult cannulation, is theoretically at a much more increased risk for PEP and also more likely to follow a severe course of PEP.

Procedural Factors

In addition to patient characteristics, the risk of PEP is also determined as much by procedural factors. Understanding the risk associated with procedural techniques can help clinicians choose the best approach for each patient. Several procedure-related risk factors have been identified in the literature: difficult cannulation, pancreatic duct wire passages, pancreatic sphincterotomy, ampullectomy, pancreatic duct development, repeated or aggressive pancreatography, failed clearance of bile duct stones, and short-duration balloon dilation of an intact biliary sphincter. Multiple studies have confirmed these as independent risk factors [34, 43]. Importantly, as it pertains to electrocautery, the use of pure or blended current does not influence the risk of PEP [44].

Operator Factors

ERCP is a technical procedure and can be challenging to perform. Therefore, operator-related risk factors, including case volume and trainee participation, have been suggested to influence the risk of PEP. One study demonstrated an independent increase in the risk of PEP with trainee involvement, but other studies have not demonstrated increased rates of PEP with trainee participation [17, 18, 20]. Iida et al. [45] investigated the efficacy and safety of endoscopic treatments for CBD stones by trainees in a single-center retrospective study and found that bile duct catheter insertion success rates and complete stone removal rates were similar for trainees and experts. Case volume has also been suggested as a risk factor. Little evidence exists that ERCP case volume influences the rate of post-ERCP pancreatitis. Two studies, Williams et al. and Testoni et al. [22, 46] demonstrated that the risk of pancreatitis was not associated with the case volume.

Prevention of PEP

Given the health implications of post-ERCP complications, understanding which endoscopic technique most effectively reduce PEP is essential (Fig. 3).

Fig. 3
figure 3

Strategies for prevention of post-ERCP pancreatitis

Endoscopic Techniques

Pancreatic Duct Stenting

Pancreatic duct stenting, which allows appropriate outflow of the pancreatic fluids and relief of pancreatic ductal hypertension, is effective in preventing PEP. It is recommended in high-risk (difficult biliary cannulation, SOD manometry, ampullectomy, etc.) cases for prevention of PEP. Several studies have demonstrated a remarkable decrease in the incidence and severity of PEP with prophylactic pancreatic duct stenting [47, 48]. The use of stents in patients with low risk of PEP is not apparent, nor is the proper timing of stent placement (i.e., preceding or the following sphincterotomy) or location of stent placement. However, given that difficulty with pancreatic duct drainage can lead to proteinase activation and worsening pancreatitis, Sugimoto et al. [49] showed pancreatic stent placement up to the pancreatic body or tail specifically may allow better duct drainage than stent placement in the pancreatic head. The ideal period of stent retention is not precise. Some authors have proposed that prolonged retention of stents causes ductal changes similar to those in chronic pancreatitis [13]. Other studies have shown that allowing stents to remain in place for 7–10 days results in a decreased incidence of PEP compared to the immediate removal of stents following the procedure [50].

Guidewire-Assisted Cannulation

Guidewire-assisted cannulation improves the efficiency and limits the injection of contrast into the pancreas during cannulation. A meta-analysis (n = 3450) demonstrated that the wire-guided method significantly decreased the incidence of PEP by half, increased initial cannulation success, reducing the need to use precut sphincterotomy, and limited other ERCP-related complications [51]. However, multiple pancreatic guidewire passages may increase PEP risk due to damage to the orifice of the Wirsung’s duct. Therefore, if the unintended insertion of a guidewire into the pancreatic duct occurs, endoscopists should consider protective stent placement [8].

Papillary Fistulotomy

Papillary fistulotomy (PF) is another alternative to overcoming complicated biliary tract cannulation. A recent prospective study (n = 102) by Furuya et al. [52] found that PF was more effective than guidewire cannulation in maintaining lower amylase/lipase levels. Advanced cannulation techniques, such as transpancreatic sphincterotomy (TPS) and needle-knife precut papillotomy (NKPP) have also been utilized to gain biliary access to reduce ERCP complications further. While NKPP helps to improve the ERCP success rate under challenging cannulations, it also increases the risk of bleeding and perforation. In a meta-analysis, Pecsi et al. [53] compared the efficacy and complication rates of TPS to NKPP and found that TPS superior in achieving difficult biliary access and causes less bleeding than NKPP, but there were no differences in rates of PEP, perforation, or total complication.

Others

As reported earlier, assistance with cannulation may help reduce PEP. Intraduodenal acetic acid infusion is a method of catalyzing secretin release which has been shown to facilitate pancreatic duct cannulation and possibly reduce complications. In an RCT by Fang et al., the intraduodenal acetic acid infusion was found to significantly decrease difficult pancreatic cannulation rate, facilitate pancreatic duct cannulation, and reduce radiation exposure [54]. Patients with altered anatomy may also present challenges in endoscopic evaluations and predispose them to additional risks of complications. Thus, a knowledge of the right choice of endoscopic devices limits complications can be helpful. A recent retrospective study by Mbatashi et al. [55] showed that in Billroth II patients, use of conventional duodenoscope produced the lowest rate of adverse events (6.1%), followed by 10.7% with the use of single-balloon enteroscopy and 33.3% with a pediatric colonoscope. In patients with periampullary diverticula (PAD), cannulation can be extremely difficult. Karaahmet et al. found that needle-knife fistulotomy might be a feasible option to help facilitate successful biliary cannulation in these patients [38].

Pharmacological Prevention of PEP

Several types of medical therapies have been proposed in the prevention of PEP (Fig. 3). Nonsteroidal anti-inflammatory drugs (NSAIDs) inhibit key mediators (prostaglandins and phospholipase A2) involved in PEP. Due to their rapid onset and higher bioavailability, rectal administration of NSAIDs has proven superior to the oral administration in preventing PEP [56]. The preferred NSAIDs are indomethacin and diclofenac as they are superior to naproxen in the prevention of PEP. In a double-blind, randomized trial, patients with rectal administration of diclofenac and indomethacin had a much lower incidence (4% and 5.8%, respectively) of PEP than those who received naproxen (15.9%) [57]. Another meta-analysis of RCTs showed that 100 mg diclofenac or indomethacin immediately before or after ERCP decreases PEP risk from 12.5 to 4.4% [58]. However, some conflicting studies about the role of rectal NSAIDs do exist which could be due to the types of NSAIDs used. Martinez L et al. investigated the use of prophylactic diclofenac in a mixed cohort of patients undergoing ERCP and found that PEP was noted in 3.4% of patients who received prophylactic rectal diclofenac and 2.8% in patients who did not receive diclofenac (p = 0.554) [59].

The timing (i.e., pre-ERCP, post-ERCP) administration of NSAIDs may also affect the PEP incidence. A meta-analysis of 21 RCTs showed that post-ERCP administration of indomethacin (RR, 0.47; 95% CI 0.31–0.70; p = 0.0002) was more effective in preventing PEP than pre-ERCP administration (RR, 0.59; 95% CI 0.45–0.79; p = 0.0003). However, pre-ERCP administration of diclofenac (RR, 0.32; 95% CI 0.16–0.63; p = 0.001) was more effective than that in post-ERCP (RR, 0.65; 95% CI 0.27–1.599; p = 0.35). [60]. Another meta-analysis of six RCTs inclusive of 2229 patients showed that pre-ERCP administration of rectal indomethacin reduced the risk of PEP as compared to placebo (RR 0.60, 95% CI 0.45–0.80; p < 0.0001) [61]. However, another meta-analysis by Yang et al. showed that a single dose of rectal NSAIDs (both diclofenac and indomethacin) is effective in the prevention of PEP regardless of the timing of administration [62].

The recommended NSAIDs dose for PEP varies regionally, and safety and efficacy have contended with varying doses. While many Western countries utilize a 50–100 mg rectal dose of NSAIDs to prevent PEP, a 25 mg dose is recommended in Japan. A retrospective study found that a 25 mg rectal dose of diclofenac was effective in the prevention of PEP [63].

When NSAIDs are contraindicated, somatostatin may provide some benefit in patients with PEP risk. Wang et al. conducted a meta-analysis of the placebo-controlled RCTs and found that prophylactic use of long-term somatostatin injection can significantly reduce the incidence of PEP in high-risk patients PEP (8.4% in the placebo vs. 5.8% in somatostatin group). However, short-term or bolus injection of somatostatin was not found to be useful [64].

Nitric oxide (NO) use may also help prevent PEP by reducing the amplitude and baseline pressure produced by the sphincter of Oddi and inhibit resting SO activity, thereby allowing easier CBD cannulation [65,66,67]. Additionally, IV glucagon has been used during ERCP to inhibit duodenal motility and relax the SO for similar reasons [68]. In a double-blind randomized study (n = 455), Katsinelos et al. demonstrated that the rate of PEP was significantly lower in the group who received 2.4 mg sublingual nitroglycerin and glucagon 1 mg IV versus the group of patients who received 6 puffs of sterile water and 20 mg hyoscine-n-butyl bromide IV (3.08% vs. 7.46%, p = 0.037) [69]. IV hydration therapy also helps prevent continuous injury to the pancreas from hypoperfusion. Current ASGE guidelines recommend administration of periprocedural lactated Ringer (LR) solution administration to reduce PEP [9]. In addition to preventing hypoperfusion, LR solution is thought to be useful in preventing acidosis that exacerbates pancreatitis. In a randomized study on first time ERCP patients, aggressive hydration with LR (3 mL/kg/h periprocedure, a post-procedure 20-mL/kg bolus followed by 3 mL/kg/h for 8 h, n = 39) was found to be superior than standard LR hydration (periprocedural 1.5 mL/kg/h and for 8 h after procedure, n = 23) (p = 0.016) [70]. A recent systematic review and meta-analysis of RCTs (n = 722) showed that the aggressive hydration with LR solution is associated with a lower incidence of PEP (OR = 0.29; 95% CI 0.16–0.53) and moderate-to-severe PEP (OR = 0.16; 95% CI 0.03–0.96) and shorter duration of length of stay [71].

Given that oxidative stress also plays a role in the pathogenesis of pancreatitis, antioxidative agents should theoretically improve outcomes. However, a meta-analysis by Goosh et al. found that antioxidant therapy had no significant effect on the incidence of PEP [72]. Other studies have shown that allopurinol, glucocorticoids, ceftazidime, glyceryl trinitrate, interleukin-10, and gabexate are not consistently effective therapies for prevention of PEP, and thus are not routinely recommended [73, 74].

Appropriate Patient Selection

Appropriate patient selection is an integral part of reducing the incidence of PEP. Endoscopists should thoroughly review the patient risk factors to determine if alternatives to therapeutic ERCP can be used, especially in patients with multiple risk factors (such as SOD, female gender, age < 60, etc.). As mentioned earlier, ERCP is now mostly therapeutic and should be primarily utilized in patients whose clinical condition requires therapeutic intervention. Therefore, a better understanding of the clinical conditions is required, which may allow choosing safer, less invasive, and accurate diagnostic modalities. For example, MRCP or EUS may be used instead of ERCP to diagnose choledocholithiasis, without the associated risk of PEP complications [9, 73].

Bleeding

Bleeding is another significant complication associated with ERCP (Table 1). The rate of post-sphincterotomy bleeding after ERCP is estimated to be 0.3–2% [13, 24, 25, 75]. Bleeding can be further classified as insignificant or clinically significant based on a change in hemoglobin and the absence/presence of overt GI bleeding. In a multicenter study on 2347 patients undergoing endoscopic biliary sphincterotomy showed that about 48 (2%) patients developed hemorrhage. Another study from Italy showed the rate of hemorrhage to be about 1.13% [13, 16]. The most common reported causes of the ERCP bleeding were endoscopic biliary and pancreatic sphincterotomy. Other less common causes of post-ERCP bleeding include hemobilia, pseudoaneurysm, and splenic, hepatic, and/or vascular injury [9].

Risk Factors for Post-ERCP Bleeding

Patient-Related

Patient-related risk factors for post-sphincterotomy bleeding include coagulopathy, use of anticoagulants within 3 days of ERCP, and active cholangitis [76]. The role of anticoagulants and antiplatelets in post-ERCP bleeding has been a topic of interest as the use of antithrombotic therapy, as well as dual antiplatelet agents (APA) and acetylsalicylic acid (ASA) increases the risk of bleeding. ASGE guidelines suggest withholding APAs when undergoing ERCP, whether urgently or emergently. However, in some cases, emergent ERCP interventions are indicated [9]. The precise risk of performing ERCP interventions in patients taking APAs within a few days or even on the ERCP day has been unclear in the literature. A multicenter retrospective study did not find a statistically significant association of the type and combination of APAs and the number of days the APAs were held with post-ERCP bleeding on multivariate analysis [75]. On the other hand, several factors which were thought to increase the risk of post-ERCP hemorrhage but have been discredited including the use of aspirin or NSAIDs within 3 days of ERCP, ampullary tumor, prolonged sphincterotomy, periampullary diverticulum, and extension of prior sphincterotomy [75].

Procedure-Related

Endoscopic biliary and pancreatic sphincterotomy are some of the most common procedure-related cause of post-ERCP bleeding [77, 78]. On multivariable analysis, Masci et al. [16] found that percutaneous sphincterotomy and papilla orifice stenosis were significantly associated with bleeding. Additionally, the occurrence of any bleeding observed during the procedure is a risk factor [13]. However, endoscopist case volume can also be another risk factor as one study found that case volume per week was an operator-related risk factor for post-ERCP bleeding [13].

Prevention of Post-ERCP Bleeding

Prevention of post-ERCP bleeding can be divided into appropriate patient selection and endoscopists-related measures. Several strategies, mainly related to modifying procedural techniques, have been proposed to reduce post-endoscopic sphincterotomy (post-EST) bleeding. One method to reduce the risk of bleeding is to avoid unnecessary sphincterotomy in high-risk patients [9]. Additionally, EST alternatives such as endoscopic papillary large balloon dilatation (EPLBD) can be employed in patients with coagulopathy. One study found that EPLBD without endoscopic sphincterotomy is best to use in patients with coagulopathy and increased risk for post-sphincterotomy bleeding [79]. Other strategies include using blended rather than pure-cutting current and the use of a microprocessor-controlled generator to decrease the risk of post-sphincterotomy bleeding [80].

Pharmacotherapeutic Prevention of Bleeding

Few studies have evaluated the role of pharmacological intervention in preventing post-EST bleeding. Limited evidence has indicated that acid suppression by proton pump inhibitors (PPIs) might decrease the risk of immediate and delayed bleeding. In an open-label randomized study (n = 125) by Leung, PPIs did not reduce post-EST bleeding, decrease in hemoglobin (Hb), need for blood transfusion, and length of stay. Immediate bleeding was noted in 15% of patients who received PPIs and 6.2% who did not (p = 0.14), and delayed bleeding was seen in 3.3% of patients receiving PPI and 7.7% receiving standard care (p = 0.44) [81].

Basic management of post-EST bleeding includes fluid resuscitation, the reversal of coagulopathy, and blood transfusion. Injection of dilute epinephrine into and around the sphincterotomy site, in addition to argon plasma coagulation and/or multipolar electrocautery, may be used to treat significant hemorrhage [76, 82]. Other tools for managing intraprocedural bleeds include balloon tamponade of the sphincterotomy site and fully covered self-expandable metal stents (FCSEMSs) in refractory bleeding may also be used [83]. Lastly, angiographic embolization can be used for hemobilia originating from above the hilum [84].

Infection

Endoscopy-related bacteremia does carry a risk of spread to distant tissues and organs. The most common infections following ERCP include cholangitis and duodenoscope-related infection and to a lesser degree, infective endocarditis [9]. The most common bacteria involved in biliary tract infection include mostly gram-negative organisms (such as E. coli., Klebsiella spp., Pseudomonas aeruginosa, Enterococcus spp.) and less commonly gram-positive bacteria (such as Staph. epidermidis, Streptococcus spp., E. faecium) [74, 85]. Generally, the most often recognized risk factors for post-ERCP infection include the use of combined percutaneous and endoscopic procedures, stent placement in malignant strictures, jaundice, low case volume, and incomplete biliary drainage [74].

Cholangitis

Cholangitis and sepsis are well-known complications of ERCP, with an incidence of 0.5% to 3%. Clinical presentation includes fever, jaundice, and abdominal pain, and occasionally hypotension and altered mental status in severe cases [9]. Risk factors include old age, previous ERCP history, and hilar obstruction. Patients with incomplete biliary drainage or prior history of liver transplantation have the highest risk of post-ERCP cholangitis [85]. The risk of cholangitis can be up to 10% in patients who have retained stone fragments following mechanical lithotripsy. Consequently, bile stone extraction serves as a protective factor [85]. Specific techniques are used to decompress an obstructed bile duct-like endoscopic sphincterotomy, stent insertion, and/or balloon dilatation, though therapeutic and necessary but also increase risks of cholangitis [86].

The mechanism of infection involves colonization by bacteria or endotoxins that penetrate the bile crosses the blood barrier in the setting of biliary stasis or during a prolonged ERCP operation [85]. Another mechanism is by damage to the epithelium during contrast injection or other procedures that allow a conduit for bacteria to enter. Previously placed stents may also become obstructed (due to stone fragments, bacterial biofilm, sludge, tumor or tissue growth) and block the lumen of the stent, resulting in delayed infection. Furthermore, in patients with an obstructed bile duct, stent migration may occur and result in cholangitis. Of note, metal stents are associated with fewer risks [9].

Prevention of Cholangitis

Several strategies are recommended to reduce the risk of post-ERCP cholangitis. Pharmacologic prophylaxis (coverage for enteric gram-negative organisms and enterococci) before ERCP is recommended for any patient with a history of liver transplantation or has known or suspected biliary obstruction that may be incompletely drained. However, routine use of antibiotics before ERCP is not recommended in the absence of suspected biliary obstruction, anticipated difficulty with complete biliary drainage, sclerosing cholangitis, pancreatic pseudocysts, and immunocompromised status [9]. In a small (n = 86) randomized open-label noninferiority trial for the prevention of post-procedural septicemia and cholangitis, IV moxifloxacin was not found to be inferior to IV ceftriaxone for prophylactic treatment of post-ERCP cholangitis and associated morbidity [86]. Other suggested methods to reduce post-ERCP cholangitis include the use of CO2 cholangiography, contrast-free method, MRCP and/or CT-guided drainage and air cholangiography. Of note, in patients with a need of endoscopic bilateral stent-in-stent (SIS) placement of self-expandable metallic stents (SEMS) for unresectable malignant hilar biliary obstruction, use of air assisted cholangiography (compared to contrast-assisted cholangiography) was significantly associated with reduced rates of post-ERCP cholangitis (4.8% in the air group vs. 29.2% in the contrast group, p = 0.048) [87].

In patients presenting with an obstructed bile duct, other therapeutic techniques (endoscopic sphincterotomy, stone extraction, stent insertion, and balloon dilatation) can be used to reestablish free biliary drainage, but these procedures are not entirely risk-free as compared to diagnostic ERCP. As mentioned, one major cause of cholangitis includes incomplete biliary drainage, which can also occur in the setting of choledocholithiasis and incomplete stone clearance. EPLBD may also be performed to avoid retained stone fragments and reduce the risk of cholangitis in case of larger stones. An RCT (N = 90) showed that both EST with EPLBD or EST with mechanical lithotripsy are similarly effective in removal of large (> 12 mm) stones, but the rate of cholangitis was higher in the lithotripsy group (13.3%) compared with the EPLBD group (0.00%) (p = 0.026) [88]. In a meta-analysis of 4 RCTs, SEMSs were found to have lesser stent occlusion at four months with significantly reduced risk of recurrent biliary obstruction as compared to plastic stents [89]. However, both SEMSs and plastic stents are useful, and given the inherent adverse effects of stenting, placing multiple plastic stents may help prevent early stent occlusion and subsequent cholangitis [90].

Cholecystitis

Post-ERCP cholecystitis (PEC) is not nearly as common as PEP but has been reported with an incidence of 0.5% [13]. Though not common, early recognition of PEC is vital as it can lead to significant morbidity such as purulent cholecystitis requiring emergent cholecystectomy. The pathogenesis is unclear but may involve contamination of the gallbladder by nonsterile contrast [91]. The risk factors for PEC occurrence within 2 weeks of ERCP were evaluated in a retrospective study comprising of 2672 patients which included a history of acute pancreatitis, history of chronic cholecystitis, gallbladder opacification, biliary duct metallic stent placement, and high leukocyte counts before ERCP. Additional risk factors include the presence of stones in the gallbladder, and having contrast fill the gallbladder during the procedure [91]. An important finding of this study was that metallic stenting of the biliary duct, but not plastic stenting during ERCP significantly increased duodenal biliary reflux and risk of PEC. The mechanism may include cystic duct obstruction secondary to stenting (OR = 3.66; 95% CI 1.78–7.54; p < 0.001). Lastly, unlike PEP, the study showed that the risk of PEC increased with age, so elderly patients should be thoroughly evaluated before the procedure [91].

Prevention of PEC

When patients with these risk factors undergo ERCP, prophylactic measures should be taken to prevent PEC. The most crucial measure is endoscopic gallbladder drainage, which has proven to be effective and safe. Therefore, in high-risk patients, temporary gallbladder decompression with a plastic stent or endoscopically placed nasocholecystic tube should be considered. Use of prophylactic antibiotics to prevent cholecystitis is an avenue that has not yet been explored. However, treatment of PEC typically involves surgery or percutaneous cholecystostomy, and in nonsurgical candidates, transpapillary and EUS-guided gallbladder drainage may additionally be considered as treatment options [92, 93].

Duodenoscope-Related Transmission of Infection

The duodenoscope is very useful in treating pancreatobiliary conditions, but it is a sophisticated instrument that is amenable to infection. These particular devices have a unique elevator mechanism that helps orient accessories (guidewires, catheters, etc.) into the endoscopic field of view [94]. However, the intricate design of the elevator mechanism makes it difficult to adequately clean, which lends itself to bacterial contamination. Currently, the most common organism responsible for duodenoscope-related infection is Pseudomonas aeruginosa [95]. However, other organisms involved in exogenous contamination include Mycobacteria, Salmonella, Helicobacter pylori, Clostridia difficile, and more recently, multidrug-resistant organisms (carbapenem-resistant Enterobacteriaceae) [95,96,97,98]. To a lesser degree, viral causes implicated may include hepatitis B and C viruses [95, 99]. Some of the common patient-related risk factors for infection include bile or pancreatic duct obstruction, tissue damage, and compromised/deficient immune status. Procedure- or device-related factors include inadequate disinfection, complex duodenoscope design, damaged components, and contaminated automated endoscope reprocessor (AER) [95].

Prevention of Duodenoscope-Related Transmission of Infection

Several strategies exist to reduce the occurrence of duodenoscope-associated infections. One of the essential strategies includes regular servicing of duodenoscopes to reduce transmission of pathogens. Additionally, strict adherence to the CDC, FDA, and manufacturer disinfection guidelines can help prevent duodenoscope infection [95]. The AER is a newer automatic cleaning technique that was thought to improve duodenoscope cleaning by eliminating human error in cleaning and improving particle removal. However, even this method is also not without risks of contamination. Currently, the FDA recommends the use of AER only after manual cleaning. Other possible strategies involve periodic assessment of cleaning staff to ensure competency and implementing quality control measures (i.e., monthly microbiologic surveillance). Further development of newer, less complex duodenoscope designs is needed to improve ease of cleaning for long-term use, in addition to better sterilization methods [9, 95]. New FDA recommendation may obviate the need for duodenoscope reprocessing and reuse completely. Given the complex design and difficulty associated with cleaning and reprocessing duodenoscopes to be reused, the FDA is now recommending use of either duodenoscopes with disposable components (e.g., endcaps) or completely disposable duodenoscopes to eliminate the possibility of instrument contamination and reduce the risk of infection in patients [100].

Other less reported infectious events following ERCP include disseminated Candida albicans, of which one rare case was reported in an immunocompetent and noncritically ill patient [101]. Additionally, endoscopy-related bacteremia may rarely lead to remote bacterial seeding and infective endocarditis. As such, guidelines do not recommend the use of antibiotics to prevent endocarditis for patients who undergo a gastrointestinal tract procedure [9].

Intestinal Perforation

ERCP carries an approximate 1% risk of perforation, with an 8–23% mortality [102, 103]. The most common clinical finding is severe abdominal pain along with leukocytosis, fever, tachycardia, and occasionally back pain [9]. The Stapfer classification is a scheme used to describe four types of perforations. Type I perforations, produced by the metal guide, are located on the medial or lateral duodenal wall and may result in intraperitoneal perforation. These perforations commonly cause contrast leaks in the retroperitoneum. Type II perforations include periampullary perforations derived from a biliary or pancreatic sphincterotomy or precut papillotomy. Type III perforations occur far from the ductal papilla perforation and are related to the instrumentation, like guidewires or stents. Type IV perforations are associated with retropneumoperitoneum post-ERCP and may not represent true perforations [9, 102, 103].

The most common type of duodenal perforation is type II occurring in 46% of cases. Type I and III perforations occur, albeit to a lesser degree, in 25 and 22% of cases, respectively [104]. Patient-related risk factors for perforation include suspected SOD, older patient age, female sex, and surgical or altered anatomy, such as situs inversus or Billroth II gastrectomy [19, 105,106,107,108,109,110,111]. Procedure-related factors include difficult cannulation, biliary stricture dilation, intramural injection of contrast material, prolonged procedure, sphincterotomy, and precut papillotomy EPLBD and ERCP by lesser experienced endoscopists [14, 19, 105,106,107,108,109,110,111].

Management of Intestinal Perforations

Perforations require rapid diagnosis and treatment to avoid severe complications like sepsis and multiple organ failure. However, management of ERCP-related perforations is controversial as the management has slowly shifted to conservative management and challenging identification of patient requiring surgery. Initial management of suspected perforation includes nil per os, IV fluids, and broad-spectrum antibiotics [105, 106]. Indications for surgery are based on the type, size, and location of the perforation. Surgery may be indicated in type I perforations, cases with a significant contrast leak, retroperitoneal collections, persistent biliary obstruction, unsuccessful conservative treatment, and peritoneal signs of sepsis [102, 105]. A retrospective study of all post-ERCP perforations over 15 years found that type I perforations require immediate surgery, type II and III perforations can be managed conservatively assuming no significant complications (abdominal collections, peritoneal irritation and/or sepsis), and type IV perforations respond to conservative treatment [102].

Traditionally, the standard medical treatment approach with an oral contrast study to confirm no further leakage are done as a part of conservative management [9, 112]. In efforts to expand conservative treatment, some studies have suggested that endoscopically placed fully covered self-expandable metal stents (FC-SEMS) could potentially be effective in types II and III perforations [104, 113]. In a 2018 retrospective analysis of patients with type II perforation, treatment with the placement of FC-SEMS was shown to be adequate and effective, and none of the patients required surgery or experienced death. This may indicate that FC-SEMS placement is safe and effective in treating type II perforations and represent an added layer to conservative treatment [113]. Additionally, Odemis et al. [114] found that in addition to using as conservative treatment, FC-SEMS helps reduce pain, lower WBC, and decrease the length of hospital stay. In addition to antibiotics and nasogastric/nasoduodenal aspiration, European Society of Gastrointestinal Endoscopy (ESGE) guidelines recommend stent placement only as a means of rescue treatment in certain cases [112]. This recommendation was drawn based upon two previous cases in which stenting was shown to be effective as a rescue treatment [83, 115]. As such, it may not reflect the potential of the FC-SEMS as a first-line treatment for type II and III perforations. However, ASGE highlighted the use of FC-SEMS as a direct treatment in cases of noted intraoperative periampullary perforations to seal the defect [9, 116, 117]. Other less explored endoscopic therapeutic options with reported success include through-the-scope clips [118], endoscopic purse-string suture [119], over-the-scope clip [120], fibrin glue [121], band ligation [122], and endoscopic vacuum therapy [123].

Other Miscellaneous Complications

Indirect complications may also occur as a result of ERCP. Several cardiopulmonary adverse events such as hypoxia, hypotension, cardiac dysrhythmia, and aspiration have been reported and accounted for 4–16% of ERCP-related adverse events [124, 125]. Air embolism is another adverse event that may occur [126, 127]. Other rare complications include ileus, pneumothorax and/or pneumoperitoneum, hepatic subcapsular hematoma, hepatic abscess formation, pseudocyst infection, splenic injury, and biliary or pancreatic duct fistulae [125, 128, 129]. Lastly, adverse reaction to contrast material has been described with ERCP [130, 131].

Limitations

Some of the data reported in the epidemiological profile of various post-ERCP complications were established in retrospective studies. Larger, prospective multicenter studies are needed to further clarify the accurate epidemiological description of post-ERCP complications and general effectiveness and safety of ERCP. Additionally, further attempts could be made to reach a consensus regarding the clinical definition and criteria for post-ERCP complications to promote consistency in reporting complications. Lastly, further studies are needed to confirm risk factors for less common post-ERCP complications (cholecystitis, cholangitis, and perforation), as well as the optimal timing (pre-ERCP, post-ERCP) of rectal Diclofenac administration to prevent PEP.

Conclusion

In conclusion, ERCP remains the standard treatment modality for several disorders of the pancreaticobiliary system. Post-ERCP complications, although mostly mild, remain an important source of concern. Identification of risk factors can help clinicians appropriately selecting patients for ERCP intervention and anticipate potential adverse events. Strategies to reduce and manage ERCP-related complications do exist, but large-scale studies are needed to determine the true extent of each risk factor and preventative measure. Review of current knowledge of ERCP complications, risk factors, prevention strategies, and management algorithms may help improve the clinical utility of ERCP and can reduce the ERCP-related adverse events.