Envoyer la notice par courriel: Two-stage Federated Phenotyping and Patient Representation Learning