divoc@0.1.0
Functions
certifyVaccination
certifyVaccination(data) ⇒ Operation
Certify a vaccination
Param | Type | Description |
---|---|---|
data | Object | Vaccinationobject |
This operation writes the following keys to state:
State Key | Description |
---|---|
data | The response body (as JSON) |
response | The HTTP response from the DIVOC server (excluding the body) |
references | An 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": {}
});
Interfaces
DivocHttpState
State object
Properties
Name | Description |
---|---|
data | The response body (as JSON) |
response | The HTTP response from the DIVOC server (excluding the body) |
references | An array of the previous data object used in the job |