An upper GI endoscopy or EGD is a procedure to diagnose and treat problems in your upper GI (gastrointestinal) tract. Th