Whenever a trial is had of any person charged with escape or attempt to escape from a state hospital, whenever a hearing is had on the return of a writ of habeas corpus prosecuted by or on behalf of any person confined in a state hospital except in a proceeding to which Section 5110 applies, whenever a hearing is had on a petition under Section 1026.2, subdivision (b) of Section 1026.5, or subdivision (f) of Section 2960 of the Penal Code, or Section 7361 of this code for the release of a person confined in a state hospital, and whenever a person confined in a state hospital is tried for any crime committed therein, the appropriate financial officer or other designated official of the county in which the trial or hearing is had shall make out a statement of all costs incurred by the county for investigation and other preparation for the trial or hearing, and the actual trial or hearing, all costs of maintaining custody of the patient and transporting him or her to and from the hospital, and costs of appeal, which statement shall be properly certified by a judge of the superior court of that county and sent to the Controller for approval. After the court approval, the Controller shall cause the amount of the costs incurred on and after July 1, 1987, to be paid out of the money appropriated by the Legislature, to the county treasurer of the county where the trial or hearing was had.
(Amended by Stats. 2002, Ch. 221, Sec. 206. Effective January 1, 2003.)