California Penal Code 1001.36 allows some people with mental disorders to receive treatment when they are charged with a crime. This program is known as mental health diversion in California. If the defendant successfully completes treatment, the criminal charges will be dismissed.