<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="employeeorganizationrelationship-profile" />
  <url value="http://fhir.xt.dev/StructureDefinition/EmployeeOrganizationRelationship" />
  <version value="1.0.0" />
  <name value="EmployeeOrganizationRelationship" />
  <status value="draft" />
  <date value="2025-03-31T21:56:11.5388155+00:00" />
  <publisher value="x-tention Informationstechnologie GmbH" />
  <contact>
    <telecom>
      <system value="email" />
      <value value="fhir.profiling@x-tention.com" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="This practitioner role models a relationships between an employee and an organization (usually a department or other lower-level organization in the organization hierarchy). There are normally multiple relationships for each employee, representing all departments the employee is active in." />
  <copyright value="x-tention Informationstechnologie GmbH" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="PractitionerRole" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
  <derivation value="constraint" />
  <differential>
    <element id="PractitionerRole.practitioner">
      <path value="PractitionerRole.practitioner" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.organization">
      <path value="PractitionerRole.organization" />
      <min value="1" />
    </element>
    <element id="PractitionerRole.specialty">
      <path value="PractitionerRole.specialty" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="coding.system" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="PractitionerRole.specialty:DE_aerztlicheFachrichtung">
      <path value="PractitionerRole.specialty" />
      <sliceName value="DE_aerztlicheFachrichtung" />
    </element>
    <element id="PractitionerRole.specialty:DE_aerztlicheFachrichtung.coding">
      <path value="PractitionerRole.specialty.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="PractitionerRole.specialty:DE_aerztlicheFachrichtung.coding.system">
      <path value="PractitionerRole.specialty.coding.system" />
      <min value="1" />
      <fixedUri value="http://ihe-d.de/CodeSystems/AerztlicheFachrichtungen" />
    </element>
    <element id="PractitionerRole.specialty:DE_nichtAerztlicheFachrichtung">
      <path value="PractitionerRole.specialty" />
      <sliceName value="DE_nichtAerztlicheFachrichtung" />
    </element>
    <element id="PractitionerRole.specialty:DE_nichtAerztlicheFachrichtung.coding">
      <path value="PractitionerRole.specialty.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="PractitionerRole.specialty:DE_nichtAerztlicheFachrichtung.coding.system">
      <path value="PractitionerRole.specialty.coding.system" />
      <min value="1" />
      <fixedUri value="http://ihe-d.de/CodeSystems/NichtaerztlicheFachrichtungen" />
    </element>
  </differential>
</StructureDefinition>