Personalized Event Prediction for Electronic Health Records