PDF Template Change for Vaccine Certificates
Any template-related changes can be done by updating the HTML template in the etcd manager. Supported fields include the following:
Beneficiary Details | Vaccination Details | Previous Dose Details |
---|---|---|
name | vaccine | vaxEvents[].dateOfVax |
age | vaccinationDate | vaxEvents[].doseType |
gender | vaccineBatch | vaxEvents[].vaxName |
identity (masked value) | vaccineICD11Code | vaxEvents[].vaxType |
nationality | vaccineProphylaxis | vaxEvents[].vaxBatch |
beneficiaryId | vaccineType | vaxEvents[].countryOfVax |
recipientAddress | vaccineManufacturer | |
vaccineValidDays | ||
vaccinatedBy | ||
vaccinatedAt | ||
certificateId | ||
dose | ||
totalDoses |
Example: Adding a field such as ‘nationality’ to the PDF template.
Steps to add ‘nationality’ to the PDF template:
Go to the Manage keys in the etcd-manager.
Go to the “vaccineCertificateTemplate” key and click on the Edit key to update the template. In this case, the ‘nationality’ field is being added. The value expected for the “vaccineCertificateTemplate” configuration is html and can be customised as per your needs.
The same will be reflected in the PDF of the vaccination certificate. Click on Save. A popup will appear as “operation successful.” Click on Close.
![](https://divoc.digit.org/~gitbook/image?url=https%3A%2F%2F3849653046-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Frmjx4OUiHEx18PH4nMzn%252Fuploads%252FbgUO3RZ80w3MdSX0MKQv%252FScreenshot%25202022-06-17%2520at%25205.54.33%2520PM.png%3Falt%3Dmedia%26token%3D7061fafc-39db-4b5a-afc1-41061c04601e&width=768&dpr=4&quality=100&sign=c94ec041&sv=1)
Call “GET VaccineCertificate API,” which will return the PDF certificate template. Verify if the new field ‘nationality’ is getting reflected.
![](https://divoc.digit.org/~gitbook/image?url=https%3A%2F%2F3849653046-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Frmjx4OUiHEx18PH4nMzn%252Fuploads%252FZPa5G643gd0c46G00gmq%252FScreenshot%25202022-06-17%2520at%25205.57.09%2520PM.png%3Falt%3Dmedia%26token%3D19cda783-710a-4c0d-b868-c003f80e128f&width=768&dpr=4&quality=100&sign=3bd8cf0c&sv=1)
All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.
Last updated