Diagnosis is made by barium enema in most cases. Barium is a liquid that can be seen on X-rays. Once barium is inserted into the intestine through the rectum, certain X-ray patterns identify the condition. Other X-ray tests may be used to diagnose this condition in some cases.