If a petition is filed under this subsection (a), the court may conduct a hearing on the petition. If a hearing is conducted, it shall be conducted in chambers outside of the presence of the petitioner.
If the court determines that the report or information, including any identifying information, is relevant to the criminal proceedings and is essential to the fair trial of the person, the court may order the disclosure of that report or information, including any identifying information, as determined appropriate by the court.
The court may place restrictions on the release and use of the report or information, including any identifying information, obtained under this subsection (a) or may redact material as it considers appropriate. Material reviewed by the court that is not ordered released or that is redacted shall be maintained by the court under seal for purposes of appeal only.
The Attorney General shall be notified of the petition not less than 7 days before the hearing on the petition, or as otherwise provided by the court, and has the right to appear in the proceedings to oppose the petition.
If the court determines that there is reason to believe that the report or information may have been falsely provided, the court may order the disclosure of the report or information, including any identifying information, as determined appropriate by the court.
The court may place restrictions on the release and use of the report or information, including any identifying information, obtained under this subsection (b) or may redact material as it considers appropriate. Material reviewed by the court that is not ordered released or that is redacted shall be maintained by the court under seal for purposes of appeal only.
5 ILCS 860/25