<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="http://electronichealth.se/fhir/StructureDefinition/NLLNextDateDispenseInterval" />
  <version value="1.0.0" />
  <name value="NLLNextDateDispenseInterval" />
  <status value="active" />
  <date value="2023-11-23" />
  <publisher value="Swedish eHealth Agency" />
  <fhirVersion value="4.0.1" />
  <kind value="complex-type" />
  <abstract value="false" />
  <context>
    <type value="element" />
    <expression value="MedicationRequest.dispenseRequest" />
  </context>
  <type value="Extension" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Extension" />
  <derivation value="constraint" />
  <differential>
    <element id="Extension">
      <path value="Extension" />
      <short value="Next date despense interval" />
      <definition value="Calculated by the Swedish e-health Agency. Not used for dose dispensed prescriptions. The earliest date for the next dispense for prescriptions with dispense interval. &#xD;&#xA;When the date cannot be calculated, the dispense interval is checked by the pharmacist." />
      <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
      <mapping>
        <identity value="EHM" />
        <map value="Datum för nästa uttag om expedieringsintervall" />
      </mapping>
    </element>
    <element id="Extension.url">
      <path value="Extension.url" />
      <fixedUri value="http://electronichealth.se/fhir/StructureDefinition/NLLNextDateDispenseInterval" />
    </element>
    <element id="Extension.value[x]">
      <path value="Extension.value[x]" />
      <short value="Next date despense interval" />
      <definition value="Calculated by the Swedish e-health Agency. Not used for dose dispensed prescriptions." />
      <type>
        <code value="date" />
      </type>
    </element>
  </differential>
</StructureDefinition>