Page Status: updated 2023-11-22

NLLMedicationListInfo (Basic)

Page index

Introduction

The profile NLLMedicationListInfo is based on the Basic resource. NLLMedicationListInfo 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 drugs (sv: särskilda läkemedel).

Regarding information about how the "must support"-property is used in the Swedish National MedicationList, please refer to the page Resources

Overview

idS Σ0..1string
id0..1string
extensionI0..*Extension
versionIdΣ0..1id
lastUpdatedS Σ0..1instant
sourceΣ0..1uri
profileΣ0..*canonical(StructureDefinition)
id0..1string
extensionI0..*Extension
systemS Σ0..1uri
versionS Σ0..1string
codeS Σ0..1code
displayΣ0..1string
userSelectedΣ0..1boolean
tagΣ0..*Coding
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
contained0..*Resource
nllControlledDrugsS I0..1Extension(boolean)
nllMedicationlistVersionS I0..1Extension(integer)
nllPrivacyLockS I0..1Extension(boolean)
modifierExtension?! I0..*Extension
identifierΣ0..*Identifier
id0..1string
extensionI0..*Extension
id0..1string
extensionI0..*Extension
systemS Σ0..1uriFixed Value
versionS Σ0..1string
codeS Σ1..1codeFixed Value
displayΣ0..1string
userSelectedΣ0..1boolean
textΣ0..1string
subjectS Σ1..1Reference(NLLPatient)
createdΣ0..1date
authorΣ0..1Reference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization)
Basic
DefinitionThe NLLMedicationListInfo resource contains general information about a patient's medication list.
Cardinality0...*
AliasZ-resource, Extension-resource, Custom-resource
Invariants
  • dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
    contained.contained.empty()
  • dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
    contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
  • dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
    contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
  • dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
    contained.meta.security.empty()
  • dom-6: A resource should have narrative for robust management
    text.`div`.exists()
Mappings
  • rim: Entity. Role, or Act
  • rim: Act, Entity or Role
Basic.id
DefinitionThe logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
Cardinality0...1
Typestring
Must SupportTrue
SummaryTrue
Comments

The only time that a resource does not have an id is when it is being submitted to the server using a create operation.

Basic.meta
DefinitionThe metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
Cardinality0...1
TypeMeta
Must SupportTrue
SummaryTrue
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Basic.meta.id
DefinitionUnique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality0...1
Typestring
Mappings
  • rim: n/a
Basic.meta.extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

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.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Basic.meta.versionId
DefinitionThe version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.
Cardinality0...1
Typeid
SummaryTrue
Comments

The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Basic.meta.lastUpdated
DefinitionWhen the resource last changed - e.g. when the version changed.
Cardinality0...1
Typeinstant
Must SupportTrue
SummaryTrue
Comments

This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a read interaction.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Basic.meta.source
DefinitionA uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.
Cardinality0...1
Typeuri
SummaryTrue
Comments

In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used.

This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Basic.meta.profile
DefinitionA list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).
Cardinality0...*
Typecanonical(StructureDefinition)
SummaryTrue
Comments

It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Basic.meta.security
DefinitionSecurity labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.
Cardinality0...*
TypeCoding
Binding

Security Labels from the Healthcare Privacy and Security Classification System.

security-labels (extensible)
Must SupportTrue
SummaryTrue
Comments

The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Basic.meta.security.id
DefinitionUnique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality0...1
Typestring
Mappings
  • rim: n/a
Basic.meta.security.extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

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.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Basic.meta.security.system
DefinitionThe identification of the code system that defines the meaning of the symbol in the code.
Cardinality0...1
Typeuri
Must SupportTrue
SummaryTrue
Requirements

Need to be unambiguous about the source of the definition of the symbol.

Comments

The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: C*E.3
  • rim: ./codeSystem
  • orim: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem
Basic.meta.security.version
DefinitionThe version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
Cardinality0...1
Typestring
Must SupportTrue
SummaryTrue
Comments

Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: C*E.7
  • rim: ./codeSystemVersion
  • orim: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion
Basic.meta.security.code
DefinitionA symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
Cardinality0...1
Typecode
Must SupportTrue
SummaryTrue
Requirements

Need to refer to a particular code in the system.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: C*E.1
  • rim: ./code
  • orim: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code
