### ----------------------------------------------------
### -- FHIR
### -- Licenses: Artistic-2.0
### -- Authors: Hugh Simpson
### -- File: t/resources/structureDefinition/Subscription.json
### ----------------------------------------------------
### -- Chunk 4 of 4
-bindingName",
          "valueString" : "SubscriptionChannelType"
        }],
        "strength" : "required",
        "description" : "The type of method used to execute a subscription.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/subscription-channel-type|4.0.0"
      }
    },
    {
      "id" : "Subscription.channel.endpoint",
      "path" : "Subscription.channel.endpoint",
      "short" : "Where the channel points to",
      "definition" : "The url that describes the actual end-point to send messages to.",
      "comment" : "For rest-hook, and websocket, the end-point must be an http: or https: URL; for email, a mailto: url, for sms, a tel: url, and for message the endpoint can be in any form of url the server understands (usually, http: or mllp:). The URI is allowed to be relative; in which case, it is relative to the server end-point (since there may be more than one, clients should avoid using relative URIs).",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "url"
      }],
      "isSummary" : true
    },
    {
      "id" : "Subscription.channel.payload",
      "path" : "Subscription.channel.payload",
      "short" : "MIME type to send, or omit for no payload",
      "definition" : "The mime type to send the payload in - either application/fhir+xml, or application/fhir+json. If the payload is not present, then there is no payload in the notification, just a notification. The mime type \"text/plain\" may also be used for Email and SMS subscriptions.",
      "comment" : "Sending the payload has obvious security implications. The server is responsible for ensuring that the content is appropriately secured.",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "code"
      }],
      "isSummary" : true,
      "binding" : {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
          "valueString" : "MimeType"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
          "valueBoolean" : true
        }],
        "strength" : "required",
        "description" : "The mime type of an attachment. Any valid mime type is allowed.",
        "valueSet" : "http://hl7.org/fhir/ValueSet/mimetypes|4.0.0"
      }
    },
    {
      "id" : "Subscription.channel.header",
      "path" : "Subscription.channel.header",
      "short" : "Usage depends on the channel type",
      "definition" : "Additional headers / information to send as part of the notification.",
      "comment" : "Exactly what these mean depend on the channel type. They can convey additional information to the recipient and/or meet security requirements; for example, support of multiple headers in the outgoing notifications for rest-hook type subscriptions.",
      "min" : 0,
      "max" : "*",
      "type" : [{
        "code" : "string"
      }],
      "isSummary" : true
    }]
  }
}


