Skip to main content

divoc@0.1.3

certifyVaccination(data)

This adaptor exports the following from common:

cursor()
dataPath()
dataValue()
dateFns
each()
field()
fields()
fn()
lastReferenceValue()
merge()
sourceValue()

Functions

certifyVaccination

certifyVaccination(data) ⇒ Operation

Certify a vaccination

ParamTypeDescription
dataObjectVaccinationobject

This operation writes the following keys to state:

State KeyDescription
dataThe response body (as JSON)
responseThe HTTP response from the DIVOC server (excluding the body)
referencesAn array of the previous data object used in the job

Example: Certify a vaccination object

certifyVaccination({
"preEnrollmentCode": "string",
"recipient": {
"name": "string",
"dob": "2025-03-20",
"age": "string",
"gender": "string",
"nationality": "string",
"identity": "string",
"contact": [
"string"
],
"address": {
"addressLine1": "string",
"addressLine2": "string",
"district": "string",
"state": "string",
"pincode": 0
}
},
"vaccination": {
"name": "string",
"batch": "string",
"manufacturer": "string",
"date": "2025-03-20T06:08:22.394Z",
"effectiveStart": "2025-03-20",
"effectiveUntil": "2025-03-20",
"dose": 1,
"totalDoses": 2
},
"vaccinator": {
"name": "string"
},
"facility": {
"name": "string",
"address": {
"addressLine1": "string",
"addressLine2": "string",
"district": "string",
"state": "string",
"pincode": 0
}
},
"meta": {}
});