UPTIS FHIR PoC Test Implementation Guide
1.0.0 - draft Estonia flag

UPTIS FHIR PoC Test Implementation Guide, published by TEHIK. This guide is not an authorized publication; it is the continuous build for version 1.0.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/TEHIK-EE/FHIR-PoC/ and changes regularly. See the Directory of published versions

Resource Profile: EETISMedicationEPC

Official URL: https://fhir.ee/StructureDefinition/ee-tis-medication-epc Version: 1.0.0
Draft as of 2023-11-09 Computable Name: EETISMedicationEPC

Medication resource as it is presented today in Estonian e-Prescription center. Used on prescriptions and dispensations.

Usage:

Formal Views of Profile Content

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

This structure is derived from Medication

NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication Medication
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by
.... classification 0..* (Complex) Klassifikatsioon
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification
..... value[x] 0..1 CodeableConcept Value of extension
Binding: https://fhir.ee/CodeSystem/atc (preferred): ATC

.... sizeOfItem 0..* SimpleQuantity Pakkeühiku suurus
URL: https://fhir.ee/StructureDefinition/ee-tis-size-of-item
.... name 0..* string Ravimi nimi pakendil.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-name
... identifier 0..1 Identifier Pakendi kood (pakendipõhisel retseptil)
... code 0..0
... marketingAuthorizationHolder 0..0
... doseForm 1..1 CodeableConcept powder | tablets | capsule +
Binding: http://fhir.ee/CodeSystem/ravimvormid (preferred)
.... coding 0..* Coding Code defined by a terminology system
Binding: http://fhir.ee/CodeSystem/ravimvormid (preferred): Ravimvormide loend

... totalVolume 1..1 SimpleQuantity A fixed quantity (no comparator)
.... value 1..1 decimal Ühikute koguhulk
.... unit 0..0
.... code 0..1 code Ühikute koguhulga ühik
... ingredient 1..* BackboneElement Active or inactive ingredient
.... item
..... concept 0..1 CodeableConcept Reference to a concept (by class)
Binding: https://fhir.ee/CodeSystem/toimeained (preferred): Toimeainete loend

..... reference 0..0
.... isActive 1..1 boolean Active ingredient indicator
..... value 0..1 boolean Primitive value for boolean
Required Pattern: true
.... Slices for strength[x] 1..1 Quantity of ingredient present
Slice: Unordered, Open by type:$this
..... strengthRatio Ratio
..... strengthQuantity Quantity
..... strength[x]:strengthRatio 1..1 Ratio Toimeaine tugevus
... batch 0..0
... definition 0..0

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Medication.extension:classification.value[x]preferredhttps://fhir.ee/CodeSystem/atc
https://fhir.ee/CodeSystem/atc
Medication.doseFormpreferredhttp://fhir.ee/CodeSystem/ravimvormid
http://fhir.ee/CodeSystem/ravimvormid
Medication.doseForm.codingpreferredhttp://fhir.ee/CodeSystem/ravimvormid
http://fhir.ee/CodeSystem/ravimvormid
Medication.ingredient.item.conceptpreferredhttps://fhir.ee/CodeSystem/toimeained
https://fhir.ee/CodeSystem/toimeained
NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication 0..* Medication Definition of a Medication
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by
.... classification 0..* (Complex) Klassifikatsioon
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification
..... url 1..1 uri "https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification"
..... Slices for value[x] 0..1 CodeableConcept Value of extension
Slice: Unordered, Closed by type:$this
Binding: https://fhir.ee/CodeSystem/atc (preferred): ATC

...... value[x]:valueCodeableConcept 0..1 CodeableConcept ATC klassifikatsioon
Binding: https://fhir.ee/CodeSystem/atc (preferred): ATC

.... sizeOfItem 0..* SimpleQuantity Pakkeühiku suurus
URL: https://fhir.ee/StructureDefinition/ee-tis-size-of-item
.... name 0..* string Ravimi nimi pakendil.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-name
... identifier Σ 0..1 Identifier Pakendi kood (pakendipõhisel retseptil)
... doseForm 1..1 CodeableConcept powder | tablets | capsule +
Binding: http://fhir.ee/CodeSystem/ravimvormid (preferred)
.... coding Σ 0..* Coding Code defined by a terminology system
Binding: http://fhir.ee/CodeSystem/ravimvormid (preferred): Ravimvormide loend


