Representation Learning for Electronic Health Records