If a person confesses to a crime, can the psychologist report it? Professional secrecy represents one of the pillars of the psychological profession, but brings with it some necessary exceptions. What is professional secrecy in the code of ethics? The Penal Code also protects this principle: article 622 punishes the violation of professional secrecy without just cause. The professional does not carry out an investigative function and does not collect information on behalf of the judicial authority.