Doctors are paving the way for their own replacement by AI.