Acute cholangitis is associated with substantial morbidity, mortality and healthcare costs [1, 2]. [3, 4]. In 2019, the American Society for Gastrointestinal Endoscopy (ASGE) and the European Society of Gastrointestinal Endoscopy (ESGE) published guidelines on the role of endoscopy in the management of choledocholithiasis [5, 6]. The international Tokyo guidelines, published in 2013 and revised in 2018 address the assessment of the severity of acute cholangitis and its subsequent management [7, 8]. These guidelines have established the current standard of care for management of choledocholithiasis and ascending cholangitis.

While the role of endoscopic retrograde cholangiopancreatography (ERCP) in the management of patients with choledocholithiasis and ascending cholangitis is well established, the optimal timing of biliary drainage remains controversial. Current European guidelines suggest that the timing for ERCP should be based on the severity of the cholangitis: within 12 h for severe cholangitis that is accompanied by septic shock, within 48 to 72 h for moderate cholangitis, and elective ERCP for mild cholangitis [6]. The 2013 Tokyo guidelines also recommended ‘early’ or ‘urgent’ (as soon as possible) drainage depending on the severity of the cholangitis, but did not make any recommendations regarding specific timing [8]. The ASGE guidelines also do not specifically address the issue of timing of ERCP [5]. Several studies have compared the outcomes between ERCP's done within 24, 48 and 72 h and have shown that earlier ERCP is associated with better outcomes. It is, therefore, possible that ERCP done even before 24 h of presentation may further improve outcomes, however, outcomes of ERCP when done within 6 or 12 h of presentation has not been fully studied.

The aim of this study was to assess if ERCP performed within 12 h of presentation in patients with acute cholangitis was associated with improved clinical outcomes. A priori, we determined that we would also analyze outcomes of ERCPs done within 6 h of presentation with acute cholangitis.

Patients and methods

All patients with acute cholangitis who underwent ERCP at our institution between 2009 and 2018 were identified using a database maintained by our advanced endoscopy group. Cholangitis was defined as a combination of the following per Tokyo guidelines: (1) Fever and/or right upper quadrant pain; (2) Elevated white blood count (WBC) and/or C-reactive protein (CRP); (3) Positive blood cultures and/or pus extraction from the common bile duct (CBD) and/or signs of cholangitis on cross section imaging. Patients who had previously undergone ERCP within the last year, presented to another hospital and then transferred to our institution for ERCP, and patients with modified upper gastrointestinal anatomy (e.g. gastric bypass or Whipple’s procedure) were excluded. ERCP procedures and clinical management of cholangitis were done according to standard clinical practice. The study was approved by our Institutional Review Board.

The following variables were collected: patient demographics, comorbidities, ASA score, vital signs, symptoms, and medications. Routine blood tests including cell count, liver and pancreatic enzymes, and kidney function tests were also collected. Hypoalbuminemia was defined as serum albumin < 3.5 g/L and positive blood cultures as at least two bottle showing growth of same bacterial species. The cause and severity of cholangitis was determined using Tokyo guidelines grading system for cholangitis. We used the following definitions to characterize organ dysfunction: renal dysfunction as creatinine > 2 mg/dl, neurological dysfunction as presence of altered mental status or confusion, and hepatic dysfunction as INR > 1.5. The following variables pertinent to the ERCP procedures were collected: ERCP timing, sphincterotomy, biliary stent placement, type of stent, pancreatic stent, post-ERCP adverse events, and ERCP failure (defined as inability to achieve adequate biliary drainage). The timing of ERCP was defined as time of presentation to the emergency department or hospital to the ERCP starting time. We also collected the following outcome variables: length of hospitalization, length of intensive care unit (ICU) stay, presence of organ failure, post-ERCP adverse events, cholangitis recurrence within 30 days of discharge, 30-day readmission rate, and in-hospital mortality. The post-ERCP length of hospitalization was calculated from date of ERCP until date of discharge. Cholangitis recurrence was defined as repeat biliary drainage procedure and/or a repeat course of antibiotics in patients with new-onset cholangitis symptoms. All the data were collected by the investigators using an a priori designed study instrument.

