An upper endoscopy is the examination of the lining of the esophagus, stomach and duodenum (doo-AW-duh-num), the first part of the small intestines.

A flexible fiberoptic tube (endoscope) is passed though the mouth, into the stomach and then into the duodenum.