Professionalism and professional identity formation: the cognitive base