A procedure in which an endoscope is inserted into the esophagus through the mouth for diagnostic purposes, or to dilate rings or strictures, or obtain biopsies.