@Role
public interface MatchingNotificationManager
| Modifier and Type | Method and Description |
|---|---|
PatientMatch |
addNote(Long matchId,
String note)
Saves note for a match that has the given
matchId internal ID. |
PatientMatch |
getMatch(Long matchId)
Returns a match that has the given
matchId internal ID. |
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 recipient being the owner of the given patient on the given server.
|
PatientMatch |
saveComment(Long matchId,
String comment)
Saves comment for a match that has the given
matchId internal ID. |
List<PatientMatch> |
saveIncomingMatches(List<? extends PatientSimilarityView> similarityViews,
String patientId,
String remoteId)
Saves a list of matches that were found by a remote incoming request.
|
List<PatientMatch> |
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.
|
PatientMatch |
setStatus(Long matchId,
String status)
Sets status for a match that has the given
matchId internal ID. |
PatientMatch |
setUserContacted(Long matchId,
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) email 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")List<PatientMatch> 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 patientList<PatientMatch> 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 patientPatientMatch setStatus(Long matchId, String status) throws AccessControlException
matchId internal ID.matchId - the internal ID of the match of intereststatus - whether matches should be set as saved, rejected or uncategorizedAccessControlException - if user does not have at least view access to each patient in the matchPatientMatch setUserContacted(Long matchId, boolean isUserContacted) throws AccessControlException
matchesIds as user-contacted or not.matchId - the internal ID of the match of interestisUserContacted - boolean user-contacted status to set for matchesAccessControlException - if user does not have at least view access to each patient in the matchPatientMatch saveComment(Long matchId, String comment) throws AccessControlException
matchId internal ID.matchId - the internal ID of the match of interestcomment - comment textAccessControlException - if user does not have at least view access to each patient in the matchPatientMatch addNote(Long matchId, String note) throws AccessControlException
matchId internal ID.matchId - the internal ID of the match of interestnote - note textAccessControlException - if user does not have at least view access to each patient in the matchPatientMatch getMatch(Long matchId)
matchId internal ID.matchId - the internal ID of the match of interestPatientMatch match objectCopyright © 2011–2019 University of Toronto, Computational Biology Lab. All rights reserved.