<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="eAfspraak-Appointment-OnlineEditable" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment-OnlineEditable" />
  <version value="2.0.0" />
  <name value="eAfspraakAppointmentOnlineEditable" />
  <title value="eAfspraak Appointment OnlineEditable" />
  <status value="active" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="email" />
      <value value="info@nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Indicator targeted at the patiënt, that determines whether or not the appointment may be updated/cancelled online. If the appointment may be updated online, its value should be &quot;yes&quot; (true). If the appointment should not be updated/cancelled online and can only be updated through other means like calling, the indicator should be set to &quot;no&quot; (false). The default value if omitted is &quot;yes&quot; (true).&#xD;&#xA; &#xD;&#xA;If an appointment may be updated/changed by the patient online (OnlineEditableIndicator = &quot;yes&quot;) then it is possible to impose a time constraint for organizational reasons, for example until 24 hourse before the appointment is to take occur. This concept should contain the last point in time that updating/cancelling is still accepted." />
  <copyright value="CC0" />
  <fhirVersion value="3.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="Appointment" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <snapshot />
  <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:Indicator">
      <path value="Extension.extension" />
      <sliceName value="Indicator" />
      <short value="Indicator targeted at the patiënt, that determines whether or not the appointment may be updated/cancelled online." />
      <definition value="Indicator targeted at the patiënt, that determines whether or not the appointment may be updated/cancelled online. If the appointment may be updated online, its value should be &quot;yes&quot; (true). If the appointment should not be updated/cancelled online and can only be updated through other means like calling, the indicator should be set to &quot;no&quot; (false). The default value if omitted is &quot;yes&quot; (true)." />
      <comment value="It is conceivable for some settings that appointments can only be updated/cancelled after consulting with the care provider, for example when there is a high risk for health avoidance and updating/cancelling should be too easy." />
      <max value="1" />
    </element>
    <element id="Extension.extension:Indicator.url">
      <path value="Extension.extension.url" />
      <fixedUri value="Indicator" />
    </element>
    <element id="Extension.extension:Indicator.value[x]:valueBoolean">
      <path value="Extension.extension.valueBoolean" />
      <sliceName value="valueBoolean" />
      <type>
        <code value="boolean" />
      </type>
    </element>
    <element id="Extension.extension:OnlineEditableUntil">
      <path value="Extension.extension" />
      <sliceName value="OnlineEditableUntil" />
      <short value="This concept should contain the last point in time that updating/cancelling is still accepted." />
      <definition value="If an appointment may be updated/changed by the patient online (OnlineEditableIndicator = &quot;yes&quot;) then it is possible to impose a time constraint for organizational reasons, for example until 24 hourse before the appointment is to take occur. This concept should contain the last point in time that updating/cancelling is still accepted." />
      <max value="1" />
    </element>
    <element id="Extension.extension:OnlineEditableUntil.url">
      <path value="Extension.extension.url" />
      <fixedUri value="OnlineEditableUntil" />
    </element>
    <element id="Extension.extension:OnlineEditableUntil.value[x]:valueDateTime">
      <path value="Extension.extension.valueDateTime" />
      <sliceName value="valueDateTime" />
      <type>
        <code value="dateTime" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://nictiz.nl/fhir/StructureDefinition/eAfspraak-Appointment-OnlineEditable" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>