The primary outcome of the study was the post-ERCP length of hospitalization in patients who underwent ERCP within 0 to 12 h of presentation (referred to in this manuscript as ERCP < 12 h group) compared with those who underwent ERCP after 12 h of presentation (referred to in this manuscript as ERCP > 12 h group). The secondary outcomes included in-hospital mortality, post-ERCP adverse events, ERCP failure, post-ERCP length of ICU stay, organ failure, cholangitis recurrence, 30-day readmission. We also compared post-ERCP length of hospitalization as well as aforementioned clinical outcomes in patients who underwent ERCP within 0 to 6 h of presentation (referred to in this manuscript as ERCP < 6 h group) and any time after 6 h of presentation (referred to in this manuscript as ERCP > 6 h group). Finally, we performed a sub-group analysis for patients with severe cholangitis (Tokyo cholangitis score of 3).

Continuous variables are expressed as means ± standard deviations and were compared with Student’s t test or Mann–Whitney U test, as appropriate. Categorical variables are expressed as percentages and were compared using chi-squared tests or Fisher exact tests, depending on the sample size. Clinical endpoints were compared between ERCP within and after 12 h of presentation using propensity score (PS) framework. The PS approach aims at creating a new dataset in which the probability to have ERCP within or after 12 h of presentation is equal (as in a pure randomized trial) to balance patients’ baseline characteristics. First, a multivariable logistic regression was used to predict the probability of ERCP within 12 h (i.e., the estimated propensity score), controlling for the following pre-specified covariates: age, past medical history of cholangitis, cholecystectomy, prior outside hospital ERCP, comorbidities, acute dysfunction, required ICU stay, total bilirubin, cause of cholangitis and Tokyo score. ERCP within and after 12 h of presentation patients were matched using a 1:1 nearest neighbor matching algorithm without replacement, with a caliper of 0.2 of the standard deviation of the PS on the logit scale [15]. An absolute standardized difference less than 0.1 was considered as evidence of covariate balance (Austin PC 2011 Multivariate Behav Res) (see Supplementary Figures). Then, clinical endpoints were compared between the two groups within the matched dataset. Post ERCP length of hospitalization was compared by the log rank method. Kaplan–Meier survival curves were constructed to analyze the time until hospital discharge, with censoring of data for patients who had died in the hospital. The Hazard Ratio (HR) was estimated using a Cox proportional hazards regression model. Finally, factors associated with a longer post ERCP length of hospitalization were assessed within the whole unmatched cohort using an univariate Cox regression model. Hazard-ratios and their 95% confidence interval were calculated. A p value < 0.05 was considered statistically significant. In a secondary analysis, the same PS matching approach was used to select unique pairs of patients with ERCP performed within or after 6 h. Finally, risk factors of longer length of hospitalization were assessed within the whole unmatched cohort using univariate cox regression models. Statistical analyzes were conducted with SPSS v23 and R software 3.6.2 for Mac.

Results

Patients

A total of 1597 patients who underwent ERCP for cholangitis were screened between September 2009 and March 2018. Overall, 508 were excluded because of prior ERCP at our institution; 33 because of altered anatomy, 397 because they did not meet our strict criteria for cholangitis, and 165 because they had first presented to another institution. A total of 487 patients were included for analysis amongst whom 147 had an ERCP within 12 h of presentation, and 340 after 12 h of presentation. The mean age was 73.03 (± 0.74) years-old, 42.92% of patients were female, 77% of patients had choledocholithiasis related cholangitis, the mean ASA score was 3.06 (± 0.029), and the mean timing of ERCP was 26.52 (± 2.31) hours. Severity of cholangitis was categorized using Tokyo guidelines and the distribution was as follows: score 1 = 26.70%, score 2 = 44.15% and score 3 = 28.54%.

Detailed baseline patient characteristics before and after propensity matching are shown in Table 1. In the unmatched cohort, patients with ERCP < 12 h had significantly more cardiovascular dysfunction (26% vs 14%, p 0.002) and more commonly had choledocholithiasis associated cholangitis (87% vs 73%, p 0.001). Matching on the propensity score allowed the selection of 145 pairs of patients with similar characteristics (Flow Chart 1, Table 1, Supplemental Figures 1 and 2). Amongst the 487 patients, 61 had an ERCP within 6 h of presentation (ERCP < 6 h group), and 426 after 6 h of presentation (ERCP > 6 h group). A second matching on the propensity score allowed the selection of 60 pairs of patients with similar characteristics (Table 2).

