The Attorney General shall cause each individual convicted of a Federal offense who is sentenced to incarceration for a period of 6 months or more to be tested for the presence of the human immunodeficiency virus, as appropriate, after the commencement of that incarceration, if such individual is determined to be at risk for infection with such virus in accordance with the guidelines issued by the Bureau of Prisons relating to infectious disease management.
(b) If the Attorney General has a well-founded reason to believe that a person sentenced to a term of imprisonment for a Federal offense, or ordered detained before trial under section 3142(e), may have intentionally or unintentionally transmitted the human immunodeficiency virus to any officer or employee of the United States, or to any person lawfully present in a correctional facility who is not incarcerated there, the Attorney General shall—
consistent with the guidelines issued by the Bureau of Prisons relating to infectious disease management, inform any person (in, as appropriate, confidential consultation with the person’s physician) who may have been exposed to such virus, of the potential risk involved and, if warranted by the circumstances, that prophylactic or other treatment should be considered.
Not later than 1 year after the date of the enactment of this section, the Attorney General shall issue rules to implement this section. Such rules shall require that the results of any test are communicated only to the person tested, and, if the results of the test indicate the presence of the virus, to correctional facility personnel consistent with guidelines issued by the Bureau of Prisons. Such rules shall also provide for procedures designed to protect the privacy of a person requesting that the test be performed and the privacy of the person tested.