Mayo Clinic Health Manager
Get free personalized health guidance for you and your family.
Get StartedDefinition
By Mayo Clinic staffEndoscopy is a procedure used to visually examine your upper digestive system with a tiny camera on the end of a long flexible tube. A doctor who specializes in diseases of the digestive system (gastroenterologist) uses endoscopy to diagnose and treat conditions that affect the esophagus, stomach and beginning of the small intestine (duodenum).
Doctors often refer to endoscopy as esophagogastroduodenoscopy (EGD) or upper endoscopy. Endoscopy may be done in your doctor's office, an outpatient surgery center or a hospital.