Generalizable Model Design for Clinical Event Prediction using Graph Neural Networks