<?xml version='1.0' encoding='utf-8'?>
<section article="gcj" article_name="Courts and Judicial Proceedings" number="3-8A-17.6" title_number="3" title_name="Courts of General Jurisdiction -- Jurisdiction/special Causes of Action" subtitle_number="8A" subtitle_name="Juvenile Causes -- Children Other Than Cinas and Adults">
  <level label="a">
    <text>At a competency hearing, if the court determines that the child is incompetent to proceed, but that there is a substantial probability that the child may be able to attain competency in the foreseeable future and that services are necessary to attain competency, the court may order the Maryland Department of Health to provide competency attainment services for the child for an initial period of not more than 90 days.</text>
  </level>
  <level label="b">
    <text>Any competency attainment services shall be provided in the least restrictive environment.</text>
  </level>
  <level label="c">
    <text>Subject to subsection (d) of this section, the court may order a child to be placed in a facility for children if:</text>
    <level label="1">
      <text>The child is detained under § 3–8A–15 of this subtitle at the time of the competency hearing; and</text>
    </level>
    <level label="2">
      <text>The court finds after a hearing on the issue that:</text>
      <level label="i">
        <text>Placement in a facility is necessary to protect the child or others, or the child is likely to leave the jurisdiction of the court; and</text>
      </level>
      <level label="ii">
        <text>No less restrictive alternative placement is available that will protect the child or the community or prevent the child from leaving the jurisdiction of the court.</text>
      </level>
    </level>
  </level>
  <level label="d">
    <text>A child may not be:</text>
    <level label="1">
      <text>Unless the child’s individualized treatment plan developed under § 10–706 of the Health – General Article otherwise indicates, provided services in any group with persons who are at least 18 years old;</text>
    </level>
    <level label="2">
      <text>Placed in a detention facility; or</text>
    </level>
    <level label="3">
      <text>Placed in a psychiatric hospital, except in accordance with Title 10, Subtitle 6 of the Health – General Article.</text>
    </level>
  </level>
</section>
