The court may order a person to submit to an approved serological test for AIDS or infection with the HIV or any other related virus identified as a probable causative agent of AIDS if in the course of the performance of any other law enforcement duties, a law enforcement officer suffers a prick from a hypodermic needle, provided that there is probable cause to believe that the defendant is an intravenous user of controlled dangerous substances, or had contact with the defendant which involved or was likely to involve the transmission of bodily fluids. The court shall issue such an order only upon the request of the law enforcement officer, victim of the offense or other affected person made at the time of indictment, charge or conviction. If a county prosecutor declines to make such an application within 72 hours of being requested to do so by the law enforcement officer, the law enforcement officer may appeal to the Division of Criminal Justice in the Department of Law and Public Safety for that officer to bring the application. The person shall be ordered by the court to submit to such repeat or confirmatory tests as may be medically necessary.
As used in this section, "formal charge" includes a proceeding by accusation in the event that the defendant has waived the right to an indictment.
N.J.S. § 2C:43-2.3