@Role
public interface MatchingNotificationManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
addNote(Set<Long> matchesIds,
String note)
Saves note to all matches with ids in
matchesIds. |
org.json.JSONObject |
getUserEmailContent(Long matchId,
String subjectPatientId,
String subjectServerId)
Returns the contents of the email that will be send as a notification for match with the given id,
with the recepient being the owner of the given patient on the given server.
|
List<PatientMatch> |
saveComment(Set<Long> matchesIds,
String comment)
Saves comment to all matches with ids in
matchesIds to a passed comment string. |
boolean |
saveIncomingMatches(List<? extends PatientSimilarityView> similarityViews,
String patientId,
String remoteId)
Saves a list of matches that were found by a remote incoming request.
|
boolean |
saveOutgoingMatches(List<? extends PatientSimilarityView> similarityViews,
String patientId,
String remoteId)
Saves a list of matches that were found by a remote outgoing request.
|
List<PatientMatchNotificationResponse> |
sendAdminNotificationsToLocalUsers(Map<Long,List<String>> idsList)
Sends notification to the owner of every match with id in
matchesId, then marks match as notified. |
PatientMatchNotificationResponse |
sendUserNotification(Long matchId,
String subjectPatientId,
String subjectServerId,
String customEmailText,
String customEmailSubject)
Sends notification to the owner of the suvbjectpatientId about the given match.
|
boolean |
setNotifiedStatus(Set<Long> matchesIds,
boolean isNotified)
Marks all matches with ids in
matchesIds as notified or not notified. |
boolean |
setStatus(Set<Long> matchesIds,
String status)
Sets status to all matches with ids in
matchesIds to a passed status string. |
boolean |
setUserContacted(Set<Long> matchesIds,
boolean isUserContacted)
Marks all matches with ids in
matchesIds as user-contacted or not. |
List<PatientMatchNotificationResponse> sendAdminNotificationsToLocalUsers(Map<Long,List<String>> idsList)
matchesId, then marks match as notified.idsList - map of ids of matches to patients Ids to be notifiedPatientMatchNotificationResponse sendUserNotification(Long matchId, String subjectPatientId, String subjectServerId, String customEmailText, String customEmailSubject)
matchId - match idsubjectPatientId - the id of the patient that is the subject of the email (can be either of
the two patients involved in the specified match)subjectServerId - the id of the server that holds the given patient. Is only needed to distinguish two
patients with the same IDcustomEmailText - (optional) email text to be usedcustomEmailSubject - (optional) emial subject to be usedorg.json.JSONObject getUserEmailContent(Long matchId, String subjectPatientId, String subjectServerId)
matchId - match idsubjectPatientId - the id of the patient that is the subject of the email (can be either of
the two patients involved in the specified match)subjectServerId - the id of the server that holds the given patient. Is only needed to distinguish two
patients with the same ID
{ "emailContent": text,
"recipients": { "to": list_of_email_addresses_as_strings, "from": list, "cc": list },
"contentType": type,
"subject": text }
where text is a string, and type the type of content as string (e.g. "text/plain")boolean saveIncomingMatches(List<? extends PatientSimilarityView> similarityViews, String patientId, String remoteId)
similarityViews - list of similarity viewspatientId - remote patient ID for whom to save matches
(needed only to know which existing matches to remove/replace)remoteId - id of remote server which sent the incoming request and houses the given patientboolean saveOutgoingMatches(List<? extends PatientSimilarityView> similarityViews, String patientId, String remoteId)
similarityViews - list of similarity viewspatientId - local patient ID for whom to save matches
(needed only to know which existing matches to remove/replace)remoteId - id of remote server contacted to find matches for the given local patientboolean setStatus(Set<Long> matchesIds, String status)
matchesIds to a passed status string.matchesIds - list of ids of matches to set statusstatus - whether matches should be set as saved, rejected or uncategorizedboolean setNotifiedStatus(Set<Long> matchesIds, boolean isNotified)
matchesIds as notified or not notified.matchesIds - list of ids of matches to mark as notified.isNotified - boolean notified status to set for matchesboolean setUserContacted(Set<Long> matchesIds, boolean isUserContacted)
matchesIds as user-contacted or not.matchesIds - list of ids of matches to mark as user-contacted.isUserContacted - boolean user-contacted status to set for matchesList<PatientMatch> saveComment(Set<Long> matchesIds, String comment)
matchesIds to a passed comment string.matchesIds - list of ids of matches to save commentcomment - comment textCopyright © 2011–2019 University of Toronto, Computational Biology Lab. All rights reserved.