CD4 and tuberculosis: Patients who were diagnosed prior to hospital admission were more likely to be younger, from low socioeconomic level, to have social security, to have received HAART for 180 days or more, to have higher counts of CD4+ cells, to be diagnosed on discharge with TB and less likely to be men having sex with men, current smokers, or to be diagnosed on discharge with PJP.