Advertisement
Guest User

Example FHIR subscription bundle with AuditEvent payload

a guest
Aug 9th, 2021
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.77 KB | None | 0 0
  1. {
  2.   "resourceType": "Bundle",
  3.   "id": "notification-id-only",
  4.   "meta": {
  5.     "profile": [
  6.       "http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-subscription-notification"
  7.     ]
  8.   },
  9.   "type": "history",
  10.   "timestamp": "2020-05-29T11:44:13.1882432-05:00",
  11.   "entry": [
  12.     {
  13.       "fullUrl": "urn:uuid:b21e4fae-ce73-45cb-8e37-1e203362b2ae",
  14.       "resource": {
  15.         "resourceType": "SubscriptionStatus",
  16.         "id": "b21e4fae-ce73-45cb-8e37-1e203362b2ae",
  17.         "status": "active",
  18.         "type": "event-notification",
  19.         "eventsSinceSubscriptionStart": "311",
  20.         "eventsInNotification": 2,
  21.         "subscription": {
  22.           "reference": "https://example.org/fhir/r4/Subscription/8a35ef13-76eb-4de2-b2c5-e9fa863d0e0a"
  23.         },
  24.         "topic": "https://example.org/fhir/r4/SubscriptionTopic/admission"
  25.       },
  26.       "request": {
  27.         "method": "GET",
  28.         "url": "https://example.org/fhir/r4/Subscription/8a35ef13-76eb-4de2-b2c5-e9fa863d0e0a/$status"
  29.       },
  30.       "response": {
  31.         "status": "200"
  32.       }
  33.     },
  34.     {
  35.       "fullUrl": "urn:uuid:36e47a47-d260-425c-8f46-d722ba9d4fa9",
  36.       "resource": {
  37.         "resourceType": "AuditEvent",
  38.         "id": "36e47a47-d260-425c-8f46-d722ba9d4fa9",
  39.         "type": {
  40.           "system": "https://example.org/fhir/CodeSystem/subscription-topic",
  41.           "code": "admission"
  42.         },
  43.         "recorded": "2021-07-31T16:20:00.000Z",
  44.         "agent": [{ "requester": false }],
  45.         "source": {
  46.           "observer": {
  47.             "reference": "Organization/cfb9b6c1-7443-4dc5-9fb2-702cfd8cea94"
  48.           }
  49.         },
  50.         "entity": [
  51.           {
  52.             "what": {
  53.               "reference": "Encounter/551683b3-1477-41d1-b58e-32fe8b0047b0"
  54.             },
  55.             "role": {
  56.               "system": "http://terminology.hl7.org/CodeSystem/object-role",
  57.               "code": "4",
  58.               "display": "Domain Resource"
  59.             }
  60.           },
  61.           {
  62.             "what": {
  63.               "reference": "Patient/89e76c40-64ce-4a86-a47f-83b2a479a1ea"
  64.             },
  65.             "role": {
  66.               "system": "http://terminology.hl7.org/CodeSystem/object-role",
  67.               "code": "1",
  68.               "display": "Patient"
  69.             }
  70.           }
  71.         ]
  72.       }
  73.     },
  74.     {
  75.       "fullUrl": "urn:uuid:4ce85b13-2380-4564-84ba-f1957c69f4ad",
  76.       "resource": {
  77.         "resourceType": "AuditEvent",
  78.         "id": "4ce85b13-2380-4564-84ba-f1957c69f4ad",
  79.         "type": {
  80.           "system": "https://example.org/fhir/CodeSystem/subscription-topic",
  81.           "code": "admission"
  82.         },
  83.         "recorded": "2021-07-31T16:22:00.000Z",
  84.         "agent": [{ "requester": false }],
  85.         "source": {
  86.           "observer": {
  87.             "reference": "Organization/cfb9b6c1-7443-4dc5-9fb2-702cfd8cea94"
  88.           }
  89.         },
  90.         "entity": [
  91.           {
  92.             "what": {
  93.               "reference": "Encounter/551683b3-1477-41d1-b58e-32fe8b0047b0"
  94.             },
  95.             "role": {
  96.               "system": "http://terminology.hl7.org/CodeSystem/object-role",
  97.               "code": "4",
  98.               "display": "Domain Resource"
  99.             }
  100.           },
  101.           {
  102.             "what": {
  103.               "identifier": {
  104.                 "system": "http://hl7.org/fhir/sid/us-ssn",
  105.                 "value": "111111111"
  106.               }
  107.             },
  108.             "type": {
  109.               "system": "http://hl7.org/fhir/resource-types",
  110.               "code": "Patient"
  111.             },
  112.             "role": {
  113.               "system": "http://terminology.hl7.org/CodeSystem/object-role",
  114.               "code": "1",
  115.               "display": "Patient"
  116.             }
  117.           }
  118.         ]
  119.       }
  120.     }
  121.   ]
  122. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement