/** * Checks if a specific consent is given for the patient record. If consentId is not configured in the system * returns {@code false} regardless of patient consent status. * * @param patientId record in which to test consent * @param consentId of consent which is to be checked * @return {@code true} if the consent was granted for the patient, otherwise {@code false} */ public boolean hasConsent(String patientId, String consentId) { return this.consentManager.hasConsent(patientId, consentId); }
/** * Checks if a specific consent is given for the patient record. If consentId is not configured in the system * returns {@code false} regardless of patient consent status. * * @param patientId record in which to test consent * @param consentId of consent which is to be checked * @return {@code true} if the consent was granted for the patient, otherwise {@code false} */ public boolean hasConsent(String patientId, String consentId) { return this.consentManager.hasConsent(patientId, consentId); }