Va. Code Ann. § 37.2-817.01
C. Upon finding by clear and convincing evidence that, in addition to the findings described in subsection C of § 37.2-817, (i) the person has a history of lack of adherence to treatment for mental illness that has, at least twice within the past 36 months, resulted in the person being subject to an order for involuntary admission pursuant to subsection C of § 37.2-817 or being subject to a temporary detention order and then voluntarily admitting himself in accordance with subsection B of § 37.2-814, except that such 36-month period shall not include any time during which the person was receiving inpatient psychiatric treatment or was incarcerated, as established by evidence admitted at the hearing, (ii) in view of the person's treatment history and current behavior, the person is in need of mandatory outpatient treatment following inpatient treatment in order to prevent a relapse or deterioration that would be likely to result in the person meeting the criteria for involuntary inpatient treatment, (iii) the person has the ability to adhere to the comprehensive mandatory outpatient treatment plan, and (iv) the person is likely to benefit from mandatory outpatient treatment, the judge or special justice may order that, upon discharge from inpatient treatment, the person adhere to a comprehensive mandatory outpatient treatment plan.
The period of mandatory outpatient treatment shall begin upon discharge of the person from involuntary inpatient treatment, either upon expiration of the order for inpatient treatment pursuant to subsection C of § 37.2-817 or pursuant to § 37.2-837 or 37.2-838. The duration of mandatory outpatient treatment shall be determined by the court on the basis of recommendations of the community services board, and the maximum period of mandatory outpatient treatment shall not exceed 180 days; in prescribing the terms of the order, including its length, the judge or special justice shall consider the impact on the person's opportunities and obligations, including education and employment.
The treating physician and facility staff shall develop the comprehensive mandatory outpatient treatment plan in conjunction with the community services board and the person. The comprehensive mandatory outpatient treatment plan shall include all of the components described in, and shall be filed with the court and incorporated into, the order for mandatory outpatient treatment following a period of involuntary inpatient treatment in accordance with subsection G. The community services board where the person resides upon discharge shall monitor the person's progress and adherence to the comprehensive mandatory outpatient treatment plan. Upon expiration of the order for mandatory outpatient treatment following a period of involuntary inpatient treatment, the person shall be released unless the order is continued in accordance with § 37.2-817.4.
2022, c. 763.