{
  "resourceType": "StructureDefinition",
  "id": "KBV-PR-PTV-Claim-Bundle",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_Claim_Bundle",
  "version": "1.0",
  "name": "KBV_PR_PTV_Claim_Bundle",
  "status": "draft",
  "date": "2026-07-08",
  "publisher": "Kassenärztliche Bundesvereinigung (KBV)",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle",
        "path": "Bundle",
        "constraint": [
          {
            "key": "-psy-Angabe-ClaimOderClaimChange-Pflicht",
            "severity": "error",
            "human": "Entweder ein Eintrag 'Claim' oder ein Eintrag 'ClaimChange' muss vorhanden sein",
            "expression": "entry.where(resource.meta.profile='https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_Claim|1.0').exists() xor entry.where(resource.meta.profile='https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_ClaimChange|1.0').exists()"
          }
        ]
      },
      {
        "id": "Bundle.id",
        "path": "Bundle.id",
        "short": "Eindeutige ID der Nachricht, anzugeben als UUID",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.meta",
        "path": "Bundle.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.meta.versionId",
        "path": "Bundle.meta.versionId",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.meta.lastUpdated",
        "path": "Bundle.meta.lastUpdated",
        "mustSupport": true
      },
      {
        "id": "Bundle.meta.source",
        "path": "Bundle.meta.source",
        "max": "0"
      },
      {
        "id": "Bundle.meta.profile",
        "path": "Bundle.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_Claim_Bundle|1.0",
        "mustSupport": true
      },
      {
        "id": "Bundle.meta.security",
        "path": "Bundle.meta.security",
        "max": "0"
      },
      {
        "id": "Bundle.meta.tag",
        "path": "Bundle.meta.tag",
        "max": "0"
      },
      {
        "id": "Bundle.language",
        "path": "Bundle.language",
        "max": "0"
      },
      {
        "id": "Bundle.identifier",
        "path": "Bundle.identifier",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.identifier.use",
        "path": "Bundle.identifier.use",
        "max": "0"
      },
      {
        "id": "Bundle.identifier.type",
        "path": "Bundle.identifier.type",
        "max": "0"
      },
      {
        "id": "Bundle.identifier.system",
        "path": "Bundle.identifier.system",
        "definition": "Festlegung damit eine UUID kommt",
        "min": 1,
        "fixedUri": "urn:ietf:rfc:3986",
        "mustSupport": true
      },
      {
        "id": "Bundle.identifier.value",
        "path": "Bundle.identifier.value",
        "definition": "Eindeutige UUID",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.identifier.period",
        "path": "Bundle.identifier.period",
        "max": "0"
      },
      {
        "id": "Bundle.identifier.assigner",
        "path": "Bundle.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "collection",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "resource.meta.profile"
            }
          ],
          "rules": "closed"
        },
        "min": 7,
        "max": "12",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:Claim",
        "path": "Bundle.entry",
        "sliceName": "Claim",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Claim.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Claim.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Claim",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_Claim"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:ClaimChange",
        "path": "Bundle.entry",
        "sliceName": "ClaimChange",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:ClaimChange.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:ClaimChange.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Claim",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_ClaimChange"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Patient",
        "path": "Bundle.entry",
        "sliceName": "Patient",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Patient.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Patient.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Patient",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Patient|1.3"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Payor",
        "path": "Bundle.entry",
        "sliceName": "Payor",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Payor.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Payor.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Organization",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_Payor"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Therapist",
        "path": "Bundle.entry",
        "sliceName": "Therapist",
        "min": 1,
        "max": "2",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Therapist.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Therapist.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Practitioner",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Practitioner|1.3"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:PsychotherapyInstitution",
        "path": "Bundle.entry",
        "sliceName": "PsychotherapyInstitution",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:PsychotherapyInstitution.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:PsychotherapyInstitution.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Organization",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_Psychotherapy_Institution"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Coverage",
        "path": "Bundle.entry",
        "sliceName": "Coverage",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Coverage.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Coverage.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Coverage",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_FOR_Coverage|1.3"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Condition",
        "path": "Bundle.entry",
        "sliceName": "Condition",
        "min": 1,
        "max": "5",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Condition.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Condition.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Condition",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_Condition_ICD"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Leistungsbescheid",
        "path": "Bundle.entry",
        "sliceName": "Leistungsbescheid",
        "short": "Leistungsbescheid",
        "definition": "Bei der Beantragung einer Fortführung der Therapie nach einem Wechsel der zuständigen Krankenkasse muss der Leistungsbescheid der vorher zuständigen Krankenkasse eingereicht werden.",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Leistungsbescheid.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Leistungsbescheid.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Resource",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_ClaimResponse_Bundle"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Leistungsbescheid.resource.entry:Patient",
        "path": "Bundle.entry.resource.entry",
        "sliceName": "Patient"
      }
    ]
  }
}