With the approval of the county health officer, the State Department of Health Services, as it deems necessary for HIV detection and prevention, may conduct periodic anonymous unlinked serologic surveys of all or portions of the inmate population or persons under custody within a city or county.