Abstract Decision-making in healthcare relies on understanding patients’ past and current health states to predict and, ultimately, change their future course1,2,3. Artificial intelligence (AI) methods promise to aid this task by learning patterns of disease progression from large corpora of health records4,5. However, their potential has not been fully investigated at scale.