Contrastive Learning on Multimodal Analysis of Electronic Health Records