public interface PatientInMatch
The advantage of using this interface over a direct access to the match can be seen in comparing these two code blocks:
PatientInMatch pim = condition ? PatientMatch.getReference() : patientMatch.getMatched();
pim.getPatientId();
pim.getServerId();
pim.getGenes();
compared to
if (condition) {
patientMatch.getReferencePatientId(),
patientMatch.getReferenceServerId(),
patientMatch.getReferenceGenes() (see comment)
} else {
patientMatch.getMatchedPatientId(),
patientMatch.getMatchedServerId(),
patientMatch.getMatchedGenes() (see comment)
}
See DefaultAdminPatientMatchEmail for some actual usage
examples.
Comment: getMatchedGenes()/getReferenceGenes() do not exist - the code serves as an example why it's not a good idea. The access to genes is via PatientInMatch as in the first example.
| Modifier and Type | Method and Description |
|---|---|
org.phenotips.data.permissions.AccessLevel |
getAccess() |
String |
getAgeOfOnset() |
Set<String> |
getCandidateGenes() |
org.phenotips.data.ContactInfo |
getContactInfo() |
org.json.JSONObject |
getDetailsColumnJSON() |
Collection<String> |
getEmails() |
String |
getExternalId() |
String |
getGenesStatus() |
String |
getHref() |
Set<String> |
getMatchedExomeGenes() |
Collection<String> |
getModeOfInheritance() |
org.phenotips.data.Patient |
getPatient() |
String |
getPatientId() |
PhenotypesMap |
getPhenotypes() |
String |
getServerId() |
boolean |
hasExomeData() |
boolean |
isLocal() |
org.json.JSONObject |
toJSON() |
String getPatientId()
String getExternalId()
String getServerId()
Set<String> getMatchedExomeGenes()
PhenotypesMap getPhenotypes()
org.json.JSONObject toJSON()
boolean isLocal()
Collection<String> getEmails()
org.json.JSONObject getDetailsColumnJSON()
Collection<String> getModeOfInheritance()
String getAgeOfOnset()
org.phenotips.data.Patient getPatient()
String getHref()
boolean hasExomeData()
org.phenotips.data.permissions.AccessLevel getAccess()
String getGenesStatus()
org.phenotips.data.ContactInfo getContactInfo()
Copyright © 2011–2019 University of Toronto, Computational Biology Lab. All rights reserved.