| Package | Description |
|---|---|
| org.phenotips.consents |
| Modifier and Type | Method and Description |
|---|---|
Consent |
Consent.copy(ConsentStatus status)
Returns a copy of this consent with the given status set instead of the current status.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Consent> |
ConsentManager.fromJSON(org.json.JSONArray consentsJSON)
A convenience function that allows for conversion of JSON representing several consents.
|
Set<Consent> |
ConsentManager.getAllConsentsForPatient(Patient patient)
Returns the list of all consents configured in the system, with "granted"/"not granted" status
for the given patient for each consent.
|
Set<Consent> |
ConsentManager.getAllConsentsForPatient(String patientId)
Same as
ConsentManager.getAllConsentsForPatient(Patient), for the exception that the patient record
lookup happens internally. |
Set<Consent> |
ConsentManager.getMissingConsentsForPatient(Patient patient)
Returns the list of consents configured in the system but NOT granted for the patient.
|
Set<Consent> |
ConsentManager.getMissingConsentsForPatient(String patientId)
Same as
ConsentManager.getMissingConsentsForPatient(Patient), for the exception that the patient record
lookup happens internally. |
Set<Consent> |
ConsentManager.getSystemConsents()
The underlying system should have a configuration of different consents available.
|
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONArray |
ConsentManager.toJSON(Collection<Consent> consents)
A convenience function that allows for conversion of a list of consents into a
JSONArray containing JSON representations of all consents. |
Copyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.