Upper endoscopy, also known as esophagogastroduodenoscopy (EGD), is a medical procedure used to examine the inside of the upper gastrointestinal (GI) tract, including the esophagus, stomach, and duodenum (the first part of the small intestine). It is commonly used to diagnose and treat problems of the upper GI tract, such as swallowing difficulties, abdominal pain, and bleeding. During an upper endoscopy, the patient lies on their back on an exam table while the healthcare provider inserts a thin, flexible tube called an endoscope through the mouth and into the upper GI tract. The endoscope has a light and a camera on the end, which allows the healthcare provider to view the inside of the upper GI tract on a video monitor. The procedure usually takes 30 to 60 minutes to complete and may be performed with or without sedation, depending on the patient’s preference and the complexity of the procedure. Upper endoscopy is generally a safe and effective procedure, although some patients may experience mild discomfort or gagging during the procedure. The healthcare provider will explain the procedure to the patient and provide instructions on how to prepare for the test, including any necessary dietary restrictions. It is important for the patient to follow these instructions and ask any questions they may have before the procedure begins.