An esophagogastroduodenoscopy (EGD) is performed with a standard upper endoscope. Suction stomach contents to prevent aspiration. If placing the PEG tube for feeding, the physician should rule out obstruction in the gastric outlet and duodenum by direct examination during the EGD.