Approximation of Bayesian models for time-to-event data