Survival Analysis with Latent Diagnostic Factors