@Role
public interface MatchStorageManager
| Modifier and Type | Method and Description |
|---|---|
boolean |
addNote(PatientMatch match,
String note)
Saves a
note to a match. |
boolean |
deleteMatchesForLocalPatient(String patientId)
Deletes all matches (including those that users have been notified about, and MME matches)
for the given local patient (e.g.
|
Long |
getNumberOfRemoteMatches()
Calculates the number of matches that were found by all remote outgoing/incoming requests where at least one
patient in the match is remote.
|
List<PatientMatch> |
loadMatches(String patientId,
double score,
double phenScore,
double genScore,
boolean onlyCurrentUserAccessible,
Timestamp fromDate,
Timestamp toDate)
Loads matches filtered by the parameters.
|
List<PatientMatch> |
loadMatchesByIds(Set<Long> matchesIds)
Load all matches with ids in
matchesIds. |
boolean |
saveComment(PatientMatch match,
String comment)
Saves
comment to a match. |
List<PatientMatch> |
saveLocalMatches(Collection<? extends PatientSimilarityView> similarityViews,
String patientId)
Saves a list of local matches.
|
List<PatientMatch> |
saveRemoteMatches(Collection<? extends PatientSimilarityView> similarityViews,
String patientId,
String serverId,
boolean isIncoming)
Saves a list of matches that were found by a remote outgoing/incoming request.
|
boolean |
setStatus(PatientMatch match,
String status)
Sets
status to a match. |
boolean |
setUserContacted(PatientMatch match,
boolean isUserContacted)
Marks a
match as user-contacted or not. |
boolean |
updateNotes(PatientMatch match,
String note)
Updates match notes string property with new note record.
|
Collection<PatientMatch> |
updateNotificationHistory(PatientMatch match,
org.json.JSONObject notificationRecord)
Updates a notification history JSON log string with new notification record.
|
List<PatientMatch> loadMatches(String patientId, double score, double phenScore, double genScore, boolean onlyCurrentUserAccessible, Timestamp fromDate, Timestamp toDate)
patientId - the patient ID
if null, then all matches will be returnedscore - threshold for matchesphenScore - only matches with phenotypical score higher or equal to this value are returnedgenScore - only matches with genotypical score higher or equal to this value are returnedonlyCurrentUserAccessible - when true only matches that current user has access to are returnedfromDate - if passed a date, then only matches found on or after this date will be returned;
if null, then no lower limit on the match date is consideredtoDate - if passed a date, then only matches found on or before this date will be returned;
if null, then no upper limit on the match date is consideredList<PatientMatch> loadMatchesByIds(Set<Long> matchesIds)
matchesIds.matchesIds - list of ids of matches to loadboolean setUserContacted(PatientMatch match, boolean isUserContacted)
match as user-contacted or not.match - match to mark as user-contacted.isUserContacted - boolean user-contacted status to set for a matchboolean setStatus(PatientMatch match, String status)
status to a match.match - match to mark as notified.status - whether a match should be marked as saved, rejected or uncategorizedboolean saveComment(PatientMatch match, String comment)
comment to a match.match - match to save comment.comment - comment textboolean addNote(PatientMatch match, String note)
note to a match.match - match to save note to.note - note textboolean deleteMatchesForLocalPatient(String patientId)
patientId - local patient ID for whom to delete matches.List<PatientMatch> saveLocalMatches(Collection<? extends PatientSimilarityView> similarityViews, String patientId)
similarityViews - list of matches as "similarity views" between two local patientspatientId - local patient ID for whom to save matchesList<PatientMatch> saveRemoteMatches(Collection<? extends PatientSimilarityView> similarityViews, String patientId, String serverId, boolean isIncoming)
similarityViews - list of similarity views between a local patient and a remote patientpatientId - remote patient ID for whom to save matchesserverId - id of remote serverisIncoming - whether we are saving results of incoming (then true) or outgoing requestLong getNumberOfRemoteMatches()
Collection<PatientMatch> updateNotificationHistory(PatientMatch match, org.json.JSONObject notificationRecord)
match - subject matchnotificationRecord - the new notification record JSONboolean updateNotes(PatientMatch match, String note)
match - subject matchnote - the new note record JSON stringCopyright © 2011–2019 University of Toronto, Computational Biology Lab. All rights reserved.