/** * Returns the list of all consents configured in the system, with "granted"/"not granted" status * for the given patient for each consent. * * @param patientId record on which consents are granted (or not granted) * @return All the consents configured in the system with granted (for the patient) status set for each. * Returns null if patientId is not a valid id. */ public JSONArray getAllConsentsForPatient(String patientId) { return this.consentManager.toJSON(this.consentManager.getAllConsentsForPatient(patientId)); } }
response.put(ShareProtocol.SERVER_JSON_GETINFO_KEY_NAME_UPDATESENABLED, true); response.put(ShareProtocol.SERVER_JSON_GETINFO_KEY_NAME_CONSENTS, this.consentManager.toJSON(this.consentManager.getSystemConsents()));