<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Location" />
  <url value="https://fhir.centraxx.de/StructureDefinition/Location" />
  <version value="2025.4.0" />
  <name value="Location" />
  <status value="active" />
  <publisher value="Kairos an IQVIA business" />
  <description value="Represents a CentraXX sample location. This resource is read-only." />
  <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="3" />
      <max value="4" />
      <type>
        <code value="Extension" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.extension:path">
      <path value="Location.extension" />
      <sliceName value="path" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.centraxx.de/extension/sampleLocation/path" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.extension:schema">
      <path value="Location.extension" />
      <sliceName value="schema" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.centraxx.de/extension/sampleLocation/schema" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.extension:fillCount">
      <path value="Location.extension" />
      <sliceName value="fillCount" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.centraxx.de/extension/sampleLocation/fillCount" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.extension:assignedOrganisationUnits">
      <path value="Location.extension" />
      <sliceName value="assignedOrganisationUnits" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.centraxx.de/extension/sampleLocation/assignedOrganisationUnits" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Location.name">
      <path value="Location.name" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.mode">
      <path value="Location.mode" />
      <min value="1" />
      <fixedString value="instance" />
      <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="SAMPLE_LOCATION" />
        </coding>
      </patternCodeableConcept>
      <mustSupport value="true" />
    </element>
    <element id="Location.physicalType">
      <path value="Location.physicalType" />
      <min value="0" />
      <max value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="https://fhir.centraxx.de/valueSet/sampleLocationSchema" />
      </binding>
    </element>
    <element id="Location.position">
      <path value="Location.position" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.position.longitude">
      <path value="Location.position.longitude" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.position.latitude">
      <path value="Location.position.latitude" />
      <mustSupport value="true" />
    </element>
    <element id="Location.partOf">
      <path value="Location.partOf" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.centraxx.de/StructureDefinition/Location" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>