<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="medication-dosageTimingText" />
  <url value="http://hl7.org/fhir/StructureDefinition/medication-dosageTimingText" />
  <version value="4.0" />
  <name value="medication-dosageTimingText" />
  <title value="Dosage Timing Text" />
  <status value="draft" />
  <publisher value="Orion Health" />
  <description value="A textual representation of the timing of the dosage collection for this medication" />
  <purpose value="This extension is a representation of the timing of the dosage collection for this medication, for example 'three times a day' or 'every four hours'. It is used only when the text can accurately reflect the entire dosage collection. The extension is not used if the prescribed dosage instructions are different for each dosage within the collection, such as a variable dose prescription" />
  <fhirVersion value="4.0" />
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Extension" />
  <snapshot>
    <element id="Extension">
      <path value="Extension" />
      <max value="1" />
      <base>
        <path value="Extension" />
        <max value="1" />
      </base>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <base>
        <path value="Extension.url" />
      </base>
      <fixedUri value="http://hl7.org/fhir/StructureDefinition/medication-dosageTimingText" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <short value="A textual representation of the timing of the dosage collection for this medication" />
      <definition value="Set the text for the timing of the dosage collection for this medication" />
      <comment value="Note that FHIR strings SHALL NOT exceed 1MB in size" />
      <min value="1" />
      <max value="1" />
      <base>
        <path value="Extension.value[x]" />
        <min value="1" />
        <max value="1" />
      </base>
      <type>
        <code value="string" />
      </type>
      <condition value="ele-1" />
      <constraint>
        <key value="ele-1" />
        <severity value="error" />
        <human value="All FHIR elements must have a @value or children" />
        <expression value="hasValue() or (children().count() &gt; id.count())" />
        <xpath value="@value|f:*|h:div" />
        <source value="http://hl7.org/fhir/StructureDefinition/Element" />
      </constraint>
      <mapping>
        <identity value="rim" />
        <map value="n/a" />
      </mapping>
    </element>
  </snapshot>
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <max value="1" />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://hl7.org/fhir/StructureDefinition/medication-dosageTimingText" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <short value="A textual representation of the timing of the dosage collection for this medication" />
      <definition value="Set the text for the timing of the dosage collection for this medication" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
  </differential>
</StructureDefinition>