Risk factors for post-ERCP pancreatitis: a retrospective analysis of nursing-related factors Authors: Zhenyan Li, Lin Liu Published: 2026 ABSTRACT AbstractBackgroundTo investigate the incidence and risk factors of endoscopic retrograde cholangiopancreatography (ERCP) post-ERCP pancreatitis (PEP) from the perspective of nursing practice, and to provide evidence for developing refined prevention and control strategies.MethodsA single-center retrospective study was conducted on 658 patients who underwent diagnostic or therapeutic ERCP between January 2020 and December 2025. Using a nested case–control design, 45 patients who developed PEP were assigned to the case group, and 180 patients without PEP were matched at a 1:4 ratio as the control group. Baseline characteristics, procedural variables, and perioperative nursing-related factors were collected. Multivariable logistic regression analysis was performed to identify independent risk factors, and a combined prediction model was constructed to evaluate its performance.ResultsThe overall incidence of PEP was 6.8%, with mild cases accounting for 71.1%. The case group had significantly higher proportions of difficult cannulation and pancreatic duct opacification ≥ 3 times, but significantly lower proportions of receiving comprehensive nursing interventions and cooperation by a dedicated ERCP team. A higher proportion of patients in the case group were assessed as high risk preoperatively. Difficult cannulation (AOR = 6.70, 95% CI: 2.79–16.09, p < 0.001), pancreatic duct opacification ≥ 3 times (AOR = 3.38, 95% CI: 1.40–8.17, p = 0.007), and preoperative high-risk assessment (AOR = 3.98, 95% CI: 1.72–9.20, p = 0.001) were identified as independent risk factors, while comprehensive nursing interventions (AOR = 0.20, 95% CI: 0.09–0.47, p < 0.001) and dedicated ERCP team cooperation (AOR = 0.14, 95% CI: 0.05–0.37, p < 0.001) were protective factors. The combined prediction model showed good discriminative ability (AUC = 0.856) and model fit (Hosmer–Lemeshow test, p = 0.145).ConclusionsComprehensive nursing interventions and dedicated ERCP team cooperation were associated with a lower risk of PEP in this retrospective study. These findings suggest that nursing-related factors may play a role in PEP prevention. We therefore recommend integrating nursing assessment and intervention into standardized ERCP management protocols to enhance overall procedural safety.Keywords: Endoscopic retrograde cholangiopancreatography, Post-ERCP pancreatitis, Incidence, Risk factors, Nursing Introduction Endoscopic retrograde cholangiopancreatography (ERCP) is a cornerstone minimally invasive technique for the diagnosis and treatment of pancreatobiliary diseases, and its clinical value has been widely validated. However, like all invasive procedures, ERCP is associated with a spectrum of procedure-related complications while providing substantial clinical benefits. Among these, post-ERCP pancreatitis (PEP) is the most common and one of the most concerning complications for clinicians [1]. PEP is generally defined as new-onset or worsened abdominal pain after ERCP, accompanied by an elevation of serum amylase or lipase levels to more than three times the upper limit of normal, and requiring hospitalization or prolongation of hospital stay by at least 24 h [2]. Despite continuous advancements in endoscopic equipment, increasing operator experience, and ongoing optimization of preoperative and postoperative preventive strategies, a large body of evidence from both domestic and international studies indicates that the overall incidence of PEP remains between 3% and 15%, and may exceed 20% in high-risk patients [3]. This complication not only significantly increases patient suffering, prolongs hospital stay, and imposes additional economic burden, but also represents a major limiting factor affecting the overall safety and therapeutic efficacy of ERCP. Decades of research have led to substantial progress in the prediction and prevention of PEP, resulting in risk stratification systems based on patient characteristics and procedural techniques, as well as targeted strategies such as pharmacological prophylaxis and pancreatic duct stent placement. However, most existing studies have predominantly focused on patients’ intrinsic pathophysiological conditions and endoscopist-related technical variables. In contrast, the role of nursing practice, which spans the entire perioperative period of ERCP and involves the most direct and continuous patient contact, has not been systematically investigated or adequately emphasized in empirical research [4, 5]. Nursing care constitutes an indispensable component of ERCP management, which includes preoperative visits, risk assessment, patient education, and psychological support. Furthermore, intraoperative instrument preparation, medication coordination, vital sign monitoring, and patient positioning were involved in nursing care. Patients’ physiological stress responses, inflammatory status, and overall prognosis were directly affected by postoperative close observation, pain management, early identification and initial management of complications, as well as the accuracy and timeliness of nursing interventions. For example, adequate preoperative hydration, standardized analgesia and sedation management, and timely postoperative biochemical monitoring and symptom assessment may all play critical roles in the prevention and early intervention of pancreatitis. Moreover, nursing documentation contains a wealth of clinically relevant information, such as preoperative anxiety levels, intraoperative hemodynamic fluctuations, and immediate postoperative symptoms and physical signs, that may serve as valuable clues for predicting PEP. However, risk factor exploration from this nursing-centered perspective remains insufficient. Against this background, the present study is grounded in the core elements of nursing practice and employs a retrospective design to systematically evaluate the incidence of ERCP PEP. Importantly, it focuses on determining whether perioperative nursing-related variables, beyond traditional patient- and physician-related factors, constitute independent determinants of PEP, with the aim of providing clinical evidence for the development of multidimensional and refined prevention and control strategies. Methods Patient cohort This study was a single-center retrospective investigation using a hybrid design that combined “overall cohort analysis for incidence estimation plus nested case–control analysis for prediction factor identification.” The study period spanned from January 1, 2020, to December 31, 2025. During this period, all patients who underwent ERCP in our department were consecutively enrolled in the initial cohort, comprising a total of 658 patients. This cohort was used to calculate the overall incidence of ERCP PEP. To further explore risk factors for PEP, a nested case-control design was applied. All patients in the initial cohort who were diagnosed with PEP were included in the case group (n = 45). Subsequently, at a ratio of 1:4, patients without PEP were randomly selected from the same cohort and matched to the case group by age (± 3 years) and sex to form the control group (n = 180). Together, the case and control groups constituted the analytical sample (total n = 225) for subsequent analyses of risk factors. The inclusion criteria were as follows: (1) patients who underwent diagnostic or therapeutic ERCP in our department [6] and (2) age ≥ 18 years. The exclusion criteria were: (1) presence of severe internal medical diseases (such as congenital heart disease or chronic kidney disease stage 4 or above); (2) preoperative diagnosis of acute pancreatitis; (3) emergency ERCP procedures; (4) substantial missing clinical data; or (5) pregnancy or lactation. This study was approved by the Ethics Committee of West China Hospital, Sichuan University (Ethics Approval Number: S2025-Y-0631). Data collection All data were retrospectively extracted from the hospital electronic medical record system. To ensure data quality, a dedicated data management team was established, consisting of two clinically experienced nurses with formal training in clinical research who served as data collectors, and one senior nursing researcher with a high professional title who acted as an adjudicator. Data were retrieved from the following subsystems: the inpatient medical record system, the endoscopy information system, the laboratory information system, and the nursing documentation system. Before data extraction, all data collectors received standardized training and became familiar with the specific locations and documentation standards of each variable within the electronic systems. During data extraction, if inconsistencies, missing information, or ambiguities were encountered, a third investigator reviewed the complete medical records, nursing notes, and examination reports to adjudicate and confirm the data, ensuring that each variable had a clearly traceable source. The collected variables mainly included: (1) Baseline patient characteristics: age, sex, body mass index (BMI), primary indication for ERCP (common bile duct stones), past medical history (history of pancreatitis, hypertension, and diabetes mellitus), preoperative total bilirubin level, and sphincter of Oddi dysfunction (SOD). (2) Procedural variables: difficult cannulation, defined as ≥ 5 cannulation attempts or cannulation time ≥ 10 min as documented in the endoscopy report; number of pancreatic duct opacifications (as explicitly recorded in the report); pancreatic duct stent placement (yes/no); and sphincterotomy, including standard sphincterotomy or precut sphincterotomy, as documented in the operative record. (3) Nursing-related variables: preoperative risk assessment using the Freeman scoring system (score ≥ 3 indicating high risk; <3 indicating non–high risk) [7]; receipt of comprehensive nursing interventions (yes/no); monitoring of serum amylase 2 h postoperatively (yes/no); cooperation by a dedicated ERCP team (yes/no); and postoperative prophylactic medication use (yes/no). Comprehensive nursing intervention was defined as a standardized, systematically implemented peri-ERCP nursing care bundle, including the following components: (1) Preoperative phase: risk assessment–based intensified health education (including counseling on pancreatitis risk and preventive measures), individualized psychological support, and implementation of preoperative hydration protocols (e.g., intravenous fluid administration); (2) Intraoperative phase: standardized coordination of analgesia/sedation, precise monitoring of vital signs, and appropriate patient positioning management; (3) Postoperative phase: guidance for early recovery, systematic symptom assessment, and strict implementation of blood biochemical monitoring orders with timely reporting of abnormal results. Dedicated ERCP team collaboration: ERCP procedures were supported throughout by a fixed, specially trained nursing team with clearly defined roles. The following criteria had to be met in full: (1) Stable staffing and qualifications: Core team members (at minimum including an instrument nurse and a circulating/monitoring nurse) were relatively fixed and had all completed institution-based specialized ERCP nursing training and competency assessments, with proficiency in ERCP-specific equipment, procedural workflows, and emergency management protocols for complications. (2) Standardized workflow: Team collaboration adhered to a department-established standardized ERCP nursing protocol, including but not limited to standardized preparation and verification of instruments and medications preoperatively, efficient and coordinated instrument handling intraoperatively, accurate and timely administration of medications, and continuous monitoring with early warning of vital sign abnormalities. (3) Clear roles and responsibilities: Team members had clearly defined roles in each procedure (e.g., Nurse A responsible for instruments, Nurse B for medication administration and documentation, Nurse C for patient monitoring and positioning), minimizing confusion due to ad hoc staffing or unclear responsibilities. (4) Proactive collaboration: The team was able to anticipate procedural steps (e.g., precut sphincterotomy, stent placement) and the endoscopist’s operating habits, enabling anticipatory preparation and active cooperation rather than purely reactive responses. To minimize information bias, all data collectors underwent uniform training, and uncertain or ambiguous records were adjudicated and confirmed by a senior nursing researcher. All ERCP procedures were performed or directly supervised by three senior endoscopists with more than 10 years of experience and annual ERCP volumes exceeding 200 cases. Advanced endoscopy trainees were involved in approximately 30% of procedures under direct supervision. Statistical analysis Statistical analyses were performed using SPSS version 27.0 for data entry and analysis, and R version 4.5.0 for data processing and advanced statistical analyses. Continuous variables were first tested for normality. Variables with a normal distribution were expressed as mean ± standard deviation and compared between groups using the independent-samples t test. Variables with a non-normal distribution were expressed as median (interquartile range) and compared using the Mann–Whitney U test. Categorical variables were expressed as numbers (percentages) and compared using the chi-square test or Fisher’s exact test, as appropriate. A two-sided P value < 0.05 was considered statistically significant. Although comprehensive nursing interventions and dedicated ERCP team cooperation are related concepts in clinical practice, they address different dimensions of nursing practice. Comprehensive nursing intervention refers to a standardized perioperative nursing care bundle (including preoperative education, hydration, intraoperative monitoring, and postoperative assessment), whereas dedicated ERCP team cooperation reflects an organizational model characterized by a fixed, well-trained nursing team with clear role division and standardized workflows. Multicollinearity diagnostics showed no significant collinearity between these two variables (VIF < 1.02 for both), supporting their simultaneous inclusion in the multivariable model. To construct the predictive model, all variables with P < 0.05 in univariate analyses were entered into a multivariable logistic regression model. Variance inflation factors (VIFs) were calculated to assess multicollinearity (VIF < 5 indicating no significant multicollinearity), thereby controlling for potential confounding. Independent risk factors were then identified using forward stepwise regression based on the likelihood ratio test, and a nomogram was constructed based on the final model. Model validation included the following procedures: discrimination was evaluated using the area under the receiver operating characteristic curve (AUC); differences in AUCs between the combined prediction model and individual predictor models were compared using the DeLong test; calibration was assessed by generating calibration curves using the bootstrap method with 1,000 resamples and calculating the calibration intercept and slope with corresponding 95% confidence intervals; and clinical net benefit was evaluated using decision curve analysis (DCA). Results Incidence of PEP after ERCP A total of 658 patients who underwent ERCP between January 2020 and December 2025 were included in the initial cohort. Among them, 45 patients were diagnosed with PEP, yielding an overall incidence of 6.8% (45/658). According to the revised Atlanta classification, 32 cases (71.1%) were classified as mild, 11 cases (24.4%) as moderate, and 2 cases (4.4%) as severe. Comparison of baseline characteristics between the two groups Using a nested case–control design, no statistically significant differences were observed between the case group (n = 45) and the control group (n = 180) with respect to baseline characteristics, including age, sex, history of pancreatitis, primary indication for ERCP, and hypertension (all P > 0.05; Table 1). The matching was adequate, indicating good comparability between the two groups. Table 1Comparison of baseline characteristics between the two groups [n (%)]VariablesCase group (n = 45)Control group (n = 180)t/z/χ² P Age (years)58.58 ± 11.5558.60 ± 10.92-0.0120.990Sex (Male/Female)23/22100/800.6450.422BMI (kg/m²)24.00(22.00, 24.00)24.00(22.00, 25.00)-1.0440.297Indication for ERCP (common bile duct stones)*39 (86.67)157 (87.22%)0.0110.916History of pancreatitis3 (6.67%)20 (11.11%)0.7750.379Hypertension3 (6.67%)9 (5.00%)0.0080.930Diabetes mellitus8 (17.78%)31 (17.22%)0.0650.799History of SOD8 (17.78%)35 (19.44%)0.1980.656Preoperative total bilirubin level39.57(29.98, 49.16)36.65(28.56, 46.35)-0.8820.378*The primary indication was common bile duct stones (86.9% overall). Other indications (e.g., malignant biliary obstruction, benign biliary strictures, SOD) were too infrequent for separate analysis and were grouped as “others” Comparison of baseline characteristics between the two groups [n (%)] *The primary indication was common bile duct stones (86.9% overall). Other indications (e.g., malignant biliary obstruction, benign biliary strictures, SOD) were too infrequent for separate analysis and were grouped as “others” Comparison of procedure- and nursing-related factors Regarding procedural factors, the incidences of difficult cannulation and pancreatic duct opacification ≥ 3 times were significantly higher in the case group than in the control group (both P < 0.05). No significant differences were observed between the two groups in pancreatic duct stent placement or sphincterotomy (both P > 0.05). With respect to nursing-related factors, the proportions of patients receiving comprehensive nursing interventions and cooperation by a dedicated ERCP team were significantly higher in the control group than in the case group (both P < 0.05). No significant differences were found between the two groups in postoperative 2-hour serum amylase monitoring or postoperative prophylactic medication use (both P > 0.05; Table 2). Table 2Comparison of procedure- and nursing-related factors between the two groups [n (%)]VariablesCase group (n = 45)Control group (n = 180)χ² P Difficult cannulation21 (46.67%)29 (16.11%)19.446< 0.001Pancreatic contrast ≥ 3 times17 (37.78%)30 (16.67%)9.709< 0.001Pancreatic duct stent placement8 (17.78%)24 (13.33%)0.5830.445Sphincterotomy33 (73.33%)144 (80.00%)0.9530.329Preoperative high-risk assessment27 (60.00%)63 (35.00%)9.3750.002Comprehensive nursing interventions23 (51.11%)142 (78.89%)14.205< 0.001Dedicated ERCP team30 (66.67%)165 (91.67%)19.471< 0.001Postoperative 2-hour serum amylase monitoring42 (93.33%)170 (94.44%)0.0820.775Postoperative prophylactic medication use16 (35.56%)76 (42.22%)0.6620.416 Comparison of procedure- and nursing-related factors between the two groups [n (%)] Univariate analysis of risk factors for PEP Univariate logistic regression analysis was performed for all candidate variables (Table 3). Among the patient-related, procedure-related, and nursing-related factors, five variables showed a statistically significant association with PEP (all P < 0.05): difficult cannulation, pancreatic duct opacification ≥ 3 times, preoperative high-risk assessment, comprehensive nursing interventions, and dedicated ERCP team cooperation. Table 3Univariate logistic regression analysis of risk factors for PEPVariableCrude OR (95% CI)P valueDifficult cannulation4.556(2.245–9.300)< 0.001Dedicated ERCP team0.182(0.080–0.411)< 0.001Comprehensive nursing interventions0.280(0.140–0.555)< 0.001Pancreatic duct opacification ≥ 3 times3.036(1.466–6.218)0.0025Preoperative high-risk assessment2.786(1.435–5.522)0.0027BMI0.931(0.811–1.065)0.299Sphincterotomy0.687(0.329–1.506)0.331History of pancreatitis0.571(0.130–1.768)0.384Prophylactic medication use0.755(0.376–1.472)0.417Gender1.307(0.678–2.525)0.423Total bilirubin level1.009(0.986–1.033)0.431Pancreatic duct stent placement1.405(0.554–3.268)0.447Hypertension1.357(0.292–4.778)0.657Postoperative 2-hour serum amylase monitoring0.824(0.239–3.791)0.775History of SOD0.896(0.361–2.012)0.799Indication (common bile duct stones)0.952(0.383–2.719)0.921Diabetes mellitus1.039(0.416–2.357)0.930Age1.000(0.972–1.029)0.991 Univariate logistic regression analysis of risk factors for PEP Multivariable analysis of risk factors for PEP Variables with P < 0.05 in the univariate analysis were entered into a multivariable logistic regression model using forward stepwise selection based on the likelihood ratio test. The final model identified five independent predictors of PEP (Table 4). Difficult cannulation (AOR = 6.70, 95% CI: 2.79–16.09, P < 0.001), preoperative high-risk assessment (AOR = 3.98, 95% CI: 1.72–9.20, P = 0.001), and pancreatic duct opacification ≥ 3 times (AOR = 3.38, 95% CI: 1.40–8.17, P = 0.007) were independent risk factors, whereas comprehensive nursing interventions (AOR = 0.20, 95% CI: 0.09–0.47, P < 0.001) and dedicated ERCP team cooperation (AOR = 0.14, 95% CI: 0.05–0.37, P < 0.001) were protective factors. The model demonstrated good goodness of fit (Hosmer-Lemeshow test, χ² = 9.555, P = 0.145) and explained 40.0% of the variance (Nagelkerke R² = 0.400). Multicollinearity diagnostics showed no significant collinearity (VIF < 1.02 for all variables). Table 4Analysis of risk factors for PEPVariablesβS.E.Waldχ²P valueAdjusted ORDifficult cannulation1.9020.44718.121< 0.0016.700(2.791–16.086)Preoperative high-risk assessment1.3810.42710.4500.0013.980(1.723–9.197)Pancreatic contrast ≥ 3 times1.2170.4517.2880.0073.378(1.396–8.174)Comprehensive nursing intervention-1.5920.43013.704< 0.0010.204(0.088–0.473)Dedicated ERCP team cooperation-1.9920.50315.713< 0.0010.136(0.051–0.365)VIF values for all variables were < 1.02, indicating no significant multicollinearity. The model was established using forward stepwise regression (likelihood ratio). The constant term is not shown Analysis of risk factors for PEP VIF values for all variables were < 1.02, indicating no significant multicollinearity. The model was established using forward stepwise regression (likelihood ratio). The constant term is not shown ROC curve analysis of individual variables and the combined model for predicting PEP Among the individual predictors, difficult cannulation yielded the highest AUC (0.653, 95% CI: 0.556–0.749), followed by receipt of comprehensive nursing interventions (0.639, 95% CI: 0.543–0.734). The combined prediction model achieved an AUC of 0.856 (95% CI: 0.798–0.914), which was significantly superior to any single predictor (DeLong test, all P < 0.001), indicating markedly improved discriminative performance (Table 5; Fig. 1). Table 5ROC curve analysis of individual predictors and the combined model for predicting PEP after ERCPParametersAUCS.E.95% CIP value compared with joint prediction modelDifficult cannulation0.6530.0490.556–0.749< 0.001Pancreatic contrast ≥ 3 times0.6060.0500.508–0.703< 0.001Preoperative high-risk assessment0.6250.0470.533–0.717< 0.001Comprehensive nursing intervention0.6390.0490.543–0.734< 0.001Dedicated ERCP team cooperation0.6250.0510.525–0.725< 0.001Joint prediction model0.8560.0300.798–0.914- ROC curve analysis of individual predictors and the combined model for predicting PEP after ERCP ROC curves of individual predictors and the combined model for predicting PEP after ERCP Bootstrap internal validation of the prediction model To assess the generalizability of the model and adjust for optimism bias, internal validation was performed using the bootstrap resampling method (B = 1,000). As shown in Table 6, the discriminative ability of the model remained excellent after correction, with the AUC decreasing from 0.856 to 0.839, corresponding to an optimism of 0.017 (2.0%). The explanatory power (Nagelkerke R²) decreased from 0.400 to 0.352, with an optimism of 0.048 (12.0%). The calibration curve demonstrated good agreement between predicted and observed probabilities (Fig. 2), and the Hosmer–Lemeshow test further confirmed good model fit (χ² = 9.555, P = 0.145). DCA indicated that within a threshold probability range of 5%–35%, using this model to guide clinical decision-making (e.g., intensifying preventive measures for high-risk patients) provided a positive net clinical benefit compared with the “treat-all” or “treat-none” strategies (Fig. 3). Table 6Bootstrap internal validation results of the prediction modelIndicatorOriginal valueAdjusted valueOptimismOptimism (%)AUC0.8560.8390.0172.0%Nagelkerke R²0.4000.3520.04812.0% Bootstrap internal validation results of the prediction model Calibration curve of the combined prediction model Decision curve analysis of the combined prediction model Discussion From a nursing practice perspective, this study systematically investigated the incidence and risk factors of PEP by analyzing clinical data from 658 patients undergoing ERCP. The results showed that the overall incidence of PEP was 6.8%, which is consistent with most published reports [8, 9]. Mild, moderate, and severe pancreatitis accounted for 71.1%, 24.4%, and 4.4% of cases, respectively, indicating that the majority of patients were in the early stage of disease and providing a critical intervention window for nursing surveillance. In the multivariable analysis, difficult cannulation and pancreatic duct opacification ≥ 3 times were reconfirmed as independent risk factors for PEP, in agreement with findings from previous landmark studies [10, 11]. Notably, a history of SOD did not reach statistical significance in the present study, which differs from some earlier reports [12]. This discrepancy may be attributable to the disease spectrum of the current cohort, in which common bile duct stones predominated (86.9%). In a setting where stone extraction is the primary therapeutic target, the independent risk effect of SOD may be masked by more direct procedural factors, such as stone removal and sphincterotomy [13]. These findings suggest that the focus of risk assessment may vary across centers with different disease spectra, and nursing strategies should be tailored accordingly. An important finding of this study is the observed association between nursing-related factors and a lower risk of PEP. Receipt of comprehensive nursing interventions and cooperation by a dedicated ERCP team were associated with reduced PEP risk in the multivariable analysis. However, due to the retrospective design and potential residual confounding (e.g., operator experience, procedural complexity, and unmeasured preventive measures), these findings should be interpreted as exploratory rather than causal. The observed associations may partly reflect better-organized procedural contexts rather than a direct independent effect of nursing interventions per se.These findings suggest that nursing-related factors may contribute to PEP prevention, but further prospective studies with rigorous adjustment for procedural and operator-related confounders are needed to establish causality [14]. As a structured practice framework, comprehensive nursing interventions span the entire perioperative period: preoperative education aims to alleviate patient anxiety and reduce stress responses; standardized intraoperative sedation and analgesia management improves tolerance and may modulate inflammatory responses via neuroendocrine pathways; and postoperative systematic monitoring, pain management, and early rehabilitation guidance form an integrated support system for complication prevention and recovery [15, 16]. Meanwhile, dedicated team cooperation reflects the depth of nursing specialization, whereby standardized workflows, coordinated collaboration, and anticipatory support significantly enhance procedural efficiency and reduce technical variability and procedure time, thereby directly lowering the risk of mechanical injury [17, 18]. The synergistic effects of these two models highlight both the fine-grained support provided by nursing at the micro-operational level and the systemic advantages of nursing involvement in macro-level process design [19]. The combined prediction model developed in this study demonstrated excellent discriminative ability (AUC = 0.856). Compared with traditional tools that primarily focus on patient baseline characteristics or procedural factors, this model integrates patient-, procedure-, and nursing-related variables, thereby reflecting the multifactorial nature of PEP pathogenesis [20]. Notably, the inclusion of nursing factors significantly improved the predictive performance of the model, providing methodological evidence for the independent contribution of nursing variables to risk prediction. Based on these findings, we propose a “nursing-enhanced ERCP risk prevention pathway.” Compared with conventional prevention strategies, this pathway is characterized by: (1) front-loading nursing assessment and interventions, with risk stratification and contingency planning completed preoperatively; (2) aligning nursing resources with patient risk levels, whereby high-risk patients receive an intensified strategy combining dedicated team cooperation and comprehensive interventions; and (3) transforming nursing measures from optional components into standardized configurations. This pathway aligns with emerging concepts of precision nursing and stratified management, and has the potential to maximize risk prevention efficiency under conditions of limited resources [21, 22]. Conclusion In summary, this study confirms that difficult cannulation, pancreatic duct opacification ≥ 3 times, and preoperative high-risk assessment are independent risk factors for PEP, whereas comprehensive nursing interventions and dedicated ERCP team cooperation were associated with a lower risk of PEP in this study. A combined prediction model incorporating procedure-, patient-, and nursing-related variables substantially enhances risk identification. These findings suggest that nursing-related factors may play a role in PEP prevention and support integrating nursing assessment into ERCP management protocols, though prospective validation is needed. Limitations First, as a single-center retrospective study, unavoidable recall and information biases may exist. Although efforts were made to standardize the definition of comprehensive nursing interventions, subtle variations in their implementation may persist, and the composite nature of this variable did not allow us to identify which specific components (e.g., hydration) drove the observed association. The lack of a standardized, externally reproducible protocol limits generalizability. Second, to control for confounding, emergency ERCP cases were excluded, so the conclusions may be most applicable to elective cases. Additionally, due to the limited number of PEP cases (n = 45), subgroup analyses (e.g., stratified by risk level) could not be performed. Third, operator experience, trainee involvement, procedure duration, and detailed procedural characteristics (e.g., guidewire versus contrast cannulation, timing of precut sphincterotomy, double-guidewire techniques) were not systematically documented and could not be adjusted for, which may have residual confounding effects. Fourth, established preventive measures for PEP, including rectal NSAIDs and aggressive periprocedural hydration, were not routinely implemented as standardized protocols during the study period and were not systematically recorded. Therefore, their potential confounding effects could not be accounted for. The nursing-related variables may also be proxies for better-organized procedural contexts rather than truly independent protective factors. Accordingly, causal inference is not warranted from this retrospective analysis. Future multicenter prospective studies are needed to standardize nursing interventions, quantify the contributions of specific components, and validate the prediction model.In summary, this study confirms that difficult cannulation, pancreatic duct opacification ≥ 3 times, and high-risk preoperative assessment are independent risk factors for PEP, whereas comprehensive nursing interventions and dedicated ERCP team cooperation were associated with a lower risk of PEP in this study. A combined prediction model incorporating procedure-, patient-, and nursing-related variables substantially enhances risk identification. Accordingly, these findings support elevating the nursing dimension to a strategic level comparable to endoscopic technique within ERCP quality management systems. The implementation of evidence-based, nursing-enhanced prevention pathways may enable the systematic integration of multidisciplinary strengths and ultimately improve overall patient safety. Acknowledgements Not applicable. Abbreviations Adjusted Odds Ratio Area Under the Curve Body Mass Index Confidence Interval Decision Curve Analysis Endoscopic Retrograde Cholangiopancreatography Post-ERCP Pancreatitis Receiver Operating Characteristic Sphincter of Oddi Dysfunction Variance Inflation Factor Authors’ contributions Zhenyan Li conceived and designed the research study, acquired and analyzed the data, and wrote the initial draft of the manuscript. And critically revised the manuscript for important intellectual content. Lin Liu provided technical support for the acquisition and analysis of the data, performed statistical analysis, and contributed to the interpretation of the data and the manuscript revisions. All authors have read and approved the final manuscript, and have participated sufficiently in the work to take public responsibility for appropriate portions of the content. Funding There is no fund support from any institution or individual for this research. Data availability The datas used and/or analyzed during the current study are available from the corresponding author. Declarations Ethics approval and consent to participate This retrospective study was conducted in accordance with the principles of the Declaration of Helsinki. The study protocol was approved by the Human Ethics Committee of West China Hospital, Sichuan University (Ethics Approval Number: S2025-Y-0631). Given the retrospective nature of the study and the use of de-identified clinical data, the requirement for informed consent was waived by the ethics committee. Consent for publication Not applicable. Competing interests The authors declare no competing interests. Footnotes Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. References Associated Data Data Availability Statement The datas used and/or analyzed during the current study are available from the corresponding author.