Records maintained by a community sexual assault program and underserved populations provider shall not be made available to any defense attorney as part of discovery in a sexual assault case unless:
(1) A written pretrial motion is made by the defendant to the court stating that the defendant is requesting discovery of the community sexual assault program or underserved populations provider records;
(2) The written motion is accompanied by an affidavit or affidavits setting forth specifically the reasons why the defendant is requesting discovery of the community sexual assault program or underserved populations provider records;
(3) The court reviews the community sexual assault program or underserved populations provider records in camera to determine whether the community sexual assault program or underserved populations provider records are relevant and whether the probative value of the records is outweighed by the victim's privacy interest in the confidentiality of such records taking into account the further trauma that may be inflicted upon the victim by the disclosure of the records to the defendant; and
(4) The court enters an order stating whether the records or any part of the records are discoverable and setting forth the basis for the court's findings.