Patient-open Event

Context Optionality Description
Key: patient Required FHIR Patient resource describing the patient whose chart is currently in context.

Sample POST Request (JSON):

This specification only supports JSON format


Field Optionality Type Description
timestamp Required string ISO 8601-2 timestamp in UTC describing the time at which the event occurred with subsecond accuracy
id Required string Event identifier used to recognize retried notifications. This id SHALL be unique for the Hub, for example a GUID
event Required object A JSON object describing the event. See below
Field Optionality Type Description
hub.topic Required string The uri of user's session that the subscriber wishes to subscribe to or unsubscribe from
hub.event Required string Comma separated list of event types from the Event Catalog for which the Subscriber wants notification
context Required string An array of named FHIR objects corresponding to the user's context after the given event has occurred. The hub MUST only return FHIR resources that can be accessed with the existing OAuth2 access_token.
{
  "timestamp": "2018-01-08T01:37:05.14Z",
  "id": "gf45fg34koffbddqt63n1er",
  "event": {
    "hub.topic": "8E4DA1DD6B6D44BCB678E86AA39435F0",
    "hub.event": "Patient-open",
    "context": [
      {
        "key": "patient",
        "resource": {
        "resourceType": "Patient",
        "id": "cms-patient-example",
        "meta": {
    "profile": [
    "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-cms-profile-Patient|1.0.0"
    ]
  },
  "identifier": [
    {
      "system": "https://infoway-inforoute.ca/fhir/NamingSystem/ca-on-patient-hcn",
      "value": "1234567890"
    },
    {
      "system": "http://ehealthontario.ca/fhir/NamingSystem/ca-on-panorama-immunization-id",
      "value": "1244566"
    }
  ],
  "name": [
    {
      "use": "official",
      "family": "Onsmith",
      "given": ["Onjohn"]
    }
  ],
 "telecom": [
	 {
	  "system": "phone",
  	"value": "416-123-3456"
	 }
  ],
  "gender": "male",
  "birthDate": "1926-02-24",
  "address": [
    {
      "use": "home",
      "type": "physical",
      "line": ["13 Boring St"],
      "city": "Toronto",
      "state": "ON",
      "postalCode": "M1M M2M",
      "country": "CAN"
    }
  ]
        }
      }
    ]
  }
}