@Unstable
public interface Consent
| Modifier and Type | Method and Description |
|---|---|
boolean |
affectsAllFields()
A convenience method to determine that all or no fields are affected.
|
boolean |
affectsSomeFields()
A convenience method to determine that at least one field is affected (e.g.
|
Consent |
copy(ConsentStatus status)
Returns a copy of this consent with the given status set instead of the current status.
|
List<String> |
getDataFields()
The list of (UIX) fields only available if consent is granted.
|
String |
getDescription()
An optional (potentially long) description which is supposed to be displayed under a consent, possibly with links
to external documents such as consent form(s).
|
List<String> |
getFields()
The list of (patient form) fields only available if consent is granted.
|
String |
getId()
Internally, consents are referred by their identifiers.
|
String |
getLabel()
The users never sees the ids of the consents, they only see labels (aka titles).
|
ConsentStatus |
getStatus()
Could be notLoaded/Yes/No.
|
boolean |
isGranted()
A convenience method to check if Consent status is Yes.
|
boolean |
isRequired()
Some consents are required to for any interaction with a patient record data (viewing, modifying, etc).
|
void |
setStatus(ConsentStatus status)
The status should be dynamically changeable.
|
org.json.JSONObject |
toJSON()
Consents should be convertible into a JSON format.
|
String getId()
String getLabel()
String getDescription()
ConsentStatus getStatus()
ConsentStatus which should generally be Yes or No, but could be notLoadedboolean isGranted()
true iff getStatus() == Yes, false otherwisevoid setStatus(ConsentStatus status)
status - the new statusboolean isRequired()
true if required, false otherwiseList<String> getDataFields()
null is returned.List<String> getFields()
null is returned.boolean affectsAllFields()
true if all fields are affected, false otherwiseboolean affectsSomeFields()
true if at least one fields is affected.org.json.JSONObject toJSON()
Consent copy(ConsentStatus status)
status - the new statusCopyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.