<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="a71fe1ba-eca6-4123-ba8c-526c0df2cad2" />
  <meta>
    <versionId value="2" />
    <lastUpdated value="2024-12-17T15:52:05.0681063+00:00" />
  </meta>
  <url value="http://electronichealth.se/fhir/StructureDefinition/NLLMultiDoseDispensingBasis" />
  <version value="1.2.0" />
  <name value="NLLMultiDoseDispensingBasis" />
  <status value="active" />
  <date value="2024-12-17" />
  <publisher value="Swedish eHealth Agency" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="rim" />
    <uri value="http://hl7.org/v3" />
    <name value="RIM Mapping" />
  </mapping>
  <mapping>
    <identity value="w5" />
    <uri value="http://hl7.org/fhir/fivews" />
    <name value="FiveWs Pattern Mapping" />
  </mapping>
  <mapping>
    <identity value="EHM" />
    <name value="E-hälsomyndigheten concept" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="Basic" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Basic" />
  <derivation value="constraint" />
  <differential>
    <element id="Basic">
      <path value="Basic" />
      <short value="Mulit-dose dispensing basis" />
      <definition value="The Multi-dose dispensing basis (sv dosunderlag) serves as a basis for descisions in connection with production of multi-dose dispensed medications for a patient. &lt;br&gt;&#xD;&#xA;Used by dose production pharmacies to check if any changes has been made to the patients medication list that need to be checked before the production of the dose packaging. &lt;br&gt;&#xD;&#xA;For health care staff, ordinary pharmacies and for the patient herself, the multi-dose dispensing basis provides information about which pharmacy is responsible for the dose production." />
    </element>
    <element id="Basic.id">
      <path value="Basic.id" />
      <comment value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation.&#xD;&#xA;This id is identified by the URI http://electronichealth.se/identifier/nllmultidosedispbasisid in documentation and external systems." />
      <mustSupport value="true" />
    </element>
    <element id="Basic.meta">
      <path value="Basic.meta" />
      <mustSupport value="true" />
    </element>
    <element id="Basic.meta.security">
      <path value="Basic.meta.security" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://ehalsomyndigheten.se/fhir/ValueSet/security-labels" />
      </binding>
    </element>
    <element id="Basic.meta.security.system">
      <path value="Basic.meta.security.system" />
      <mustSupport value="true" />
    </element>
    <element id="Basic.meta.security.version">
      <path value="Basic.meta.security.version" />
      <mustSupport value="true" />
    </element>
    <element id="Basic.meta.security.code">
      <path value="Basic.meta.security.code" />
      <mustSupport value="true" />
    </element>
    <element id="Basic.extension:nllStatus">
      <path value="Basic.extension" />
      <sliceName value="nllStatus" />
      <short value="Status of the resource" />
      <definition value="Status of the multi-dose dispensing resource (sv: dosunderlag)." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLStatus" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://ehalsomyndigheten.se/fhir/ValueSet/multi-dose-disp-basis-status" />
      </binding>
      <mapping>
        <identity value="EHM" />
        <map value="Dosunderlagsstatus" />
      </mapping>
    </element>
    <element id="Basic.extension:nllProducingPharmacy">
      <path value="Basic.extension" />
      <sliceName value="nllProducingPharmacy" />
      <short value="Producing pharmacy (sv: dosproducent)" />
      <definition value="Defines the pharmacy which produces multi dose units for the patient." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLPharmacyReference" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Dosproducent" />
      </mapping>
    </element>
    <element id="Basic.extension:nllProducingPharmacy.value[x]">
      <path value="Basic.extension.value[x]" />
      <definition value="Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).." />
    </element>
    <element id="Basic.extension:nllUrgentProduction">
      <path value="Basic.extension" />
      <sliceName value="nllUrgentProduction" />
      <short value="Indicates if the multi-dose dispense production should be urgently considered" />
      <definition value="Indicates if the multi-dose unit production should be urgently considered for this patient. The value is calculated based on changes in the medication request(s). (sv: akut förändring). In historical versions, the element is always omitted." />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLUrgentProduction" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Akut förändring" />
      </mapping>
    </element>
    <element id="Basic.extension:nllLastUpdated">
      <path value="Basic.extension" />
      <sliceName value="nllLastUpdated" />
      <short value="The last time the multi-dose dispensing info was updated for the patient" />
      <definition value="The last time the multi-dose dispensing info was updated for the patient" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLLastUpdated" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Senaste statusändring" />
      </mapping>
    </element>
    <element id="Basic.code">
      <path value="Basic.code" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <description value="Codes for identifying types of Basic" />
        <valueSet value="http://ehalsomyndigheten.se/fhir/ValueSet/basic-resource-types" />
      </binding>
      <mapping>
        <identity value="EHM" />
        <map value="Resurstyp Dosunderlag" />
      </mapping>
    </element>
    <element id="Basic.code.coding">
      <path value="Basic.code.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Basic.code.coding.system">
      <path value="Basic.code.coding.system" />
      <fixedUri value="http://ehalsomyndigheten.se/fhir/CodeSystem/basic-resource-types" />
      <mustSupport value="true" />
    </element>
    <element id="Basic.code.coding.version">
      <path value="Basic.code.coding.version" />
      <mustSupport value="true" />
    </element>
    <element id="Basic.code.coding.code">
      <path value="Basic.code.coding.code" />
      <min value="1" />
      <fixedCode value="multidosedispbasis" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Resurstyp Dosunderlag" />
      </mapping>
    </element>
    <element id="Basic.subject">
      <path value="Basic.subject" />
      <short value="A patient receiving multi dose units." />
      <definition value="The subject of this resource is a patient using multi-dose medication dispensing (sv: dospatient)." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://electronichealth.se/fhir/StructureDefinition/NLLPatient" />
        <aggregation value="referenced" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Patientreferens" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>