he licensed in medicine at the university of barcelona and specialized in psychiatry