Well, we usually sign a contract in which the employee recognises that if he/she opens a practice less than (X)km away in the following 3 years after leaving, he/she would have to pay an amount of (a big lot) euros to the practice owner in compensation.
Someone doing this would also have big problems with professional representatives.