Patient updated

The patient.updated webhook is triggered when a patient is updated. Specifically triggered when any of the following patient attributes are updated (any patient attribute except metadata or id):

  • first_name
  • last_name
  • email
  • date_of_birth
  • gender
  • discount
  • total_discount
  • mobile_number
  • text_message_notification

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.updated",
     "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,
         }
      }
   }
}