An upper endoscopy is a procedure used to examine the digestive system. Also called an esophagogastroduodenoscopy, a gastroenterologist uses a thin scope to look inside the upper digestive tract. Upper endoscopies are recommended if you’re experiencing heartburn, nausea, bleeding, problems swallowing, or abdominal or chest pain. They can also help diagnose tumor, ulcers and inflammation.