A person charged with an offense pursuant to Chapter 5 of Title 11, which has sexual intercourse or deviate sexual intercourse as an element, or has sexual contact as an element when the circumstances of the case demonstrate a possibility of transmission of human immunodeficiency virus, shall upon initial court appearance on the charge, be informed by the judge of the availability of human immunodeficiency virus testing under the provisions of Chapter 12 of Title 16. The judge shall also notify the victim of the offense, or parent or guardian of the victim, that the defendant has been so notified.