Basic.meta.security.display
DefinitionA representation of the meaning of the code in the system, following the rules of the system.
Cardinality0...1
Typestring
SummaryTrue
Requirements

Need to be able to carry a human-readable meaning of the code for readers that do not know the system.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: C*E.2 - but note this is not well followed
  • rim: CV.displayName
  • orim: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName
Basic.meta.security.userSelected
DefinitionIndicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).
Cardinality0...1
Typeboolean
SummaryTrue
Requirements

This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.

Comments

Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: Sometimes implied by being first
  • rim: CD.codingRationale
  • orim: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]
Basic.meta.tag
DefinitionTags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.
Cardinality0...*
TypeCoding
Binding

Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".

CommonTags (example)
SummaryTrue
Comments

The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Basic.implicitRules
DefinitionA reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
Cardinality0...1
Typeuri
ModifierTrue
SummaryTrue
Comments

Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Basic.language
DefinitionThe base language in which the resource is written.
Cardinality0...1
Typecode
Binding

A human language.

CommonLanguages (preferred)
Comments

Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Basic.text
DefinitionA human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
Cardinality0...1
TypeNarrative
Aliasnarrative, html, xhtml, display
Comments

Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded information is added later.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • rim: Act.text?
Basic.contained
DefinitionThese resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
Cardinality0...*
TypeResource
Aliasinline resources, anonymous resources, contained resources
Comments

This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.

Mappings
  • rim: N/A
Basic.extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

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.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: N/A
Basic.extension:nllControlledDrugs
DefinitionThis 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.
Cardinality0...1
TypeExtension(boolean)
Must SupportTrue
Aliasextensions, user content
Comments

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.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: N/A
  • rim: n/a
  • EHM: Innehåller särskilt läkemedel
Basic.extension:nllMedicationlistVersion
DefinitionThis 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: Information läkemedelslista – NLLMedicationListInfo
Cardinality0...1
TypeExtension(integer)
Must SupportTrue
Aliasextensions, user content
Comments

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.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: N/A
  • rim: n/a
  • EHM: Läkemedelslisteversion
Basic.extension:nllPrivacyLock
DefinitionThis 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.
Cardinality0...1
TypeExtension(boolean)
Must SupportTrue
Aliasextensions, user content
Comments

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.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: N/A
  • rim: n/a
  • EHM: Innehåller spärrade uppgifter
Basic.modifierExtension
DefinitionMay be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Cardinality0...*
TypeExtension
ModifierTrue
Aliasextensions, user content
Requirements

Modifier extensions allow for extensions that cannot be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the definition of modifier extensions.

Comments

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.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: N/A
Basic.identifier
DefinitionIdentifier assigned to the resource for business purposes, outside the context of FHIR.
Cardinality0...*
TypeIdentifier
SummaryTrue
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • w5: FiveWs.identifier
  • rim: ./identifier
Basic.code
DefinitionThe type of resource is "Medication List Information"
Cardinality1...1
TypeCodeableConcept
Binding

Codes for identifying types of Basic

basic-resource-types (required)
Must SupportTrue
ModifierTrue
SummaryTrue
Requirements

Must be able to distinguish different types of Basic resources.

Comments

Because resource references will only be able to indicate 'Basic', the type of reference will need to be specified in a Profile identified as part of the resource. Refer to the resource notes section for information on appropriate terminologies for this code.

This element is labeled as a modifier because it defines the meaning of the resource and cannot be ignored.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • w5: FiveWs.what[x]
  • rim: ./code
  • EHM: Resurstyp Information Läkemedelslista
Basic.code.id
DefinitionUnique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality0...1
Typestring
Mappings
  • rim: n/a
Basic.code.extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

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.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Basic.code.coding
DefinitionA reference to a code defined by a terminology system.
Cardinality1...1
TypeCoding
Must SupportTrue
SummaryTrue
Requirements

Allows for alternative encodings within a code system, and translations to other code systems.

Comments

Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: C*E.1-8, C*E.10-22
  • rim: union(., ./translation)
  • orim: fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding
Basic.code.coding.id
DefinitionUnique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Cardinality0...1
Typestring
Mappings
  • rim: n/a
Basic.code.coding.extension
DefinitionMay be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
Cardinality0...*
TypeExtension
Aliasextensions, user content
Comments

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.

