How do doctors test or treat sore intestines?

X-rays and scans. Intestinal pain can be difficult to diagnose. X-rays and scans can help determine a cause, along with upper & lower intestinal endoscopy. There are also laboratory tests to determine gastrointestinal function. The course of investigation dpends on the type of symptoms you are having.