A medical procedure that allows a physician to examine the digestive tract and diagnose various gastrointestinal disorders.