Search…
Step 1: Create a certification generation request

Example

Include the beneficiary’s parent name in the certificate. The parent’s name is “Sam Mandosa”. This is a mandatory field.

Steps

Step 1: Create a certification generation request
b. Add a parameter in the function “convertToCertifyUploadFields” called RecipientParentName.
1
func convertToCertifyUploadFields(data *Scanner) *db.CertifyUploadFields {
2
return &db.CertifyUploadFields{
3
PreEnrollmentCode: data.Text("preEnrollmentCode"),
4
RecipientName: data.Text("recipientName"),
5
RecipientParentName: data.Text("recipientParentName"),
6
RecipientMobileNumber: data.Text("recipientMobileNumber"),
7
RecipientDOB: data.Text("recipientDOB"),
8
RecipientGender: data.Text("recipientGender"),
9
RecipientNationality: data.Text("recipientNationality"),
10
RecipientIdentity: data.Text("recipientIdentity"),
11
RecipientAge: data.Text("recipientAge"),
12
RecipientAddressLine1: data.Text("recipientAddressLine1"),
13
RecipientAddressLine2: data.Text("recipientAddressLine2"),
14
RecipientDistrict: data.Text("recipientDistrict"),
15
RecipientState: data.Text("recipientState"),
16
RecipientPincode: data.Text("recipientPincode"),
17
VaccinationBatch: data.Text("vaccinationBatch"),
18
VaccinationDate: data.Text("vaccinationDate"),
19
VaccinationDose: data.Text("vaccinationDose"),
20
VaccinationTotalDoses: data.Text("vaccinationTotalDoses"),
21
VaccinationEffectiveStart:data.Text("vaccinationEffectiveStart"),
22
VaccinationEffectiveEnd:data.Text("vaccinationEffectiveEnd"),
23
VaccinationManufacturer: data.Text("vaccinationManufacturer"),
24
VaccinationName: data.Text("vaccinationName"),
25
VaccinatorName: data.Text("vaccinatorName"),
26
FacilityName: data.Text("facilityName"),
27
FacilityAddressLine1: data.Text("facilityAddressLine1"),
28
FacilityAddressLine2: data.Text("facilityAddressLine2"),
29
FacilityDistrict: data.Text("facilityDistrict"),
30
FacilityState: data.Text("facilityState"),
31
FacilityPincode: data.Text("facilityPincode"),
32
}
33
}
Copied!
c. Add RecipientParentName in the function “createCertificate” to make the field mandatory.
1
recipient := &models.CertificationRequestRecipient{
2
Name: &certifyData.RecipientName,
3
Age: recipientAge,
4
Address: &models.CertificationRequestRecipientAddress{
5
AddressLine1: &certifyData.RecipientAddressLine1,
6
AddressLine2: certifyData.RecipientAddressLine2,
7
District: &certifyData.RecipientDistrict,
8
Pincode: &certifyData.RecipientPincode,
9
State: &certifyData.RecipientState,
10
},
11
Contact: contact,
12
Dob: dateAdr(strfmt.Date(dob)),
13
Gender: &certifyData.RecipientGender,
14
Nationality: &certifyData.RecipientNationality,
15
ParentName: &certifyData.RecipientParentName,
16
Identity: &certifyData.RecipientIdentity,
17
}
Copied!
d. If the data is uploaded via CSV, then add this column to the CSV template for this field. Open “application-default.yml” and update the certificate section in this file.
Note:
  • As a standard practice, we recommend you to update the informative files mentioned in Step 1 of this section.
  • Make sure the name matches exactly with the name convertToCertifyUploadFields function that you edited in step 1.
All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.
Export as PDF
Copy link
Edit on GitHub
Contents
Example
Steps