{
  "resourceType": "StructureDefinition",
  "id": "KBV-PR-PTV-To-Review-Bundle",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_To_Review_Bundle",
  "version": "1.0",
  "name": "KBV_PR_PTV_To_Review_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.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_To_Review_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.type",
        "path": "Bundle.type",
        "fixedCode": "message",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "resource.meta.profile"
            }
          ],
          "rules": "closed"
        },
        "min": 10,
        "max": "15",
        "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:Header",
        "path": "Bundle.entry",
        "sliceName": "Header",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Header.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Header.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "MessageHeader",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_To_Review_MsgHdr"
            ]
          }
        ],
        "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_PTV_Patient_Pseudonym"
            ]
          }
        ],
        "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:TherapistAndReviewer",
        "path": "Bundle.entry",
        "sliceName": "TherapistAndReviewer",
        "min": 2,
        "max": "2",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:TherapistAndReviewer.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:TherapistAndReviewer.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:Claim",
        "path": "Bundle.entry",
        "sliceName": "Claim",
        "min": 1,
        "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_To_Review"
            ]
          }
        ]
      },
      {
        "id": "Bundle.entry:Report",
        "path": "Bundle.entry",
        "sliceName": "Report",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Report.fullUrl",
        "path": "Bundle.entry.fullUrl",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Report.resource",
        "path": "Bundle.entry.resource",
        "min": 1,
        "type": [
          {
            "code": "Binary",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_PDF"
            ]
          }
        ],
        "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": "Resource",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_Condition_ICD_Pseudonym|1.0"
            ]
          }
        ],
        "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": "Resource",
            "profile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_PTV_Coverage_Pseudonym"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:Coverage.resource.meta",
        "path": "Bundle.entry.resource.meta"
      },
      {
        "id": "Bundle.entry:Coverage.resource.meta.profile",
        "path": "Bundle.entry.resource.meta.profile",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      }
    ]
  }
}