<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="flag-onset" />
  <url value="http://hl7.org/fhir/StructureDefinition/flag-onset" />
  <version value="4.0" />
  <name value="flag-onset" />
  <title value="Flag Onset" />
  <status value="draft" />
  <publisher value="Orion Health" />
  <description value="This extension enhances the Flag resources to provide an onset for a Flag" />
  <purpose value="Unlike the other problem related resources, Flags do not contain an onset field. This extension enhances the Flag resource to provide the onset as either an Age, a Date or a String" />
  <fhirVersion value="4.0" />
  <kind value="complex-type" />
  <abstract value="false" />
  <type value="Extension" />
  <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/flag-onset" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <short value="This extension enhances the Flag resources to provide an onset for a Flag" />
      <definition value="Set the onset for this Flag" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Age" />
      </type>
      <type>
        <code value="dateTime" />
      </type>
      <type>
        <code value="string" />
      </type>
    </element>
  </differential>
</StructureDefinition>