<?xml version='1.0' encoding='utf-8'?>
<section article="ghg" article_name="Health - General" number="8-505" title_number="8" title_name="Substance Use Disorders Law" subtitle_number="5">
  <level label="a">
    <level label="1">
      <level label="i">
        <text>Except as provided in paragraph (2) of this subsection, before or during a criminal trial, before or after sentencing, or before or during a term of probation, the court may order the Department to evaluate a defendant to determine whether, by reason of drug or alcohol abuse, the defendant is in need of and may benefit from treatment if:</text>
        <level label="1">
          <text>It appears to the court that the defendant has an alcohol or drug abuse problem; or</text>
        </level>
        <level label="2">
          <text>The defendant alleges an alcohol or drug dependency.</text>
        </level>
      </level>
      <level label="ii">
        <text>A court shall set and may change the conditions under which an examination is to be conducted under this section.</text>
      </level>
      <level label="iii">
        <text>The Department shall ensure that each evaluation under this section is conducted in accordance with regulations adopted by the Department.</text>
      </level>
    </level>
    <level label="2">
      <level label="i">
        <text>If a defendant is serving a sentence for a crime of violence, as defined in § 14–101 of the Criminal Law Article, a court may not order the Department to evaluate a defendant under this section until the defendant is eligible for parole.</text>
      </level>
      <level label="ii">
        <text>Nothing in this paragraph may be construed to prohibit a defendant who is serving a sentence for a crime of violence, as defined in § 14–101 of the Criminal Law Article from participating in any other treatment program or receiving treatment under the supervision of the Department under any other provision of law.</text>
      </level>
    </level>
  </level>
  <level label="b">
    <text>On consideration of the nature of the charge, the court:</text>
    <level label="1">
      <text>May require or permit an examination to be conducted on an outpatient basis; and</text>
    </level>
    <level label="2">
      <text>If an outpatient examination is authorized, shall set bail for the defendant or authorize the release of the defendant on personal recognizance.</text>
    </level>
  </level>
  <level label="c">
    <level label="1">
      <text>If a defendant is to be held in custody for examination under this section:</text>
      <level label="i">
        <text>The defendant may be confined in a detention facility until the Department is able to conduct the examination; or</text>
      </level>
      <level label="ii">
        <text>The court may order confinement of the defendant in a medical wing or other isolated and secure unit of a detention facility, if the court finds it appropriate for the health or safety of the defendant.</text>
      </level>
    </level>
    <level label="2">
      <level label="i">
        <text>If the court finds that, because of the apparent severity of the alcohol or drug dependency or other medical or psychiatric complications, a defendant in custody would be endangered by confinement in a jail, the court may order the Department to either:</text>
        <level label="1">
          <text>Place the defendant, pending examination, in an appropriate health care facility; or</text>
        </level>
        <level label="2">
          <text>Immediately conduct an evaluation of the defendant.</text>
        </level>
      </level>
      <level label="ii">
        <text>Unless the Department retains a defendant, the defendant shall be promptly returned to the court after an examination.</text>
      </level>
      <level label="iii">
        <text>A defendant who is detained for an examination under this section may question at any time the legality of the detention by a petition for a writ of habeas corpus.</text>
      </level>
    </level>
  </level>
  <level label="d">
    <level label="1">
      <text>If a court orders an evaluation under this section, the evaluator shall:</text>
      <level label="i">
        <text>Conduct an evaluation of the defendant; and</text>
      </level>
      <level label="ii">
        <text>Submit a complete report of the evaluation within 7 days to the:</text>
        <level label="1">
          <text>Court;</text>
        </level>
        <level label="2">
          <text>Department; and</text>
        </level>
        <level label="3">
          <text>Defendant or the defendant’s attorney.</text>
        </level>
      </level>
    </level>
    <level label="2">
      <text>On good cause shown, a court may extend the time for an evaluation under this section.</text>
    </level>
    <level label="3">
      <text>Whenever an evaluator recommends treatment, the evaluator’s report shall:</text>
      <level label="i">
        <text>Name a specific program able to immediately provide the recommended treatment; and</text>
      </level>
      <level label="ii">
        <text>Give an actual or estimated date when the program can begin treatment of the defendant.</text>
      </level>
    </level>
  </level>
  <level label="e">
    <level label="1">
      <text>The Department shall immediately provide the services required by this section.</text>
    </level>
    <level label="2">
      <text>A designee of the Department may carry out any of its duties under this section.</text>
    </level>
  </level>
  <level label="f">
    <text>Evaluations performed in facilities operated by the Department of Public Safety and Correctional Services shall be conducted by the Administration.</text>
  </level>
</section>
