ConsentDocument
A signed consent document read from the legacy CAWS consent endpoint.
Returned by the deprecated CarpService.createConsentDocument and CarpService.getConsentDocument. New code stores informed consent as participant data via ParticipationReference.setInformedConsent.
The document can be extracted with the document property or by using subscript syntax to access a specific field.
Properties
createdAt
The timestamp of creation of this document
createdBy
The id of the user who created this document
deploymentId
The id of the study deployment of this document
document
The actual consent document
id
The ID of the snapshot's document
snapshot
The full data snapshot
updatedAt
The timestamp of latest update of this document
Methods
toString
A string representation of this object.
Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.
Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.
Operators
operator []
- String key
Reads individual data values from the snapshot