Okla. Stat. tit. 43A, § 5-413
A. When a request for an order of prehearing detention is attached to a petition alleging a person to be a mentally ill person and a person requiring treatment, the district court shall determine whether there is probable cause to detain the person who is the subject of the petition prior to a hearing on the petition.
C. If the court finds that probable cause to detain the person alleged to be a mentally ill person requiring treatment does exist:
2. If the person is being held in emergency detention, the court may issue an order authorizing the facility to detain the person prior to a hearing on the petition.
A certified copy of an order of prehearing detention shall constitute authority for a facility to detain or to continue to detain the person who is the subject of the order.
Laws 1997, HB 2024, c. 387, § 7, eff. November 1, 1997.