Hernias can be diagnosed by a primary care provider during a physical examination. Followed by this, the doctor might suggest a MRI or CT scan.