Esophagogastroduodenoscopy (also called EGD or upper endoscopy). An EGD (upper endoscopy) is a procedure that allows the healthcare provider to examine the inside of the esophagus, stomach, and duodenum with an endoscope. This is guided into the mouth and throat, then into the esophagus, stomach, and duodenum.