Endoscopy

ByJonathan Gotfried, MD, Lewis Katz School of Medicine at Temple University
Reviewed/Revised Jan 2025
View Patient Education

Flexible endoscopes equipped with video cameras can be used to view the upper gastrointestinal tract from pharynx to proximal duodenum and the lower gastrointestinal tract from anus to cecum (and, sometimes, terminal ileum). The deeper parts of the jejunum and ileum can be assessed with specialized, longer enteroscopes (eg, double balloon enteroscopy).

Several other diagnostic and therapeutic interventions also can be done endoscopically. The potential to combine diagnosis and therapy in one procedure gives endoscopy a significant advantage over studies that provide only imaging (eg, radiograph contrast studies, CT, MRI) and often outweighs endoscopy’s higher cost and need for sedation.

Endoscopy
Endoscopy (Esophagus)
Endoscopy (Esophagus)

This photo shows an endoscopic view of a normal esophagus.

GASTROLAB/SCIENCE PHOTO LIBRARY

Endoscopy (Stomach)
Endoscopy (Stomach)

This photo shows an endoscopic view of a normal stomach fundus with characteristic gastric folds.

DAVID M. MARTIN, MD/SCIENCE PHOTO LIBRARY

Endoscopy (Large Intestine)
Endoscopy (Large Intestine)

This photo shows an endoscopic view of healthy colon with a ringlike muscular wall.

GASTROLAB/SCIENCE PHOTO LIBRARY

Endoscopy generally requires IV sedation. Exceptions are anoscopy and sigmoidoscopy, which generally require no sedation.

The overall complication rate during conventional endoscopic procedures is low, with estimates less than 0.3% and even lower risk of mortality (1). Complications are usually medication-related (eg, respiratory depression); procedural complications (eg, aspiration, perforation, significant bleeding) are less common.

Other complications, including myocardial infarction, stroke, and serious pulmonary events, after screening or surveillance colonoscopy are low and no higher than after other low-risk procedures (eg, joint injection or aspiration, lithotripsy, arthroscopy, carpal tunnel or cataract surgery) (2, 3).

General references

  1. 1. Kothari ST, Huang RJ, Shaukat A, et al. ASGE review of adverse events in colonoscopy. Gastrointest Endosc. 2019;90(6):863-876.e33. doi:10.1016/j.gie.2019.07.033

  2. 2. Wang L, Mannalithara A, Singh G, et al. Low rates of gastrointestinal and non-gastrointestinal complications for screening or surveillance colonoscopies in a population-based study. Gastroenterology. 154(3):540–555, 2018. doi: 10.1053/j.gastro.2017.10.006

  3. 3. Vargo, JJ 2nd. Sedation-related complications in gastrointestinal endoscopy. Gastrointest Endosc Clin N Am. 25(1):147–158, 2015. doi: 10.1016/j.giec.2014.09.009

Diagnostic Gastrointestinal Endoscopy

Diagnostic procedures by conventional endoscopy include cell and tissue sample collection by brush or biopsy forceps. Several different types of endoscopes provide additional diagnostic and therapeutic functions. Ultrasound-equipped endoscopes can evaluate blood flow or provide imaging of mucosal, submucosal, or extraluminal lesions. Endoscopic ultrasound can provide information (eg, the depth and extent of lesions) that is not available via conventional endoscopy. Also, fine-needle aspiration of both intraluminal and extraluminal lesions can be done with endoscopic ultrasound guidance.

Conventional endoscopes cannot visualize the vast majority of the small intestine. Push enteroscopy uses a longer endoscope that can be manually advanced into the distal duodenum or proximal jejunum.

Balloon-assisted enteroscopy

Balloon-assisted enteroscopy provides additional assessment of the small intestine beyond push enteroscopy. It uses an endoscope with 1 or 2 inflatable balloons attached to an overtube fitted over the endoscope. When the endoscope is advanced to the farthest possible distance, the balloon is inflated and anchored to the intestinal mucosa. Pulling back of the inflated balloon pulls the small bowel over the overtube like a sleeve, thus shortening and straightening the small intestine and allowing further advancement of the endoscope.

Balloon-assisted enteroscopy can be done in anterograde (caudad) or retrograde (cephalad) fashion, enabling examination and potential therapeutic intervention of the entire small intestine.

Screening colonoscopy

Screening colonoscopy is usually recommended for patients ages 45 years and older and for all patients at high risk of colon cancer.

For detailed information about colorectal cancer screening recommendations, see screening tests for colorectal cancer.

Therapeutic Gastrointestinal Endoscopy

Therapeutic endoscopic procedures include

  • Removal of foreign bodies

  • Hemostasis by hemoclips placement, injection of medications, hemostatic sprays, thermal coagulation, laser photocoagulation, variceal banding, or sclerotherapy

  • Debulking of tumors by laser or bipolar electrocoagulation

  • Ablative therapy of premalignant lesions

  • Removal of polyps

  • Mucosal and/or submucosal tissue resection

  • Dilation of webs or strictures

  • Stent placement

  • Reduction of volvulus or intussusception

  • Decompression of acute or subacute colonic dilation

  • Feeding tube placement

  • Drainage of pancreatic cysts

  • Endoscopic bariatric procedures (eg, placement of intragastric balloons, endoscopic sleeve gastrectomy)

  • Endoscopic myotomy (eg, for esophageal achalasia, refractory gastroparesis)

  • Transoral incisionless fundoplication

