Gastroscopy- (B9H). A gastroscopy is a procedure to examine the upper part of your digestive system. An endoscope – a long, thin flexible tube with a video camera at the tip – is passed through the mouth into the oesophagus (throat), stomach and the first part of the small bowel.