Human: I'd like to know how to get a colonoscopy. Assistant: 
Colonoscopy is an exam that involves the insertion of a flexible tube into the rectum and the examination of the lining of the large intestine. It is usually done in a doctor's office or clinic by a gastroenterologist, who specializes in digestive diseases. The procedure takes about 30 minutes and can be done under local anesthesia. After the exam, you will need to rest for several hours before returning home. You may also experience some discomfort after the exam, but it should not last long.