Whenever a respondent has been committed to either inpatient or outpatient treatment pursuant to this Chapter after having been found incapable of proceeding and referred by the court for civil commitment proceedings, the respondent shall not be discharged from the custody of the hospital or institution or the outpatient commitment case terminated until the respondent has been examined for capacity to proceed and a report filed with the clerk of court pursuant to G.S. 15A-1002.
N.C. Gen. Stat. § 122C-278