Skip to content

Commit

Permalink
Merge pull request #1153 from ajay-beehyv/patch-4
Browse files Browse the repository at this point in the history
implemented philippines production fixes in certificate api 2.1.0-gen…
  • Loading branch information
egov-joy authored Jul 4, 2022
2 parents a014596 + 5c86b4b commit a923e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/certificate_api/src/services/certificate_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const prepareDataForVaccineCertificateTemplate = (certificateRaw, dataURL, doseT
const certificateData = {
name: credentialSubject.name,
age: credentialSubject.age,
gender: credentialSubject.gender,
gender: credentialSubject.gender ? credentialSubject.gender : credentialSubject.sex,
identity: formatId(credentialSubject.id),
nationality: credentialSubject.nationality,
beneficiaryId: credentialSubject.refId,
Expand All @@ -111,7 +111,7 @@ const prepareDataForVaccineCertificateTemplate = (certificateRaw, dataURL, doseT
vaccineType: getVaxType(evidence[0].icd11Code, evidence[0].prophylaxis),
vaccineManufacturer: evidence[0].manufacturer,
vaccineValidDays: `after ${getVaccineValidDays(evidence[0].effectiveStart, evidence[0].effectiveUntil)} days`,
vaccinatedBy: evidence[0].verifier.name,
vaccinatedBy: evidence[0].verifier ? evidence[0].verifier.name : "",
vaccinatedAt: evidence[0].facility.name ? evidence[0].facility.address.district ? formatFacilityAddress(evidence[0]) : "" : "" ,
qrCode: dataURL,
dose: evidence[0].dose,
Expand Down

0 comments on commit a923e08

Please sign in to comment.