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 |
---|---|---|
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.
Call “GET VaccineCertificate API,” which will return the PDF certificate template. Verify if the new field ‘nationality’ is getting reflected.
All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.
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
Any template-related changes can be done by updating the HTML template using ETCD CLI. Before making any change, the PDF template will look like:
Go to the specific path where etcd is configured.
Open the file to add the new field that will get displayed in the template (vim vaccineCertificateTemplate.html).
To reflect the change, run the updateConfigs shell script using the command: ./updateConfigs.sh. It shows "OK OK OK...." This means that etcd has been updated with the new template successfully.
Generate the PDF again using GET API.
All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.