public interface PatientConsentResource
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
assignConsents(String patientId,
String json)
For setting a set of consents at the same time.
|
javax.ws.rs.core.Response |
getConsents(String patientId)
Retrieves a list of all consents for a given patient.
|
javax.ws.rs.core.Response |
grantConsent(String patientId,
String id)
For granting a single consent in a patient record.
|
javax.ws.rs.core.Response |
revokeConsent(String patientId,
String id)
For revoking a single consent in a patient record.
|
javax.ws.rs.core.Response getConsents(String patientId)
patientId
- of a record whose consents to retrievejavax.ws.rs.core.Response grantConsent(String patientId, String id)
patientId
- of the record which is to be affectedid
- of the consent to grantjavax.ws.rs.core.Response revokeConsent(String patientId, String id)
patientId
- of the record which is to be affectedid
- of the consent to revokejavax.ws.rs.core.Response assignConsents(String patientId, String json)
patientId
- of the record which is to be affectedjson
- a string representing a JSOn array of consent IDsCopyright © 2011–2016 University of Toronto, Computational Biology Lab. All rights reserved.