Patient created

The patient.created webhook is triggered when a new patient is created.

Details

Scopes needed:patients:read
Event payload:a subset of the patients object

Event payload

"event_payload": {
   "event": {
     "id": "x5xxxxx8-92x7-4xxx-9x0x-345x404x94x1",
     "type": "patient.created",
     "created_at": "2018-10-16T04:00:00.000Z",
     "clinic_id": "xx7x357x-9x36-xxxx-x553-7x3xx398xxx",
     "data": {
         "patient": {
            "id": "x1x0196x-5615-4874-xxe4-48x459180x09",
            "first_name": "Example",
            "last_name": "Patient",
            "email": "patient@example.com",
            "date_of_birth": null,
            "gender": "female",
            "discount": 0,
            "total_discount": 0,
            "mobile_number": null,
            "text_message_notification": true,
         }
     }
   }
}