At the time of filing of a petition pursuant to Section 2676 by the person, or pursuant to Section 2675 by the warden, the court shall appoint the public defender or other attorney to represent the person unless the person is financially able to provide his or her own attorney. The attorney shall advise the person of his or her rights in relation to the proceeding in question and shall represent him or her before the court.
The court shall also appoint an independent medical expert on the person’s behalf to examine the person’s medical, mental, or emotional condition and to testify thereon, unless the person is financially able to obtain the expert testimony. However, if the person has given his or her informed consent to the proposed organic therapy, other than psychosurgery as referred to in subdivision (c) of Section 2670.5, and his or her attorney concurs in the proposed administration of the organic therapy, the court may waive the requirement that an independent medical expert be appointed.