This could most likely be tuberculosis
Presence of tubercular bacilli confirms the diagnosis of TB.
That is the reason your sputum is being sent to isolate the tubercular bacilli.
Once the bacilli is identified,diagnosis of TB is confirmed.
This is not a serious problem.
One has to take proper course of anti tubercular medicine to get completely cured of it.