If a dog gets a hernia, it is a medical emergency and the dog should be seen by a veterinarian immediately.