Table 1 Characteristics of the cohort before and after propensity-score matching analysis
Flow Chart 1
figure 1

Caption comes here

Table 2 Characteristics after propensity-score matching analysis with à 6-h cutoff

Post-ERCP length of hospitalization

Our primary outcome was post-ERCP length of hospitalization, and this outcome did not significantly differ between the ERCP < 12 h and ECRP > 12 h groups (135.9 vs 122.1 h, p 0.094) in the propensity score-matched population (Table 3A and Fig. 1A).

Table 3 ERCP timing-related outcomes in the propensity matched population
Fig. 1
figure 1

Kaplan–Meier survival estimates in the propensity score matched populations. A ERCP before and after 12 h of presentation. B ERCP before and after 6 h of presentation. C Tokyo score 3 subgroup of patients with ERCP before and after 12 h

The main variables independently associated with a longer post-ERCP length of hospitalization according to Cox univariate regression on the whole unmatched cohort were: ASA score (HR 1.6; CI 1.4–1.8, p 001), Tokyo score of 2 (HR 1,3; CI 1.0–1.6, p 0.043), Tokyo score 3 (HR 2.1; CI 1.6–2.7, p 0.001), ERCP < 24 h (HR 1.3; CI 1.1–1.6, p 0.006), and required ICU stay (HR 2.0; CI 1.6–2.4, p 0.001).

ERCP < 12 h was not associated with a shorter post-ERCP length of hospitalization (HR 1.2; CI 1.0–1.4, p 0.096). In addition, post-ERCP length of hospitalization (HR 1.0; CI 0.8–1.3, p 0.687) was not associated with an increase in the 30-day readmission rate. Conversely, endoscopic sphincterotomy (HR 0.8; CI 0.6–0.9, p 0.004), stone extraction (HR 0.7; CI 0.6–0.9, p 0.002) and absence of post-ERCP adverse event (HR 0.5; CI 0.4–0.8, p 0.004) were associated with a shorter post-ERCP length of hospitalization (Table 4).

Table 4 Univariable analysis of factors associated with longer post-ERCP LOS

We also found that the post-ERCP length of hospitalization did not significantly differ between the ERCP < 6 h and ECRP > 6 h groups in the second propensity score-matched population of patients (142.9 vs 141.5 h, p 0.650) (Table 3B and Fig. 1B).

Secondary clinical outcomes

Mortality (2.8% vs 4.1%, p 0.520), ERCP failure (6.2% vs 10.3%, p 0.201), post-ERCP pancreatitis (2.1% vs 0%, p 0.247), bleeding (6.2% vs 3.5%, p 0.273), perforation (0.7% vs 0%, p 1.000), required ICU stay (48.3% vs 43.4%, p 0.409), post-ERCP length of hospitalization in ICU (1.3 vs 1.5 days, p 0.796), and cholangitis recurrence (4.8% vs 3.5%, p 0.555) did not differ between the ERCP < 12 h and ECRP > 12 h groups in the propensity score-matched population. However, the 30-day readmission rate was lower in the ERCP < 12 h group (7.6% vs 15.2%, p 0.042) (Table 3A).

We found similar results in the second propensity score-matched population of patients with ERCP < 6 h and ECRP > 6 h (n = 120). Mortality (3.3% vs 6.7%, p 0.679), ERCP failure (10% vs 8.3%, p 0.752), post-ERCP pancreatitis (1.7% vs 1.7%, p 1.000), bleeding (8.3% vs 6.7%, p 1.000), perforation (1.7% vs 0%, p 1.000), required ICU stay (43.3% vs 40.0%, p 0.711), post-ERCP length of ICU stay (1.2 vs 1.5 days, p 0.749), cholangitis recurrence (8.3% vs 3.3%, p 0.439) and 30-day readmission (10% vs 11.7%, p 0.769) did not differ between the ERCP < 6 h and ECRP > 6 h groups (Table 3B).

Sub-group analysis of patients with Tokyo score of 3

