<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://www.adusoft.fr/xips/StructureDefinition/fr-service-type-duration" />
  <version value="4.0.0" />
  <name value="FrServiceTypeDuration" />
  <title value="fr-isr4-service-type-duration-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="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.0" />
  <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.value[x]:valueCodeableConcept">
      <path value="Extension.extension.value[x]" />
      <sliceName value="valueCodeableConcept" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </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.value[x]:valueDuration">
      <path value="Extension.extension.value[x]" />
      <sliceName value="valueDuration" />
      <type>
        <code value="Duration" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedString value="http://www.adusoft.fr/xips/StructureDefinition/fr-service-type-duration" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>