<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="fr-appointment-operator" />
  <url value="http://interopsante.org/fhir/StructureDefinition/FrAppointmentOperator" />
  <version value="1.0.1" />
  <name value="FrAppointmentOperator" />
  <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 extension adds the element appointmentOperator to the Appointment resource (operator of creation/update/cancel of the appointment | Cette extension ajoute l'élément appointmentOperator à la ressource Appointment (opérateur de création/modification/annulation du RDV)" />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Appointment" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Optional Extensions Element" />
      <definition value="Optional Extension Element - found in all resources." />
      <constraint>
        <key value="ext-1" />
        <severity value="error" />
        <human value="Must have either extensions or value[x], not both" />
        <expression value="extension.exists() != value.exists()" />
        <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
      </constraint>
    </element>
    <element id="Extension.value[x]:valueReference">
      <path value="Extension.value[x]" />
      <sliceName value="valueReference" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://interopsante.org/fhir/StructureDefinition/FrOrganization" />
        <targetProfile value="http://interopsante.org/fhir/StructureDefinition/FrPractitioner" />
        <targetProfile value="http://interopsante.org/fhir/StructureDefinition/FrPatient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
      </type>
    </element>
  </differential>
</StructureDefinition>