In the primary propensity score-matched population, 96 patients had a severe cholangitis with a Tokyo score of 3. Amongst these patients, 51 had an ERCP within 12 h of presentation and 45 had an ERCP after 12 h of presentation. We then considered only patients with Tokyo score 3 cholangitis and compared outcomes for the ERCP < 12 h group with ERCP > 12 h group. The post-ERCP length of hospitalization did not significantly differ between these two subgroups (135.9 vs 122.1 h, p 0.094) (Table 3C and Fig. 1C). Furthermore, mortality (5.9% vs 6.7%, p 1.000), ERCP failure (11.8% vs 15.6%, p 0.588), post-ERCP pancreatitis (2% vs 0%, p 0.1.000), bleeding (2% vs 2.2%, p 1.000), perforation (0% vs 0%, p N/A), required ICU stay (84.3% vs 88.9%, p 0.513), post-ERCP length of ICU stay (2.8 vs 3.2 days, p 0.306), and cholangitis recurrence (7.8% vs 0%, p 0.120) also did not differ between the two subgroups. Similar to results for the entire patient cohort, in patients with Tokyo score 3 cholangitis, 30-day readmission rate was lower in the ERCP < 12 h group (3.9% vs 20.0%, p 0.014) (Table 3C).

Discussion

Using a large cohort of patients with acute cholangitis, we investigated the influence of the timing of ERCP on clinical outcomes. In our propensity-score matched population, we found that ERCP within 12 h of presentation did not result in a decreased post-ERCP length of hospitalization (135.9 vs 122.1 h, p 0.094) compared to when ERCP was performed after 12 h of presentation. We also found that ERCP < 6 h also did not shorten the post-ERCP length of hospitalization. The univariable analysis on unmatched cohort showed similar results (HR 1.182, CI 0.694–1.030, p 0.096). Other clinical outcomes including mortality, adverse events, and ICU stay were not significantly different between the two groups, with the notable exception of the 30-day readmission rate. The 30-day readmission rate was lower when the ERCP was performed within 12 h of presentation (7.6% vs 15.2%, p 0.042). This association appeared to be driven mostly by patients with severe cholangitis as we also found a lower rate of 30-day readmission in the subgroup of patients with Tokyo score of 3 but not Tokyo score 1 or score 2 patients.

Most previous reports have studied the impact of delaying ERCP by 24 h or longer in patients with acute cholangitis. A retrospective study including 90 patients showed that a delayed ERCP (> 72 h) was associated with a prolonged length of hospitalization (Odds ratio (OR), 19.8; p 0.008) and an increased hospitalization cost (OR, 11.3; p 0.03) [9]. In a study including 5340 patients, ERCP performed > 72 h after presentation was associated with prolonged length of hospitalization and increased cost of hospitalization [10]. In a cohort study including 166 patients, ERCP within 24 h was associated with a lower 30-day mortality rate (OR 0.23; 95% CI 0.05–0.95; p 0.04) [11]. In a 199 patient cohort study, length of hospitalization was significantly longer for patients undergoing ERCP > 48 h vs < 48 h (median 9.1 vs 6.5 days, p 0.004) even though the former were less sick (less ICU admission). Comparison of ERCP > 72 h vs < 72 h showed higher vasopressor requirement (OR 2.6, 95% CI, 1.0–7.0, p 0.05) and mortality (OR 3.6, 95% CI, 0.8–15.9 p 0.08) in the former [12]. In a cohort study including 203 patients, ERCP > 48 h was associated with persistent organ failure, and ERCP < 48 h with a lower in-hospital mortality and length of hospitalization [13]. Conversely, in another study, there was no difference in terms of ERCP timing between patients who did and did not have an adverse outcome (8 vs 16.5 h, p 0.99), even when stratified by cholangitis severity [14]. Recent larger studies using population-based databases have also been published. In the largest cohort study published, including 77,323 patients, ERCP > 72 h yielded significantly longer length of hospitalization than early (24 to 48 h) and < 24 h ERCP (p < 0.001). In-hospital mortality was higher in the > 72 h ERCP group (p < 0.001) but there was no difference in mortality between < 24 h ERCP and 24 to 48 h ERCP groups [15]. In another large cohort study including 4570 patients, ERCP < 48 h was associated with lower in-hospital mortality (1.2% vs 2.4%, p 0.001) and mean length of hospitalization (4.5 vs 6.9 days, p < 0.0001) compared to ERCP > 48 h [16]. Finally, a meta-analysis published in 2019 included nine observational studies (including most of the above) to evaluate the impact of ERCP < 48 h or > 48 h on patient outcomes. This was the first meta-analysis evaluating ERCP timing in cholangitis. In-hospital mortality was significantly lower in patients who underwent ERCP within 48 h (OR, 0.52; 95% CI, 0.28–0.98). Length of hospitalization was significantly lower with a mean difference of 5.56 days (95% CI, 1.59–9.53) [17]. Overall, the available literature suggests that ERCP should be performed within 72 h and that it is probably best within 48 h.

