The person I shared a room with both after my thymectomy, and during my exacerbation (she had emphysema and was a long-term patient there) had had Tuberculosis in the past...I've always wondered if that's something I should be concerned about

Especially since after I've had my surgery, I've had wheezing- something I never had before...
How long is TB contagious for? She said that she only found out because they found these weird cyst things in her lungs or something....