{
  "resourceType": "StructureDefinition",
  "url": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_BehandelnderFunktion",
  "version": "1.2.0",
  "name": "KBV_PR_AW_BehandelnderFunktion",
  "status": "active",
  "date": "2019-03-19",
  "publisher": "Kassenärztliche Bundesvereinigung (KBV)",
  "description": "Zuordnung des Behandelnden zu einer oder mehreren Betriebsstätten bzw. ASV-Teams",
  "copyright": "Copyright © [2020], Kassenärztliche Bundesvereinigung (KBV). All rights reserved.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "PractitionerRole",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
  "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()",
            "source": "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_BehandelnderFunktion"
          }
        ]
      },
      {
        "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.2.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.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Behandelnder|1.2.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.",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Betriebsstaette|1.2.0",
              "https://fhir.kbv.de/StructureDefinition/KBV_PR_AW_Organisation|1.2.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/NamingSystem/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",
        "max": "0"
      },
      {
        "id": "PractitionerRole.specialty",
        "path": "PractitionerRole.specialty",
        "max": "0"
      },
      {
        "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"
      }
    ]
  }
}