A. A person against whom charges have been filed for a sex offense as defined in R.S. 15:541(14.1) either by indictment or information shall, at the direction of the court, undergo a medical procedure or test designed to determine or aid in determining whether the person has a sexually transmitted disease, or is infected with the acquired immune deficiency syndrome (AIDS) virus, the human immuno deficiency virus (HIV-1) infection, any antibodies to such viruses, or with any other probable causative agent of AIDS.B. The court shall include in its order the designation of an appropriate facility for the procedure, and shall require that the result be reported to the court. The court may in its discretion provide the results to the victim of the offense, and shall provide them to health authorities in accordance with law.C. The state shall not use the fact that the medical procedure or test was performed on the alleged offender under this Article, or the results thereof, in any criminal proceeding arising out of the alleged offense.