PENAL CODE

1000. (a) This chapter shall apply whenever a case is before any court upon an accusatory pleading for a violation of Section 11350, 11357, 11364, 11365, 11377, or 11550 of the Health and Safety Code, or subdivision (b) of Section 23222 of the Vehicle Code, or Section 11358 of the Health and Safety Code if the marijuana planted, cultivated, harvested, dried, or processed is for personal use, or Section 11368 of the Health and Safety Code if the narcotic drug was secured by a fictitious prescription and is for the personal use of the defendant and was not sold or furnished to another, or subdivision (d) of Section 653f if the solicitation was for acts directed to personal use only, or Section 381 or subdivision (f) of Section 647 of the Penal Code, if for being under the influence of a controlled substance, or Section 4060 of the Business and Professions Code, and it appears to the prosecuting attorney that, except as provided in subdivision (b) of Section 11357 of the Health and Safety Code, all of the following apply to the defendant:

(1) The defendant has no conviction for any offense involving controlled substances prior to the alleged commission of the charged offense.

(2) The offense charged did not involve a crime of violence or threatened violence.

(3) There is no evidence of a violation relating to narcotics or restricted dangerous drugs other than a violation of the sections listed in this subdivision.

(4) The defendant's record does not indicate that probation or parole has ever been revoked without thereafter being completed.

(5) The defendant's record does not indicate that he or she has successfully completed or been terminated from diversion or deferred entry of judgment pursuant to this chapter within five years prior to the alleged commission of the charged offense.

(6) The defendant has no prior felony conviction within five years prior to the alleged commission of the charged offense.

(b) The prosecuting attorney shall review his or her file to determine whether or not paragraphs (1) to (6), inclusive, of subdivision (a) apply to the defendant. Upon the agreement of the prosecuting attorney, law enforcement, the public defender, and the presiding judge of the criminal division of the superior court, or a judge designated by the presiding judge, this procedure shall be completed as soon as possible after the initial filing of the charges. If the defendant is found eligible, the prosecuting attorney shall file with the court a declaration in writing or state for the record the grounds upon which the determination is based, and shall make this information available to the defendant and his or her attorney. This procedure is intended to allow the court to set the hearing for deferred entry of judgment at the arraignment. If the defendant is found ineligible for deferred entry of judgment, the prosecuting attorney shall file with the court a declaration in writing or state for the record the grounds upon which the determination is based, and shall make this information available to the defendant and his or her attorney. The sole remedy of a defendant who is found ineligible for deferred entry of judgment is a postconviction appeal.

(c) All referrals for deferred entry of judgment granted by the court pursuant to this chapter shall be made only to programs that have been certified by the county drug program administrator pursuant to Chapter 1.5 (commencing with Section 1211) of Title 8, or to programs that provide services at no cost to the participant and have been deemed by the court and the county drug program administrator to be credible and effective. The defendant may request to be referred to a program in any county, as long as that program meets the criteria set forth in this subdivision.

(d) Deferred entry of judgment for a violation of Section 11368 of the Health and Safety Code shall not prohibit any administrative agency from taking disciplinary action against a licensee or from denying a license. Nothing in this subdivision shall be construed to expand or restrict the provisions of Section 1000.4.

(e) Any defendant who is participating in a program referred to in this section may be required to undergo analysis of his or her urine for the purpose of testing for the presence of any drug as part of the program. However, urine analysis results shall not be admissible as a basis for any new criminal prosecution or proceeding.

1001.1. As used in Sections 1001.2 to 1001.11, inclusive, of this chapter, pretrial diversion refers to the procedure of postponing prosecution of an offense filed as a misdemeanor either temporarily or permanently at any point in the judicial process from the point at which the accused is charged until adjudication.