<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="POWER2DM-Timing-repeat-time" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2017-03-14T11:39:30.425+00:00" />
  </meta>
  <url value="http://www.power2dm.eu/pds/StructureDefinition/POWER2DM-Timing-repeat-time" />
  <version value="0.1" />
  <name value="POWER2DM-Timing-repeat-time" />
  <status value="draft" />
  <date value="2016-11-30T00:00:00+03:00" />
  <description value="Base StructureDefinition for Extension Type " />
  <kind value="datatype" />
  <constrainedType value="Extension" />
  <abstract value="false" />
  <contextType value="datatype" />
  <context value="Timing.repeat" />
  <base value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <differential>
    <element>
      <path value="Extension" />
      <short value="POWE2DM Extention for Repeat element to schedule repeated events " />
      <definition value="Allows scheduling by specifying day of weeks and times of day &#xD;&#xA;e.g. Run at Monday, Wedenesday after breakfast&#xD;&#xA;e.g. Monitor your blood glucose everyday 1 hour after breakfast, 1 hour after lunch and 1 hour before sleeping" />
    </element>
    <element>
      <path value="Extension.extension" />
      <slicing>
        <discriminator value="url" />
        <rules value="open" />
      </slicing>
    </element>
    <element>
      <path value="Extension.extension" />
      <name value="timeOfDay" />
      <short value="Specifies the timing of event within a day" />
      <definition value="Either use code to specify the event time in relation to a life event (e.g. after breakfast) or exact time" />
    </element>
    <element>
      <path value="Extension.extension.extension" />
      <slicing>
        <discriminator value="url" />
        <rules value="open" />
      </slicing>
    </element>
    <element>
      <path value="Extension.extension.extension" />
      <name value="when" />
      <min value="1" />
      <max value="1" />
    </element>
    <element>
      <path value="Extension.extension.extension.url" />
      <fixedUri value="when" />
    </element>
    <element>
      <path value="Extension.extension.extension.value[x]" />
      <min value="1" />
      <type>
        <code value="time" />
      </type>
      <type>
        <code value="code" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <binding>
        <strength value="required" />
        <description value="Life event" />
        <valueSetUri value="https://www.hl7.org/fhir/valueset-event-timing.html" />
      </binding>
    </element>
    <element>
      <path value="Extension.extension.extension" />
      <name value="offset" />
      <max value="1" />
    </element>
    <element>
      <path value="Extension.extension.extension.url" />
      <fixedUri value="offset" />
    </element>
    <element>
      <path value="Extension.extension.extension.valueInteger" />
      <type>
        <code value="integer" />
      </type>
    </element>
    <element>
      <path value="Extension.extension.url" />
      <fixedUri value="timeOfDay" />
    </element>
    <element>
      <path value="Extension.extension.value[x]" />
      <max value="0" />
      <type>
        <code value="boolean" />
      </type>
      <type>
        <code value="integer" />
      </type>
      <type>
        <code value="decimal" />
      </type>
      <type>
        <code value="base64Binary" />
      </type>
      <type>
        <code value="instant" />
      </type>
      <type>
        <code value="string" />
      </type>
      <type>
        <code value="uri" />
      </type>
      <type>
        <code value="date" />
      </type>
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="time" />
      </type>
      <type>
        <code value="code" />
      </type>
      <type>
        <code value="oid" />
      </type>
      <type>
        <code value="id" />
      </type>
      <type>
        <code value="unsignedInt" />
      </type>
      <type>
        <code value="positiveInt" />
      </type>
      <type>
        <code value="markdown" />
      </type>
      <type>
        <code value="Annotation" />
      </type>
      <type>
        <code value="Attachment" />
      </type>
      <type>
        <code value="Identifier" />
      </type>
      <type>
        <code value="CodeableConcept" />
      </type>
      <type>
        <code value="Coding" />
      </type>
      <type>
        <code value="Quantity" />
      </type>
      <type>
        <code value="Range" />
      </type>
      <type>
        <code value="Period" />
      </type>
      <type>
        <code value="Ratio" />
      </type>
      <type>
        <code value="SampledData" />
      </type>
      <type>
        <code value="Signature" />
      </type>
      <type>
        <code value="HumanName" />
      </type>
      <type>
        <code value="Address" />
      </type>
      <type>
        <code value="ContactPoint" />
      </type>
      <type>
        <code value="Timing" />
      </type>
      <type>
        <code value="Reference" />
      </type>
    </element>
    <element>
      <path value="Extension.extension" />
      <name value="dayOfWeek" />
    </element>
    <element>
      <path value="Extension.extension.url" />
      <fixedUri value="dayOfWeek" />
    </element>
    <element>
      <path value="Extension.extension.valueCode" />
      <short value="mon | tue | wed | thu | fri | sat | sun" />
      <min value="1" />
      <type>
        <code value="code" />
      </type>
      <binding>
        <strength value="required" />
        <description value="Days of week" />
        <valueSetUri value=" http://hl7.org/fhir/days-of-week" />
      </binding>
    </element>
    <element>
      <path value="Extension.url" />
      <fixedUri value="http://www.power2dm.eu/pds/StructureDefinition/POWER2DM-Timing-repeat-time" />
    </element>
    <element>
      <path value="Extension.value[x]" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>