Between Dec 13, 2019, and Aug 5, 2021, 3528 potentially eligible individuals were screened and 1731 were enrolled, of whom 1602 (92·5%) were classifiable by the eMRS (median age 40 years [IQR 33–48], 838 [52·3%] of 1602 were female, 764 [47·7%] were male, 937 [58·5%] were outpatients, 665 [41·5%] were inpatients, median CD4 count was 374 cells per μL [IQR 138–630], and 254 [15·9%] had microbiologically confirmed tuberculosis). This evidence concerns the gene CD4 and tuberculosis.