Nationella informationsmängder
0.1 - draft

Nationella informationsmängder - Local Development build (v0.1). See the Directory of published versions

Resource Profile: Substans

Defining URL:https://informationsstruktur.socialstyrelsen.se/nim/hos/fhir/StructureDefinition/NIMSubstance
Version:0.1
Name:NIMSubstance
Title:Substans
Status:Active as of 2021-03-30T19:36:18+02:00
Definition:

NIM substans används för att beskriva aktiva kemiska beståndsdelar av allergener, medel, ämnen, kemikalier, läkemedel och material.

Publisher:Socialstyrelsen
Source Resource:XML / JSON / Turtle

The official URL for this profile is:

https://informationsstruktur.socialstyrelsen.se/nim/hos/fhir/StructureDefinition/NIMSubstance

NIM

![NIM - Substans](NIM - Substans.png “NIM - Substans” =1100x)

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

This structure is derived from Substance

Summary

Must-Support: 4 elements

This structure is derived from Substance

NameFlagsCard.TypeDescription & Constraintsdoco
.. Substance 0..*SubstanceA homogeneous material with a definite composition
... category 0..*CodeableConceptWhat class/type of substance this is
... code S1..1CodeableConceptWhat substance this is
Binding: Substanser. (preferred)
... description S0..1stringTextual description of the substance, comments
.... quantity S0..1SimpleQuantityAmount of substance in the package
... ingredient
.... substance[x] S1..1CodeableConcept, Reference(Substance)A component of the substance

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Substance 0..*SubstanceA homogeneous material with a definite composition
... id Σ0..1stringLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierUnique identifier
... status ?!Σ0..1codeactive | inactive | entered-in-error
Binding: FHIRSubstanceStatus (required): A code to indicate if the substance is actively used.

... category Σ0..*CodeableConceptWhat class/type of substance this is
Binding: SubstanceCategoryCodes (extensible): Category or classification of substance.


... code SΣ1..1CodeableConceptWhat substance this is
Binding: Substanser. (preferred)
... description SΣ0..1stringTextual description of the substance, comments
... instance Σ0..*BackboneElementIf this describes a specific package/container of the substance
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... identifier Σ0..1IdentifierIdentifier of the package/container
.... expiry Σ0..1dateTimeWhen no longer valid to use
.... quantity SΣ0..1SimpleQuantityAmount of substance in the package
... ingredient Σ0..*BackboneElementComposition information about the substance
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... quantity Σ0..1RatioOptional amount (concentration)
.... substance[x] SΣ1..1A component of the substance
Binding: SubstanceCode (example): Substance Ingredient codes.

..... substanceCodeableConceptCodeableConcept
..... substanceReferenceReference(Substance)

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraintsdoco
.. Substance 0..*SubstanceA homogeneous material with a definite composition
... code Σ1..1CodeableConceptWhat substance this is
Binding: Substanser. (preferred)
... description Σ0..1stringTextual description of the substance, comments
... instance Σ0..*BackboneElementIf this describes a specific package/container of the substance
.... quantity Σ0..1SimpleQuantityAmount of substance in the package
.... substance[x] Σ1..1A component of the substance
Binding: SubstanceCode (example): Substance Ingredient codes.

..... substanceCodeableConceptCodeableConcept
..... substanceReferenceReference(Substance)

doco Documentation for this format

This structure is derived from Substance

Summary

Must-Support: 4 elements

Differential View

This structure is derived from Substance

NameFlagsCard.TypeDescription & Constraintsdoco
.. Substance 0..*SubstanceA homogeneous material with a definite composition
... category 0..*CodeableConceptWhat class/type of substance this is
... code S1..1CodeableConceptWhat substance this is
Binding: Substanser. (preferred)
... description S0..1stringTextual description of the substance, comments
.... quantity S0..1SimpleQuantityAmount of substance in the package
... ingredient
.... substance[x] S1..1CodeableConcept, Reference(Substance)A component of the substance

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Substance 0..*SubstanceA homogeneous material with a definite composition
... id Σ0..1stringLogical id of this artifact
... meta Σ0..1MetaMetadata about the resource
... implicitRules ?!Σ0..1uriA set of rules under which this content was created
... text 0..1NarrativeText summary of the resource, for human interpretation
... contained 0..*ResourceContained, inline Resources
... extension 0..*ExtensionAdditional content defined by implementations
... modifierExtension ?!0..*ExtensionExtensions that cannot be ignored
... identifier Σ0..*IdentifierUnique identifier
... status ?!Σ0..1codeactive | inactive | entered-in-error
Binding: FHIRSubstanceStatus (required): A code to indicate if the substance is actively used.

... category Σ0..*CodeableConceptWhat class/type of substance this is
Binding: SubstanceCategoryCodes (extensible): Category or classification of substance.


... code SΣ1..1CodeableConceptWhat substance this is
Binding: Substanser. (preferred)
... description SΣ0..1stringTextual description of the substance, comments
... instance Σ0..*BackboneElementIf this describes a specific package/container of the substance
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... identifier Σ0..1IdentifierIdentifier of the package/container
.... expiry Σ0..1dateTimeWhen no longer valid to use
.... quantity SΣ0..1SimpleQuantityAmount of substance in the package
... ingredient Σ0..*BackboneElementComposition information about the substance
.... id 0..1stringUnique id for inter-element referencing
.... extension 0..*ExtensionAdditional content defined by implementations
.... modifierExtension ?!Σ0..*ExtensionExtensions that cannot be ignored even if unrecognized
.... quantity Σ0..1RatioOptional amount (concentration)
.... substance[x] SΣ1..1A component of the substance
Binding: SubstanceCode (example): Substance Ingredient codes.

..... substanceCodeableConceptCodeableConcept
..... substanceReferenceReference(Substance)

doco Documentation for this format

 

Other representations of profile: Schematron

Terminology Bindings

PathConformanceValueSet
Substance.languagepreferredCommonLanguages
Max Binding: AllLanguages
Substance.statusrequiredFHIRSubstanceStatus
Substance.categoryextensibleSubstanceCategoryCodes
Substance.codepreferredSubstancesValueSet
Substance.ingredient.substance[x]exampleSubstanceCode

Constraints

IdPathDetailsRequirements
dom-2SubstanceIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3SubstanceIf 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-4SubstanceIf 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-5SubstanceIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6SubstanceA resource should have narrative for robust management
: text.`div`.exists()
ele-1Substance.metaAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.implicitRulesAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.languageAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.textAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Substance.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Substance.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Substance.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Substance.identifierAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.statusAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.categoryAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.codeAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.descriptionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.instanceAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.instance.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Substance.instance.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Substance.instance.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Substance.instance.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Substance.instance.identifierAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.instance.expiryAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.instance.quantityAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.ingredientAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.ingredient.extensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Substance.ingredient.extensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Substance.ingredient.modifierExtensionAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1Substance.ingredient.modifierExtensionMust have either extensions or value[x], not both
: extension.exists() != value.exists()
ele-1Substance.ingredient.quantityAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ele-1Substance.ingredient.substance[x]All FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())