From v7.1, it is possible to configure the consent PDF, which users can download after filling the consent/survey form. Users can set up the headers, footers and also able to add the table, which contains the patient information like name, collection protocol details, etc.
User needs to be well-versed with HTML to configure PDF settings. The HTML files can be created by hand or using online editors like this.
Configure Print PDF (Headers/Footer)
OpenSpecimen allows importing the HTML format document to which control the consent printing PDF. Users can configure that in the individual consent form and can configure it in a setting(system level) that is applicable for all the consent forms.
How settings print template vs individual print template works:
When the print settings are missing in the consent document then the system-level settings are used.
System-level Print Setting:
Steps:
Go to the 'Home' page.
Click on the ‘Settings’ tab.
Search for 'Consent Document' as below
Upload the HTML file you created to configure the consent PDF.
Below are the details to create the HTML document to set up the printing consent PDF.
Designing the print document(HTML) to configure the consent PDF
The System-level and Consent document level configuration is similar. It just when adding in system setting you need to uplaod the html in setting tab where as at consent document level you need to speified the print setting in consent document it self.
The consent form PDF is designed in HTML since it gives us the flexibility of easy formatting.
We can configure the below things in PDF.
Header
Add a table with the patient and other information.
Footer
Example: Refer to the below HTML document and PDF (System-Level HTML and print example)
Consent document level print document and HTML example:
Configure headers
Below is the code block to set up the header in the consent PDF.
Example1: Configure the university logo on the header
Users can add the patient details like name, collection protocol details, PPID and registration date, consent document version, etc. on the print consent document using the below code block.
Users can configure the footer similar to heders with the university logo, page number, etc. Refer to the below code block to set the footer.
In the above example, we configured the image in '<img' tag and page number in '<span tag>{{currentPage}} of {{totalPages}}'
Screenshot:
Add print-page break in consent document PDF.
When the user downloads the consent form after filling it, they might notice that they need some information on a new page in the print document, or perhaps they want to move the content from the second half-page to the next page, etc.
Example: In the below example, the last line of the first page splits between page 1 and page 2. In that case, we need to add the print-page-break so that line should move to the next page.
Steps to add the print-page-break in the consent documents:
Go to the Home -->'Collection Protocol' overview page.
Click on the 'Cosents' tab.
Download the consent document which you want to configure for a print page break.
Open the downloaded consent document HTML in the editor.
Search the text where you want to add the page break HTML tag. In the above PDF screenshot, I want to add the page break after '3. We may contact you …..' text, so from that line, all the text will move to the next page.
Once you search the line, add the '<ec-print-page-break></ec-print-page-break>' tag before that line. See the below example.
Save the updated HTML document.
Go to the 'Collection Protocol Overview → Consents tab.'
Update the consent document
Go to the participant overview page → Consents → (Refresh the browser) → Print the filled consent form. Now you will be able to see the changes in the print PDF file.