<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="dcae1550-a48a-4d44-a431-73c47c9dd075" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2025-07-04T16:22:45.5609672+00:00" />
  </meta>
  <url value="http://electronichealth.se/fhir/StructureDefinition/NLLMedicationRequest" />
  <version value="1.5.0" />
  <name value="NLLMedicationRequest" />
  <status value="active" />
  <date value="2025-07-04" />
  <publisher value="Swedish eHealth Agency" />
  <fhirVersion value="4.0.1" />
  <mapping>
    <identity value="EHM" />
    <name value="E-hälsomyndigheten concept" />
  </mapping>
  <kind value="resource" />
  <abstract value="false" />
  <type value="MedicationRequest" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/MedicationRequest" />
  <derivation value="constraint" />
  <differential>
    <element id="MedicationRequest">
      <path value="MedicationRequest" />
      <short value="A prescription for a patient" />
      <definition value="MedicationRequest in the National Swedish Medication List is used for prescriptions for a patient.&#xD;&#xA;A prescription can be made for either a medicine package or for a reimbursed consumable." />
    </element>
    <element id="MedicationRequest.id">
      <path value="MedicationRequest.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/nllmedicationrequestid in documentation and external systems." />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Förskrivnings-id" />
      </mapping>
    </element>
    <element id="MedicationRequest.meta">
      <path value="MedicationRequest.meta" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.meta.versionId">
      <path value="MedicationRequest.meta.versionId" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Förskrivningsversion" />
      </mapping>
    </element>
    <element id="MedicationRequest.meta.security">
      <path value="MedicationRequest.meta.security" />
      <mustSupport value="true" />
      <binding>
        <strength value="extensible" />
        <valueSet value="http://ehalsomyndigheten.se/fhir/ValueSet/security-labels" />
      </binding>
    </element>
    <element id="MedicationRequest.meta.security.system">
      <path value="MedicationRequest.meta.security.system" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.meta.security.version">
      <path value="MedicationRequest.meta.security.version" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.meta.security.code">
      <path value="MedicationRequest.meta.security.code" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.extension">
      <path value="MedicationRequest.extension" />
      <min value="2" />
    </element>
    <element id="MedicationRequest.extension:nllPatientTreatmentReason">
      <path value="MedicationRequest.extension" />
      <sliceName value="nllPatientTreatmentReason" />
      <short value="The treatment reason described for the patient" />
      <definition value="The reason for the treatment described in a way that is understood by the patient (behandlingsändamål). &#xD;&#xA;A text can be selected from &quot;Nationell källa för ordinationsorsak&quot; (NKOO). It is also possible to enter free text. &#xD;&#xA;NKOO is a code system that is defined by the Swedish National Board of Health and Welfare (Socialstyrelsen). The code system consists of SnomedCT codes for reasons (behandlingsorsak). Each medical product has a selection of valid SnomedCT reason codes, and in connection with the codes are the available patient reasons. The corresponding patient text could be entered here in &quot;nllPatientTreatmentReason&quot;, and the SnomedCT reason code (behandlingsorsak) should be entered in &quot;reasonCode&quot;." />
      <comment value="Maximum string length: 256" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLPatientTreatmentReason" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Behandlingsändamål" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:nllPrescriptionChain">
      <path value="MedicationRequest.extension" />
      <sliceName value="nllPrescriptionChain" />
      <short value="Prescription chain id" />
      <definition value="Id used to identify all prescriptions in one prescription chain.&#xD;&#xA;A prescription chain is a set of prescriptions that are linked together in chronological order (The attribute priorPrescription is used to find the previos prescription.)&#xD;&#xA;A prescription chain is created ie when a prescription is renewed or replaced. The purpose is to be able to provide a grouping of related prescriptions.&#xD;&#xA;If a Prescription chain id is not provided in a POST of a MedicationRequest, a new prescription chain id is set by the Swedish eHealth Agency when the prescription is created. Prescription chain id is available on all prescriptions." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionChain" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Förskrivningskedje-id" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:nllPrescriptionFormat">
      <path value="MedicationRequest.extension" />
      <sliceName value="nllPrescriptionFormat" />
      <short value="Current prescription format" />
      <definition value="Current prescription format can be either &quot;electronic&quot; (Elektroniskt) or &quot;paper&quot; (Papper). If the prescription has been printed out on paper, i.e. the format is &quot;paper&quot; , then the patient needs to bring the print-out with him to the pharmacy to be able to get a dispense." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionFormat" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://ehalsomyndigheten.se/fhir/ValueSet/prescription-formats" />
      </binding>
      <mapping>
        <identity value="EHM" />
        <map value="Aktuellt format" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:nllTreatmentDates">
      <path value="MedicationRequest.extension" />
      <sliceName value="nllTreatmentDates" />
      <definition value="Treatment dates as defined by the Swedish law &quot;Lag (2018:1212) om nationell läkemedelslista&quot;, chapter 3, 8§, section 5. &#xD;&#xA;The latest date when the medical treatment should be either reviewed or ended." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLTreatmentDates" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.extension:nllTreatmentDates.extension:treatmentReviewDate">
      <path value="MedicationRequest.extension.extension" />
      <sliceName value="treatmentReviewDate" />
      <short value="Treatment review date" />
      <definition value="The latest date at which a review of the ongoing treatment must be made." />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Senaste datum för uppföljning av behandling" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:nllTreatmentDates.extension:treatmentEndDate">
      <path value="MedicationRequest.extension.extension" />
      <sliceName value="treatmentEndDate" />
      <short value="Treatment end date" />
      <definition value="The latest date at which the prescriber orders that the treatment must end." />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Senaste datum för avslut av behandling" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:nllRegistrationBasis">
      <path value="MedicationRequest.extension" />
      <sliceName value="nllRegistrationBasis" />
      <short value="Format when the prescription was registered" />
      <definition value="The format of the basis for the registration of the prescription. A prescriber can only register prescriptions in electronic format in the Swedish National Medication List. A pharmacy can also register a prescription based on  paper prescription, or based on a phone call from a prescriber.&#xD;&#xA;This value is entered when creating the prescription, and is never updated." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLRegistrationBasis" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://ehalsomyndigheten.se/fhir/ValueSet/registration-basis" />
      </binding>
      <mapping>
        <identity value="EHM" />
        <map value="Typ av registreringsunderlag" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:nllUsageDates">
      <path value="MedicationRequest.extension" />
      <sliceName value="nllUsageDates" />
      <short value="Usage dates" />
      <definition value="Dates that are used for scheduling the use of the prescribed article." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLUsageDates" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.extension:nllUsageDates.extension:usageStartDate">
      <path value="MedicationRequest.extension.extension" />
      <sliceName value="usageStartDate" />
      <short value="When the patient should start using the medication." />
      <definition value="The date when the patient should start administering the medication according to the prescription." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.extension:nllUsageDates.extension:usageEndDate">
      <path value="MedicationRequest.extension.extension" />
      <sliceName value="usageEndDate" />
      <short value="When the patient should stop using the medication." />
      <definition value="The date when the patient should stop administering the medication according to current prescription." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.extension:nllUsageDates.extension:scheduleStartDate">
      <path value="MedicationRequest.extension.extension" />
      <sliceName value="scheduleStartDate" />
      <definition value="Set by the Swedish eHealth Agency.&#xD;&#xA;Date used in renewed prescriptions whith repeating dosages for calculating the current day in the schedule. Used for repeating dosages with &quot;time of day&quot; or &quot;when&quot; (sv tillfällesdosering) and a UsageStartDate (första doseringsdag)." />
      <comment value="Schedule Start Date is a mechanism for calculating the current day in the schedule when a prescription with a repeating schedule has been renewed once or several times. Schedule Start Date is the original Usage Start Date form the first prescription when the schedule was defined. &#xD;&#xA;Example: The first prescription had a Usage Start Date which was 2020-08-23 and the schedule repeats every second day (&quot;Take every second day&quot;). Then the Schedule Start Date will be set to 2020-08-23 and togehter with the instructions of the schedule it is possible calculate which day of the schedule any given date will correspond to, ie a day when the patient should take the medication or a day when no medication should be administered." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.extension:nllCompletePrescriptionChoice">
      <path value="MedicationRequest.extension" />
      <sliceName value="nllCompletePrescriptionChoice" />
      <short value="Prescription completion descision" />
      <definition value="Only used for input.&#xD;&#xA;When 12% or less of the total quantity of the prescribed medication is left, the prescription will automatically be set to status &quot;Completed&quot;. &#xD;&#xA;A pharmacist can make a descision to overrule the automatic rules by either choosing to set the prescription status to &quot;Completed&quot; or to keep the status &quot;Active&quot;." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLCompletePrescriptionChoice" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://ehalsomyndigheten.se/fhir/ValueSet/complete-prescription-choices" />
      </binding>
      <mapping>
        <identity value="EHM" />
        <map value="Beslut slutexpediering" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:nllOrdinationsId">
      <path value="MedicationRequest.extension" />
      <sliceName value="nllOrdinationsId" />
      <short value="OrdinationsId from OR (Receptdepå human)" />
      <definition value="Calculated by the Swedish eHealth Agency. Not used for input.&#xD;&#xA;Legacy id used for identifying prescriptions which is used in the OR (Receptdepå human) API.&#xD;&#xA;In OR this corresponds to ordinationsId, which is unique for each version of the prescription.&#xD;&#xA;This attribute will be removed after the end of the transition period." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLOrdinationsId" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="OR-OrdinationsId" />
      </mapping>
    </element>
    <element id="MedicationRequest.extension:nllTidigareOrdinationsid">
      <path value="MedicationRequest.extension" />
      <sliceName value="nllTidigareOrdinationsid" />
      <short value="Tidigare OrdinationsId OR (Receptdepå human)" />
      <definition value="Calculated by the Swedish eHealth Agency. Not used for input.&#xD;&#xA;Legacy id used for identifying prescriptions which is used in the OR (Receptdepå human) API.&#xD;&#xA;&quot;Tidigare OrdinationsId&quot; is used for identifying a prior prescription originally created in OR (Receptdepå Human) .&#xD;&#xA;In OR this corresponds to tidigareOrdinationsId.&#xD;&#xA;This attribute will be removed after the end of the transition period." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLTidigareOrdinationsid" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Referens till tidigare OR-ordinations-id" />
      </mapping>
    </element>
    <element id="MedicationRequest.identifier">
      <path value="MedicationRequest.identifier" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.identifier:NEF">
      <path value="MedicationRequest.identifier" />
      <sliceName value="NEF" />
      <short value="Legacy ids used in NEF and OR" />
      <definition value="Ids used for identifying prescriptions originally created in NEF or OR.&#xD;&#xA;In OR this corresponds to originalOrdinationsId, which is the same as PrescriptionSetId in NEF. In OR a originalOrdinationsId/PrescriptionSetId always correspons to one unique prescription.&#xD;&#xA;In NEF the combination of PrescriptionSetId-PrescriptionItemId corresponds to one unique prescription.&#xD;&#xA;PrescriptionItemId is made up from RowId-ProductRowId.&#xD;&#xA;originalOrdinationsId/PrescriptionSetId is in the form of a UUID.&#xD;&#xA;RowId and ProductRowId are counters.&#xD;&#xA;These attributes will be removed after the end of the transition period." />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.identifier:NEF.extension:NEFIdParts">
      <path value="MedicationRequest.identifier.extension" />
      <sliceName value="NEFIdParts" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLNEFId" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.identifier:NEF.extension:NEFIdParts.extension:PrescriptionSetId">
      <path value="MedicationRequest.identifier.extension.extension" />
      <sliceName value="PrescriptionSetId" />
      <definition value="NEF: PrescriptionSetId, OR: Originalordinationsid is a legacy identifier used by NEF/PIRR and OR. Every prescription created by systems connected before Swedish National Medication List will have a PrescriptionSetId/orignalordinationsid. However, it does not allways identify a unique prescription. To search for a unique prescriptions the RowId/radnummer and ProductRowId/produktradnummer may be needed as well." />
      <comment value="Maximum string length: 36" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Originalordinations-id" />
      </mapping>
    </element>
    <element id="MedicationRequest.identifier:NEF.extension:NEFIdParts.extension:PrescriptionSetId.value[x]">
      <path value="MedicationRequest.identifier.extension.extension.value[x]" />
      <maxLength value="36" />
    </element>
    <element id="MedicationRequest.identifier:NEF.extension:NEFIdParts.extension:RowId">
      <path value="MedicationRequest.identifier.extension.extension" />
      <sliceName value="RowId" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Radnummer" />
      </mapping>
    </element>
    <element id="MedicationRequest.identifier:NEF.extension:NEFIdParts.extension:ProductRowId">
      <path value="MedicationRequest.identifier.extension.extension" />
      <sliceName value="ProductRowId" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Produktradnummer" />
      </mapping>
    </element>
    <element id="MedicationRequest.identifier:NEF.system">
      <path value="MedicationRequest.identifier.system" />
      <min value="1" />
      <fixedUri value="http://electronichealth.se/fhir/NamingSystem/NEFId" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.identifier:NEF.value">
      <path value="MedicationRequest.identifier.value" />
      <short value="The complete NEFid" />
      <definition value="Calculated by the Swedish eHealth Agency.&#xD;&#xA;The complete NEFid for the specific prescribed article, i.e. a combination of PrescriptionSetId and PrescriptionItemId where applicable. &#xD;&#xA;PrescriptionItemId is made up from RowId-ProductRowId.&#xD;&#xA;In OR only PrescriptionSetId/originalOrdinationsId is used.&#xD;&#xA;originalOrdinationsId/PrescriptionSetId is in the form of a UUID.&#xD;&#xA;RowId and ProductRowId are counters.&#xD;&#xA;The format is &quot;PrescriptionSetId/Originalordinationsid - PrescriptionItemid/RadnummerNEF&quot;,  i.e. UUID-x-y. Example 123e4567-e89b-12d3-a456-426655440000-2-1, where the ending &quot;2-1&quot; are RowId-ProductRowId." />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Kombinerat NEF-id" />
      </mapping>
    </element>
    <element id="MedicationRequest.status">
      <path value="MedicationRequest.status" />
      <short value="active | on-hold | cancelled | completed | stopped" />
      <definition value="The status of the prescription. The following statuses will be used: active, cancelled, on-hold (suspended), completed and stopped. The following statuses will not be used: entered-in-error, draft and unknown." />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://electronichealth.se/fhir/ValueSet/medication-request-status" />
      </binding>
      <mapping>
        <identity value="EHM" />
        <map value="Förskrivningsstatus" />
      </mapping>
    </element>
    <element id="MedicationRequest.statusReason">
      <path value="MedicationRequest.statusReason" />
      <definition value="Set by the Swedish E-health Agency.&#xD;&#xA;Reason for the current status of the prescription." />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://ehalsomyndigheten.se/fhir/ValueSet/medication-request-status-reasons" />
      </binding>
      <mapping>
        <identity value="EHM" />
        <map value="Förskrivningsstatusorsak" />
      </mapping>
    </element>
    <element id="MedicationRequest.statusReason.coding">
      <path value="MedicationRequest.statusReason.coding" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.statusReason.coding.system">
      <path value="MedicationRequest.statusReason.coding.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.statusReason.coding.version">
      <path value="MedicationRequest.statusReason.coding.version" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.statusReason.coding.code">
      <path value="MedicationRequest.statusReason.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.intent">
      <path value="MedicationRequest.intent" />
      <short value="order" />
      <definition value="A prescription is always an order." />
      <fixedCode value="order" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.priority">
      <path value="MedicationRequest.priority" />
      <short value="urgent" />
      <definition value="Shall only be used for dose dispensed prescriptions. Indicates that actions may need to be taken before next ordinary production date." />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://electronichealth.se/fhir/ValueSet/medication-request-priority" />
      </binding>
      <mapping>
        <identity value="EHM" />
        <map value="Akut förändring" />
      </mapping>
    </element>
    <element id="MedicationRequest.medication[x]">
      <path value="MedicationRequest.medication[x]" />
      <short value="Prescribed article" />
      <definition value="Identifies the medical product or medical consumable being prescribed. &#xD;&#xA;Medical products are prescribed using both NPL-id (medical product) and NPL-pack-id (packaged medical product).&#xD;&#xA;Medical consumables are prescribed using item number (sv varunummer)." />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Artikel" />
      </mapping>
    </element>
    <element id="MedicationRequest.medication[x].coding">
      <path value="MedicationRequest.medication[x].coding" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="system" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.medication[x].coding:nplid">
      <path value="MedicationRequest.medication[x].coding" />
      <sliceName value="nplid" />
      <short value="NPL-id" />
      <definition value="A unique identifier of a medical product according to &quot;Nationellt produktregister för läkemedel&quot; provided by the Swedish Medical Products Agency (sv Läkemedelsverket)" />
      <comment value="The naming system http://electronichealth.se/fhir/NamingSystem/nplid includes both NPL ID defined by Läkemedelsverket and SB ID defined by E-hälsomyndigheten" />
      <max value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="NPL-id" />
      </mapping>
    </element>
    <element id="MedicationRequest.medication[x].coding:nplid.system">
      <path value="MedicationRequest.medication[x].coding.system" />
      <min value="1" />
      <fixedUri value="http://electronichealth.se/fhir/NamingSystem/nplid" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.medication[x].coding:nplid.code">
      <path value="MedicationRequest.medication[x].coding.code" />
      <comment value="Maximum string length: 14" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.medication[x].coding:nplpackid">
      <path value="MedicationRequest.medication[x].coding" />
      <sliceName value="nplpackid" />
      <short value="NPL-pack-id" />
      <definition value="A unique identifier of a medical product package according to &quot;Nationellt produktregister för läkemedel&quot; provided by the Swedish Medical Products Agency (sv Läkemedelsverket)" />
      <comment value="The naming system http://electronichealth.se/fhir/NamingSystem/nplpackid includes both NPL-Pack ID defined by Läkemedelsverket and SB-Pack ID defined by E-hälsomyndigheten" />
      <max value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="NPL-pack-id" />
      </mapping>
    </element>
    <element id="MedicationRequest.medication[x].coding:nplpackid.system">
      <path value="MedicationRequest.medication[x].coding.system" />
      <min value="1" />
      <fixedUri value="http://electronichealth.se/fhir/NamingSystem/nplpackid" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.medication[x].coding:nplpackid.code">
      <path value="MedicationRequest.medication[x].coding.code" />
      <comment value="Maximum string length: 14" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.medication[x].coding:varunr">
      <path value="MedicationRequest.medication[x].coding" />
      <sliceName value="varunr" />
      <short value="Varunummer" />
      <definition value="A unique identifier of a medical consumable according to &quot;Nationellt produktregister för läkemedel&quot; provided by the Swedish Medical Products Agency (sv Läkemedelsverket)&#xD;&#xA;Also a non-unique identifier of a medical product package." />
      <max value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Varunummer" />
      </mapping>
    </element>
    <element id="MedicationRequest.medication[x].coding:varunr.system">
      <path value="MedicationRequest.medication[x].coding.system" />
      <min value="1" />
      <fixedUri value="http://electronichealth.se/fhir/NamingSystem/varunr" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.medication[x].coding:varunr.code">
      <path value="MedicationRequest.medication[x].coding.code" />
      <comment value="Minimum string length: 6&#xD;&#xA;Maximum string length: 6" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.medication[x].text">
      <path value="MedicationRequest.medication[x].text" />
      <short value="Information about the prescribed article" />
      <definition value="FOR FUTURE USE, SHOULD NOT BE USED!&#xD;&#xA;Used to provide information about the prescribed article when a specified article isn´t available. For example when prescribing extemporaneous preparations." />
      <comment value="Max length: 255" />
      <maxLength value="255" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Beskrivning artikel" />
      </mapping>
    </element>
    <element id="MedicationRequest.subject">
      <path value="MedicationRequest.subject" />
      <short value="Who the prescription is for" />
      <definition value="Patient resource representing the person to whom the medical product will be given.&#xD;&#xA;When the patient has a Swedish personal identity number (personnummer) the patient shall be provided as a referenced Patient resorce. If the patient does not have a Swedish personal identity number the Patient resource should be contained in the MedicationRequest resource." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://electronichealth.se/fhir/StructureDefinition/NLLPatient" />
        <aggregation value="contained" />
        <aggregation value="referenced" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Patientreferens" />
      </mapping>
    </element>
    <element id="MedicationRequest.authoredOn">
      <path value="MedicationRequest.authoredOn" />
      <short value="When prescription was initially authored" />
      <definition value="The date and time when the prescription was authored." />
      <comment value="The time part is not mandatory, only a date may be provided." />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Utfärdandedatum" />
      </mapping>
    </element>
    <element id="MedicationRequest.requester">
      <path value="MedicationRequest.requester" />
      <short value="The practitioner who prescribed the article" />
      <definition value="The practitioner who prescribed the article" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://electronichealth.se/fhir/StructureDefinition/NLLPractitioner" />
        <aggregation value="contained" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Utfärdande förskrivare" />
      </mapping>
    </element>
    <element id="MedicationRequest.reasonCode">
      <path value="MedicationRequest.reasonCode" />
      <short value="Reason for the treatment" />
      <definition value="The reason stated by the practitioner for ordering a medical product (behandlingsorsak). A code from &quot;Nationell källa för ordinationsorsak&quot; which is a code system that is defined by the Swedish National Board of Health and Welfare (Socialstyrelsen). The code system consists of SnomedCT codes for reasons. Each medical product has of a selection of valid SnomedCT reason codes.&#xD;&#xA;The reason shall also be expressed in a way that can be easily understood by the patient (behandlingsändamål). This should be entered in nllPatientTreatmentReason.&#xD;&#xA;If there is no available code that describes the reason, then the code &quot;OTH&quot; (Other) shall be used. In that case a text describing the reason must be provided in reasonCode.text." />
      <comment value="_" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://electronichealth.se/fhir/ValueSet/nll-snomed-behandlingsorsak" />
      </binding>
      <mapping>
        <identity value="EHM" />
        <map value="Behandlingsorsak" />
      </mapping>
    </element>
    <element id="MedicationRequest.reasonCode.extension:nlldataAbsentReason">
      <path value="MedicationRequest.reasonCode.extension" />
      <sliceName value="nlldataAbsentReason" />
      <short value="masked" />
      <definition value="Marks masked data, ie why data is missing." />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/data-absent-reason" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <binding>
        <strength value="required" />
        <valueSet value="http://electronichealth.se/fhir/ValueSet/data-absent-reason" />
      </binding>
    </element>
    <element id="MedicationRequest.reasonCode.extension:nlldataAbsentReason.value[x]">
      <path value="MedicationRequest.reasonCode.extension.value[x]" />
      <short value="Masked" />
    </element>
    <element id="MedicationRequest.reasonCode.coding">
      <path value="MedicationRequest.reasonCode.coding" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.reasonCode.coding.system">
      <path value="MedicationRequest.reasonCode.coding.system" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.reasonCode.coding.version">
      <path value="MedicationRequest.reasonCode.coding.version" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.reasonCode.coding.code">
      <path value="MedicationRequest.reasonCode.coding.code" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.reasonCode.text">
      <path value="MedicationRequest.reasonCode.text" />
      <short value="Other reason" />
      <definition value="If no code could be chosen from &quot;Nationell källa för ordinationsorsak&quot; an other reason may be entered here." />
      <comment value="Maximum string length: 255" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Beskrivning annan behandlingsorsak" />
      </mapping>
    </element>
    <element id="MedicationRequest.note">
      <path value="MedicationRequest.note" />
      <definition value="Prescriptions in the Swedish National Medication List can contain 4 different kinds of notes:&#xD;&#xA;pre=Prescribers comment (Förskrivarens kommentar, read/write)&#xD;&#xA;pha=Pharmacists comment (Apotekets kommentar, read/write)&#xD;&#xA;not=Prescribers note (Notat förskrivare, read only, will be deprecated)&#xD;&#xA;dli=Delivery message (Leveransmeddelande, read only, will be deprecated)" />
      <max value="4" />
      <type>
        <code value="Annotation" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLAnnotation" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Apotekets kommentar, Förskrivarens kommentar, Leveransmeddelande, Notat förskrivare" />
      </mapping>
    </element>
    <element id="MedicationRequest.note.extension">
      <path value="MedicationRequest.note.extension" />
      <mustSupport value="false" />
    </element>
    <element id="MedicationRequest.note.extension:nllMedReqNoteType">
      <path value="MedicationRequest.note.extension" />
      <sliceName value="nllMedReqNoteType" />
      <short value="Type of note" />
      <definition value="http://electronichealth.se/fhir/ValueSet/data-absent-reason" />
    </element>
    <element id="MedicationRequest.note.text">
      <path value="MedicationRequest.note.text" />
      <comment value="Maximum string length prescribers comment (Förskrivarens kommentar): 35&#xD;&#xA;Maximum string length pharmacists comment (Apotekets kommentar): 512&#xD;&#xA;Maximum string length prescribers note (Notat förskrivare): 255&#xD;&#xA;Maximum string length delivery message (Leveransmeddelande): 35" />
    </element>
    <element id="MedicationRequest.note.text.extension:NLLdataAbsentReason">
      <path value="MedicationRequest.note.text.extension" />
      <sliceName value="NLLdataAbsentReason" />
      <short value="masked" />
      <definition value="Marks masked data, ie why data is missing." />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/data-absent-reason" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <binding>
        <strength value="required" />
        <valueSet value="http://electronichealth.se/fhir/ValueSet/data-absent-reason" />
      </binding>
    </element>
    <element id="MedicationRequest.dosageInstruction">
      <path value="MedicationRequest.dosageInstruction" />
      <short value="How the medication should be taken" />
      <definition value="Mandatory for medications and technical spirit" />
      <type>
        <code value="Dosage" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLDosage" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dosageInstruction.extension:nllAdministeringInstruction">
      <path value="MedicationRequest.dosageInstruction.extension" />
      <sliceName value="nllAdministeringInstruction" />
    </element>
    <element id="MedicationRequest.dosageInstruction.extension:nllAdministeringInstruction.value[x]">
      <path value="MedicationRequest.dosageInstruction.extension.value[x]" />
      <mapping>
        <identity value="EHM" />
        <map value="Administreringsinstruktion" />
      </mapping>
    </element>
    <element id="MedicationRequest.dosageInstruction.patientInstruction">
      <path value="MedicationRequest.dosageInstruction.patientInstruction" />
      <definition value="Dosage instructions in terms that are understood by the patient." />
    </element>
    <element id="MedicationRequest.dispenseRequest">
      <path value="MedicationRequest.dispenseRequest" />
      <min value="1" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Expedieringsdetaljer" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <min value="3" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllNumberOfPackagesPrescribed">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllNumberOfPackagesPrescribed" />
      <short value="Number of packages prescribed per dispense" />
      <definition value="The number of packages prescribed per dispense. Not used for dose dispensed prescriptions." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfPackagesPrescribed" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Antal förpackningar per uttag" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllDosePackaging">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllDosePackaging" />
      <short value="Dose dispensed prescription" />
      <definition value="Indicates if the prescription should be dose dispensed." />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLDosePackaging" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Dosdispensering" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllPrescriptionCommunicableDiseasesAct">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllPrescriptionCommunicableDiseasesAct" />
      <short value="Prescription according to the Communicable Diseases Act" />
      <definition value="Indicates of the prescription is created according to the Communicable Diseases Act (Smittskyddslagen)" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLPrescriptionCommunicableDiseasesAct" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Förskrivning enligt smittskyddslagen" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllPatientPharmaceuticalBenefitsAct">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllPatientPharmaceuticalBenefitsAct" />
      <short value="Patient eligible to benefits" />
      <definition value="Indicates if the patient is eligible to benefits according to the Pharmaceutical Benefits Act (Lag (2002:160) om läkemedelsförmån)" />
      <min value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLPatientPharmaceuticalBenefitsAct" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Patient förmånsberättigad" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllConditionsPharmaceuticalBenefitsAct">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllConditionsPharmaceuticalBenefitsAct" />
      <short value="Pharmaceutical benefits act conditions" />
      <definition value="Only relevant if the medication has restrictions for reimbursement.&#xD;&#xA;Indicates if the patient fulfills the conditions for the prescribed medication." />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLConditionsPharmaceuticalBenefitsAct" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Förmånsvillkor uppfyllda" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllTotalQuantity">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllTotalQuantity" />
      <short value="Amount of medication to supply in total" />
      <definition value="Amount of medication to supply in total for this prescription. Calculated be the Swedish E-health Agency." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLTotalQuantity" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllTotalQuantity.extension:prescribed">
      <path value="MedicationRequest.dispenseRequest.extension.extension" />
      <sliceName value="prescribed" />
      <short value="Total amount prescribed" />
      <definition value="Total amount prescribed in this prescription. Calculated by the Swedish e-health Agency. Not used for dose dispensed prescriptions.&#xD;&#xA;The unit used is the unit specified in VARA (the Swedish national registry for medical products) for the prescribed medical product." />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Förskriven mängd" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllTotalQuantity.extension:prescribed.value[x]">
      <path value="MedicationRequest.dispenseRequest.extension.extension.value[x]" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllTotalQuantity.extension:prescribed.value[x].value">
      <path value="MedicationRequest.dispenseRequest.extension.extension.value[x].value" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllTotalQuantity.extension:remaining">
      <path value="MedicationRequest.dispenseRequest.extension.extension" />
      <sliceName value="remaining" />
      <short value="Quantity remaining" />
      <definition value="The remaining quantity that may be dispensed for this prescription. Calculated by the Swedish e-health Agency.  Not used for dose dispensed prescriptions.&#xD;&#xA;The unit used is the unit specified in VARA (the Swedish national registry for medical products) for the prescribed medical product." />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Kvarvarande mängd" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllTotalQuantity.extension:remaining.value[x]">
      <path value="MedicationRequest.dispenseRequest.extension.extension.value[x]" />
      <min value="1" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllTotalQuantity.extension:remaining.value[x].value">
      <path value="MedicationRequest.dispenseRequest.extension.extension.value[x].value" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllBenefitDetails">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllBenefitDetails" />
      <short value="Benefit calculation information" />
      <definition value="Information needed for calculating benefit" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLBenefitDetails" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllBenefitDetails.extension:dailyBenefitQuantityUnfeasible">
      <path value="MedicationRequest.dispenseRequest.extension.extension" />
      <sliceName value="dailyBenefitQuantityUnfeasible" />
      <short value="Indication if daily quantity can't be calculated" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllBenefitDetails.extension:dailyBenefitQuantity">
      <path value="MedicationRequest.dispenseRequest.extension.extension" />
      <sliceName value="dailyBenefitQuantity" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllBenefitDetails.extension:nextDispenseWithinBenefit">
      <path value="MedicationRequest.dispenseRequest.extension.extension" />
      <sliceName value="nextDispenseWithinBenefit" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllNumberOfFillsRemaining">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllNumberOfFillsRemaining" />
      <short value="Number of fills remaining" />
      <definition value="The number of fills this prescriptions has remaining. Calculated by the Swedish E-health Agency. Not used for dose dispensed prescriptions." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfFillsRemaining" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Antal uttag kvar" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllReceivingPharmacy">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllReceivingPharmacy" />
      <short value="Receiving Pharmacy" />
      <definition value="Receiving Pharmacy is used when the patient does not have a Swedish national identification number (&quot;personnummer&quot;). The patient has to pick up his/her medication at the receiving pharmacy where he/she is identified through name, birthdate and sex.&#xD;&#xA;The receiving pharmacy is tied to the physical adress. This means that if the premises are taken over by a different organization, the prescription will still be available at the same physical adress," />
      <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="Mottagande apotek" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllPrescriberCostCenter">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllPrescriberCostCenter" />
      <short value="The prescribers cost center" />
      <definition value="The prescribers cost center code when making the prescription. Used for benefit billing within the regions." />
      <comment value="Minimum string length: 3&#xD;&#xA;Maximum string length: 13" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLPrescriberCostCenter" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Kostnadsställe (arbetsplatskod)" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllPrescriberCostCenter.extension">
      <path value="MedicationRequest.dispenseRequest.extension.extension" />
      <mustSupport value="false" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllPrescriberCostCenter.value[x].value">
      <path value="MedicationRequest.dispenseRequest.extension.value[x].value" />
      <maxLength value="13" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllPrescriberCostCenter.value[x].value.extension:NLLdataAbsentReason">
      <path value="MedicationRequest.dispenseRequest.extension.value[x].value.extension" />
      <sliceName value="NLLdataAbsentReason" />
      <short value="masked" />
      <definition value="Marks masked data, ie why data is missing." />
      <type>
        <code value="Extension" />
        <profile value="http://hl7.org/fhir/StructureDefinition/data-absent-reason" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
      <binding>
        <strength value="required" />
        <valueSet value="http://electronichealth.se/fhir/ValueSet/data-absent-reason" />
      </binding>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllSubstitutionOpposed">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllSubstitutionOpposed" />
      <short value="Substitution opposed" />
      <definition value="Only used for dose dispensed prescriptions.&#xD;&#xA;Substitution is opposed (sv: bytes ej) by either the pharmacist or the patient. This information can be saved on the prescription as the patient isn't present when the dispensing takes place." />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLSubstitutionOpposed" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://ehalsomyndigheten.se/fhir/ValueSet/substitution-opposition-types" />
      </binding>
      <mapping>
        <identity value="EHM" />
        <map value="Bytes ej" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllNumberOfDispensesAllowed">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllNumberOfDispensesAllowed" />
      <short value="Number of dispenses allowed" />
      <definition value="Number of dispenses allowed (sv. förskrivet antal uttag) is the common way in Sweden of communicating the total number of dispenses that can be performed. The standard field number of repeats allowed is similar but does not include the first dispense. The two terms are related by the formula numberOfRepeatsAllowed +1 = numberOfDispensesAllowed." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLNumberOfDispensesAllowed" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Förskrivet antal uttag" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllNextDateDispenseInterval">
      <path value="MedicationRequest.dispenseRequest.extension" />
      <sliceName value="nllNextDateDispenseInterval" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLNextDateDispenseInterval" />
      </type>
      <mustSupport value="true" />
      <isModifier value="false" />
    </element>
    <element id="MedicationRequest.dispenseRequest.extension:nllNextDateDispenseInterval.url">
      <path value="MedicationRequest.dispenseRequest.extension.url" />
      <fixedUri value="http://electronichealth.se/fhir/StructureDefinition/nllNextDateDispenseInterval" />
    </element>
    <element id="MedicationRequest.dispenseRequest.initialFill">
      <path value="MedicationRequest.dispenseRequest.initialFill" />
      <short value="Indication for Trial Fill" />
      <definition value="Used for indicating &quot;Trial Fill&quot;. May only be one package, usually the smallest package available. Not used for dose dispensed prescriptions." />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Startförpackning" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.initialFill.quantity">
      <path value="MedicationRequest.dispenseRequest.initialFill.quantity" />
      <short value="Trial fill quantity, one package" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.initialFill.quantity.value">
      <path value="MedicationRequest.dispenseRequest.initialFill.quantity.value" />
      <min value="1" />
      <fixedDecimal value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.initialFill.quantity.unit">
      <path value="MedicationRequest.dispenseRequest.initialFill.quantity.unit" />
      <fixedString value="Package" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.initialFill.quantity.system">
      <path value="MedicationRequest.dispenseRequest.initialFill.quantity.system" />
      <fixedUri value="http://unitsofmeasure.org" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.initialFill.quantity.code">
      <path value="MedicationRequest.dispenseRequest.initialFill.quantity.code" />
      <min value="1" />
      <fixedCode value="{Package}" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.initialFill.duration">
      <path value="MedicationRequest.dispenseRequest.initialFill.duration" />
      <max value="0" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenseInterval">
      <path value="MedicationRequest.dispenseRequest.dispenseInterval" />
      <definition value="The minimum period of time that must occur between dispenses of the medical product. Not used for dose dispensed prescriptions." />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Expedieringsintervall" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenseInterval.value">
      <path value="MedicationRequest.dispenseRequest.dispenseInterval.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenseInterval.system">
      <path value="MedicationRequest.dispenseRequest.dispenseInterval.system" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.dispenseInterval.code">
      <path value="MedicationRequest.dispenseRequest.dispenseInterval.code" />
      <min value="1" />
      <mustSupport value="true" />
      <binding>
        <strength value="required" />
        <valueSet value="http://electronichealth.se/fhir/ValueSet/dispense-interval-units" />
      </binding>
      <mapping>
        <identity value="EHM" />
        <map value="Expedieringsintervall enhet" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.validityPeriod">
      <path value="MedicationRequest.dispenseRequest.validityPeriod" />
      <definition value="This indicates the validity period of a prescription (stale dating the Prescription). I no validityPeriod.end is provided, then it will be calculated by the Swedish E-health Agency. The validity period may not be longer than one year." />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.dispenseRequest.validityPeriod.extension:nllFirstDispenseBefore">
      <path value="MedicationRequest.dispenseRequest.validityPeriod.extension" />
      <sliceName value="nllFirstDispenseBefore" />
      <short value="First dispense must occur before" />
      <definition value="Not used for dose dispensed prescriptions&#xD;&#xA;The first dispense must occur before this date. If not, the prescription will be invalidated." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLFirstDispenseBefore" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Första uttag före" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.validityPeriod.end">
      <path value="MedicationRequest.dispenseRequest.validityPeriod.end" />
      <short value="Last date when dispensing is allowed" />
      <definition value="Last date when dispensing is allowed. If no date is provided it will be calculated by the Swedish E-health Agency.&#xD;&#xA;NB! This is only handled as a date, the time part of the dateTime is not used." />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Sista giltighetsdag" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.numberOfRepeatsAllowed">
      <path value="MedicationRequest.dispenseRequest.numberOfRepeatsAllowed" />
      <definition value="Not used for dose dispensed prescriptions.&#xD;&#xA;An integer indicating the number of times, in addition to the original dispense, (aka refills or repeats) that the patient can receive the prescribed medication. Usage Notes: This integer does not include the original order dispense. This means that if an order indicates dispense 30 tablets plus &quot;3 repeats&quot;, then the order can be dispensed a total of 4 times and the patient can receive a total of 120 tablets.  A prescriber may explicitly say that zero refills are permitted after the initial dispense." />
      <comment value="If using this as basis for displaying &quot;total number of authorized fills&quot;, add 1 to this number. This is because the total number of dispenses is the original dispense + additional dispenses stipulated by &quot;number of repeats allowed&quot;." />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Förskrivet antal uttag" />
        <comment value="NB! Förskrivet antal uttag -1" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.quantity">
      <path value="MedicationRequest.dispenseRequest.quantity" />
      <definition value="The amount that is to be dispensed for one fill.&#xD;&#xA;The unit used is the unit specified in VARA (the Swedish national registry for medical products) for the prescribed medical product.&#xD;&#xA;Calculated by the Swedish E-health Agency based on nllNumberOfPackagesPrescibed and the quantity of medication in the package.&#xD;&#xA;Not used for dose dispensed prescriptions." />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Förskriven mängd per uttag" />
      </mapping>
    </element>
    <element id="MedicationRequest.dispenseRequest.quantity.value">
      <path value="MedicationRequest.dispenseRequest.quantity.value" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Förskriven mängd per uttag" />
      </mapping>
    </element>
    <element id="MedicationRequest.substitution">
      <path value="MedicationRequest.substitution" />
      <mustSupport value="true" />
    </element>
    <element id="MedicationRequest.substitution.allowed[x]">
      <path value="MedicationRequest.substitution.allowed[x]" />
      <comment value="This element is labeled as a modifier because whether substitution is allow or not, it cannot be ignored.&#xD;&#xA;A missing value is the same as substitution allowed" />
      <type>
        <code value="boolean" />
      </type>
      <meaningWhenMissing value="A missing value is the same as substitution allowed" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Substitution tillåten" />
      </mapping>
    </element>
    <element id="MedicationRequest.priorPrescription">
      <path value="MedicationRequest.priorPrescription" />
      <short value="A prescription that is being/has been replaced/renewed" />
      <definition value="When replacing or renewing a prescription, the version of the replaced/renewed prescription must be provided in the POST operation.&#xD;&#xA;When reading a prescription, the reference to the replaced/renewed prescription will not be version specific." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://electronichealth.se/fhir/StructureDefinition/NLLMedicationRequest" />
        <aggregation value="referenced" />
        <versioning value="either" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Referens till tidigare förskrivning" />
      </mapping>
    </element>
    <element id="MedicationRequest.detectedIssue">
      <path value="MedicationRequest.detectedIssue" />
      <short value="Automatic Format and Constitution Control warning (AFF-varning)" />
      <definition value="Read only for MedicationRequest.&#xD;&#xA;Automatic Format and Constitution Control (AFF) warning generated by the Swedish eHealth Agency according to the current conditions." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://electronichealth.se/fhir/StructureDefinition/NLLDetectedIssue" />
        <aggregation value="contained" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="AFF-varning" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>