Estimates of 30-day postoperative pulmonary complications after gastrointestinal endoscopic procedures: A retrospective cohort analysis of a health system population
Zyad J. Carr, Judy Li, Daniel Agarkov, Makenzie Gazura, Kunal Karamchandani

TL;DR
This study estimates the risk of lung complications after gastrointestinal endoscopic procedures and finds that inpatients and upper endoscopies are riskier, while anesthesia teams may help reduce complications.
Contribution
The study provides new estimates of 30-day postoperative pulmonary complications after gastrointestinal endoscopic procedures in a large healthcare system.
Findings
Inpatients had significantly higher rates of 30-day pulmonary complications compared to outpatients.
Upper endoscopy was associated with a higher risk of complications than lower endoscopy.
Anesthesia care teams were protective against 30-day pulmonary complications.
Abstract
The incidence of 30-day postoperative pulmonary complications (PPC) of gastrointestinal endoscopic procedures (GIEP) are not well characterized in the literature. The primary aim of this study was to identify the incidence of 30-day PPC after GIEP within a large healthcare system. We conducted a retrospective cohort study of 5377 patients presenting for GIEP between January 2013 and January 2022. Our primary outcome was the Agency for Healthcare Research and Quality PPC composite (AHRQ-PPC). Secondary outcomes were sub-composites derived from the AHRQ-PPC; including pneumonia (AHRQ-PNA), respiratory failure (AHRQ-RF), aspiration pneumonia/ pneumonitis (AHRQ-ASP) and pulmonary emboli (AHRQ-PE). We performed propensity score matching (PSM) followed by multivariable logistic regression to analyze primary and secondary outcomes. Inpatients had higher 30-day AHRQ-PPC (6.0 vs. 1.2%, p<0.001),…
Genes, proteins, chemicals, diseases, species, mutations and cell lines named across the full text — each resolved to its canonical identifier and authoritative record.
Click any figure to enlarge with its caption.
Fig 1
Fig 2Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEsophageal and GI Pathology · Esophageal Cancer Research and Treatment · Gastroesophageal reflux and treatments
Introduction
The incidence of postoperative pulmonary complications (PPC) occurring within 30 days after gastrointestinal endoscopic procedures (GIEP) is not well characterized in the literature. Preprocedural risk estimation and assessment for GIEP are critical to reducing peri-procedural complications [1]. A prospective observational study, utilizing questionnaires after GIEP with endoscopist-driven sedation, observed a significant incidence of clinically evident respiratory infection [2]. Although dependent on individual reported variables, combined PPC in all surgical populations may range between 1–10.9% [3–5]. With increasing efforts at decreasing hospital length of stay after procedure, postoperative infectious complications have been increasingly observed to occur after discharge and increase the risk of readmission, thus characterizing 30-day outcomes may better estimate true incidence of perioperative complications [6]. Agency for Healthcare Research and Quality (AHRQ) composite patient safety indicators (PSI) have shown moderate sensitivity and high specificity for postoperative procedural complications [7]. Our primary aim was to provide risk estimates for 30-day PPC after GIEP in a diverse health system population. To this end, we utilized ICD-10 coding for the AHRQ postoperative pulmonary complications (AHRQ-PPC) [8]. The AHRQ-PPC is a broad composite of International Classification of Disease (ICD-10) and current procedural terminology^®^ (CPT) codes for respiratory failure, infectious pneumonia, pneumonitis, pulmonary embolus, pneumothorax, and pulmonary aspiration. For exploratory secondary outcomes, we created focused sub-composites derived from the AHRQ-PPC that provide diagnostic clusters for respiratory failure (AHRQ-RF), infectious pneumonia (AHRQ-PNA), pulmonary aspiration pneumonitis/pneumonia (AHRQ-ASP), and pulmonary embolus (AHRQ-PE). We analyzed pre-admission risk factors for AHRQ-PPC, the role of anesthesia care team presence during GIEP, risk of upper vs. lower endoscopy and compared outpatient vs. inpatient endoscopy.
Materials and methods
Study population
We conducted a retrospective cohort study of patients who underwent GIEP between January 1, 2013, and January 1, 2022, within the Yale-New Haven Hospital system which includes a non-profit, 1,541 bed tertiary medical center, three community hospitals and three endoscopy centers located in Connecticut, USA. The study was approved by the Yale School of Medicine Institutional Review Board (Study #2000032725) with a waiver of informed consent. Authors had access to data of individual participants after data collection. This manuscript follows the recommendations published by the Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) Statement guidelines for observational studies in epidemiology (Fig 1) [9].
CONSORT flow diagram of patient eligibility.
GIEP was defined as upper or lower endoscopic procedures performed by the gastrointestinal service with the involvement of the anesthesia care team (comprised of a supervising anesthesiologist with resident or certified nurse anesthetist) or gastroenterologist guided conscious sedation (comprised of a gastroenterologist and nursing team). We extracted age, gender, body mass index (BMI), American Society of Anesthesiologists physical status (ASA-PS I-IV), endoscopic procedure type (upper vs. lower endoscopy), procedural location (inpatient vs. outpatient setting), Elixhauser composite comorbidities, CPT and ICD-10 codes for primary and secondary outcomes. We then performed manual chart review of the 233 unique patients with 30-day PPC to determine if the complication occurred during hospital admission or in the 30 days following discharge.
Study outcomes
The primary outcome was AHRQ-PPC, and the secondary outcomes were sub-composites (AHRQ-RF, AHRQ-PNA, AHRQ-ASP and AHRQ-PE). Individual ICD-10 or CPT components of the AHRQ-PPC composite and sub-composites are described in S1 Table. We analyzed the sub-groupings of anesthesia care team vs. gastroenterologist-guided conscious sedation to the primary outcome and inpatient vs. outpatient GIEP to analyze for differences in AHRQ-PPC and sub-composite incidences.
Statistical analysis
To provide generalized risk estimates, descriptive statistics were generated with categorical variables provided as absolute frequencies (number/percent) and continuous variables as averages (mean/SD). Univariate analysis was performed and subsequently compared using Chi-square or two-sample t-test as indicated. To enhance adjustment for primary outcome assessment and due to the high number of missing values for ASA physical status (ASA-PS), a measure of disease severity prior to surgical procedure, we performed and examined a receiver operating characteristic (ROC) curve for total number of Elixhauser comorbidities and its relationship with 30-day mortality. We observed an areas under the ROC curve (AUC) of 0.966 (number of Elixhauser comorbidities) and 0.920 (categorized number of Elixhauser comorbidities), demonstrating that increasing number of Elixhauser comorbidities are a useful predictor of overall disease severity and 30-day perioperative mortality. To balance clinically relevant baseline covariates, we generated propensity scores using nearest-neighbor matching without replacement and a caliper width of 0.10. We entered age, gender, BMI, categorized number of Elixhauser comorbidities (0–5, 6–10, >10), inpatient vs. outpatient status, and upper vs. lower endoscopy (Fig 2). For the exploratory analysis of pre-procedural risk predictors for AHRQ-PPC, we performed propensity score matching (PSM) to balance between-subject selection bias in patients with and without AHRQ-PPC. The performance of PSM reduces the risk of selection bias by providing optimal assessment of treatment effect via balancing of clinically relevant baseline covariates [10]. The propensity matched cohorts were then analyzed using multivariate logistic regression to compare pre-procedural risk predictors’ association with 30-day AHRQ-PPC. Hosmer and Lemeshow Test demonstrated acceptable model fit (p = 0.191). For sub-group analysis, we performed multivariable logistic regression modeling adjusted for age, gender, BMI, number of comorbidities, length of procedure, upper vs. lower endoscopy and inpatient vs. outpatient location. Acceptable model fit was observed (Nagelkerke R2 = 0.54). For the purposes of the exploratory analysis, we accepted a p value of <0.05 for significance. Given the exploratory nature of the analysis, adjustment for multiple outcomes was not performed. SPSS 28.0 (SPSS Inc., IL, USA) was used for analysis.
Standardized mean differences in the study cohort before and after propensity score adjustment.
Results
Incidence of 30-day PPC in the overall population
Baseline characteristics of the study population are provided in Table 1. The overall incidence of 30-day AHRQ-PPC in the study population was 4.2%. When compared to patients that did not develop PPC, those that did were older (66.8 vs. 58.23 years old, p<0.001), had higher proportion of patients with ASA-IV physical status (18.90 vs. 3.1%, p<0.001), higher number of Elixhauser comorbidities (5.1 vs. 1.29, p<0.001) but had similar gender demographics (52.4 vs. 58.2, % female, p = 0.77), BMI (30.01 vs. 30.1 kg/m^2^, p = 0.12) and ethnic backgrounds (p = 0.21). Patients who developed the primary outcome had higher incidence of upper endoscopies (92.7% (217/233), p<0.001), 90.5% were associated with endoscopies performed in an inpatient setting, and 26.6% of AHRQ-PPC were recorded after discharge. Both number and individual pre-admission Elixhauser comorbidities were higher for those that developed PPC when compared to patients that did not, except for pre-procedural comorbidities of asthma, peptic ulcer disease, liver disease, end-stage renal disease, uncomplicated diabetes mellitus, rheumatological disease and nicotine use disorder.
Table 1: Baseline characteristics and univariate analysis of the study population.
Differences between inpatient vs. outpatient study cohorts
Unadjusted differences between inpatient and outpatient cohorts are described in Table 2. Age (58.78 vs. 58.17 years old, p = 0.191) and gender (58.7 vs. 56.7% female, p = 0.146) were similar, but inpatients had higher BMI (30.31 vs. 29.52 m/kg^2^, p<0.001). Inpatients had a higher incidence of AHRQ-PPC (6.00 vs. 1.20%, p<0.001). Significant differences were observed in AHRQ-PNA (3.20 vs. 0.70%, p<0.001), AHRQ-RF (2.40 vs. 0.50%, p<0.001), AHRQ-ASP (1.90 vs. 0.40%, p<0.001), but not AHRQ-PE (0.60 vs. 0.40%, p = 0.01). Lastly, inpatients had higher rates of readmission within 30 days (17.41 vs. 2.70%, p<0.001) and higher 30-day mortality (1.00 vs. 0.20%, p<0.001).
Table 2: Comparison of peri-procedural outcomes in inpatient vs. outpatient study cohorts.
Pre-admission co-morbidities associated with AHRQ-PPC
Table 3 provides the PSM analysis of the study cohort and Fig 2 describes standardized mean differences before and after PSM adjustment. After adjustment, pre-procedural comorbidities of electrolyte disorder [57.9 vs. 31.1%, ORadj: 2.26, 95%CI (1.48, 3.45), p<0.001], alcohol abuse disorder [16.7 vs. 6.8%, OR_adj_: 2.66 95%CI (1.29, 5.49), p = 0.01], CHF [22.3 vs. 8.7%, OR_adj_: 2.2 95%CI (1.17, 4.15), p = 0.02] and pulmonary circulatory disorders [21 vs. 16.9%, OR_adj_: 2.95, 95%CI (1.36, 6.39), p = 0.01] were associated with 30-day AHRQ-PPC.
Table 3: Univariate and multivariable analysis of 30-day postoperative pulmonary complications pre-procedural risk factors of the propensity score matched cohort.
Subgroup analysis of the primary and secondary outcomes
After covariate adjustment, AHRQ-PPC was associated with upper endoscopy [5.9 vs. 1.0%, OR_adj_: 3.76, 95%CI (1.85, 7.66), p<0.001]. When compared to gastroenterologist-guided conscious sedation, anesthesia care team presence was protective against AHRQ-PPC [3.7 vs. 8.4%, OR_adj_: 0.032, 95%CI (0.01, 0.22), p<0.001] and AHRQ-ASP [1.0 vs. 3.37%, OR_adj_: 0.002, 95%CI (0.00, 0.55), p<0.001] but not for AHRQ-PNA [2.0 vs. 4.0% OR_adj_: 0.238, 95%CI (0.03, 1.96), p = 0.18].
Discussion
We report risk estimates for 30-day PPC in a diverse patient population undergoing GIEP, utilizing the AHRQ-PPC composite. Risk estimates utilizing this broad composite of 30-day PPC have not been previously published and this study provides insight into their expected incidence. Overall, we observed a 30-day incidence of AHRQ-PPC of 4.3%, AHRQ-PNA (2.3%), AHRQ-RF (1.7%) and AHRQ-ASP (1.37%). When categorized by location, outpatient GIEP demonstrated lower incidence of both the primary (AHRQ-PPC), and secondary outcomes (AHRQ-RF, AHRQ-PNA, AHRQ-ASP), as compared to inpatient GIEP. Furthermore, the involvement of an anesthesia care team was protective towards the occurrence of 30-day PPC.
Broad-based PPC composites may not clearly illustrate the direct impact of the endoscopy procedure itself, due to inevitable/inseparable confounders associated with inpatient admission. Outpatient procedures are more commonly performed on an elective as opposed to urgent basis and patients tend to be relatively healthier. Due to these factors, it is likely that outpatient 30-day PPC incidence is a more precise risk estimate attributable to GIEP. Furthermore, 26.6% of AHRQ-PPC were recorded after discharge from the inpatient admission or outpatient procedure. This is consistent with the findings of Aasen and colleagues regarding the high incidence of post-discharge infectious complications, thus identifying 30-day PPC, vs. admission related, findings may provide an improvement in risk identification and opportunity for mitigation [6].
In the AHRQ-PNA sub-composite, we observed a 3.2% (inpatient) and 0.7% (outpatient) 30-day incidence of infectious pneumonia, after GIEP. When compared to general estimates in surgical populations, this is lower than the reported incidence of inpatient postoperative pneumonia published in the Nationwide Inpatient Sample (NIS) and National Surgical Quality Improvement Program (NSQIP) [3], although comparisons are limited by different time frames. Similarly, we observed a 30-day AHRQ-ASP incidence of 0.4% after outpatient GIEP. Although our database lacks the ability to ascertain cause and effect in regard to pulmonary aspiration, evidence of silent, unrecognized pulmonary aspiration during endoscopic procedures has been previously documented at 3.94% as incidental findings on F-FDG PET scanning for routine cancer screening [11]. In contrast, a prospective pilot study using ingested nonabsorbable technetium-99m did not find meaningful pulmonary aspiration in upper GIEP [12].
We observed that 30-day AHRQ-PPC was strongly associated with pre-procedural Elixhauser comorbidities of electrolyte disorder, alcohol use disorder, CHF and pulmonary circulatory disorders. Though composite outcomes are less precise for the purposes of risk prediction, these findings are consistent with published data suggesting increased risks for PPC in CHF, alcohol use disorders, and pulmonary hypertension [13–17]. Acute alcohol consumption and alcohol related liver disease have been shown to predispose to tracheobronchial aspiration and it is probable that patients with these conditions have higher risk for 30-day PPC [18]. Similarly, patients with CHF and pulmonary circulatory disorders have higher risk for postoperative respiratory failure related to periprocedural volume shifts among other factors [19]. Lastly, renal dysfunction and electrolyte disorders surrounding perioperative care are well established. Although pre-operative renal impairment has not generally been associated with 30-day mortality, 30% of surgical inpatients develop complications related to fluid and electrolyte therapy. Regarding endoscopic procedures, many involve using fluid irrigation to improve visualization with potential for significant systemic absorption of fluid. Sodium and water retention remains a common source of perioperative morbidity related to increased incidence of pulmonary edema, concomitant respiratory insufficiency and cardiac arrhythmias [20]. Similarly, both acquired and pre-admission serum sodium abnormalities have been associated with increased hospital mortality [21]. Our findings may suggest that enhancing pre-procedural optimization of electrolyte disorders, more protocolized vigilance for early signs of impaired respiratory mechanics and closer monitoring for post-procedural pulmonary congestion may improve 30-day PPCs after GIEP.
Upon exploratory analysis, we identified that upper GIEP were significantly higher risk for 30-day AHRQ-PPC with a 5.9% vs. 1% incidence for lower GIEP. It seems evident that airway manipulation during upper endoscopic instrumentation is more likely to generate PPC than lower GI tract endoscopic instrumentation. However, we believe that this observation permits system processes to focus limited resources for protocolized PPC risk mitigation on this procedure type. After adjustment, anesthesia care team presence appeared to be protective, nearly halving 30-day PPC risk (3.7% vs. 8.4%) and reducing sub-composite AHRQ-ASP events (1.0% vs. 3.37%). Pneumonia risk was reduced (2 vs. 4%) but was not statistically significant. Selection criteria for anesthesia care team presence for non-operating room procedures remain an evolving science and have remained focused on specific procedures [22, 23]. To our knowledge, no studies have examined the direct effect of anesthesia care team presence on 30-day PPC. However, there is indirect evidence that may support our observation. A meta-analysis by Leung and colleagues, comparing general endotracheal anesthesia vs. sedation for endoscopic submucosal dissection, found superior outcomes with anesthesiologist directed care, including reduced rates of gastrointestinal perforation and post-procedural aspiration pneumonia [24]. One study comparing general endotracheal anesthesia to monitored anesthesia care (MAC) in patients presenting for endoscopic retrospective cholangiopancreatography (ERCP) observed higher sedation-related adverse events in the MAC group, predominantly driven by frequent need for airway maneuvers, furthermore, this resulted in increased procedural interruptions for definitive management [25]. Lamireau and colleagues observed higher rates of significant hypoxia in pediatric patients undergoing esophagogastroduodenoscopy under sedation when compared to general anesthesia [26]. One study suggested equivocal differences when comparing moderate sedation vs. monitored anesthesia care with endpoints focused primarily on post-ERCP complications [27]. We observed that anesthesia care team presence reduces overall 30-day PPC, with a relative risk reduction of 55% (RR: 0.4474, Numbers Needed to Treat (NNT): 21.658), potentially providing downstream cost and safety benefits to GIEP. Given the costly nature of PPC to healthcare systems, these findings should be further explored. It is important to note that this observation is limited by our lack of database granularity regarding the physical environment for nursing/gastroenterology performed procedures and the selected anesthesia management, particularly endotracheal intubation.
Limitations of this study are consistent with those found in retrospective cohort studies, namely, potential coding errors, observer bias, selection bias and convenience sampling. It is important to note that unmeasured confounding factors may be present that could modify the direct contribution of PPC to patient morbidity and mortality after GIEP. This is particularly salient with inpatient GIEP, as it difficult to identify the direct contribution of GIEP to AHRQ-PPC in this population. Furthermore, it is important to note that direct causality is difficult to identify when examining 30-day outcomes, particularly given that readmission after GIEP may not be directly associated with procedural complications. To reduce these biases, we curated a diverse population where data extraction was performed by ICD-10 and CPT code by an independent data analytics team. These interventions may partially mitigate these risks. Furthermore, we balanced clinically relevant baseline covariates using PSM for preoperative risk predictors and adjusted for clinically relevant covariates to enhance the precision of our outcome observations. Lastly, it is important to stress that sub-composite findings are limited by the presence of overlapping codes, for example, a patient with ventilator-associated pneumonia may have ICD-10 and CPT codes for both respiratory failure (AHRQ-RF) and infectious pneumonia (AHRQ-PNA).
Conclusions
In conclusion, these findings report general risk estimates of 30-day PPC after GIEP across a broad range of inpatient and outpatient settings in a large healthcare system. We observed higher 30-day PPC in patients with comorbidities of electrolyte disorders, alcohol abuse, CHF and pulmonary circulatory disorders. We confirmed that upper and inpatient GIEP comprise the majority of 30-day PPC risk but direct causation to GIEP is difficult. Outpatient GIEP had a 1.2% incidence of 30-day AHRQ-PPC, an incidence of 0.7% AHRQ-PNA and 0.4% incidence of AHRQ-ASP. In this study cohort, 26.6% of 30-day PPC occurred after discharge, suggesting that a large portion of PPC are not identified during hospital stay. Lastly, the presence of anesthesia care teams may reduce the risk for 30-day PPC and tracheobronchial aspiration events, potentially reducing downstream complications and their associated healthcare costs. Future studies should seek to further evaluate specific medical conditions or pre-procedural interventions that may contribute or mitigate 30-day PPC risk, respectively, especially across multiple centers.
Supporting information
S1 TableInternational classification of disease (Version 10) codes and sub-composite variables utilized for the primary and secondary outcomes.(DOCX)
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1Waddingham W, Kamran U, Kumar B, Trudgill NJ, Tsiamoulos ZP, Banks M. Complications of diagnostic upper Gastrointestinal endoscopy: common and rare—recognition, assessment and management. BMJ Open Gastroenterol. 2022;9(1). doi: 10.1136/bmjgast-2021-000688 36572454 PMC 9806027 · doi ↗ · pubmed ↗
- 2Friedrich K, Scholl SG, Beck S, Gotthardt D, Stremmel W, Rex DK, et al. Respiratory Complications in Outpatient Endoscopy with Endoscopist-Directed Sedation. Journal of Gastrointestinal and Liver Diseases. 2014;23(3):255–9. doi: 10.15403/jgld.2014.1121.233.kf 1 25267952 · doi ↗ · pubmed ↗
- 3Chughtai M, Gwam CU, Khlopas A, Newman JM, Curtis GL, Torres PA, et al. The Incidence of Postoperative Pneumonia in Various Surgical Subspecialties: A Dual Database Analysis. Surg Technol Int. 2017;30:45–51. 28695972 · pubmed ↗
- 4Neto AS, da Costa LGV, Hemmes SNT, Canet J, Hedenstierna G, Jaber S, et al. The LAS VEGAS risk score for prediction of postoperative pulmonary complications: An observational study. European journal of anaesthesiology. 2018;35(9):691–701. doi: 10.1097/EJA.0000000000000845 29916860 PMC 7450515 · doi ↗ · pubmed ↗
- 5Abd El Aziz MA, Perry WR, Grass F, Mathis KL, Larson DW, Mandrekar J, et al. Predicting primary postoperative pulmonary complications in patients undergoing minimally invasive surgery for colorectal cancer. Updates Surg. 2020;72(4):977–83. doi: 10.1007/s 13304-020-00892-6 33001373 · doi ↗ · pubmed ↗
- 6Aasen DM, Bronsert MR, Rozeboom PD, Colborn KL, Henderson WG, Lambert-Kerzner A, et al. Relationships between predischarge and postdischarge infectious complications, length of stay, and unplanned readmissions in the ACS NSQIP database. Surgery. 2021;169(2):325–32. doi: 10.1016/j.surg.2020.08.009 32933745 · doi ↗ · pubmed ↗
- 7Romano PS, Mull HJ, Rivard PE, Zhao S, Henderson WG, Loveland S, et al. Validity of selected AHRQ patient safety indicators based on VA National Surgical Quality Improvement Program data. Health Serv Res. 2009;44(1):182–204. doi: 10.1111/j.1475-6773.2008.00905.x 18823449 PMC 2669628 · doi ↗ · pubmed ↗
- 8Group MPO. Standardized Data File—Appendix 1 Phenotype Specifications. AHRQ Complication—Pulmonary—Administrative. https://mpog.org/: Multicenter Perioperative Outcomes Group; 2020. p. 3–4.
