Welsh physician retires after 40 years