A flexible, calibrated transformer-based risk model for prediction of clinical outcomes in patients with heart failure; an open cohort study using linked UK EHR | Synapse