Or. Rev. Stat. § 161.329
Order of discharge
161.329 Order of discharge. After the defendant is found guilty except for insanity pursuant to ORS 161.319, the court shall order that the person be discharged from custody if:
(1) The court finds that the person is no longer affected by a qualifying mental disorder, or, if so affected, no longer presents a substantial danger to others and is not in need of care, supervision or treatment; or
(2)(a) Each offense for which the person is found guilty except for insanity is a misdemeanor; and
(b) The court finds that the person does not present a substantial danger to others that requires commitment. [1971 c.743 §45; 1977 c.380 §6; 1981 c.711 §4; 2011 c.724 §5; 2017 c.634 §9; 2019 c.329 §5]
161.330 [Repealed by 1971 c.743 §432]