An upper gastrointestinal endoscopy uses a long endoscope to see the lining of the upper GI tract. This is used to identify the cause of many symptoms, from persistent heartburn to unexplained weight loss. There are a wide range of diseases that may be diagnosed by an Upper GI Endoscopy.