If the person so charged refuses to submit to testing or the competency of the person to consent to testing is at issue, the court with jurisdiction of the case shall hold a hearing in a manner as provided by § 19.2-183, as soon as practicable, to determine whether there is probable cause that the individual has committed the crime with which he is charged and that the complaining witness was exposed to body fluids of the person so charged in a manner that may, according to the then-current guidelines of the Centers for Disease Control and Prevention, transmit a sexually transmitted infection. If the court finds probable cause, the court shall order the person so charged to undergo testing for sexually transmitted infections. The court may enter such an order in the absence of the person so charged if the person so charged is represented at the hearing by counsel or a guardian ad litem. The court's finding shall be without prejudice to either the Commonwealth or the person charged and shall not be evidence in any proceeding, civil or criminal. At any hearing before the court, the person so charged or his counsel may appear.
If the defendant refuses to submit to testing or the competency of the person to consent to testing is at issue, the court with jurisdiction of the case shall hold a hearing, in a manner as provided by § 19.2-183, to determine whether there is probable cause that the complaining witness was exposed to body fluids of the defendant in a manner that may, according to the then-current guidelines of the Centers for Disease Control and Prevention, transmit a sexually transmitted infection. If the court finds probable cause, the court shall order the accused to undergo testing for sexually transmitted infections. The court may enter such an order in the absence of the defendant if the defendant is represented at the hearing by counsel or a guardian ad litem. The court's finding shall be without prejudice to either the Commonwealth or the defendant and shall not be evidence in any proceeding, civil or criminal. At any hearing before the court, the defendant or his counsel may appear.
Va. Code § 18.2-61.1