<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="BackportSubscriptionNotificationR4Fixed" />
  <url value="https://gematik.de/fhir/isik/StructureDefinition/BackportSubscriptionNotificationR4Fixed" />
  <version value="1.1.0" />
  <name value="BackportSubscriptionNotificationR4Fixed" />
  <title value="R4 Topic-Based Subscription Notification Bundle" />
  <status value="active" />
  <experimental value="false" />
  <date value="2023-01-11T15:35:36+11:00" />
  <publisher value="HL7 International / FHIR Infrastructure" />
  <contact>
    <name value="HL7 FHIR Infrastructure WG" />
    <telecom>
      <system value="url" />
      <value value="https://hl7.org/Special/committees/fiwg" />
    </telecom>
  </contact>
  <contact>
    <name value="Gino Canessa" />
    <telecom>
      <system value="email" />
      <value value="mailto:gino.canessa@microsoft.com" />
    </telecom>
  </contact>
  <contact>
    <name value="Eric Haas" />
    <telecom>
      <system value="email" />
      <value value="mailto:ehaas@healthedatainc.com" />
    </telecom>
  </contact>
  <description value="Profil auf der FHIR-R4-Resource Bundle, um R5-ähnliche, themenbasierte Subscription-Benachrichtigungen in FHIR R4 zu ermöglichen.&#xA;&#xA;Dieses Profil ist funktional identisch mit `http://hl7.org/fhir/uv/subscriptions-backport/StructureDefinition/backport-subscription-notification-r4`.  &#xA;Die Version 1.1.0 des offiziellen Profils enthält jedoch technische Fehler. Daher wurde dieses Profil lokal als temporärer Workaround nachgebildet.&#xA;Es wird durch das offizielle `backport-subscription-notification-r4` Profil ersetzt, sobald eine korrigierte Version veröffentlicht wurde." />
  <jurisdiction>
    <coding>
      <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" />
      <code value="001" />
      <display value="World" />
    </coding>
  </jurisdiction>
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Bundle" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Bundle" />
  <derivation value="constraint" />
  <differential>
    <element id="Bundle">
      <path value="Bundle" />
      <constraint>
        <key value="backport-notification-bundle-r4-1" />
        <severity value="error" />
        <human value="A notification bundle MUST have a Parameters as the first entry" />
        <expression value="(entry.first().resource.is(Parameters))" />
        <source value="https://gematik.de/fhir/isik/StructureDefinition/BackportSubscriptionNotificationR4Fixed" />
      </constraint>
    </element>
    <element id="Bundle.id">
      <path value="Bundle.id" />
      <short value="serverseitige, interne ID des Datensatzes" />
      <comment value="**bedingtes Pflichtfeld/bedingtes MS:** Alle von einem Server bereitgestellten Ressourcen MÜSSEN über eine `id` verfügen.&#xA;  Von Clients erzeugte Ressourcen, die im Kontext einer CREATE-Interaktion übermittelt werden, MÜSSEN NICHT über eine `id`verfügen." />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.meta.versionId">
      <path value="Bundle.meta.versionId" />
      <short value="Eindeutiger Name der serverseitigen Version des Datensatzes" />
      <comment value="Alle von einem Server bereitgestellten Ressourcen SOLLEN über eine `versionID` verfügen.&#xA;  Von Clients erzeugte Ressourcen, die im Kontext einer CREATE-Interaktion übermittelt werden, MÜSSEN NICHT über eine `versionID`verfügen." />
    </element>
    <element id="Bundle.meta.lastUpdated">
      <path value="Bundle.meta.lastUpdated" />
      <short value="Zeitpunkt der letzten Änderung" />
      <comment value="Alle von einem Server bereitgestellten Ressourcen SOLLEN über ein `lastUpdate` verfügen.&#xA;  Von Clients erzeugte Ressourcen, die im Kontext einer CREATE-Interaktion übermittelt werden, MÜSSEN NICHT über ein `lastUpdate`verfügen." />
    </element>
    <element id="Bundle.implicitRules">
      <path value="Bundle.implicitRules" />
      <short value="Verweis auf die Regeln, nach denen die Ressource erstellt wurde" />
      <comment value="Begründung Constraint: In ISiK existiert kein Use-Case für dieses Element. Da es sich um ein Modifying Element handelt, wird es daher ausgeschlossen.&#xA;  Darüber hinaus werden die Regeln als URI vorgehalten. Dies führt dazu, dass sich hinter der URI eine beliebige Menge an Regeln befinden kann; wodurch  nicht sichergestellt werden kann, dass alle Clients die Regeln korrekt interpretieren können." />
      <max value="0" />
    </element>
    <element id="Bundle.type">
      <path value="Bundle.type" />
      <patternCode value="history" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <slicing>
        <discriminator>
          <type value="type" />
          <path value="resource" />
        </discriminator>
        <description value="Slice based on resource" />
        <ordered value="false" />
        <rules value="open" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Bundle.entry:subscriptionStatus">
      <path value="Bundle.entry" />
      <sliceName value="subscriptionStatus" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:subscriptionStatus.resource">
      <path value="Bundle.entry.resource" />
      <min value="1" />
      <type>
        <code value="Parameters" />
        <profile value="https://gematik.de/fhir/isik/StructureDefinition/BackportSubscriptionStatusR4Fixed" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>