<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="fr-location" />
  <url value="http://interopsante.org/fhir/StructureDefinition/FrLocation" />
  <version value="1.0.1" />
  <name value="FrLocation" />
  <status value="active" />
  <date value="2022-10-20" />
  <publisher value="InteropSanté" />
  <contact>
    <name value="InteropSanté" />
    <telecom>
      <system value="email" />
      <value value="fhir@interopsante.org" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="French profile of Location | Profil français de la ressource Location" />
  <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="open" />
      </slicing>
    </element>
    <element id="Location.extension:usePeriod">
      <path value="Location.extension" />
      <sliceName value="usePeriod" />
      <type>
        <code value="Extension" />
        <profile value="http://interopsante.org/fhir/StructureDefinition/FrLocationUsePeriod" />
      </type>
    </element>
    <element id="Location.identifier">
      <path value="Location.identifier" />
      <min value="1" />
    </element>
    <element id="Location.identifier.use">
      <path value="Location.identifier.use" />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use" />
      </binding>
    </element>
    <element id="Location.identifier.type">
      <path value="Location.identifier.type" />
      <min value="1" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://interopsante.org/fhir/ValueSet/fr-location-identifier-type" />
      </binding>
    </element>
    <element id="Location.identifier.system">
      <path value="Location.identifier.system" />
      <definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique." />
      <min value="1" />
    </element>
    <element id="Location.identifier.value">
      <path value="Location.identifier.value" />
      <min value="1" />
    </element>
    <element id="Location.identifier.assigner">
      <path value="Location.identifier.assigner" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://interopsante.org/fhir/StructureDefinition/FrOrganization" />
      </type>
    </element>
    <element id="Location.status">
      <path value="Location.status" />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/location-status" />
      </binding>
    </element>
    <element id="Location.operationalStatus">
      <path value="Location.operationalStatus" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://terminology.hl7.org/ValueSet/v2-0116" />
      </binding>
    </element>
    <element id="Location.mode">
      <path value="Location.mode" />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/location-mode" />
      </binding>
    </element>
    <element id="Location.type">
      <path value="Location.type" />
      <max value="1" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://interopsante.org/fhir/ValueSet/fr-location-type" />
      </binding>
    </element>
    <element id="Location.telecom">
      <path value="Location.telecom" />
      <type>
        <code value="ContactPoint" />
        <profile value="http://interopsante.org/fhir/StructureDefinition/FrContactPoint" />
      </type>
    </element>
    <element id="Location.address">
      <path value="Location.address" />
      <type>
        <code value="Address" />
        <profile value="http://interopsante.org/fhir/StructureDefinition/FrAddress" />
      </type>
    </element>
    <element id="Location.physicalType">
      <path value="Location.physicalType" />
      <binding>
        <strength value="example" />
        <valueSet value="http://interopsante.org/fhir/ValueSet/fr-location-physical-type" />
      </binding>
    </element>
    <element id="Location.managingOrganization">
      <path value="Location.managingOrganization" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://interopsante.org/fhir/StructureDefinition/FrOrganization" />
      </type>
    </element>
    <element id="Location.partOf">
      <path value="Location.partOf" />
      <type>
        <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy">
          <valueBoolean value="true" />
        </extension>
        <code value="Reference" />
        <targetProfile value="http://interopsante.org/fhir/StructureDefinition/FrLocation" />
      </type>
    </element>
    <element id="Location.partOf.extension">
      <path value="Location.partOf.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Location.partOf.extension:positionRoom">
      <path value="Location.partOf.extension" />
      <sliceName value="positionRoom" />
      <type>
        <code value="Extension" />
        <profile value="http://interopsante.org/fhir/StructureDefinition/FrLocationPartOfPositionRoom" />
      </type>
    </element>
    <element id="Location.hoursOfOperation.daysOfWeek">
      <path value="Location.hoursOfOperation.daysOfWeek" />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/days-of-week" />
      </binding>
    </element>
  </differential>
</StructureDefinition>