It can be difficult to assess yourself for a hernia, as not all hernias result in a visible bulge or other deformity. A doctor will generally perform a physical exam and an analysis of symptoms to diagnose most types of hernia. This will allow the doctor to determine the location and severity of the any hernia. X-rays or an endoscopy may be required to diagnose a hiatal or spinal hernia.