Potentialities for learning in medical students’ ways of approaching a diagnostic task