§ 1017

Amended by Stats. 1987, Ch. 687, Sec. 1.
(a)There is no privilege under this article if the psychotherapist is appointed by order of a court to examine the patient, but this exception does not apply where the psychotherapist is appointed by order of the court upon the request of the lawyer for the defendant in a criminal proceeding in order to provide the lawyer with information needed so that he or she may advise the defendant whether to enter or withdraw a plea based on insanity or to present a defense based on his or her mental or emotional condition.
(b)There is no privilege under this article if the psychotherapist is appointed by the Board of Prison Terms to examine a patient pursuant to the provisions of Article 4 (commencing with Section 2960) of Chapter 7 of Title 1 of Part 3 of the Penal Code.

This content is for reference, learning, and study purposes only. All legal text should be verified against the official California Legislative Information website, which is the authoritative source for California law. Data last processed: February 13, 2026.