Skip to main content

Pathway metadata updated webhook event

Summary

A new webhook event type is available when clinical pathway metadata values change.

New event type

  • pathway.metadata.updated

Each delivered payload includes pathwayId, patientId, episodeId, and changedKeys in identifiers. changedKeys is a JSON-encoded array of the metadata keys whose values changed.

{
"subscriptionId": "692597070fe21cfa5e6a010f",
"eventId": "692597070fe21cfa5e6a010a",
"eventType": "pathway.metadata.updated",
"identifiers": {
"pathwayId": "507f1f77bcf86cd799439011",
"patientId": "507f1f77bcf86cd799439012",
"episodeId": "507f1f77bcf86cd799439013",
"changedKeys": "[\"Job, role\",\"Payroll number\"]"
}
}

pathway.updated continues to fire on metadata changes. The new event is emitted alongside it and does not replace it.

See the Pathway events reference page for payload identifiers.

Migration

Subscribe to pathway.metadata.updated when creating or updating a webhook subscription. Existing subscriptions are unchanged unless you add this event type.

mutation CreateWebhook {
createWebhook(
input: {
label: "Pathway metadata integration"
url: "https://your-app.com/webhooks/semble"
eventTypes: [pathway.metadata.updated]
}
) {
data {
id
eventTypes
}
error
}
}