<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="MaiaSubscription" />
  <url value="https://tiplu.de/fhir/maia/StructureDefinition/MaiaSubscription" />
  <version value="1.0.0" />
  <name value="MaiaSubscription" />
  <title value="MaiaSubscription" />
  <status value="active" />
  <experimental value="false" />
  <date value="2026-04-30" />
  <publisher value="Tiplu GmbH" />
  <description value="The profile is based on ISiKSubscription with extended and fixed topic.&#xA;&#xA;This profile overrides the must-support elements defined by ISiK to show the specifications for the MAIA IG." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Subscription" />
  <baseDefinition value="https://gematik.de/fhir/isik/StructureDefinition/ISiKSubscription" />
  <derivation value="constraint" />
  <differential>
    <element id="Subscription.criteria">
      <path value="Subscription.criteria" />
      <comment value="MAIA only supports the subscription topic `maia-alert-accepted`, no other in ISiK defined topics are supported." />
      <binding>
        <strength value="required" />
        <valueSet value="https://tiplu.de/fhir/maia/ValueSet/MaiaSubscriptionTopicVS" />
      </binding>
    </element>
    <element id="Subscription.channel.extension:heartbeatPeriod">
      <path value="Subscription.channel.extension" />
      <sliceName value="heartbeatPeriod" />
      <comment value="ISiK Comment: Bedeutung: Intervall in dem der Server prüft, ob der Kommunikationskanal noch aktiv ist.&#xA;    &#xA;    MAIA only accepts a heartbeatPeriod of multiples of 60s." />
    </element>
    <element id="Subscription.channel.type">
      <path value="Subscription.channel.type" />
      <patternCode value="rest-hook" />
    </element>
    <element id="Subscription.channel.payload">
      <path value="Subscription.channel.payload" />
      <patternCode value="application/fhir+json" />
    </element>
    <element id="Subscription.channel.payload.extension:content">
      <path value="Subscription.channel.payload.extension" />
      <sliceName value="content" />
    </element>
    <element id="Subscription.channel.payload.extension:content.value[x]:valueCode">
      <path value="Subscription.channel.payload.extension.value[x]" />
      <sliceName value="valueCode" />
      <type>
        <code value="code" />
      </type>
      <patternCode value="full-resource" />
    </element>
    <element id="Subscription.channel.header">
      <path value="Subscription.channel.header" />
      <comment value="MAIA only accepts the header `Authorization`, no other headers are supported." />
    </element>
  </differential>
</StructureDefinition>