Hernia surgery is a surgical procedure to repair a hernia. A hernia occurs when an internal organ or tissue protrudes th