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