<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="TipluLocation" />
  <url value="https://tiplu.de/fhir/StructureDefinition/TipluLocation" />
  <version value="2.0.2" />
  <name value="TipluLocation" />
  <title value="TipluLocation" />
  <status value="active" />
  <date value="2026-04-02" />
  <publisher value="Tiplu GmbH" />
  <contact>
    <name value="Tiplu GmbH" />
    <telecom>
      <system value="email" />
      <value value="fhir@tiplu.de" />
    </telecom>
  </contact>
  <description value="Details und Positionsinformationen über einen physischen Ort (z.B. Station, Raum oder Bett)" />
  <copyright value="Tiplu GmbH" />
  <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.identifier">
      <path value="Location.identifier" />
      <slicing>
        <discriminator>
          <type value="pattern" />
          <path value="$this" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <mustSupport value="true" />
    </element>
    <element id="Location.identifier:Standortnummer">
      <path value="Location.identifier" />
      <sliceName value="Standortnummer" />
      <min value="0" />
      <max value="1" />
      <patternIdentifier>
        <type>
          <coding>
            <system value="http://terminology.hl7.org/CodeSystem/v2-0203" />
            <code value="RI" />
          </coding>
        </type>
      </patternIdentifier>
      <mustSupport value="true" />
    </element>
    <element id="Location.identifier:Standortnummer.type">
      <path value="Location.identifier.type" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.identifier:Standortnummer.system">
      <path value="Location.identifier.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.identifier:Standortnummer.value">
      <path value="Location.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Location.identifier:Kuerzel">
      <path value="Location.identifier" />
      <sliceName value="Kuerzel" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Identifier" />
        <profile value="https://tiplu.de/fhir/StructureDefinition/identifier-kuerzel" />
      </type>
      <patternIdentifier>
        <type>
          <coding>
            <system value="https://tiplu.de/fhir/CodeSystem/IdentifierTypeExtended" />
            <code value="SHORT" />
          </coding>
        </type>
      </patternIdentifier>
      <mustSupport value="true" />
    </element>
    <element id="Location.name">
      <path value="Location.name" />
      <mustSupport value="true" />
    </element>
    <element id="Location.alias">
      <path value="Location.alias" />
      <mustSupport value="true" />
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="https://tiplu.de/fhir/ValueSet/LocationRoleType" />
      </binding>
    </element>
    <element id="Location.physicalType">
      <path value="Location.physicalType" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/location-physical-type" />
      </binding>
    </element>
  </differential>
</StructureDefinition>