<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="fr-service-type-duration" />
  <url value="http://interopsante.org/fhir/StructureDefinition/FrServiceTypeDuration" />
  <version value="1.0.1" />
  <name value="FrServiceTypeDuration" />
  <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="This French extension allows to associate the type of service with the duration of this service | Cette extension française permet d'associer le type de service avec la durée de ce service." />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="PractitionerRole" />
  </context>
  <context>
    <type value="element" />
    <expression value="HealthcareService" />
  </context>
  <context>
    <type value="element" />
    <expression value="Schedule" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension.extension">
      <path value="Extension.extension" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="url" />
        </discriminator>
        <rules value="open" />
      </slicing>
    </element>
    <element id="Extension.extension:serviceType">
      <path value="Extension.extension" />
      <sliceName value="serviceType" />
      <short value="Type of the service that has to be performed during the appointment | Typedu service à assurer durant le RDV" />
      <min value="1" />
      <max value="1" />
      <binding>
        <strength value="extensible" />
        <description value="This value set defines an example set of codes of service-types." />
        <valueSet value="http://hl7.org/fhir/ValueSet/service-type" />
      </binding>
    </element>
    <element id="Extension.extension:serviceType.url">
      <path value="Extension.extension.url" />
      <fixedUri value="serviceType" />
    </element>
    <element id="Extension.extension:serviceType.value[x]">
      <path value="Extension.extension.value[x]" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="Extension.extension:serviceType.value[x].coding">
      <path value="Extension.extension.value[x].coding" />
      <binding>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/service-type" />
      </binding>
    </element>
    <element id="Extension.extension:duration">
      <path value="Extension.extension" />
      <sliceName value="duration" />
      <short value="Duration of the service | durée du service" />
      <definition value="Duration of the service that has to be performed during the appointment | Durée du service à assurer durant le RDV" />
      <max value="1" />
    </element>
    <element id="Extension.extension:duration.url">
      <path value="Extension.extension.url" />
      <fixedUri value="duration" />
    </element>
    <element id="Extension.extension:duration.value[x]">
      <path value="Extension.extension.value[x]" />
      <type>
        <code value="Duration" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://interopsante.org/fhir/StructureDefinition/FrServiceTypeDuration" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>