Latent diffusion models for survival analysis