Algorithm for the Determination of HIV Status using EMR Data. The algorithm uses logical and temporal criteria to classify all patients as having known HIV status (HIV-positive or negative) or unknown HIV Status. EMR indicates electronic medical; ICD9, International Classification of Disease, 9th Revision; VL, viral load; UD, undetectable; WB, HIV Western blot; Ab, HIV antibody test.