An upper endoscopy (EGD) is done to look at part of the digestive system. EGD helps diagnose conditions such as acid reflux and ulcers. Find out what to expect for your procedure.