Esophagogastroduodenoscopy (EGD) is an examination of the lining of the esophagus, stomach, and upper duodenum with a small camera (flexible endoscope) which is inserted down the throat. See patients taking EGD (Esophagogastroduodenoscopy) Purpose. Patients.