SlicingUnordered, Open, by url(Value)
Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
  • ext-1: Must have either extensions or value[x], not both
    extension.exists() != value.exists()
Mappings
  • rim: n/a
Basic.code.coding.system
DefinitionThe identification of the code system that defines the meaning of the symbol in the code.
Cardinality0...1
Typeuri
Must SupportTrue
SummaryTrue
Requirements

Need to be unambiguous about the source of the definition of the symbol.

Comments

The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value

http://ehalsomyndigheten.se/fhir/CodeSystem/basic-resource-types

Mappings
  • v2: C*E.3
  • rim: ./codeSystem
  • orim: fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem
Basic.code.coding.version
DefinitionThe version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
Cardinality0...1
Typestring
Must SupportTrue
SummaryTrue
Comments

Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: C*E.7
  • rim: ./codeSystemVersion
  • orim: fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion
Basic.code.coding.code
DefinitionA symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).
Cardinality1...1
Typecode
Must SupportTrue
SummaryTrue
Requirements

Need to refer to a particular code in the system.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Fixed Value

medlistinfo

Mappings
  • v2: C*E.1
  • rim: ./code
  • orim: fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code
  • EHM: Resurstyp Information Läkemedelslista
Basic.code.coding.display
DefinitionA representation of the meaning of the code in the system, following the rules of the system.
Cardinality0...1
Typestring
SummaryTrue
Requirements

Need to be able to carry a human-readable meaning of the code for readers that do not know the system.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: C*E.2 - but note this is not well followed
  • rim: CV.displayName
  • orim: fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName
Basic.code.coding.userSelected
DefinitionIndicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).
Cardinality0...1
Typeboolean
SummaryTrue
Requirements

This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.

Comments

Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: Sometimes implied by being first
  • rim: CD.codingRationale
  • orim: fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\#true a [ fhir:source "true"; fhir:target dt:CDCoding.codingRationale\#O ]
Basic.code.text
DefinitionA human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
Cardinality0...1
Typestring
SummaryTrue
Requirements

The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.

Comments

Very often the text is the same as a displayName of one of the codings.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • v2: C*E.9. But note many systems use C*E.2 for this
  • rim: ./originalText[mediaType/code="text/plain"]/data
  • orim: fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText
Basic.subject
DefinitionIdentifies the patient that the medication list belongs to.
Cardinality1...1
TypeReference(NLLPatient)
Must SupportTrue
SummaryTrue
Requirements

Needed for partitioning the resource by Patient.

Comments

Optional as not all potential resources will have subjects. Resources associated with multiple subjects can handle this via extension.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • w5: FiveWs.subject[x]
  • rim: ./participation[typeCode='SBJ'] (possibly through a ControlAct and Role)
  • w5: FiveWs.subject
  • EHM: Patientreferens
Basic.created
DefinitionIdentifies when the resource was first created.
Cardinality0...1
Typedate
SummaryTrue
Requirements

Allows ordering resource instances by time.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • w5: FiveWs.recorded
  • rim: ./participation[typeCode='AUT']/time (possibly through a ControlAct and Role)
Basic.author
DefinitionIndicates who was responsible for creating the resource instance.
Cardinality0...1
TypeReference(Practitioner | PractitionerRole | Patient | RelatedPerson | Organization)
SummaryTrue
Requirements

Needed for partitioning the resource.

Invariants
  • ele-1: All FHIR elements must have a @value or children
    hasValue() or (children().count() > id.count())
Mappings
  • w5: FiveWs.author
  • rim: ./participation[typeCode='SUB'] (possibly through a ControlAct and Role)
