Medication Scheme Implementation Guide
1.0.0 - draft Estonia flag

Medication Scheme 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/ig-ee-medication-scheme/ 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 2024-02-14 Computable Name: EETISMedicationEPC

Ravim. Medication resource as it is presented today in Estonian e-Prescription center (Retseptikeskus). Used on prescriptions NOT on dispensations.

Usage:

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication 0..* Medication Definition of a Medication
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
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
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... contained 0..* Resource Contained, inline Resources
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... extension:atc 1..1 CodeableConcept Classifications of the product, e.g ATC, narcotic/psychotropic, orphan drug, OTC medication etc.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... extension:sizeOfItem 0..1 SimpleQuantity Size of medicinal product item (3ml). E.g. total volume of packaged medication is 30ml but it includes 10 items 3ml each.
URL: https://fhir.ee/StructureDefinition/ee-tis-size-of-item
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... extension:name 0..1 string Registered name for the medicinal product.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-name
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... identifier Σ 0..1 Identifier Package code when medication is prescribed based on specific package
ele-1: All FHIR elements must have a @value or children
... doseForm 1..1 CodeableConcept Dose form of the medication. E.g powder, tablet, ointment etc.
Binding: Ravimvormid (preferred)
ele-1: All FHIR elements must have a @value or children
... totalVolume Σ 1..1 SimpleQuantity If the certain medication (brand name) is chosen then total volume is the amount of medication in package. If based on just active ingredient then total volume is same as in MedicationStatement TotalPrescribedAmount.
ele-1: All FHIR elements must have a @value or children
.... value Σ 1..1 decimal Total volume of medication.
ele-1: All FHIR elements must have a @value or children
.... code ΣC 0..1 code Unit for total volume
ele-1: All FHIR elements must have a @value or children
... ingredient 1..* BackboneElement Active or inactive ingredient
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... item 1..1 CodeableReference(Substance | Medication) Active ingredient from Ravimiameti value set
Binding: Toimeainete loend (preferred)
ele-1: All FHIR elements must have a @value or children
.... isActive 1..1 boolean Active ingredient indicator
ele-1: All FHIR elements must have a @value or children
..... value 0..1 boolean Primitive value for boolean
Required Pattern: true
.... strength[x] 1..1 Ratio Strenght ratio of the active ingredient
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Medication.doseFormpreferredRavimvormid_VS (a valid code from Ravimvorm)
https://fhir.ee/ValueSet/ravimvormid
from this IG
Medication.ingredient.itempreferredToimeained_VS (a valid code from Toimeained)
https://fhir.ee/ValueSet/toimeained
from this IG

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()

This structure is derived from Medication

NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication Medication
... meta
.... versionId 0..1 id Version specific identifier
Example versionId: 1
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:atc 1..1 CodeableConcept Classifications of the product, e.g ATC, narcotic/psychotropic, orphan drug, OTC medication etc.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification
.... extension:sizeOfItem 0..1 SimpleQuantity Size of medicinal product item (3ml). E.g. total volume of packaged medication is 30ml but it includes 10 items 3ml each.
URL: https://fhir.ee/StructureDefinition/ee-tis-size-of-item
.... extension:name 0..1 string Registered name for the medicinal product.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-name
... identifier 0..1 Identifier Package code when medication is prescribed based on specific package
... status 0..0
... marketingAuthorizationHolder 0..0
... doseForm 1..1 CodeableConcept Dose form of the medication. E.g powder, tablet, ointment etc.
Binding: Ravimvormid (preferred)
... totalVolume 1..1 SimpleQuantity If the certain medication (brand name) is chosen then total volume is the amount of medication in package. If based on just active ingredient then total volume is same as in MedicationStatement TotalPrescribedAmount.
.... value 1..1 decimal Total volume of medication.
.... unit 0..0
.... code 0..1 code Unit for total volume
... ingredient 1..* BackboneElement Active or inactive ingredient
.... item 1..1 CodeableReference(Substance | Medication) Active ingredient from Ravimiameti value set
Binding: Toimeainete loend (preferred)
.... isActive 1..1 boolean Active ingredient indicator
..... value 0..1 boolean Primitive value for boolean
Required Pattern: true
.... strength[x] 1..1 Ratio Strenght ratio of the active ingredient
... batch 0..0
... definition 0..0

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Medication.doseFormpreferredRavimvormid_VS (a valid code from Ravimvorm)
https://fhir.ee/ValueSet/ravimvormid
from this IG
Medication.ingredient.itempreferredToimeained_VS (a valid code from Toimeained)
https://fhir.ee/ValueSet/toimeained
from this IG
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
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... versionId Σ 0..1 id Version specific identifier
Example versionId: 1
.... lastUpdated Σ 0..1 instant When the resource version last changed
.... source Σ 0..1 uri Identifies where the resource comes from
.... profile Σ 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
.... security Σ 0..* Coding Security Labels applied to this resource
Binding: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.


