§ 15A‑1004.  Orders for safeguarding of defendant and return for trial.
(a)	When a defendant is found to be incapable of proceeding, the trial court must make appropriate orders to safeguard the defendant and to ensure his return for trial in the event that he subsequently becomes capable of proceeding.
(b)	If the defendant is not placed in the custody of a hospital or other institution in a proceeding for involuntary civil commitment, appropriate orders may include any of the procedures, orders, and conditions provided in Article 26 of this Chapter, Bail, specifically including the power to place the defendant in the custody of a designated person or organization agreeing to supervise him.
(c)	If the defendant is placed in the custody of a hospital or other institution in a proceeding for involuntary civil commitment, the orders must provide for reporting to the clerk if the defendant is to be released from the custody of the hospital or institution. The original or supplemental orders may make provisions as in subsection (b) in the event that the defendant is released. The court shall also order that the defendant shall be examined to determine whether the defendant has the capacity to proceed prior to release from custody. A report of the examination shall be provided pursuant to G.S. 15A‑1002. If the defendant was charged with a violent crime, including a crime involving assault with a deadly weapon, and that charge has not been dismissed, the order must require that if the defendant is to be released from the custody of the hospital or other institution, he is to be released only to the custody of a specified law enforcement agency. If the original or supplemental orders do not specify to whom the respondent shall be released, the hospital or other institution may release the defendant to whomever it thinks appropriate.
(d)	If the defendant is placed in the custody of a hospital or institution pursuant to proceedings for involuntary civil commitment, or if the defendant is placed in the custody of another person pursuant to subsection (b), the orders of the trial court must require that the hospital, institution, or individual report the condition of the defendant to the clerk at the same times that reports on the condition of the defendant‑respondent are required under Part 7 of Article 5 of Chapter 122C of the General Statutes, or more frequently if the court requires, and immediately if the defendant gains capacity to proceed. The order must also require the report to state the likelihood of the defendant's gaining capacity to proceed, to the extent that the hospital, institution, or individual is capable of making such a judgment.
(e)	The orders must require and provide for the return of the defendant to stand trial in the event that he gains capacity to proceed, unless the charges have been dismissed pursuant to G.S. 15A‑1008, and may also provide for the confinement or pretrial release of the defendant in that event.
(f)	The orders of the court may be amended or supplemented from time to time as changed conditions require.  (1973, c. 1286, s. 1; 1975, c. 166, s. 20; 1983, c. 380, s. 2; c. 460, s. 2; 1985, c. 589, s. 11; 2013‑18, s. 2.)