This procedure is used to examine the small intestine for inflammation, bleeding, ulcers, or abnormal growths. The patient swallows a pill-shaped capsule that contains a lighted camera, known as an endoscope, which transmits video of the intestine.