Envoyer la notice par courriel: A Novel Temporal Similarity Measure for Patients Based on Irregularly Measured Data in Electronic Health Records