... totalVolume C 1..1 SimpleQuantity A fixed quantity (no comparator)
qty-3: If a code for the unit is present, the system SHALL also be present
sqty-1: The comparator is not used on a SimpleQuantity
.... value Σ 1..1 decimal Ühikute koguhulk
.... code ΣC 0..1 code Ühikute koguhulga ühik
... ingredient 1..* BackboneElement Active or inactive ingredient
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... item 1..1 CodeableReference(Substance | Medication) The ingredient (substance or medication) that the ingredient.strength relates to
Binding: SNOMEDCTMedicationCodes (example)
..... concept Σ 0..1 CodeableConcept Reference to a concept (by class)
Binding: https://fhir.ee/CodeSystem/toimeained (preferred): Toimeainete loend

.... isActive 1..1 boolean Active ingredient indicator
..... value 0..1 boolean Primitive value for boolean
Required Pattern: true
.... Slices for strength[x] 1..1 Ratio Quantity of ingredient present
Slice: Unordered, Closed by type:$this
Binding: MedicationIngredientStrengthCodes (preferred): A coded concpet defining the strength of an ingredient.

..... strength[x]:strengthRatio 1..1 Ratio Toimeaine tugevus

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Medication.extension:classification.value[x]preferredhttps://fhir.ee/CodeSystem/atc
https://fhir.ee/CodeSystem/atc
Medication.extension:classification.value[x]:valueCodeableConceptpreferredhttps://fhir.ee/CodeSystem/atc
https://fhir.ee/CodeSystem/atc
Medication.doseFormpreferredhttp://fhir.ee/CodeSystem/ravimvormid
http://fhir.ee/CodeSystem/ravimvormid
Medication.doseForm.codingpreferredhttp://fhir.ee/CodeSystem/ravimvormid
http://fhir.ee/CodeSystem/ravimvormid
Medication.ingredient.itemexampleSNOMEDCTMedicationCodes
http://hl7.org/fhir/ValueSet/medication-codes
from the FHIR Standard
Medication.ingredient.item.conceptpreferredhttps://fhir.ee/CodeSystem/toimeained
https://fhir.ee/CodeSystem/toimeained
Medication.ingredient.strength[x]preferredMedicationIngredientStrengthCodes
http://hl7.org/fhir/ValueSet/medication-ingredientstrength
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationIf 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorMedicationIf 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-5errorMedicationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
qty-3errorMedication.totalVolumeIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
sqty-1errorMedication.totalVolumeThe comparator is not used on a SimpleQuantity
: comparator.empty()
NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication 0..* Medication Definition of a Medication
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by
.... classification 0..* (Complex) Klassifikatsioon
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... url 1..1 uri "https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification"
..... Slices for value[x] 0..1 CodeableConcept Value of extension
Slice: Unordered, Closed by type:$this
Binding: https://fhir.ee/CodeSystem/atc (preferred): ATC

...... value[x]:valueCodeableConcept 0..1 CodeableConcept ATC klassifikatsioon
Binding: https://fhir.ee/CodeSystem/atc (preferred): ATC

....... id 0..1 id Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
....... coding Σ 0..* Coding Code defined by a terminology system
Binding: https://fhir.ee/CodeSystem/atc (preferred): ATC


....... text Σ 0..1 string Plain text representation of the concept
.... sizeOfItem 0..* SimpleQuantity Pakkeühiku suurus
URL: https://fhir.ee/StructureDefinition/ee-tis-size-of-item
.... name 0..* string Ravimi nimi pakendil.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-name
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..1 Identifier Pakendi kood (pakendipõhisel retseptil)
... doseForm 1..1 CodeableConcept powder | tablets | capsule +
Binding: http://fhir.ee/CodeSystem/ravimvormid (preferred)
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 0..* Coding Code defined by a terminology system
Binding: http://fhir.ee/CodeSystem/ravimvormid (preferred): Ravimvormide loend


.... text Σ 0..1 string Plain text representation of the concept
... totalVolume C 1..1 SimpleQuantity A fixed quantity (no comparator)
qty-3: If a code for the unit is present, the system SHALL also be present
sqty-1: The comparator is not used on a SimpleQuantity
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... value Σ 1..1 decimal Ühikute koguhulk
.... system ΣC 0..1 uri System that defines coded unit form
.... code ΣC 0..1 code Ühikute koguhulga ühik
... ingredient 1..* BackboneElement Active or inactive ingredient
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... item 1..1 CodeableReference(Substance | Medication) The ingredient (substance or medication) that the ingredient.strength relates to
Binding: SNOMEDCTMedicationCodes (example)
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... concept Σ 0..1 CodeableConcept Reference to a concept (by class)
Binding: https://fhir.ee/CodeSystem/toimeained (preferred): Toimeainete loend

