(d) The provisions of subsection (a-5) of Section 6 of the Rights of Crime Victims and Witnesses Act shall apply to the initial commitment hearing, as provided under Section 5-2-4 of the Unified Code of Corrections, for a respondent found not guilty by reason of insanity of a violent crime in a criminal proceeding and the hearing has been ordered by the court under this Code to determine if the defendant is:(1) in need of mental health services on an inpatient basis;(2) in need of mental health services on an outpatient basis; or(3) not in need of mental health services. While the impact statement to the court allowed under this subsection (d) may include the impact that the respondent's criminal conduct has had upon the victim, victim's representative, or victim's family or household member, the court may only consider the impact statement along with all other appropriate factors in determining the:
(i) threat of serious physical harm posed by the respondent to himself or herself, or to another person;(ii) location of inpatient or outpatient mental health services ordered by the court, but only after complying with all other applicable administrative requirements, rules, and statutory requirements;(iii) maximum period of commitment for inpatient mental health services; and(iv) conditions of release for outpatient mental health services ordered by the court.