The test is used to diagnose tuberculosis, a bacterial infection caused by Mycobacterium tuberculosis. Tuberculosis can cause a range of symptoms, including cough, fever, night sweats, and weight loss. The nasal swab AFB smear/ZN stain test can help to confirm a diagnosis of tuberculosis and determine the appropriate course of treatment.