Subscription-TaskNotification-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-TaskNotification-Example",
    "status": "active",
    "contact":  [
        {
            "system": "email",
            "value": "mft.genomics@nhs.net"
        }
    ],
    "reason": "Notification of new tasks for Manchester GLH",
    "criteria": "Task?owner=Organization/UKCore-Organization-RBV-Example",
    "channel": {
        "type": "rest-hook",
        "endpoint": "https://mft.nhs.uk/nwglh/fhir",
        "payload": "application/fhir+json"
    }
}
<Subscription xmlns="http://hl7.org/fhir">
    <id value="Subscription-TaskNotification-Example" />
    <status value="active" />
    <contact>
        <system value="email" />
        <value value="mft.genomics@nhs.net" />
    </contact>
    <reason value="Notification of new tasks for Manchester GLH" />
    <criteria value="Task?owner=Organization/UKCore-Organization-RBV-Example" />
    <channel>
        <type value="rest-hook" />
        <endpoint value="https://mft.nhs.uk/nwglh/fhir" />
        <payload value="application/fhir+json" />
    </channel>
</Subscription>