<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="timing-daysOfCycle" />
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir" />
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="1" />
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/timing-daysOfCycle" />
  <name value="daysOfCycle" />
  <title value="Days of Cycle" />
  <status value="draft" />
  <publisher value="Health Level Seven, Inc. - MnM WG" />
  <contact>
    <telecom>
      <system value="url" />
      <value value="http://hl7.org/special/committees/MnM" />
    </telecom>
  </contact>
  <description value="Days of a possibly repeating cycle on which the action is to be performed. The cycle is defined by the first action with a timing element that is a parent of the daysOfCycle." />
  <fhirVersion value="3.0.0" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <kind value="complex-type" />
  <abstract value="false" />
  <contextType value="resource" />
  <context value="PlanDefinition.action" />
  <context value="RequestGroup.action" />
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Days on which the action should be performed" />
      <definition value="Days of a possibly repeating cycle on which the action is to be performed. The cycle is defined by the first action with a timing element that is a parent of the daysOfCycle." />
      <comment value="The cycle is defined by a parent/containing action, and the daysOfCycle extension is used on individual actions within that cycle to indicate the days of the cycle on which the actions should be performed." />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Extension.extension:day">
      <path value="Extension.extension" />
      <sliceName value="day" />
      <short value="What day to perform" />
      <definition value="An integer that specifies a day on which the action is to be performed (starting at one).  In most cases, the first day of the first cycle will be day 1." />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="Extension" />
      </type>
    </element>
    <element id="Extension.extension:day.extension">
      <path value="Extension.extension.extension" />
      <max value="0" />
    </element>
    <element id="Extension.extension:day.url">
      <path value="Extension.extension.url" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="day" />
    </element>
    <element id="Extension.extension:day.valueInteger">
      <path value="Extension.extension.valueInteger" />
      <type>
        <code value="integer" />
      </type>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <type>
        <code value="uri" />
      </type>
      <fixedUri value="http://hl7.org/fhir/StructureDefinition/timing-daysOfCycle" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <min value="0" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>