.... isActive 1..1 boolean Active ingredient indicator
..... id 0..1 string xml:id (or equivalent in JSON)
..... extension 0..* Extension Additional content defined by implementations
..... value 0..1 boolean Primitive value for boolean
Required Pattern: true
.... Slices for strength[x] 1..1 Ratio Quantity of ingredient present
Slice: Unordered, Closed by type:$this
Binding: MedicationIngredientStrengthCodes (preferred): A coded concpet defining the strength of an ingredient.

..... strength[x]:strengthRatio 1..1 Ratio Toimeaine tugevus

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Medication.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
Medication.extension:classification.value[x]preferredhttps://fhir.ee/CodeSystem/atc
https://fhir.ee/CodeSystem/atc
Medication.extension:classification.value[x]:valueCodeableConceptpreferredhttps://fhir.ee/CodeSystem/atc
https://fhir.ee/CodeSystem/atc
Medication.extension:classification.value[x]:valueCodeableConcept.codingpreferredhttps://fhir.ee/CodeSystem/atc
https://fhir.ee/CodeSystem/atc
Medication.doseFormpreferredhttp://fhir.ee/CodeSystem/ravimvormid
http://fhir.ee/CodeSystem/ravimvormid
Medication.doseForm.codingpreferredhttp://fhir.ee/CodeSystem/ravimvormid
http://fhir.ee/CodeSystem/ravimvormid
Medication.ingredient.itemexampleSNOMEDCTMedicationCodes
http://hl7.org/fhir/ValueSet/medication-codes
from the FHIR Standard
Medication.ingredient.item.conceptpreferredhttps://fhir.ee/CodeSystem/toimeained
https://fhir.ee/CodeSystem/toimeained
Medication.ingredient.strength[x]preferredMedicationIngredientStrengthCodes
http://hl7.org/fhir/ValueSet/medication-ingredientstrength
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationIf 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorMedicationIf 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-5errorMedicationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
qty-3errorMedication.totalVolumeIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
sqty-1errorMedication.totalVolumeThe comparator is not used on a SimpleQuantity
: comparator.empty()

This structure is derived from Medication

Summary

Mandatory: 7 elements
Prohibited: 7 elements

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Medication.ingredient.strength[x]

Differential View

This structure is derived from Medication

NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication Medication
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by
.... classification 0..* (Complex) Klassifikatsioon
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification
..... value[x] 0..1 CodeableConcept Value of extension
Binding: https://fhir.ee/CodeSystem/atc (preferred): ATC

.... sizeOfItem 0..* SimpleQuantity Pakkeühiku suurus
URL: https://fhir.ee/StructureDefinition/ee-tis-size-of-item
.... name 0..* string Ravimi nimi pakendil.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-name
... identifier 0..1 Identifier Pakendi kood (pakendipõhisel retseptil)
... code 0..0
... marketingAuthorizationHolder 0..0
... doseForm 1..1 CodeableConcept powder | tablets | capsule +
Binding: http://fhir.ee/CodeSystem/ravimvormid (preferred)
.... coding 0..* Coding Code defined by a terminology system
Binding: http://fhir.ee/CodeSystem/ravimvormid (preferred): Ravimvormide loend

... totalVolume 1..1 SimpleQuantity A fixed quantity (no comparator)
.... value 1..1 decimal Ühikute koguhulk
.... unit 0..0
.... code 0..1 code Ühikute koguhulga ühik
... ingredient 1..* BackboneElement Active or inactive ingredient
.... item
..... concept 0..1 CodeableConcept Reference to a concept (by class)
Binding: https://fhir.ee/CodeSystem/toimeained (preferred): Toimeainete loend

..... reference 0..0
.... isActive 1..1 boolean Active ingredient indicator
..... value 0..1 boolean Primitive value for boolean
Required Pattern: true
.... Slices for strength[x] 1..1 Quantity of ingredient present
Slice: Unordered, Open by type:$this
..... strengthRatio Ratio
..... strengthQuantity Quantity
..... strength[x]:strengthRatio 1..1 Ratio Toimeaine tugevus
... batch 0..0
... definition 0..0

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Medication.extension:classification.value[x]preferredhttps://fhir.ee/CodeSystem/atc
https://fhir.ee/CodeSystem/atc
Medication.doseFormpreferredhttp://fhir.ee/CodeSystem/ravimvormid
http://fhir.ee/CodeSystem/ravimvormid
Medication.doseForm.codingpreferredhttp://fhir.ee/CodeSystem/ravimvormid
http://fhir.ee/CodeSystem/ravimvormid
Medication.ingredient.item.conceptpreferredhttps://fhir.ee/CodeSystem/toimeained
https://fhir.ee/CodeSystem/toimeained

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication 0..* Medication Definition of a Medication
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by
.... classification 0..* (Complex) Klassifikatsioon
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification
..... url 1..1 uri "https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification"
..... Slices for value[x] 0..1 CodeableConcept Value of extension
Slice: Unordered, Closed by type:$this
Binding: https://fhir.ee/CodeSystem/atc (preferred): ATC

