(1) This section applies if—(a) the Mental Health Court decides the person was not of unsound mind when the offence was allegedly committed; or(b) because of section 117 or 117A , the court may not decide whether the person was of unsound mind when the offence was allegedly committed.
(2) The court must decide whether the person is fit for trial.
(3) If the court decides the person is unfit for trial, the court must also decide whether the unfitness for trial is permanent.
(4) This section does not apply if, under section 117 (4) , the proceeding against the person for the offence is discontinued.