I would say that as long as it was not "major" surgery and you are not going on a liveaboard that would expose you to on going diving over a prolonged period of time, I would simply cover the wound with one of the many large waterproof bandages, slip into a wetsuit and go diving...
NexCare Waterproof Bandage
NexCare Waterproof Bandage