Diagnosis of cancer pain involves a comprehensive assessment. Physicians typically perform a detailed medical history and physical examination. They may also use imaging studies like X-rays, MRIs, and CT scans to identify the source of pain. Sometimes, a referral to a pain specialist or palliative care team is necessary for a thorough evaluation.