updated the way latest_patient_hiv_state is pulled