{
  "resourceType": "StructureDefinition",
  "id": "KBV-PR-AW-BehandelnderFunktion",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_BehandelnderFunktion",
  "version": "1.3.0",
  "name": "KBV_PR_AW_BehandelnderFunktion",
  "status": "draft",
  "date": "2019-03-19",
  "publisher": "Kassenärztliche Bundesvereinigung (KBV)",
  "description": "Zuordnung des Behandelnden zu einer oder mehreren Betriebsstätten bzw. ASV-Teams",
  "copyright": "Copyright © [2022], Kassenärztliche Bundesvereinigung (KBV). All rights reserved.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "PractitionerRole",
  "baseDefinition": "https://fhir.kbv.de/StructureDefinition/KBV_PR_Base_PractitionerRole|1.3.0",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "PractitionerRole",
        "path": "PractitionerRole",
        "short": "BehandelnderFunktion",
        "definition": "In dieser Ressource wird die Funktion eines Behandelnden abgebildet. Dieser kann in verschiedenen Betriebsstaetten oder Krankenhäusern arbeiten, aber auch einem ASV-Team angehören.",
        "constraint": [
          {
            "key": "AWS-1",
            "severity": "error",
            "human": "Es darf nur eine Referenz oder einen Identifier geben",
            "expression": "organization.reference.exists() xor organization.identifier.exists()"
          }
        ]
      },
      {
        "id": "PractitionerRole.id",
        "path": "PractitionerRole.id",
        "min": 1
      },
      {
        "id": "PractitionerRole.meta",
        "path": "PractitionerRole.meta",
        "min": 1
      },
      {
        "id": "PractitionerRole.meta.versionId",
        "path": "PractitionerRole.meta.versionId",
        "min": 1
      },
      {
        "id": "PractitionerRole.meta.lastUpdated",
        "path": "PractitionerRole.meta.lastUpdated",
        "min": 1
      },
      {
        "id": "PractitionerRole.meta.profile",
        "path": "PractitionerRole.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_BehandelnderFunktion|1.3.0"
      },
      {
        "id": "PractitionerRole.text",
        "path": "PractitionerRole.text",
        "min": 1
      },
      {
        "id": "PractitionerRole.text.status",
        "path": "PractitionerRole.text.status",
        "short": "extensions",
        "fixedCode": "extensions"
      },
      {
        "id": "PractitionerRole.identifier",
        "path": "PractitionerRole.identifier",
        "max": "0"
      },
      {
        "id": "PractitionerRole.active",
        "path": "PractitionerRole.active",
        "max": "0"
      },
      {
        "id": "PractitionerRole.period",
        "path": "PractitionerRole.period",
        "max": "0"
      },
      {
        "id": "PractitionerRole.practitioner",
        "path": "PractitionerRole.practitioner",
        "short": "Practitioner that is able to provide the defined services for the organisation",
        "definition": "Practitioner that is able to provide the defined services for the organisation.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Behandelnder|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.practitioner.reference",
        "path": "PractitionerRole.practitioner.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.practitioner.type",
        "path": "PractitionerRole.practitioner.type",
        "max": "0"
      },
      {
        "id": "PractitionerRole.practitioner.identifier",
        "path": "PractitionerRole.practitioner.identifier",
        "max": "0"
      },
      {
        "id": "PractitionerRole.practitioner.display",
        "path": "PractitionerRole.practitioner.display",
        "max": "0"
      },
      {
        "id": "PractitionerRole.organization",
        "path": "PractitionerRole.organization",
        "short": "Betriebsstaette",
        "definition": "logische Referenz zur Betriebsstaette",
        "comment": "Der Arzt kann zwei Rollen verkörpern. Zum einen ist er in einer Betriebsstaette/Krankenhaus tätig . Zum anderen ist er Teil eines ASV-teams.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Betriebsstaette|1.3.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Organisation|1.3.0"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.organization.type",
        "path": "PractitionerRole.organization.type",
        "max": "0"
      },
      {
        "id": "PractitionerRole.organization.identifier",
        "path": "PractitionerRole.organization.identifier",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.organization.identifier.use",
        "path": "PractitionerRole.organization.identifier.use",
        "max": "0"
      },
      {
        "id": "PractitionerRole.organization.identifier.type",
        "path": "PractitionerRole.organization.identifier.type",
        "max": "0"
      },
      {
        "id": "PractitionerRole.organization.identifier.system",
        "path": "PractitionerRole.organization.identifier.system",
        "min": 1,
        "fixedUri": "http://fhir.de/sid/asv/teamnummer",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.organization.identifier.value",
        "path": "PractitionerRole.organization.identifier.value",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.organization.identifier.period",
        "path": "PractitionerRole.organization.identifier.period",
        "max": "0"
      },
      {
        "id": "PractitionerRole.organization.identifier.assigner",
        "path": "PractitionerRole.organization.identifier.assigner",
        "max": "0"
      },
      {
        "id": "PractitionerRole.organization.display",
        "path": "PractitionerRole.organization.display",
        "max": "0"
      },
      {
        "id": "PractitionerRole.code",
        "path": "PractitionerRole.code",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.code.coding",
        "path": "PractitionerRole.code.coding",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.code.coding:RolleDerEinrichtung",
        "path": "PractitionerRole.code.coding",
        "sliceName": "RolleDerEinrichtung",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.code.coding:RolleDerEinrichtung.system",
        "path": "PractitionerRole.code.coding.system",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.code.coding:RolleDerEinrichtung.version",
        "path": "PractitionerRole.code.coding.version",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.code.coding:RolleDerEinrichtung.code",
        "path": "PractitionerRole.code.coding.code",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.code.coding:RolleDerEinrichtung.display",
        "path": "PractitionerRole.code.coding.display",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.code.coding:RolleDerEinrichtung.userSelected",
        "path": "PractitionerRole.code.coding.userSelected",
        "max": "0"
      },
      {
        "id": "PractitionerRole.code.text",
        "path": "PractitionerRole.code.text",
        "max": "0"
      },
      {
        "id": "PractitionerRole.specialty",
        "path": "PractitionerRole.specialty",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.specialty.coding",
        "path": "PractitionerRole.specialty.coding",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.specialty.coding:KBV-Fachgruppe",
        "path": "PractitionerRole.specialty.coding",
        "sliceName": "KBV-Fachgruppe",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.specialty.coding:KBV-Fachgruppe.system",
        "path": "PractitionerRole.specialty.coding.system",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.specialty.coding:KBV-Fachgruppe.version",
        "path": "PractitionerRole.specialty.coding.version",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.specialty.coding:KBV-Fachgruppe.code",
        "path": "PractitionerRole.specialty.coding.code",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.specialty.coding:KBV-Fachgruppe.display",
        "path": "PractitionerRole.specialty.coding.display",
        "mustSupport": true
      },
      {
        "id": "PractitionerRole.location",
        "path": "PractitionerRole.location",
        "max": "0"
      },
      {
        "id": "PractitionerRole.healthcareService",
        "path": "PractitionerRole.healthcareService",
        "max": "0"
      },
      {
        "id": "PractitionerRole.telecom",
        "path": "PractitionerRole.telecom",
        "short": "Kommunikation",
        "definition": "Kommunikation",
        "comment": "Moeglicherweise eine Handynummer z.B. als Hausarzt, neben den Anderen",
        "max": "0"
      },
      {
        "id": "PractitionerRole.availableTime",
        "path": "PractitionerRole.availableTime",
        "max": "0"
      },
      {
        "id": "PractitionerRole.notAvailable",
        "path": "PractitionerRole.notAvailable",
        "max": "0"
      },
      {
        "id": "PractitionerRole.availabilityExceptions",
        "path": "PractitionerRole.availabilityExceptions",
        "max": "0"
      },
      {
        "id": "PractitionerRole.endpoint",
        "path": "PractitionerRole.endpoint",
        "max": "0"
      }
    ]
  }
}