Risk Prediction on Electronic Healthcare Records with Prior Medical Knowledge