Diagnosis of pulmonary tuberculosis