.... tag Σ 0..* Coding Tags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".


... 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 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:atc 1..1 CodeableConcept Classifications of the product, e.g ATC, narcotic/psychotropic, orphan drug, OTC medication etc.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification
.... extension:sizeOfItem 0..1 SimpleQuantity Size of medicinal product item (3ml). E.g. total volume of packaged medication is 30ml but it includes 10 items 3ml each.
URL: https://fhir.ee/StructureDefinition/ee-tis-size-of-item
.... extension:name 0..1 string Registered name for the medicinal product.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-name
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..1 Identifier Package code when medication is prescribed based on specific package
... doseForm 1..1 CodeableConcept Dose form of the medication. E.g powder, tablet, ointment etc.
Binding: Ravimvormid (preferred)
... totalVolume Σ 1..1 SimpleQuantity If the certain medication (brand name) is chosen then total volume is the amount of medication in package. If based on just active ingredient then total volume is same as in MedicationStatement TotalPrescribedAmount.
.... 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 Total volume of medication.
.... system ΣC 0..1 uri System that defines coded unit form
.... code ΣC 0..1 code Unit for total volume
... 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) Active ingredient from Ravimiameti value set
Binding: Toimeainete loend (preferred)
.... 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
.... strength[x] 1..1 Ratio Strenght ratio of the active ingredient

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Medication.meta.securityextensibleAllSecurityLabels
http://hl7.org/fhir/ValueSet/security-labels
from the FHIR Standard
Medication.meta.tagexampleCommonTags
http://hl7.org/fhir/ValueSet/common-tags
from the FHIR Standard
Medication.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
Medication.doseFormpreferredRavimvormid_VS (a valid code from Ravimvorm)
https://fhir.ee/ValueSet/ravimvormid
from this IG
Medication.ingredient.itempreferredToimeained_VS (a valid code from Toimeained)
https://fhir.ee/ValueSet/toimeained
from this IG

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()

This structure is derived from Medication

Key Elements View

NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication 0..* Medication Definition of a Medication
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
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
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... contained 0..* Resource Contained, inline Resources
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... extension:atc 1..1 CodeableConcept Classifications of the product, e.g ATC, narcotic/psychotropic, orphan drug, OTC medication etc.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... extension:sizeOfItem 0..1 SimpleQuantity Size of medicinal product item (3ml). E.g. total volume of packaged medication is 30ml but it includes 10 items 3ml each.
URL: https://fhir.ee/StructureDefinition/ee-tis-size-of-item
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... extension:name 0..1 string Registered name for the medicinal product.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-name
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... identifier Σ 0..1 Identifier Package code when medication is prescribed based on specific package
ele-1: All FHIR elements must have a @value or children
... doseForm 1..1 CodeableConcept Dose form of the medication. E.g powder, tablet, ointment etc.
Binding: Ravimvormid (preferred)
ele-1: All FHIR elements must have a @value or children
... totalVolume Σ 1..1 SimpleQuantity If the certain medication (brand name) is chosen then total volume is the amount of medication in package. If based on just active ingredient then total volume is same as in MedicationStatement TotalPrescribedAmount.
ele-1: All FHIR elements must have a @value or children
.... value Σ 1..1 decimal Total volume of medication.
ele-1: All FHIR elements must have a @value or children
.... code ΣC 0..1 code Unit for total volume
ele-1: All FHIR elements must have a @value or children
... ingredient 1..* BackboneElement Active or inactive ingredient
ele-1: All FHIR elements must have a @value or children
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... item 1..1 CodeableReference(Substance | Medication) Active ingredient from Ravimiameti value set
Binding: Toimeainete loend (preferred)
ele-1: All FHIR elements must have a @value or children
.... isActive 1..1 boolean Active ingredient indicator
ele-1: All FHIR elements must have a @value or children
..... value 0..1 boolean Primitive value for boolean
Required Pattern: true
.... strength[x] 1..1 Ratio Strenght ratio of the active ingredient
ele-1: All FHIR elements must have a @value or children

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Medication.doseFormpreferredRavimvormid_VS (a valid code from Ravimvorm)
https://fhir.ee/ValueSet/ravimvormid
from this IG
Medication.ingredient.itempreferredToimeained_VS (a valid code from Toimeained)
https://fhir.ee/ValueSet/toimeained
from this IG

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()

Differential View

This structure is derived from Medication

