Subscription

Subscription-DiagnosticReportNotification-Example

Example of a Subscription resource for setting up alerting when a DiagnosticReport is available for a particular ServiceRequest. The exact subscription/notification mechanism used by the central broker is pending testing in the GMS Alpha.

Subscription
{
    "resourceType": "Subscription",
    "id": "Subscription-DiagnosticReportNotification-Example",
    "status": "active",
    "contact":  [
        {
            "system": "phone",
            "value": "01614463000"
        }
    ],
    "reason": "Notification of DiagnosticReport for Test LabOrder123456",
    "criteria": "DiagnosticReport?based-on=ServiceRequest/7f70bb0c-5792-46d4-bbfd-c48cbcd3895b",
    "channel": {
        "type": "rest-hook",
        "endpoint": "https://www.christie.nhs.uk/ehr/fhir",
        "payload": "application/fhir+json"
    }
}
<Subscription xmlns="http://hl7.org/fhir">
    <id value="Subscription-DiagnosticReportNotification-Example" />
    <status value="active" />
    <contact>
        <system value="phone" />
        <value value="01614463000" />
    </contact>
    <reason value="Notification of DiagnosticReport for Test LabOrder123456" />
    <criteria value="DiagnosticReport?based-on=ServiceRequest/7f70bb0c-5792-46d4-bbfd-c48cbcd3895b" />
    <channel>
        <type value="rest-hook" />
        <endpoint value="https://www.christie.nhs.uk/ehr/fhir" />
        <payload value="application/fhir+json" />
    </channel>
</Subscription>


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>


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>