Identifying and predicting longitudinal trajectories of care for people newly diagnosed with HIV in South Africa