<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="StfExportBundle" />
  <url value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfExportBundle" />
  <version value="1.0.2" />
  <name value="StfExportBundle" />
  <title value="STF Export Bundle" />
  <status value="active" />
  <experimental value="false" />
  <date value="2026-03-30" />
  <publisher value="ELFA Maßnahme Interoperabilität" />
  <description value="Das StfExportBundle dient als Container für den standardisierten Austausch von Daten im Rahmen des Sterbefallprozesses. &#xA;Es basiert auf der Ressource `Bundle` und verwendet den Typ `collection`, um alle relevanten STF Ressourcen zu bündeln." />
  <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.type">
      <path value="Bundle.type" />
      <patternCode value="collection" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.timestamp">
      <path value="Bundle.timestamp" />
      <short value="Exportzeitpunkt" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry">
      <path value="Bundle.entry" />
      <slicing>
        <discriminator>
          <type value="profile" />
          <path value="resource" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <min value="1" />
    </element>
    <element id="Bundle.entry:Provenance">
      <path value="Bundle.entry" />
      <sliceName value="Provenance" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:Provenance.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Provenance" />
        <profile value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfExportProvenance" />
      </type>
    </element>
    <element id="Bundle.entry:Inhalt">
      <path value="Bundle.entry" />
      <sliceName value="Inhalt" />
      <min value="0" />
      <max value="*" />
      <mustSupport value="true" />
    </element>
    <element id="Bundle.entry:Inhalt.resource">
      <path value="Bundle.entry.resource" />
      <type>
        <code value="Practitioner" />
        <profile value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfArzt" />
      </type>
      <type>
        <code value="Patient" />
        <profile value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfVerstorbenePerson" />
        <profile value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfVerstorbenePersonPseudonymisiert" />
      </type>
      <type>
        <code value="PractitionerRole" />
        <profile value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfArztZuordnung" />
      </type>
      <type>
        <code value="DocumentReference" />
        <profile value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfDatei" />
      </type>
      <type>
        <code value="Procedure" />
        <profile value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfLeichenschau" />
        <profile value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfObduktion" />
      </type>
      <type>
        <code value="Organization" />
        <profile value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfOrganisation" />
      </type>
      <type>
        <code value="Provenance" />
        <profile value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfSterbeurkundeAusstellung" />
      </type>
      <type>
        <code value="Observation" />
        <profile value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfBasisObservation" />
      </type>
      <type>
        <code value="ServiceRequest" />
        <profile value="http://gematik.de/fhir/oegd/stf/StructureDefinition/StfObduktionAnfrage" />
      </type>
    </element>
  </differential>
</StructureDefinition>