Skip to main content

Resend Webhooks

iEHR implements a custom operation, $resend, that can be used to trigger all Subscriptions listening to a a particular resource.

Invoke the $resend operation

const iehr = new IEHRClient();
// auth...
await iehr.post(iehr.fhirUrl(<resourceType>, <id>, '$resend'), {});

Output

If successful, you will receive the following OperationOutcome

{
"resourceType": "OperationOutcome",
"id": "ok",
"issue": [
{
"severity": "information",
"code": "informational",
"details": {
"text": "All OK"
}
}
]
}
  • Refer to Subscriptions to learn more about iEHR's implementation of FHIR Subscriptions