A capsule endoscope houses a camera and lights in a clear housing. A patient swallows the capsule and the camera takes magnified photos and video for diagnosis of gastrointestinal disorders.