<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&#39;s medication list.\nIt provides aggregated information about a patient&#39;s medication list e.g. medication list version and a flag telling if a the patient&#180;s medication list contains controlled medicinal products (sv: s&#228;rskilda l&#228;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&#228;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&#39;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&#229;ller s&#228;rskilt l&#228;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&#39;s medication list. The version is updated when a subset of events (NLLProvenance) affects the patient&#39;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&#228;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&#228;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&#39;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&#39;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 &#39;UTAN_KRAV_SAMTYCKE&#39; 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&#229;ller sp&#228;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&#228;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&#228;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>
{
    "resourceType": "StructureDefinition",
    "id": "a59e5c6f-1485-4ff3-9ee0-228f8dc099db",
    "meta": {
        "versionId": "1",
        "lastUpdated": "08/28/2024 06:39:28"
    },
    "url": "http://electronichealth.se/fhir/StructureDefinition/NLLMedicationListInfo",
    "version": "1.1.0",
    "name": "NLLMedicationListInfo",
    "status": "active",
    "date": "2024-08-28",
    "publisher": "Swedish eHealth Agency",
    "description": "The NLLMedicationListInfo resource contains general information about a patient's medication list.\nIt 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": "4.0.1",
    "mapping":  [
        {
            "identity": "rim",
            "uri": "http://hl7.org/v3",
            "name": "RIM Mapping"
        },
        {
            "identity": "w5",
            "uri": "http://hl7.org/fhir/fivews",
            "name": "FiveWs Pattern Mapping"
        },
        {
            "identity": "EHM",
            "name": "E-hälsomyndigheten concept"
        }
    ],
    "kind": "resource",
    "abstract": false,
    "type": "Basic",
    "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Basic",
    "derivation": "constraint",
    "differential": {
        "element":  [
            {
                "id": "Basic",
                "path": "Basic",
                "short": "General information about a medication list",
                "definition": "The NLLMedicationListInfo resource contains general information about a patient's medication list."
            },
            {
                "id": "Basic.id",
                "path": "Basic.id",
                "mustSupport": true
            },
            {
                "id": "Basic.meta",
                "path": "Basic.meta",
                "mustSupport": true
            },
            {
                "id": "Basic.meta.lastUpdated",
                "path": "Basic.meta.lastUpdated",
                "mustSupport": true
            },
            {
                "id": "Basic.meta.security",
                "path": "Basic.meta.security",
                "mustSupport": true,
                "binding": {
                    "strength": "extensible",
                    "valueSet": "http://ehalsomyndigheten.se/fhir/ValueSet/security-labels"
                }
            },
            {
                "id": "Basic.meta.security.system",
                "path": "Basic.meta.security.system",
                "mustSupport": true
            },
            {
                "id": "Basic.meta.security.version",
                "path": "Basic.meta.security.version",
                "mustSupport": true
            },
            {
                "id": "Basic.meta.security.code",
                "path": "Basic.meta.security.code",
                "mustSupport": true
            },
            {
                "id": "Basic.extension:nllControlledDrugs",
                "path": "Basic.extension",
                "sliceName": "nllControlledDrugs",
                "short": "Controlled medicinal products",
                "definition": "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": "1",
                "type":  [
                    {
                        "code": "Extension",
                        "profile":  [
                            "http://electronichealth.se/fhir/StructureDefinition/NLLControlledDrugs"
                        ]
                    }
                ],
                "mustSupport": true,
                "mapping":  [
                    {
                        "identity": "EHM",
                        "map": "Innehåller särskilt läkemedel"
                    }
                ]
            },
            {
                "id": "Basic.extension:nllMedicationlistVersion",
                "path": "Basic.extension",
                "sliceName": "nllMedicationlistVersion",
                "short": "Medication list version",
                "definition": "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: <a href=\"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/\">Information läkemedelslista – NLLMedicationListInfo</a>",
                "max": "1",
                "type":  [
                    {
                        "code": "Extension",
                        "profile":  [
                            "http://electronichealth.se/fhir/StructureDefinition/Version"
                        ]
                    }
                ],
                "mustSupport": true,
                "mapping":  [
                    {
                        "identity": "EHM",
                        "map": "Läkemedelslisteversion"
                    }
                ]
            },
            {
                "id": "Basic.extension:nllPrivacyLock",
                "path": "Basic.extension",
                "sliceName": "nllPrivacyLock",
                "short": "Privacy lock flag",
                "definition": "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": "1",
                "type":  [
                    {
                        "code": "Extension",
                        "profile":  [
                            "http://electronichealth.se/fhir/StructureDefinition/NLLPrivacyLock"
                        ]
                    }
                ],
                "mustSupport": true,
                "mapping":  [
                    {
                        "identity": "EHM",
                        "map": "Innehåller spärrade uppgifter"
                    }
                ]
            },
            {
                "id": "Basic.code",
                "path": "Basic.code",
                "short": "Resource type: Medication List Information",
                "definition": "The type of resource is \"Medication List Information\"",
                "mustSupport": true,
                "binding": {
                    "strength": "required",
                    "description": "Codes for identifying types of Basic",
                    "valueSet": "http://ehalsomyndigheten.se/fhir/ValueSet/basic-resource-types"
                },
                "mapping":  [
                    {
                        "identity": "EHM",
                        "map": "Resurstyp Information Läkemedelslista"
                    }
                ]
            },
            {
                "id": "Basic.code.coding",
                "path": "Basic.code.coding",
                "min": 1,
                "max": "1",
                "mustSupport": true
            },
            {
                "id": "Basic.code.coding.system",
                "path": "Basic.code.coding.system",
                "fixedUri": "http://ehalsomyndigheten.se/fhir/CodeSystem/basic-resource-types",
                "mustSupport": true
            },
            {
                "id": "Basic.code.coding.version",
                "path": "Basic.code.coding.version",
                "mustSupport": true
            },
            {
                "id": "Basic.code.coding.code",
                "path": "Basic.code.coding.code",
                "min": 1,
                "fixedCode": "medlistinfo",
                "mustSupport": true,
                "mapping":  [
                    {
                        "identity": "EHM",
                        "map": "Resurstyp Information Läkemedelslista"
                    }
                ]
            },
            {
                "id": "Basic.subject",
                "path": "Basic.subject",
                "short": "Patient",
                "definition": "Identifies the patient that the medication list belongs to.",
                "min": 1,
                "type":  [
                    {
                        "code": "Reference",
                        "targetProfile":  [
                            "http://electronichealth.se/fhir/StructureDefinition/NLLPatient"
                        ]
                    }
                ],
                "mustSupport": true,
                "mapping":  [
                    {
                        "identity": "EHM",
                        "map": "Patientreferens"
                    }
                ]
            }
        ]
    }
}
Basic..
Basic.id..
Basic.meta..
Basic.meta.lastUpdated..
Basic.meta.security..
Basic.meta.security.system..
Basic.meta.security.version..
Basic.meta.security.code..
Basic.extensionExtension..1
Basic.extensionExtension..1
Basic.extensionExtension..1
Basic.code..
Basic.code.coding1..1
Basic.code.coding.system..
Basic.code.coding.version..
Basic.code.coding.code1..
Basic.subjectReference(NLLPatient)1..

