(1) The court may commit a person to the custody of the office of behavioral health upon the petition of the person's spouse or guardian, a relative, a physician, an advanced practice nurse, the administrator in charge of an approved treatment facility, or any other responsible person. The petition must allege that the person has a substance use disorder and that the person has threatened or attempted to inflict or inflicted physical harm on himself or herself or on another and that unless committed the person is likely to inflict physical harm on himself or herself or on another or that the person is incapacitated by drugs. A refusal to undergo treatment does not constitute evidence of lack of judgment as to the need for treatment. The petition must be accompanied by a certificate of a licensed physician who has examined the person within ten days before submission of the petition, unless the person whose commitment is sought has refused to submit to a medical examination or an examination cannot be made of the person due to the person's condition. The certificate must set forth the physician's findings in support of the petition's allegations.
(2) A petition submitted pursuant to subsection (1) of this section shall not be accepted unless there is documentation of the refusal by the person to be admitted to accessible and affordable voluntary treatment. Documentation may include, but shall not be limited to, physicians' and advanced practice nurses' statements, notations in the person's medical or law enforcement records, or witnesses' statements.
(3) Upon filing of the petition, the court shall fix a date for a hearing no later than ten days, excluding weekends and holidays, after the date the petition was filed, unless valid medical reasons exist for delaying the hearing. A copy of the petition and of the notice of the hearing, including the date fixed by the court, must be personally served on the person whose commitment is sought and one of his or her parents or his or her legal guardian if he or she is a minor. A copy of the petition and notice of hearing must be provided to the petitioner, to the office of behavioral health, to counsel for the person whose commitment is sought, if any, to the administrator in charge of the approved treatment facility to which the person may have been committed for emergency treatment, and to any other person the court believes advisable.
(4) At the hearing, the court shall hear all relevant testimony, including, if possible, the testimony of at least one licensed physician who has examined the person whose commitment is sought. The person shall be present unless the court believes that the person's presence is likely to be injurious to the person; in this event, the court shall appoint a guardian ad litem to represent the person throughout the proceeding. If the person has refused to be examined by a licensed physician, he or she shall be given an opportunity to be examined by a court-appointed licensed physician. If the person refuses and there is sufficient evidence to believe that the allegations of the petition are true or if the court believes that more medical evidence is necessary, the court may commit the person to a licensed hospital or an approved public or private treatment facility for a period of not more than five days for a diagnostic examination. In such event, the court shall schedule a further hearing for final determination of commitment, in no event later than five days after the first hearing.
(5) If after hearing all relevant evidence, including the results of any diagnostic examination by the licensed hospital, the court finds that grounds for involuntary commitment have been established by clear and convincing proof, the court shall make an order of commitment to the office of behavioral health. The office of behavioral health has the right to delegate physical custody of the person to an appropriate approved treatment facility. The court may not order commitment of a person unless it determines that the office of behavioral health is able to provide adequate and appropriate treatment for him or her and that the treatment is likely to be beneficial.
(6) Upon the court's commitment of a person to the office of behavioral health, the court may issue an order to the sheriff to transport the person committed to the facility designated by the office of behavioral health.
(7) A person committed as provided in this section remains in the custody of the office of behavioral health for treatment for a period of thirty days unless discharged sooner. At the end of the thirty-day period, the office of behavioral health shall automatically discharge the person committed unless the office, before expiration of the period, files a petition for his or her recommitment upon the grounds set forth in subsection (1) of this section for a further period of ninety days and a hearing has been scheduled in accordance with subsection (3) of this section. If a person has been committed because he or she has a substance use disorder and is likely to inflict physical harm on another, the office of behavioral health shall apply for recommitment if, after examination, it is determined that the likelihood to inflict physical harm on another still exists.
(8) If a person recommitted as provided in subsection (7) of this section has not been discharged by the office of behavioral health before the end of the ninety-day period, the office shall discharge the person at the expiration of the ninety-day period unless the office of behavioral health, before expiration of the ninety-day period, files a petition on the grounds set forth in subsection (1) of this section for recommitment for a further period not to exceed ninety days and a hearing has been scheduled in accordance with subsection (3) of this section. If a person has been committed because he or she has a substance use disorder and is likely to inflict physical harm on another, the office of behavioral health shall apply for recommitment if, after examination, it is determined that the likelihood to inflict physical harm on another still exists. Only two recommitment orders pursuant to subsection (7) of this section and this subsection (8) are permitted.
(9) Upon the filing of a petition for recommitment under subsections (7) and (8) of this section, the court shall fix a date for hearing no later than ten days, excluding weekends and holidays, after the date the petition was filed unless valid medical reasons exist for delaying the hearing. A copy of the petition and of the notice of hearing shall be served as required in subsection (3) of this section. At the hearing, the court shall proceed as provided in subsection (4) of this section.
(10) The office of behavioral health shall provide adequate and appropriate treatment of a person committed to its custody. The office of behavioral health may transfer any person committed to its custody from one approved treatment facility to another, if transfer is advisable.
(11) The office of behavioral health shall discharge a person committed to its custody for treatment at any time before the end of the period for which he or she has been committed if either of the following conditions is met:
(a) In the case of a person with a substance use disorder committed on the grounds that he or she is likely to inflict physical harm upon another, that he or she no longer has a substance use disorder that requires treatment or the likelihood to inflict physical harm upon another no longer exists; or
(b) In the case of a person with a substance use disorder committed on the grounds of the need of treatment and incapacity, that the incapacity no longer exists, or in the case of a person with a substance use disorder committed on any grounds pursuant to this section, that further treatment will not be likely to bring about significant improvement in the person's condition, or treatment is no longer appropriate, or further treatment is unlikely to be beneficial.
(12) The court shall inform the person whose commitment or recommitment is sought of his or her right to contest the application, to be represented by counsel at every stage of any proceedings relating to the person's commitment and recommitment, and to have counsel appointed by the court or provided by the court if the person wants the assistance of counsel and is unable to obtain counsel. If the court believes that the person needs the assistance of counsel, the court shall require, by appointment if necessary, counsel for the person regardless of the person's wishes. The person whose commitment or recommitment is sought shall be informed of his or her right to be examined by a licensed physician of the person's choice. If the person is unable to obtain a licensed physician and requests examination by a physician, the court shall employ a licensed physician.
(13) If a private treatment facility agrees with the request of a competent patient or his or her parent, sibling, adult child, or guardian to accept the patient for treatment, the administrator of the public treatment facility may transfer him or her to the private treatment facility.
(14) A person committed under this article may at any time seek to be discharged from commitment by an order in the nature of habeas corpus.
(15) The venue for proceedings under this section is the county in which the person to be committed resides or is present.
(16) All proceedings conducted pursuant to this article shall be conducted by the district attorney of the county where the proceeding is held or by an attorney acting for the district attorney appointed by the court for that purpose; except that, in any county or in any city and county having a population exceeding one hundred thousand persons, the proceedings shall be conducted by the county attorney or by an attorney acting for the county attorney appointed by the court.