RPConsentDocument
Represents the content of an informed consent document.
Research Package uses RPConsentDocument to provide content for RPVisualConsentStep where the content if presented to the participant and for RPConsentReviewStep where the user can review and sign the document. The building blocks of a consent document are sections. They hold the content which is presented and later agreed by the participant. By adding signatures to the consent document the parameters of the signature(s) to collect can be specified.
- Inheritance
-
- Object
- Serializable
- RPConsentDocument
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
RPConsentDocument.fromJson
RPConsentDocument
- required String title,
- required List<
RPConsentSection> sections,
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
sections
The sections which hold the content of the consent document
All sections appear in the animated process of RPVisualConsentStep. Also their content is presented during RPConsentReviewStep.
signatures
The list of signatures that are required in the document
title
The title of the consent document
This title is shown on the app bar during RPVisualConsentStep
Methods
addSignature
- RPConsentSignature signature
Adds a signature to the list of signatures
getConsentSignatureAtIndex
- int index
Returns an RPConsentSignature from the signatures array at the given index
toJson
Return a JSON encoding of this object.