The 8-507 drug program in Maryland is a provision of state law, codified at Maryland Health-General § 8-507, that lets a court commit a defendant with a drug or alcohol dependency to treatment through the Department of Health instead of leaving them in jail or prison. The commitment runs between 72 hours and one year, can be extended in six-month increments for good cause, and time spent in inpatient or residential treatment counts against any sentence the court imposed. The program only works with the defendant’s written consent, a clinical evaluation, and a judicial finding that the recommended treatment is appropriate and necessary.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
Who Qualifies
Two things have to be true before the court can even consider 8-507: the person must be in a criminal case or on probation, and the court must find they have an alcohol or drug dependency. The statute does not limit eligibility by offense type, though violent crimes carry a timing restriction covered below. A defendant can be committed to treatment as a condition of release, after conviction, or at any other point they voluntarily agree to participate.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
One detail surprises a lot of people. A court can order 8-507 treatment even if the deadline to file a motion for reconsideration of the sentence has passed, or the defendant filed one and lost. A closed procedural window on the sentencing side does not close the door on 8-507.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
Before committing anyone, the court has to do four things:
- Offer the defendant the opportunity to receive treatment.
- Get the defendant’s written consent to treatment and to having progress information reported back to the court.
- Order a clinical evaluation under § 8-505 or § 8-506 and review the report.
- Find that the Department’s recommended treatment is appropriate and necessary.
The written consent is non-negotiable. The whole program rests on voluntary participation, and if a defendant refuses to consent, the court cannot force them into 8-507.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
The 8-505 Evaluation Comes First
The clinical evaluation runs under Maryland Health-General § 8-505. It establishes whether the defendant actually has a drug or alcohol problem and whether treatment would help. The court can order it before or during trial, before or after sentencing, or during probation.2Maryland General Assembly. Maryland Health – General Code Section 8-505 (2025)
The evaluator has seven days to submit a report to the court, the Department, and the defendant or defense counsel. When the report recommends treatment, it has to name a specific program that can take the defendant immediately and give an actual or estimated start date. That requirement keeps the recommendation from floating as an abstract idea with no real placement behind it.2Maryland General Assembly. Maryland Health – General Code Section 8-505 (2025)
If the court permits, the evaluation can be done on an outpatient basis, which means the defendant does not have to sit in custody while they wait. If the defendant is in custody and the court finds the severity of the dependency makes jail dangerous, the court can order the Department to place the defendant in a healthcare facility or carry out the evaluation immediately.2Maryland General Assembly. Maryland Health – General Code Section 8-505 (2025)
How Placement Works
Once the court reviews the evaluation and finds treatment appropriate, it issues an order committing the defendant to the Department of Health for the treatment the Department recommends. The court does not pick the facility; the Department does, and it must facilitate immediate placement.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025) A Maryland Judiciary reference guide confirms the same point: residential commitment is based on the Department’s evaluation, and only to the facility the Department selects.3Maryland Courts. Health General 8-507 for Judges and Lawyers
Two things must be cleared before treatment can begin. Any detainer based on an untried charge or outstanding warrant has to come off, and any active sentence of incarceration has to no longer be in effect. After those are resolved, the Department has to place the defendant promptly. If placement does not happen within 21 days of the order, the court can compel the Department to appear and explain why. Up to 30 days is allowed only if the court finds exigent circumstances.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
Immediately after it receives the order, the Department also has to pull a report of all pending cases, warrants, and detainers for the defendant and send copies to the court, the defendant, and the defendant’s last attorney of record. Everyone starts with the same picture of the defendant’s legal situation.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
Violent Crime Timing Restriction
A defendant serving a sentence for a crime of violence is not permanently shut out, but they have to wait. The court cannot order 8-507 treatment until the defendant becomes eligible for parole. The same restriction applies to the 8-505 evaluation itself.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
Maryland Criminal Law § 14-101 defines “crime of violence” to include murder, manslaughter (except involuntary), rape, robbery, first-degree arson, kidnapping, carjacking, first-degree child abuse, first-degree assault, and home invasion, among others. Attempts to commit any of these also count.4Maryland General Assembly. Maryland Criminal Law Code Section 14-101 (2025)
The statute is explicit that this restriction does not block a defendant convicted of a violent crime from receiving treatment through other programs or under other laws. It only limits the use of 8-507 specifically.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
How Long Treatment Lasts and the Sentence Credit
A commitment under 8-507 runs for at least 72 hours and no more than one year. If the Department, the court, or the State shows good cause, the court can extend treatment in six-month increments past that first year.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
The sentence credit is the provision that matters most to many defendants. Time spent in inpatient evaluation or in inpatient and residential treatment under this section counts against any sentence imposed by the court that ordered the treatment. Six months in residential treatment is six fewer months to serve if treatment ends and a sentence of incarceration takes effect.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
The Department also has authority to end treatment early, though not during the first 72 hours. After that window, it can terminate treatment if it determines continued treatment is no longer in the defendant’s best interest or the defendant is no longer responsive.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
Leaving Treatment or Withdrawing Consent
Because the program is voluntary, a defendant can withdraw consent at any time. Withdrawing has immediate consequences. The Department has to report the withdrawal to the court promptly and have the defendant brought back to court within seven days for further proceedings, which usually means the court takes up the underlying sentence or the conditions that led to the treatment order.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
Walking away from treatment without authorization is handled differently. The Department’s only obligation then is to notify the court that ordered the treatment. The statute separates a formal withdrawal, which triggers the seven-day return process, from an unauthorized departure, which does not.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
The Department is also not required to treat any defendant who knowingly and willfully refuses to consent to further treatment. Once that happens, the obligation ends and the case goes back to the court.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
What the Court Sees During Treatment
The court keeps authority over the case throughout treatment. The written consent includes permission for the treatment program to share progress with the judge, and when treatment ends, the Department has to notify the court.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
One limit on the reporting matters. The Department is not required to include an assessment of whether the defendant is dangerous to themselves, others, or property because of their substance abuse problem. The reporting covers progress and compliance, not risk predictions.1Maryland General Assembly. Maryland Health – General Code Section 8-507 (2025)
Confidentiality of Treatment Records
Federal law protects substance use treatment records, and 8-507 participants are covered. Under 42 U.S.C. § 290dd-2, records identifying a patient as having or receiving treatment for a substance use disorder are confidential and can only be disclosed with the patient’s written consent, in a medical emergency, for approved research, or by court order on a showing of good cause.5Office of the Law Revision Counsel. 42 USC 290dd-2 – Confidentiality of Records
Those records cannot be used to bring criminal charges against the patient or to investigate the patient unless a court specifically authorizes it. What someone discloses during treatment generally stays out of the courtroom.5Office of the Law Revision Counsel. 42 USC 290dd-2 – Confidentiality of Records
The implementing regulations at 42 CFR Part 2 fill in the details. HHS published an updated final rule in 2024, with compliance required by February 16, 2026. Patients can give a single consent for future uses and disclosures of their records for treatment, payment, and healthcare operations. Even when records are shared under that consent, they cannot be used in legal proceedings against the patient without a separate court order.6U.S. Department of Health and Human Services. Understanding Confidentiality of Substance Use Disorder (SUD) Patient Records or Part 2
For an 8-507 participant, the state-law consent to progress reporting goes to the sentencing court, not past it. Federal confidentiality still blocks broader use of the records against the defendant in other proceedings.