A doctor orders an endoscopy as an investigative measure to determine if any one of a numerous number of issues might be occurring which include: colon cancer or other cancers of the digestive system, inflammatory diseases, digestive pains, bleeding, diarrhea and other digestive issues.
The main takeaway is that an endoscopy can actually save your life and highly recommended to have regular checkups with a gastroenterologist to determine when you should have your next endoscopy.