...... value[x]:valueCodeableConcept 0..1 CodeableConcept ATC klassifikatsioon
Binding: https://fhir.ee/CodeSystem/atc (preferred): ATC

.... sizeOfItem 0..* SimpleQuantity Pakkeühiku suurus
URL: https://fhir.ee/StructureDefinition/ee-tis-size-of-item
.... name 0..* string Ravimi nimi pakendil.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-name
... identifier Σ 0..1 Identifier Pakendi kood (pakendipõhisel retseptil)
... doseForm 1..1 CodeableConcept powder | tablets | capsule +
Binding: http://fhir.ee/CodeSystem/ravimvormid (preferred)
.... coding Σ 0..* Coding Code defined by a terminology system
Binding: http://fhir.ee/CodeSystem/ravimvormid (preferred): Ravimvormide loend


... totalVolume C 1..1 SimpleQuantity A fixed quantity (no comparator)
qty-3: If a code for the unit is present, the system SHALL also be present
sqty-1: The comparator is not used on a SimpleQuantity
.... value Σ 1..1 decimal Ühikute koguhulk
.... code ΣC 0..1 code Ühikute koguhulga ühik
... ingredient 1..* BackboneElement Active or inactive ingredient
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... item 1..1 CodeableReference(Substance | Medication) The ingredient (substance or medication) that the ingredient.strength relates to
Binding: SNOMEDCTMedicationCodes (example)
..... concept Σ 0..1 CodeableConcept Reference to a concept (by class)
Binding: https://fhir.ee/CodeSystem/toimeained (preferred): Toimeainete loend

.... isActive 1..1 boolean Active ingredient indicator
..... value 0..1 boolean Primitive value for boolean
Required Pattern: true
.... Slices for strength[x] 1..1 Ratio Quantity of ingredient present
Slice: Unordered, Closed by type:$this
Binding: MedicationIngredientStrengthCodes (preferred): A coded concpet defining the strength of an ingredient.

..... strength[x]:strengthRatio 1..1 Ratio Toimeaine tugevus

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Medication.extension:classification.value[x]preferredhttps://fhir.ee/CodeSystem/atc
https://fhir.ee/CodeSystem/atc
Medication.extension:classification.value[x]:valueCodeableConceptpreferredhttps://fhir.ee/CodeSystem/atc
https://fhir.ee/CodeSystem/atc
Medication.doseFormpreferredhttp://fhir.ee/CodeSystem/ravimvormid
http://fhir.ee/CodeSystem/ravimvormid
Medication.doseForm.codingpreferredhttp://fhir.ee/CodeSystem/ravimvormid
http://fhir.ee/CodeSystem/ravimvormid
Medication.ingredient.itemexampleSNOMEDCTMedicationCodes
http://hl7.org/fhir/ValueSet/medication-codes
from the FHIR Standard
Medication.ingredient.item.conceptpreferredhttps://fhir.ee/CodeSystem/toimeained
https://fhir.ee/CodeSystem/toimeained
Medication.ingredient.strength[x]preferredMedicationIngredientStrengthCodes
http://hl7.org/fhir/ValueSet/medication-ingredientstrength
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationIf 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorMedicationIf 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-5errorMedicationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
qty-3errorMedication.totalVolumeIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
sqty-1errorMedication.totalVolumeThe comparator is not used on a SimpleQuantity
: comparator.empty()

Snapshot View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication 0..* Medication Definition of a Medication
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... text 0..1 Narrative Text summary of the resource, for human interpretation
... contained 0..* Resource Contained, inline Resources
... Slices for extension 0..* Extension Extension
Slice: Unordered, Open by
.... classification 0..* (Complex) Klassifikatsioon
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... url 1..1 uri "https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification"
..... Slices for value[x] 0..1 CodeableConcept Value of extension
Slice: Unordered, Closed by type:$this
Binding: https://fhir.ee/CodeSystem/atc (preferred): ATC