NameFlagsCard.TypeDescription & Constraintsdoco
.. Medication Medication
... meta
.... versionId 0..1 id Version specific identifier
Example versionId: 1
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:atc 1..1 CodeableConcept Classifications of the product, e.g ATC, narcotic/psychotropic, orphan drug, OTC medication etc.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification
.... extension:sizeOfItem 0..1 SimpleQuantity Size of medicinal product item (3ml). E.g. total volume of packaged medication is 30ml but it includes 10 items 3ml each.
URL: https://fhir.ee/StructureDefinition/ee-tis-size-of-item
.... extension:name 0..1 string Registered name for the medicinal product.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-name
... identifier 0..1 Identifier Package code when medication is prescribed based on specific package
... status 0..0
... marketingAuthorizationHolder 0..0
... doseForm 1..1 CodeableConcept Dose form of the medication. E.g powder, tablet, ointment etc.
Binding: Ravimvormid (preferred)
... totalVolume 1..1 SimpleQuantity If the certain medication (brand name) is chosen then total volume is the amount of medication in package. If based on just active ingredient then total volume is same as in MedicationStatement TotalPrescribedAmount.
.... value 1..1 decimal Total volume of medication.
.... unit 0..0
.... code 0..1 code Unit for total volume
... ingredient 1..* BackboneElement Active or inactive ingredient
.... item 1..1 CodeableReference(Substance | Medication) Active ingredient from Ravimiameti value set
Binding: Toimeainete loend (preferred)
.... isActive 1..1 boolean Active ingredient indicator
..... value 0..1 boolean Primitive value for boolean
Required Pattern: true
.... strength[x] 1..1 Ratio Strenght ratio of the active ingredient
... batch 0..0
... definition 0..0

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
Medication.doseFormpreferredRavimvormid_VS (a valid code from Ravimvorm)
https://fhir.ee/ValueSet/ravimvormid
from this IG
Medication.ingredient.itempreferredToimeained_VS (a valid code from Toimeained)
https://fhir.ee/ValueSet/toimeained
from this IG

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
.... id 0..1 id Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... versionId Σ 0..1 id Version specific identifier
Example versionId: 1
.... lastUpdated Σ 0..1 instant When the resource version last changed
.... source Σ 0..1 uri Identifies where the resource comes from
.... profile Σ 0..* canonical(StructureDefinition) Profiles this resource claims to conform to
.... security Σ 0..* Coding Security Labels applied to this resource
Binding: AllSecurityLabels (extensible): Security Labels from the Healthcare Privacy and Security Classification System.


.... tag Σ 0..* Coding Tags applied to this resource
Binding: CommonTags (example): Codes that represent various types of tags, commonly workflow-related; e.g. "Needs review by Dr. Jones".


... 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 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:atc 1..1 CodeableConcept Classifications of the product, e.g ATC, narcotic/psychotropic, orphan drug, OTC medication etc.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-classification
.... extension:sizeOfItem 0..1 SimpleQuantity Size of medicinal product item (3ml). E.g. total volume of packaged medication is 30ml but it includes 10 items 3ml each.
URL: https://fhir.ee/StructureDefinition/ee-tis-size-of-item
.... extension:name 0..1 string Registered name for the medicinal product.
URL: https://fhir.ee/StructureDefinition/ee-tis-medicinal-product-name
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier Σ 0..1 Identifier Package code when medication is prescribed based on specific package
... doseForm 1..1 CodeableConcept Dose form of the medication. E.g powder, tablet, ointment etc.
Binding: Ravimvormid (preferred)
... totalVolume Σ 1..1 SimpleQuantity If the certain medication (brand name) is chosen then total volume is the amount of medication in package. If based on just active ingredient then total volume is same as in MedicationStatement TotalPrescribedAmount.
.... 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 Total volume of medication.
.... system ΣC 0..1 uri System that defines coded unit form
.... code ΣC 0..1 code Unit for total volume
... 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) Active ingredient from Ravimiameti value set
Binding: Toimeainete loend (preferred)
.... 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
.... strength[x] 1..1 Ratio Strenght ratio of the active ingredient

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
Medication.meta.securityextensibleAllSecurityLabels
http://hl7.org/fhir/ValueSet/security-labels
from the FHIR Standard
Medication.meta.tagexampleCommonTags
http://hl7.org/fhir/ValueSet/common-tags
from the FHIR Standard
Medication.languagerequiredAllLanguages
http://hl7.org/fhir/ValueSet/all-languages|5.0.0
from the FHIR Standard
Medication.doseFormpreferredRavimvormid_VS (a valid code from Ravimvorm)
https://fhir.ee/ValueSet/ravimvormid
from this IG
Medication.ingredient.itempreferredToimeained_VS (a valid code from Toimeained)
https://fhir.ee/ValueSet/toimeained
from this IG

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()

This structure is derived from Medication

 

Other representations of profile: CSV, Excel, Schematron