Gastroscopy is an imaging technique used to look at the upper abdomen. A thin flexible tube (endoscope) is inserted into the oesophagus, stomach and part of the duodenum. It can be used to confirm or rule out conditions such as gastritis and peptic ulcers. The Swiss Atlas of Healthcare contains analyses on the frequency of gastroscopies overall and separate analyses on inpatient and outpatient settings.