notification wrapped in FHIR Messaging
{
"resourceType" : "Bundle",
"id" : "0f322dbe-4f8d-4cbd-9ecb-bc8dc6f65f6a",
"type" : "message",
"timestamp" : "2020-04-17T10:24:13.1882432-05:00",
"entry" : [{
"fullUrl" : "urn:uuid:801728e4-75e9-42e6-b6d0-0cc3e835a70d",
"resource" : {
"resourceType" : "MessageHeader",
"id" : "801728e4-75e9-42e6-b6d0-0cc3e835a70d",
"text" : {
"status" : "generated",
"div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader 801728e4-75e9-42e6-b6d0-0cc3e835a70d</b></p><a name=\"801728e4-75e9-42e6-b6d0-0cc3e835a70d\"> </a><a name=\"hc801728e4-75e9-42e6-b6d0-0cc3e835a70d\"> </a><a name=\"801728e4-75e9-42e6-b6d0-0cc3e835a70d-en-AU\"> </a><p><b>event</b>: message-events subscription-notification: subscription-notification</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Endpoint[x]</b></td></tr><tr><td style=\"display: none\">*</td><td><a href=\"broken-link.html\">http://example.org/FHIR/R5</a></td></tr></table><p><b>focus</b>: <a href=\"broken-link.html\">??</a></p></div>"
},
"eventCoding" : {
"system" : "http://example.org/fhir/message-events",
"code" : "subscription-notification"
},
"source" : {
"endpointUrl" : "http://example.org/FHIR/R5"
},
"focus" : [{
"reference" : "urn:uuid:c13b0b59-525c-4e41-b874-b5b87538a5b7"
}]
}
},
{
"fullUrl" : "urn:uuid:c13b0b59-525c-4e41-b874-b5b87538a5b7",
"resource" : {
"resourceType" : "Bundle",
"id" : "c13b0b59-525c-4e41-b874-b5b87538a5b7",
"type" : "subscription-notification",
"timestamp" : "2020-04-17T10:24:13.1882432-05:00",
"entry" : [{
"fullUrl" : "urn:uuid:bef7e5fb-b5ad-4b59-a618-1bace2bbf5c0",
"resource" : {
"resourceType" : "SubscriptionStatus",
"id" : "bef7e5fb-b5ad-4b59-a618-1bace2bbf5c0",
"status" : "active",
"type" : "event-notification",
"eventsSinceSubscriptionStart" : "2",
"notificationEvent" : [{
"eventNumber" : "2",
"focus" : {
"reference" : "http://example.org/FHIR/R5/Encounter/2"
}
}],
"subscription" : {
"reference" : "http://example.org/FHIR/R5/Subscription/123"
},
"topic" : "http://example.org/FHIR/R5/SubscriptionTopic/admission"
}
},
{
"fullUrl" : "https://example.org/FHIR/R5/Encounter/2",
"resource" : {
"resourceType" : "Encounter",
"id" : "2",
"meta" : {
"versionId" : "1",
"lastUpdated" : "2019-08-07T10:49:22Z"
},
"status" : "in-progress",
"class" : [{
"coding" : [{
"system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code" : "VR",
"display" : "virtual"
}]
}],
"subject" : {
"reference" : "Patient/ABC"
}
},
"request" : {
"method" : "PUT",
"url" : "Encounter/2"
},
"response" : {
"status" : "201"
}
}]
}
}]
}
Usage note: every effort has been made to ensure that the
examples are correct and useful, but they are not a normative part
of the specification.