A diagnostic procedure performed by inserting a flexible tube down the throat, stomach and small intestine to look for diseases.