Details

Description of all elements can be found here, Element descriptions.

Mapping of FHIR element names to the National Medication List names can be found here, Element language mappings.

Element Description
nllControlledDrugs 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.
nllPrivacyLock 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.
nllMedicationlistVersion 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: Information läkemedelslista – NLLMedicationListInfo.

Supported operations

HTTP methods

Operation Supported Comment
Search (GET, POST) yes See below for supported search options.
Insert (POST) no
Update (PUT) no
Delete (DEL) no
Operation (GET, POST) no

When interacting with this resource a set of HTTP-headers must be included in the request, see HTTP Header and Authorization.

Query operations

Supported Queries

The following query alternatives are available for this resource.

  1. ../Basic/[id]
  2. ../Basic?[parameters]
    Parameter chain:
    code=medlistinfo
    &patient._id=[id]

Compartment searches

Supported searches on a compartment. This kind of search returns a bundle with the related resources.

  1. ../Patient/[id]/MedicationListInfo returns all related MedicationListInfo's for the specified patient (in practice, there should only be one).

Include & reverse includes

Supported usage of include and revinclude. This kind of search returns a bundle of both the base resource and the related resources specified in the parameter.

  1. ../Basic?[parameters]&_revinclude=Provenance:target:Basic returns one or more Basic resources together with their Provenances. The Provenance returned is the one pointing at the returned version of the Basic resource. See above for a list of valid parameters.

Example: ../Basic?patient._id=<uuid>&code=medlistinfo&_revinclude=Provenance:target:Basic returns the patient's medication listo info including one provenance.

For generic information about how to search in FHIR look here.

Search parameters

The table below shows all supported search parameters.

Parameter Description Comment
Basic/[id] A read based on the logical ID (UUID) of a data lock
../Basic/<uuid>
code Type of resource, mandatory
..?code=medlistinfo
patient._id Logical id of the patient
..&patient._id=<uuid>