OH.consentTargetClear Event

Context Optionality Description
Key: parameters Required FHIR Parameter resource - When OH.consentTargetClear is triggered it will clear all the applied consent target(s).
Note: consentTarget.value is a comma seperated list of type string. For example, for HomeMedicine use - "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationDispense", for Immunization use - "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-immunizations-profile-retrieval-clinician-Immunization" and for Labs use - "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-lab-profile-DiagnosticReport"

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": "2019-01-08T01:37:05.14Z",
  "id": "q9v3jubddqt63n3",
  "event": {
    "hub.topic": "7jaa86kgdudewiaq0wta",
    "hub.event": "OH.consentTargetClear",
    "context": [
      {
        "key": "parameters",
        "resource": {
          "resourceType": "Parameters",
          "id": "0c678a3d-3b71-446e-91b3-41541e1360af",
          "meta": {
          "profile": 
          [
          "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-cms-profile-Parameters|1.0.0"
          ]
           },
          "parameter": [
            {
              "name": "consentTarget",
              "valueString": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-profile-MedicationDispense,http://ehealthontario.ca/fhir/StructureDefinition/ca-on-immunizations-profile-retrieval-clinician-Immunization"
            }
          ]
        }
      }
    ]
  }
}