<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://www.adusoft.fr/xips/StructureDefinition/fr-location" />
  <version value="4.0.0" />
  <name value="FrLocation" />
  <title value="fr-isr4-location-clone" />
  <status value="active" />
  <date value="2019-07-09" />
  <publisher value="Interop'Santé" />
  <contact>
    <name value="François Macary/Isabelle Gibaud" />
    <telecom>
      <system value="email" />
      <value value="francois.macary@phast.fr" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="French profile of Location | Profil français de la ressource Location" />
  <fhirVersion value="4.0.0" />
  <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://www.adusoft.fr/xips/StructureDefinition/fr-useperiod" />
      </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://www.interopsante.org/fhir/valueset/fr-location-identifier-type" />
      </binding>
    </element>
    <element id="Location.identifier.system">
      <path value="Location.identifier.system" />
      <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/resource/fr-organization" />
      </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/CodeSystem/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://www.interopsante.org/fhir/valueset/fr-location-type" />
      </binding>
    </element>
    <element id="Location.physicalType">
      <path value="Location.physicalType" />
      <binding>
        <strength value="example" />
        <valueSet value="http://www.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/resource/fr-organization" />
      </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://www.interopsante.org/fhir/structuredefinition/resource/fr-location" />
      </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://www.adusoft.fr/xips/StructureDefinition/fr-location-position-room" />
      </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>