A hernia diagnosis is typically based on your history of symptoms, a physical exam, and possibly imaging tests.