<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="a59e5c6f-1485-4ff3-9ee0-228f8dc099db" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2024-08-28T06:39:28.0302196+00:00" />
  </meta>
  <url value="http://electronichealth.se/fhir/StructureDefinition/NLLMedicationListInfo" />
  <version value="1.1.0" />
  <name value="NLLMedicationListInfo" />
  <status value="active" />
  <date value="2024-08-28" />
  <publisher value="Swedish eHealth Agency" />
  <description value="The NLLMedicationListInfo resource contains general information about a patient's medication list.&#xD;&#xA;It provides aggregated information about a patient's medication list e.g. medication list version and a flag telling if a the patient´s medication list contains controlled medicinal products (sv: särskilda läkemedel)." />
  <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="General information about a medication list" />
      <definition value="The NLLMedicationListInfo resource contains general information about a patient's medication list." />
    </element>
    <element id="Basic.id">
      <path value="Basic.id" />
      <mustSupport value="true" />
    </element>
    <element id="Basic.meta">
      <path value="Basic.meta" />
      <mustSupport value="true" />
    </element>
    <element id="Basic.meta.lastUpdated">
      <path value="Basic.meta.lastUpdated" />
      <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:nllControlledDrugs">
      <path value="Basic.extension" />
      <sliceName value="nllControlledDrugs" />
      <short value="Controlled medicinal products" />
      <definition value="This parameter is set to true if the patient has any medication requests or dispenses for paper prescriptions that contain controlled drugs, which have been prescribed or dispensed within the last 24 months. Note that this information is only available for healthcare personnel authorized to prescribe medicines." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLControlledDrugs" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Innehåller särskilt läkemedel" />
      </mapping>
    </element>
    <element id="Basic.extension:nllMedicationlistVersion">
      <path value="Basic.extension" />
      <sliceName value="nllMedicationlistVersion" />
      <short value="Medication list version" />
      <definition value="This attribute provides the version of the patient's medication list. The version is updated when a subset of events (NLLProvenance) affects the patient's medication list. This subset of provenances that impact the list can be found here: &lt;a href=&quot;https://samarbetsyta.ehalsomyndigheten.se/handboken/latest/utveckla-mot-e-haelsomyndighetens-tjaenster/information-stoed-och-krav-per-delsystem/nationella-laekemedelslistan-nll/stoed-vid-implementation-nll/informationsspecifikationer/informationsspecifikation-resurser/information-laekemedelslista-nllmedicationlistinfo/&quot;&gt;Information läkemedelslista – NLLMedicationListInfo&lt;/a&gt;" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/Version" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Läkemedelslisteversion" />
      </mapping>
    </element>
    <element id="Basic.extension:nllPrivacyLock">
      <path value="Basic.extension" />
      <sliceName value="nllPrivacyLock" />
      <short value="Privacy lock flag" />
      <definition value="This attribute is set to true if the patient has any MedicationRequests (including all related MedicationDispenses) or dispenses for paper prescriptions that are affected by an NLLDataLock of the type Privacy Lock. This information is only available for healthcare personnel. Note that it doesn't indicate if the locked information is accessible for the user or not, as this depends on the access type used when accessing the patient's medication requests and dispenses. The information provided in the parameter may not be relevant if the selected or presented range of information is not affected by the data lock. The parameter is not available when the access type 'UTAN_KRAV_SAMTYCKE' is used." />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="http://electronichealth.se/fhir/StructureDefinition/NLLPrivacyLock" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Innehåller spärrade uppgifter" />
      </mapping>
    </element>
    <element id="Basic.code">
      <path value="Basic.code" />
      <short value="Resource type: Medication List Information" />
      <definition value="The type of resource is &quot;Medication List Information&quot;" />
      <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 Information Läkemedelslista" />
      </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="medlistinfo" />
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Resurstyp Information Läkemedelslista" />
      </mapping>
    </element>
    <element id="Basic.subject">
      <path value="Basic.subject" />
      <short value="Patient" />
      <definition value="Identifies the patient that the medication list belongs to." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://electronichealth.se/fhir/StructureDefinition/NLLPatient" />
      </type>
      <mustSupport value="true" />
      <mapping>
        <identity value="EHM" />
        <map value="Patientreferens" />
      </mapping>
    </element>
  </differential>
</StructureDefinition>