<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="fr-schedule" />
  <url value="http://interopsante.org/fhir/StructureDefinition/FrSchedule" />
  <version value="1.0.1" />
  <name value="FrSchedule" />
  <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="Profile of the Schedule resource for France | Profil de la ressource Schedule pour l'usage en France.&#xD;&#xA;This profile redefines the element serviceType to associate the service with the duration of this service. It also adds an extension sepcifying the periods of avalability/non-availabilty times of the Schedule | Ce profil redéfinit l'élément serviceType de façon à associer le service avec la durée du service. Il ajoute également une extension qui précise les périodes de disponibilités/non disponibilités de la vacation." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Schedule" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Schedule" />
  <derivation value="constraint" />
  <differential>
    <element id="Schedule.extension">
      <path value="Schedule.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="0" />
    </element>
    <element id="Schedule.extension:serviceTypeDuration">
      <path value="Schedule.extension" />
      <sliceName value="serviceTypeDuration" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://interopsante.org/fhir/StructureDefinition/FrServiceTypeDuration" />
      </type>
    </element>
    <element id="Schedule.extension:availabilityTime">
      <path value="Schedule.extension" />
      <sliceName value="availabilityTime" />
      <min value="0" />
      <type>
        <code value="Extension" />
        <profile value="http://interopsante.org/fhir/StructureDefinition/FrScheduleAvailabiltyTime" />
      </type>
    </element>
    <element id="Schedule.identifier.use">
      <path value="Schedule.identifier.use" />
      <binding>
        <strength value="required" />
        <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use" />
      </binding>
    </element>
    <element id="Schedule.serviceCategory">
      <path value="Schedule.serviceCategory" />
      <max value="1" />
    </element>
    <element id="Schedule.serviceType">
      <path value="Schedule.serviceType" />
      <max value="0" />
    </element>
    <element id="Schedule.specialty">
      <path value="Schedule.specialty" />
      <binding>
        <strength value="required" />
        <valueSet value="http://interopsante.org/fhir/ValueSet/fr-practitioner-specialty" />
      </binding>
    </element>
    <element id="Schedule.actor">
      <path value="Schedule.actor" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://interopsante.org/fhir/StructureDefinition/FrRelatedPerson" />
        <targetProfile value="http://interopsante.org/fhir/StructureDefinition/FrHealthcareService" />
        <targetProfile value="http://interopsante.org/fhir/StructureDefinition/FrLocation" />
        <targetProfile value="http://interopsante.org/fhir/StructureDefinition/FrPatient" />
        <targetProfile value="http://interopsante.org/fhir/StructureDefinition/FrPractitioner" />
      </type>
    </element>
  </differential>
</StructureDefinition>