divoc@0.1.12
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
| 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": {}
    });