An upper gastrointestinal (UGI) endoscopy is a procedure that allows your doctor to look at the interior lining of your esophagus, your stomach, and the first part of your small intestine (duodenum) through a thin, flexible viewing instrument called an endoscope. The tip of the endoscope is inserted through your mouth and then gently advanced down your throat into the esophagus, stomach, and duodenum (upper gastrointestinal tract).
Since the entire upper gastrointestinal (GI) tract can be examined during this test, the procedure is sometimes called esophagogastroduodenoscopy (EGD).
Through the endoscope, your doctor can look for ulcers, inflammation, tumors, infection, or bleeding. Tissue samples can be collected (biopsy), polyps can be removed, and bleeding can be treated through the endoscope. Endoscopy can reveal problems that do not show up on X-ray tests, and it can sometimes eliminate the need for exploratory surgery.
See also: Upper Endoscopy (EGD) Prep