IBD is diagnosed through a physical examination, as well as various blood and stool lab tests, endoscopic procedures, and imaging procedures. CTs and MRIs are sometimes used in cases with severe symptoms to rule out serious complications or to define the extent of the disease, and these are increasingly complemented by intestinal ultrasound and sometimes by capsule endoscopy.