...... value[x]:valueCodeableConcept 0..1 CodeableConcept ATC klassifikatsioon
Binding: https://fhir.ee/CodeSystem/atc (preferred): ATC

....... id 0..1 id Unique id for inter-element referencing
....... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
....... coding Σ 0..* Coding Code defined by a terminology system
Binding: https://fhir.ee/CodeSystem/atc (preferred): ATC


....... text Σ 0..1 string Plain text representation of the concept
.... sizeOfItem 0..* SimpleQuantity Pakkeühiku suurus
URL: https://fhir.ee/StructureDefinition/ee-tis-size-of-item
.... name 0..* string Ravimi nimi pakendil.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-name
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..1 Identifier Pakendi kood (pakendipõhisel retseptil)
... doseForm 1..1 CodeableConcept powder | tablets | capsule +
Binding: http://fhir.ee/CodeSystem/ravimvormid (preferred)
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... coding Σ 0..* Coding Code defined by a terminology system
Binding: http://fhir.ee/CodeSystem/ravimvormid (preferred): Ravimvormide loend


.... text Σ 0..1 string Plain text representation of the concept
... totalVolume C 1..1 SimpleQuantity A fixed quantity (no comparator)
qty-3: If a code for the unit is present, the system SHALL also be present
sqty-1: The comparator is not used on a SimpleQuantity
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... value Σ 1..1 decimal Ühikute koguhulk
.... system ΣC 0..1 uri System that defines coded unit form
.... code ΣC 0..1 code Ühikute koguhulga ühik
... ingredient 1..* BackboneElement Active or inactive ingredient
.... id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... item 1..1 CodeableReference(Substance | Medication) The ingredient (substance or medication) that the ingredient.strength relates to
Binding: SNOMEDCTMedicationCodes (example)
..... id 0..1 id Unique id for inter-element referencing
..... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
..... concept Σ 0..1 CodeableConcept Reference to a concept (by class)
Binding: https://fhir.ee/CodeSystem/toimeained (preferred): Toimeainete loend

.... isActive 1..1 boolean Active ingredient indicator
..... id 0..1 string xml:id (or equivalent in JSON)
..... extension 0..* Extension Additional content defined by implementations
..... value 0..1 boolean Primitive value for boolean
Required Pattern: true
.... Slices for strength[x] 1..1 Ratio Quantity of ingredient present
Slice: Unordered, Closed by type:$this
Binding: MedicationIngredientStrengthCodes (preferred): A coded concpet defining the strength of an ingredient.

..... strength[x]:strengthRatio 1..1 Ratio Toimeaine tugevus

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Medication.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
Medication.extension:classification.value[x]preferredhttps://fhir.ee/CodeSystem/atc
https://fhir.ee/CodeSystem/atc
Medication.extension:classification.value[x]:valueCodeableConceptpreferredhttps://fhir.ee/CodeSystem/atc
https://fhir.ee/CodeSystem/atc
Medication.extension:classification.value[x]:valueCodeableConcept.codingpreferredhttps://fhir.ee/CodeSystem/atc
https://fhir.ee/CodeSystem/atc
Medication.doseFormpreferredhttp://fhir.ee/CodeSystem/ravimvormid
http://fhir.ee/CodeSystem/ravimvormid
Medication.doseForm.codingpreferredhttp://fhir.ee/CodeSystem/ravimvormid
http://fhir.ee/CodeSystem/ravimvormid
Medication.ingredient.itemexampleSNOMEDCTMedicationCodes
http://hl7.org/fhir/ValueSet/medication-codes
from the FHIR Standard
Medication.ingredient.item.conceptpreferredhttps://fhir.ee/CodeSystem/toimeained
https://fhir.ee/CodeSystem/toimeained
Medication.ingredient.strength[x]preferredMedicationIngredientStrengthCodes
http://hl7.org/fhir/ValueSet/medication-ingredientstrength
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorMedicationIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorMedicationIf 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().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorMedicationIf 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-5errorMedicationIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceMedicationA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
qty-3errorMedication.totalVolumeIf a code for the unit is present, the system SHALL also be present
: code.empty() or system.exists()
sqty-1errorMedication.totalVolumeThe comparator is not used on a SimpleQuantity
: comparator.empty()

This structure is derived from Medication

Summary

Mandatory: 7 elements
Prohibited: 7 elements

Structures

This structure refers to these other structures:

Extensions

This structure refers to these extensions:

Slices

This structure defines the following Slices:

  • The element 1 is sliced based on the value of Medication.ingredient.strength[x]

 

Other representations of profile: CSV, Excel, Schematron