The three years actually wasn't for surgery. That was just after my medical school, as a general duty medical officer. My obligatory service for general surgery was five years.
I'm not aware of what the obligation is for different countries. We can find out for you and get back to you on that.