In which cases a physician is not allowed to practice medicine?