If patients have signs suggesting increased intracranial pressure or a mass effect (eg, focal neurologic deficits, papilledema, deterioration in consciousness, seizures, especially if patients have HIV infection or are immunocompromised), neuroimaging—typically, contrast-enhanced CT or MRI—is done before lumbar puncture.