{
  "resourceType": "StructureDefinition",
  "id": "BehandelndePersonRolle",
  "url": "https://tiplu.de/fhir/StructureDefinition/BehandelndePersonRolle",
  "version": "2.0.4",
  "name": "BehandelndePersonRolle",
  "title": "Rolle einer behandelnden Person",
  "status": "active",
  "date": "2026-08-26",
  "publisher": "Tiplu GmbH",
  "contact": [
    {
      "name": "Tiplu GmbH",
      "telecom": [
        {
          "system": "email",
          "value": "fhir@tiplu.de"
        }
      ]
    }
  ],
  "description": "Profil für eine temporäre Rolle einer behandelnden Person in Bezug zu einer Einrichtung.",
  "copyright": "Tiplu GmbH",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "PractitionerRole",
  "baseDefinition": "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_PractitionerRole",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PractitionerRole.meta",
        "path": "PractitionerRole.meta",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.meta.profile",
        "path": "PractitionerRole.meta.profile",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.meta.security",
        "path": "PractitionerRole.meta.security",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "$this"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "PractitionerRole.meta.security:versiegelt",
        "path": "PractitionerRole.meta.security",
        "sliceName": "versiegelt",
        "short": "Hier wird der Code BTG 'break the glass'als Security Label verwendet.",
        "min": 0,
        "max": "*",
        "patternCoding": {
          "code": "BTG",
          "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
          "display": "break the glass"
        },
        "binding": {
          "strength": "extensible",
          "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
        }
      },
      {
        "id": "PractitionerRole.period",
        "path": "PractitionerRole.period",
        "comment": "Sollte diese PractitionerRole für den UseCase der leistungserbringenden Fachabteilung genutzt werden, dann sollte hier bestenfalls die Period als Dauer der Operation/Intervention hinterlegt werden. Dies hängt damit zusammen, dass nicht gegeben ist, dass der Beteiligte immer diese Zugehörigkeit zur selben Fachabteilung hat, sondern gegebenenfalls in den Stammdaten eine andere Fachabteilung angegeben ist.",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.practitioner",
        "path": "PractitionerRole.practitioner",
        "comment": "Im Falle einer Verknüpfung von Arzt und Organisation, ist der Arzt hier anzugeben.",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.organization",
        "path": "PractitionerRole.organization",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.organization.reference",
        "path": "PractitionerRole.organization.reference",
        "comment": "Für die Zuordnung einer behandelnden Person, sollte hier möglichst die zugehörige Fachabteilung referenziert werden.",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.organization.identifier",
        "path": "PractitionerRole.organization.identifier",
        "short": "BSNR des zugeordneten Rechnungsstellers",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.organization.identifier.system",
        "path": "PractitionerRole.organization.identifier.system",
        "patternUri": "https://fhir.kbv.de/NamingSystem/KBV_NS_Base_BSNR"
      },
      {
        "id": "PractitionerRole.organization.identifier.value",
        "path": "PractitionerRole.organization.identifier.value",
        "mustSupport": true
      }
    ]
  }
}