<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ext-Dosage-AsNeededFor" />
  <url value="http://nictiz.nl/fhir/StructureDefinition/ext-Dosage-AsNeededFor" />
  <version value="2.0.0-rc.7" />
  <name value="ExtDosageAsNeededFor" />
  <title value="ext Dosage AsNeededFor" />
  <status value="active" />
  <publisher value="Nictiz" />
  <contact>
    <name value="Nictiz" />
    <telecom>
      <system value="url" />
      <value value="https://www.nictiz.nl" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="Pre-adopt of the `Dosage.asNeededFor` concept from the FHIR R5 Dosage data type. In R4, `Dosage.asNeededCodeableConcept` has a maximum cardinality of 1. Additional 'asNeeded' data can be represented by adding this extension to Dosage." />
  <copyright value="Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise." />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="Dosage" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <definition value="Pre-adopt from FHIR R5 of the `Dosage.asNeededFor` element." />
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://nictiz.nl/fhir/StructureDefinition/ext-Dosage-AsNeededFor" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <definition value="Indicates whether the Medication is only taken based on a precondition for taking the Medication (CodeableConcept)." />
      <comment value="If only one 'asNeeded' concept is exchanged within a Dosage, use `Dosage.asNeeded[x]`. This extension is only used when multiple 'asNeeded' concepts are to be exchanged." />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
  </differential>
</StructureDefinition>