patient.inactive
When Signals sends patient.inactive, its payload and how to handle it in Node.js, Python and Java.
A patient sends no reading for the days set in alertInactiveDays. alert.inactive is sent beside it.
Payload
Every delivery is the envelope type, timestamp, sequence and data; the delivery's id is the webhook-id header. See Verify webhooks.
{
"type": "patient.inactive",
"timestamp": "2026-10-25T08:00:02.000Z",
"sequence": 1057,
"data": {
"patient": "6f1c2a8e-3b7d-4c55-9a0e-2d4b8f6e1a90",
"lastActive": "2026-10-22T08:00:00.000Z"
}
}lastActive is when Signals last heard from the patient.
Handle the event
Verify the delivery first (Verify webhooks), then act on the verified event as in Handle an event.
export async function handle(webhookId, event) {
if (!(await firstTime(webhookId))) return;
const { data } = event;
switch (event.type) {
case 'patient.inactive':
await flagSilentPatient(data.patient, data.lastActive);
break;
default:
break;
}
}Related
Last updated on