Contraindications to Gastrointestinal Endoscopy

Absolute contraindications to endoscopy include

  • Shock

  • Acute myocardial infarction

  • Peritonitis

  • Acute perforation

  • Fulminant colitis

Relative contraindications include poor patient cooperation, coma (unless the patient is intubated), and cardiac arrhythmias or recent myocardial ischemia.

Patients taking anticoagulants or chronic nonsteroidal anti-inflammatory drug therapy can safely undergo diagnostic endoscopy. However, if there is a possibility that biopsy or thermal therapy will be done, anticoagulants should be stopped for an appropriate interval before the procedure (1). Oral iron-containing medications should be stopped 4 to 5 days before colonoscopy because certain green vegetables interact with iron to form a sticky residue that is difficult to remove with a bowel preparation and interferes with visualization.

The American Heart Association and American College of Cardiology (ACC/AHA) no longer recommend endocarditis prophylaxis for patients having routine gastrointestinal endoscopy (2 ). The American Society for Gastrointestinal Endoscopy also recommends against antibiotic prophylaxis before any gastrointestinal procedures in patients with synthetic vascular grafts or other nonvalvular cardiovascular devices (eg, implantable electronic devices) or for patients with an orthopedic prosthesis (3). However, antibiotics are used before placement of a percutaneous endoscopic gastrostomy (PEG) tube to prevent site infection and often before endoscopic retrograde cholangiopancreatography (ERCP) or other procedures accessing the hepatobiliary system.

For patients on peritoneal dialysis, drainage of the abdomen prior to colonoscopy is recommended to prevent peritonitis (4). The benefit of pre-colonoscopy antibiotics in peritoneal dialysis patients to prevent peritonitis is unknown (4, 5).

Contraindications references

  1. 1. Acosta RD, Abraham NS, Chandrasekhara V, et al. The management of antithrombotic agents for patients undergoing GI endoscopy. Gastrointest Endosc. 83(1):3–16, 2016. doi: 10.1016/j.gie.2015.09.035. Clarification and additional information. Gastrointest Endosc. 83(3):678, 2016.

  2. 2. Otto CM, Nishimura RA, Bonow RO, et al. 2020 ACC/AHA Guideline for the Management of Patients With Valvular Heart Disease: A Report of the American College of Cardiology/American Heart Association Joint Committee on Clinical Practice Guidelines [published correction appears in Circulation. 2021 Feb 2;143(5):e229. doi: 10.1161/CIR.0000000000000955] [published correction appears in Circulation. 2023 Aug 22;148(8):e8. doi: 10.1161/CIR.0000000000001177] [published correction appears in Circulation. 2023 Nov 14;148(20):e185. doi: 10.1161/CIR.0000000000001190] [published correction appears in Circulation. 2024 Sep 17;150(12):e267. doi: 10.1161/CIR.0000000000001284]. Circulation. 2021;143(5):e72-e227. doi:10.1161/CIR.0000000000000923

  3. 3. ASGE Standards of Practice Committee, Khashab MA, Chithadi KV, et al. Antibiotic prophylaxis for GI endoscopy. Gastrointest Endosc. 81(1):81–89, 2015. doi: 10.1016/j.gie.2014.08.008

  4. 4. Li PK, Chow KM, Cho Y, et al. ISPD peritonitis guideline recommendations: 2022 update on prevention and treatment [published correction appears in Perit Dial Int. 2023 May;43(3):279. doi: 10.1177/08968608231166870] [published correction appears in Perit Dial Int. 2024 May;44(3):223. doi: 10.1177/08968608241251453]. Perit Dial Int. 2022;42(2):110-153. doi:10.1177/08968608221080586

  5. 5. Yip T, Tse KC, Lam MF, et al. Risks and outcomes of peritonitis after flexible colonoscopy in CAPD patients. Perit Dial Int. 2007;27(5):560-564.

Preparation for Gastrointestinal Endoscopy

