Diagnosing the cause of gastrointestinal symptoms usually involves a combination of methods, including medical history, physical examination, and diagnostic tests. Tests might include endoscopy, colonoscopy, imaging studies like CT scans, and biopsies to identify cancerous cells.