<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Location" />
  <url value="https://fhir.centraxx.de/StructureDefinition/PatientTransfer" />
  <version value="2025.4.0" />
  <name value="PatientTransfer" />
  <status value="active" />
  <publisher value="Kairos an IQVIA business" />
  <description value="Represents a CentraXX patient transfer." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Location" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Location" />
  <derivation value="constraint" />
  <differential>
    <element id="Location.extension">
      <path value="Location.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="closed" />
      </slicing>
      <min value="0" />
      <max value="6" />
      <type>
        <code value="Extension" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.extension:episode">
      <path value="Location.extension" />
      <sliceName value="episode" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.centraxx.de/extension/patientTransfer/episode" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.extension:transferDate">
      <path value="Location.extension" />
      <sliceName value="transferDate" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.centraxx.de/extension/patientTransfer/transferDate" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.extension:attendingDoctor">
      <path value="Location.extension" />
      <sliceName value="attendingDoctor" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.centraxx.de/extension/patientTransfer/attendingDoctor" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.extension:currentLocation">
      <path value="Location.extension" />
      <sliceName value="currentLocation" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.centraxx.de/extension/patientTransfer/currentLocation" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.extension:priorLocation">
      <path value="Location.extension" />
      <sliceName value="priorLocation" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.centraxx.de/extension/patientTransfer/priorLocation" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <min value="1" />
      <patternCodeableConcept>
        <coding>
          <system value="https://fhir.centraxx.de/system/locationType" />
          <code value="PATIENT_TRANSFER" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>