An endoscopy is a test to look inside your body. A long, thin tube with a small camera inside, called an endoscope, is passed into your body through a natural opening such as your mouth. Your GP may refer you for an endoscopy if you're having certain symptoms. It will usually be done at an endoscopy unit in a hospital.
An upper endoscopy, also called an upper gastrointestinal endoscopy, is a procedure used to visually examine your upper digestive system. This is done with the help of a tiny camera on the end of a long, flexible tube. A specialist in diseases of the digestive system (gastroenterologist) uses an endoscopy to diagnose and sometimes treat conditions that affect the upper part of the digestive system.
The medical term for an upper endoscopy is esophagogastroduodenoscopy. You may have an upper endoscopy done in your health care provider's office, an outpatient surgery center or a hospital.