Subscription-MinimalTaskNotification-Example

Example of a Subscription resource for setting up alerting when a Task is assigned to an organization. NOTE: In future, owners will be referenced by identifier rather than using resource references (see Genomics-Task for details). The exact subscription/notification mechanism used by the central broker is pending testing in the GMS Alpha.

Subscription
{
    "resourceType": "Subscription",
    "id": "Subscription-MinimalTaskNotification-Example",
    "status": "active",
    "reason": "Notification of new tasks for Manchester GLH",
    "criteria": "Task?owner:identifier=https://fhir.nhs.uk/Id/ods-organization-code|699X0",
    "channel": {
        "type": "rest-hook",
        "endpoint": "https://mft.nhs.uk/nwglh/fhir",
        "payload": "application/fhir+json"
    }
}
<Subscription xmlns="http://hl7.org/fhir">
    <id value="Subscription-MinimalTaskNotification-Example" />
    <status value="active" />
    <reason value="Notification of new tasks for Manchester GLH" />
    <criteria value="Task?owner:identifier=https://fhir.nhs.uk/Id/ods-organization-code|699X0" />
    <channel>
        <type value="rest-hook" />
        <endpoint value="https://mft.nhs.uk/nwglh/fhir" />
        <payload value="application/fhir+json" />
    </channel>
</Subscription>