(a)
Whenever any court in this state grants probation to a person who the court has reason to believe is or has been a user of controlled substances, the court may require as a condition to probation that the probationer submit to periodic tests by a city or county health officer, or by a physician and surgeon appointed by the city or county health officer with the approval of the Attorney General, to determine, by whatever means is available, whether the probationer is addicted to a controlled substance.
In any case provided for in this subdivision, the city or county health officer, or the physician and surgeon appointed by the city or county health officer with the approval of the Attorney General shall report the results of the tests to the probation officer.
(b)
In any case in which a person is granted parole by a county parole board and the person is or has been a user of controlled substances, a condition of the parole may be that the parolee undergo periodic tests as provided in subdivision (a) and that the county or city health officer, or the physician and surgeon appointed by the city or county health officer with the approval of the Attorney General, shall report the results to the board.
(c)
In any case in which any state agency grants a parole to a person who is or has been a user of controlled substances, it may be a condition of the parole that the parolee undergo periodic tests as provided in subdivision (a) and that the county or city health officer, or the physician and surgeon appointed by the city or county health officer with the approval of the Attorney General, shall report the results of the tests to such state agency.
(d)
The cost of administering tests pursuant to subdivisions (a) and (b) shall be a charge against the county. The cost of administering tests pursuant to subdivision (c) shall be paid by the state.
(e)
The state department, in conjunction with the Attorney General, shall issue regulations governing the administering of the tests provided for in this section and providing the form of the report required by this section.