Learning Hierarchical Representations of Electronic Health Records for Clinical Outcome Prediction