@Role
public interface PatientMatchNotifier
| Modifier and Type | Method and Description |
|---|---|
List<PatientMatchEmail> |
createAdminEmailsToLocalUsers(List<PatientMatch> matches,
Map<Long,List<String>> matchesIds)
Build a list of emails based on the given matches.
|
PatientMatchEmail |
createUserEmail(PatientMatch match,
String subjectPatientId,
String subjectServerId,
String customEmailText,
String customEmailSubject)
Generates a email to be sent from the current user to the owner of the subjectPatientId on subjectServerId
describing the given match.
|
List<PatientMatchNotificationResponse> |
notify(PatientMatchEmail email)
Sends notification for an email.
|
List<PatientMatchEmail> createAdminEmailsToLocalUsers(List<PatientMatch> matches, Map<Long,List<String>> matchesIds)
matches - list of matches to build emails frommatchesIds - map of ids of matches to patients Ids to be notifiedPatientMatchEmail createUserEmail(PatientMatch match, String subjectPatientId, String subjectServerId, String customEmailText, String customEmailSubject)
match - a match to base email text uponsubjectPatientId - the patient who's owner should receive the emailsubjectServerId - the server that holds subjectpatientId. it is needed to distinguish the case when match
is between patients with the same id but on different servers.customEmailText - (optional) email text to be usedcustomEmailSubject - (optional) email subject to be usedList<PatientMatchNotificationResponse> notify(PatientMatchEmail email)
email - an email to sendPatientMatchNotificationResponse for the matches associated with the emailCopyright © 2011–2019 University of Toronto, Computational Biology Lab. All rights reserved.