Clients referred from the court for substance abuse treatment are typically referred because they are being granted a chance to accept rehab in lieu of jail time, other charges, fines, etc. While this is most common among first time offenders, it can be offered at any point such as while the defendant is already incarcerated. There are different types of facilities that criminal justice clients might be referred to, and this depends on which programs are attainable in Max and the type of substance the person requires treatment for.
There are treatment programs that work primarily with the criminal justice court system to treat this specific type of clientele, and are typically state or federally funded or are offered at no cost or very little cost to the client. There are also private drug and alcohol rehabilitation programs that might be accepted by the court if there is a specific type of treatment that the person needs or desires that a state-funded facility can't provide. The client's legal representation can push for such options to the judge for approval. There are even drug and alcohol rehab facilities that operate out of the jails and prisons themselves, where clients are typically in a better position for early release or other leniencies when participating in addiction treatment services while serving their time for a drug offense or a DUI/DWI.