...
The consent form is designed in HTML, since it gives us the flexibility of easy formatting. E.g. use of bullet points, use of text formatting like bold, underline, embed videos/photos, etc.
There are three sections in the consent form:
Formatted text
Header/Footer
Consent statements
Custom fields
...
Consent statement(s) can be added anywhere in the consent form. They can be displayed as a dropdown, radio-button, or checkbox.
For example:
...
Custom Fields
Details such as signature, date of signature, etc. that were defined in the custom form (step 2 in the “Prerequisites”) can be displayed as below in the consent form.
...
Examples of Consent Form
Here’s the HTML for the above consent document: The HTML document has a below example of a consent statement, custom fields, signature, and date.
View file | ||
---|---|---|
|
Other Example
Expand | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In the consent HTML, the code for the ‘Consent Date’ field needs to be updated as below:
The ‘os-date-picker’ sets the value to the current date and the time picker allows the display of the current timestamp. 2. Add consent statement with the default value set and hidden on the overview page
3. Add custom field radio button "I Agree/I do not agree"
4. Add custom field text-box
5. Add signature field
6. Add date as a custom field with default current date and non-editable
The ‘os-date-picker’ sets the value to the current date and the time picker allows the display of the current timestamp. 2. Add consent statement with the default value set and hidden on the overview page
3. Add custom field radio button "I Agree/I do not agree"
7. Add number custom field
84. Add OpenSpecimen PV-dropdown as a custom field biohazard, race text-box
9. Add custom field dropdown value with options
5. Add signature field
10. Add print break in the consent document PDF: In the below example, the 'We may contact you….' line will be printed on the next page.
11. Show/hide field/section based on the other field selection Syntax: Needs to add the 'ng-show' tag to implement the show/hide logic
Example: When a user clicks on the “I agree to participate" option, the below section highlighted in red is enabled. Example HTML for the above example:
12. Mark consent statement non-editable with default selected.
6. Add date as a custom field with default current date and non-editable
7. Add number custom field
8. Add OpenSpecimen PV-dropdown as a custom field site dropdown
9. Add custom field dropdown value with options
10. Add print break in the consent document PDF: In the below example, the 'We may contact you….' line will be printed on the next page.
11. Show/hide field/section based on the other field selection Syntax: Needs to add the 'ng-show' tag to implement the show/hide logic
Example: When a user clicks on the “I agree to participate" option, the below section highlighted in red is enabled. Example HTML for the above example:
12. Mark consent statement non-editable with default selected.
13. Default custom value with non-editable
14. Make field mandatory based on other field value Eg:1 - Make Guardian name custom field mandatory for Male patients.
Eg:2 - Make Guardian name custom field mandatory when site='
Eg:3 - Make Participant Signature(
15. Add File Type Control
13. Default custom value with non-editable
14. Make field mandatory based on other field value Eg:1 - Make Guardian name custom field mandatory for Male patients. Code Block | | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
</div> |
16. Conditional field mandatory (File Type Field)
Eg, The consent form has the participant’s signature, parent’s signature, and paper consent file (File type). Out of three fields, one of them needs to fill.
Code Block |
---|
<div style="width: 45%; float: left;"> <label class="control-label"> <span>Upload Paper Consent</span></label> <div user-input field="ectx.customFields.parentGuardianNamesignedConsentFile" rowstype="1file" ng-required="cpr.participant.gender == 'Male'"> </textarea> </div> |
Eg:2 - Make Guardian name custom field mandatory when site='Stanford Hospital
'
Code Block | ||
---|---|---|
| ||
<div> <textarea class="form-control" ng-model> <div> <ec-file-uploader file="ectx.customFields.parentGuardianNamesignedConsentFile" rowsname="1signedConsentFile" ng-required="cpr.registrationSite(ectx.customFields.signature==null && ectx.customFields.signatureAuthRep == 'Stanford Hospital''"> </textarea> </div> |
Eg:3 - Make Participant Signature(signature
) mandatory if Gurgdian signature(signatureAuthRep
) is not entered
Code Block | ||
---|---|---|
| ||
<div>
<ec-signature name="signature" image="ectx.customFields.signature" ng-required="ectx.customFields.signatureAuthRep==null"></ec-signature>
</div>
|
15. Add File Type Control
Code Block | ||
---|---|---|
| ||
<div style="width: 33%; float: left; padding-left: 16px;">
<label class="control-label">
<span>Signed Form</span>
</label>
<div>
<ec-file-uploader file="ectx.customFields.signedConsentFile"></ec-file-uploader>
</div>
</div>
|
16. Conditional field mandatory (File Type Field)
Eg, The consent form has the participant’s signature, parent’s signature, and paper consent file (File type). Out of three fields, one of them needs to fill.
Code Block |
---|
<div style="width: 45%; float: left;">
<label class="control-label">
<span>Upload Paper Consent</span></label>
<div>
<ec-file-uploader file="ectx.customFields.signedConsentFile" name="signedConsentFile" ng-required="(ectx.customFields.signature==null && ectx.customFields.signatureAuthRep ==null)"></ec-file-uploader>
</div>
<div os-field-error field="econsentForm.signedConsentFile"></div>
</div> |
17. Change the caption for the Next and Previous button
Code Block |
---|
<ec-page-nav-buttons>
<next>Siguiente</next>
<previous>Página Anterior</previous>
<save>Guardar</save>
<cancel>Cancelar</cancel>
</ec-page-nav-buttons> |
18. Configure headers and footer for the consent document print file: To configure this, you need to set the print template in OpenSpecimen settings as below. You can set the logo, stamp on headers, and footer, including page numbers.
Example: PDF
Example HTML code for the above document:
Code Block | ||
---|---|---|
| ||
<div> <ec-page-header> <div class="clearfix" style="border-bottom: 1pxnull)"></ec-file-uploader> </div> </div> <div os-field-error field="econsentForm.signedConsentFile"></div> </div> |
17. Change the caption for the Next and Previous button
Code Block |
---|
<ec-page-nav-buttons>
<next>Siguiente</next>
<previous>Página Anterior</previous>
<save>Guardar</save>
<cancel>Cancelar</cancel>
</ec-page-nav-buttons> |
18. Configure headers and footer for the consent document print file: To configure this, you need to set the print template in OpenSpecimen settings as below. You can set the logo, stamp on headers, and footer, including page numbers.
Example: PDF
Example HTML code for the above document:
Code Block | ||
---|---|---|
| ||
<ec-print-template> <div> <ec-page-header> <div class="clearfix" style="border-bottom: 1px solid #ddd; position:relative;height: 70px; background: #fff; display: inline-block; width: 100%; padding: 8px 8px;"> <div style="float: left;"> <img style="position: absolute; z-index: 1000; height: 60px; width: 450px;" src="https://bb.cuimc.columbia.edu/os-test/logo/RS2133_RS460_Columbia_CUIMC_H_B_RGB_A.png"> </div> </div> </ec-page-header> <ec-page-footer> <table style="border-top: 2px solid #ddd; position:relative;height: 70px; background: "#fff"; display: inline-block; width: 100%; padding: 8px 8px;"> <div <tbody> <tr> <td style="floattext-align: left;"> <img style="position: absolute; z-index: 1000; height: 60px70px; width: 450px300px;" src="https://testbb.cuimc.openspecimen.orgcolumbia.edu/os-test/logo/RS2133cumc_RS460_Columbia_CUIMC_H_B_RGB_Astamp_hiccc.png"> </div> </div> </ec-page-header> <ec-page-footer> </td> <div class="clearfix" style="border-top: 1px solid #ddd; position:relative;height: 70px; display: inline-block; width: 100% <td style="text-align: right; padding: 8px 8px10px;"> <div style="float: left;"> <div <imgid="osPageCounter" style="position: absolute; z-index: 1000; height: 60px; width: 300px;" src="https://test.openspecimen.org/logo/cumc_stamp.png"> </div> <div style="float: right; color: #666;"> <span>- {{currentPage}} of {{totalPages}} - </span> </div> </div>bottom: 12px; right: 5px;"> </div> </td> </tr> </tbody> </table> </ec-page-footer> </div> </ec-print-template> |
Upload Consent Document in OpenSpecimen
...
Expand | ||
---|---|---|
| ||
|
Adding the Consent Document Form to a CP
Once the HTML is ready, you can upload it for a CP using the below steps.
...
If a version of a consent form is not needed, it can be archived. Once archived, the consent document is not available anymore any more for consent response collection. However, if consent is already collected for that version, then it is available for viewing, editing, and reporting.
From v9.0, OpenSpecimen allows archiving the document at the system level and CP level. If the document is archived at the system level, the user won't be able to add that in new collection protocols, but if that document is already used in other CP will work without affecting anything.
Users also allow to Archive archiving the document in the collection protocol, and users won't be able to collect any responses for new patients.
System-Level Archive Option:
Navigates to Home → Consent → View Documents
Click on the Archive option
CP Level Archive Option:
Go to the Collection Protocol Overview Page → Consents tab
...