Based upon available evidence noted above, most experts now agree that ERCP should probably be performed within 24–48 h of presentation with acute cholangitis. However, the ESGE guidelines recommend that for patients with severe cholangitis, ERCP should be performed as soon as possible and within 12 h of presentation. The evidence that very early ERCP within 12 h of presentation improves outcomes is based mostly on two studies. An analysis of 260 patients with acute cholangitis and septic shock found that delaying biliary decompression > 12 h was associated with increased mortality (OR 3.40, 95% CI, 1.12–10.31; p < 0.04) [18]. The overall mortality in this study was 37%. Interpretation of the results of this study are limited by the fact that > 50% of patients underwent biliary decompression by either PTC or surgery, and almost 20% failed any type of biliary decompression. In another study of 250 patients with moderate to severe ascending cholangitis, the authors reported that patients undergoing ERCP < 11 h had lower mortality when compared with those who underwent ERCP > 42 h, but not when compared with those who underwent ERCP within 11–21 h or 21–42 h [19]. We caution against adopting this standard without more supporting evidence. We have noted in our clinical practice that patients with pus in the biliary tree can develop hypotension after even a limited cholangiogram. We have hypothesized that this may be from increased biliary pressure that results in translocation of bacteria from the biliary tree into the rich blood supply of the liver, and that 12 to 24 h of antibiotics such as quinolones, which have excellent biliary penetration, may reduce biliary bacterial counts and minimize procedure-related bacteremia.

To overcome the limitation of previous studies, we elected to use propensity matching in creating two comparable groups of patients who underwent ERCP < 12 and > 12 h and < 6 h and > 6 h after presentation to out institution. We only enrolled patients who presented directly to our institution with cholangitis and used a strict definition for cholangitis. We anticipated that mortality would be low in both groups, and therefore chose to use length of hospitalization as our primary outcome. Our results do not show any difference in outcomes when ERCP is done early, including within 6 h of presentation. Our results are supported by a study by Inamdar et al. which showed patients admitted with acute cholangitis on weekdays were more likely to get early ERCP when compared to those admitted on weekends [20]. However, no significant differences between clinical outcomes like length of hospitalization or mortality were noted between the weekday and weekend groups. Performing ERCP as soon as possible or within 12 h of presentation poses several practical challenges. Some smaller hospitals do not have ERCP facilities and routinely transfer patients to other regional referral centers for ERCP. Furthermore, very rapid ERCP for patients who present on evenings or weekends, would require an ERCP team on call and able to perform procedures 24 h a day and 7-days a week. Such a team could not only need to have physicians, but also nurses, ERCP technicians and anesthesiologists, and may pose a substantial burden to even high-volume centers.

In the propensity-matched groups, the 30-day readmission rate was significantly higher in patients with ERCP > 12 h (15.2% vs 7.6% p 0.042). The rate of cholangitis recurrence was similar so it is unclear why this difference was seen. In subgroup analysis in patients with severe cholangitis (Tokyo score of 3) the 30-day readmission rate was also significantly higher in patients with ERCP > 12 h (20% vs 3.9% p 0.014). Since this was a secondary analysis, this should be explored further by others.

In conclusion, we found that ERCP within 12 h or within 6 h did not result in a shorter post-ERCP hospital stay. It also did not result in reduced mortality, adverse events, length of ICU stay and cholangitis recurrence rates. However, in patients with severe cholangitis, ERCP within 12 h of presentation may reduce rates of 30-day readmission. Our results show that ERCP performed within 6 or 12 h of presentation is not associated with superior clinical outcomes, and that the optimal ERCP timing is likely between 12 and 48 h of presentation.