Routine preparations for endoscopy include no solids for 8 hours and no liquids for 2 to 4 hours before the procedure (see the American Society of Anesthesiologists Task Force's 2017 guidelines [1] and 2023 guidelines [2]). Additionally, colonoscopy requires cleansing of the colon. A variety of regimens may be used, but all typically include a full or clear liquid diet for 24 to 48 hours and some type of laxative, with or without an enema (3). Bowel-cleansing preparations using a high volume of an electrolyte-containing liquid are commonly used. The preparations are available in different volumes (typically ranging between 2 L and 4 L) and have varying degrees of efficacy. Giving preparations in a split-dose fashion, ie, giving half the volume the day before the procedure and half the volume the day of the procedure, has been shown to improve patient compliance, examination quality, and adenoma detection rate (4).

Patients who cannot tolerate bowel-cleansing preparations may be given magnesium citrate, sodium phosphate, polyethylene glycol, lactulose, or other laxatives. Enemas can be done with either sodium phosphate or tap water. Phosphate preparations should not be used in patients with renal insufficiency.

GLP-1 agonists, such as liraglutide and semaglutide, have emerged as significant therapeutic agents for the management ofobesity and type 2 diabetes. However, their administration prior to endoscopic procedures necessitates careful consideration due to the potential impact on gastrointestinal motility. These agents can induce alterations in gastric emptying, raising concerns about the risk of delayed gastric emptying and its implications for sedation and anesthesia during procedures. Therefore, it is prudent for health care providers to evaluate the timing of GLP-1 administration relative to scheduled endoscopic interventions. Guidelines support cessation of weekly dosed GLP-1 medications the week prior to endoscopy (5).  Additionally, individualized assessment of patient-specific factors, including the nature of the procedure and overall health status, is essential to ensure optimal safety and efficacy as there is not yet consensus on the optimal duration these medications need to be held to minimize the risk of aspiration (6, 7).  In centers or clinical scenarios where it is available, abdominal ultrasound to assess presence of gastric contents can mitigate risk of aspiration and help guide discussions on the risks and benefits of the procedure (5). Adhering to these principles can help mitigate complications and enhance procedural outcomes in this patient population.

Preparation references

  1. 1. Practice Guidelines for Preoperative Fasting and the Use of Pharmacologic Agents to Reduce the Risk of Pulmonary Aspiration. Application to Healthy Patients Undergoing Elective Procedures: An Updated Report by the American Society of Anesthesiologists Task Force on Preoperative Fasting and the Use of Pharmacologic Agents to Reduce the Risk of Pulmonary Aspiration. Anesthesiology. 126(3):376–393, 2017. doi: 10.1097/ALN.0000000000001452

  2. 2. Joshi GP, Abdelmalak BB, Weigel WA, et al. 2023 American Society of Anesthesiologists practice guidelines for preoperative fasting: Carbohydrate-containing clear liquids with or without protein, chewing gum, and pediatric fasting duration—A modular update of the 2017 American Society of Anesthesiologists practice guidelines for preoperative fasting. Anesthesiology. 138(2):132–151, 2023. doi: 10.1097/ALN.0000000000004381

  3. 3. Gu P, Lew D, Oh SJ, et al. Comparing the real-world effectiveness of competing colonoscopy preparations: Results of a prospective trial. Am J Gastroenterol. 114(2):305–314, 2019. doi: 10.14309/ajg.0000000000000057

  4. 4. ASGE Standards of Practice Committee, Saltzman JR, Cash BD, et al. Bowel preparation before colonoscopy. Gastrointest Endosc. 81(4):781–794, 2015. doi: 10.1016/j.gie.2014.09.048

  5. 5. Joshi GP, Abdelmalak BB, Weigel WA, et al; American Society of Anesthesiologists (ASA) Task Force on Preoperative Fasting. American Society of Anesthesiologists Consensus-Based Guidance on Preoperative Management of Patients (Adults and Children) on Glucagon-Like Peptide-1 (GLP-1) Receptor Agonists.

  6. 6. Hashash JG, Thompson CC, Wang AY. AGA Rapid Clinical Practice Update on the Management of Patients Taking GLP-1 Receptor Agonists Prior to Endoscopy: Communication. Clin Gastroenterol Hepatol. 2024;22(4):705-707. doi:10.1016/j.cgh.2023.11.002

  7. 7. Ushakumari DS, Sladen RN. ASA Consensus-based Guidance on Preoperative Management of Patients on Glucagon-like Peptide-1 Receptor Agonists.Anesthesiology. 2024;140(2):346-348. doi:10.1097/ALN.0000000000004776

Video Capsule Endoscopy

In video capsule endoscopy (wireless video endoscopy), patients swallow a disposable capsule containing a camera that transmits images to an external recorder; the capsule does not need to be retrieved. This noninvasive technology provides diagnostic imaging of the small bowel that is otherwise difficult to obtain by conventional endoscopies.

This procedure is particularly useful in patients with occult gastrointestinal bleeding and for detection of mucosal abnormalities.

Capsule endoscopy is more difficult in the colon and, while feasible, is not commonly used as a modality for colorectal cancer screening (1).

Video capsule endoscopy reference

  1. 1. Vuik FER, Nieuwenburg SAV, Moen S, et al. Colon capsule endoscopy in colorectal cancer screening: a systematic review. Endoscopy. 2021;53(8):815-824. doi:10.1055/a-1308-1297

More Information

Drugs Mentioned In This Article

quizzes_lightbulb_red
Test your KnowledgeTake a Quiz!
Download the free Merck Manual App iOS ANDROID
Download the free Merck Manual App iOS ANDROID
Download the free Merck Manual App iOS ANDROID