<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Mxx-HealthHub-AppointmentModuleSubscription" />
  <url value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AppointmentModuleSubscription" />
  <version value="1.5.0" />
  <name value="Mxx_HealthHub_AppointmentModuleSubscription" />
  <status value="active" />
  <publisher value="medatixx GmbH &amp; Co. KG" />
  <copyright value="medatixx GmbH &amp; Co. KG" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Subscription" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Subscription" />
  <derivation value="constraint" />
  <differential>
    <element id="Subscription.contact">
      <path value="Subscription.contact" />
      <max value="0" />
    </element>
    <element id="Subscription.criteria">
      <path value="Subscription.criteria" />
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.medatixx.de/HealthHub/ValueSet/Mxx_HealthHub_VS_AppointmentSubscriptionTopic" />
      </binding>
    </element>
    <element id="Subscription.channel.type">
      <path value="Subscription.channel.type" />
      <fixedCode value="rest-hook" />
    </element>
    <element id="Subscription.channel.endpoint">
      <path value="Subscription.channel.endpoint" />
      <definition value="The url that describes the actual end-point to send messages to. &#xD;&#xA;Must use HTTPS as protocol." />
      <min value="1" />
    </element>
    <element id="Subscription.channel.payload">
      <path value="Subscription.channel.payload" />
      <min value="1" />
      <fixedCode value="application/fhir+json" />
    </element>
    <element id="Subscription.channel.header">
      <path value="Subscription.channel.header" />
      <definition value="Additional headers / information to send as part of the notification.&#xD;&#xA;At least an Authorization-Header must be present." />
      <min value="1" />
    </element>
  </differential>
</StructureDefinition>