Predicting Comorbidities Using Resampling and Dynamic Bayesian Networks with Latent Variables