@Unstable @Component @Named(value="patientconsents") @Singleton public class ConsentManagerScriptService extends Object implements org.xwiki.script.service.ScriptService
| Constructor and Description |
|---|
ConsentManagerScriptService() |
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONArray |
getAllConsentsForPatient(String patientId)
Returns the list of all consents configured in the system, with "granted"/"not granted" status for the given
patient for each consent.
|
boolean |
hasConsent(String patientId,
String consentId)
Checks if a specific consent is given for the patient record.
|
public boolean hasConsent(String patientId, String consentId)
false regardless of patient consent status.patientId - record in which to test consentconsentId - of consent which is to be checkedtrue if the consent was granted for the patient, otherwise falsepublic org.json.JSONArray getAllConsentsForPatient(String patientId)
patientId - record on which consents are granted (or not granted)Copyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.