Gravar-mail: Representation learning for clinical time series prediction tasks in electronic health records