ERA FHIR specification
1.0.0 - draft
ERA FHIR specification - Local Development build (v1.0.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions
| Official URL: https://eradocumentation.atostek.com/StructureDefinition/EraMedicationListMedication | Version: 1.0.0 | |||
| Draft as of 2026-10-28 | Computable Name: EraMedicationListMedication | |||
EraMedicationListMedication profile that is used with Kanta medication list in ERA interface. Based on the Kanta profile MedicationListMedication. Source
Usages:
You can also check for usages in the FHIR IG Statistics
Description of Profiles, Differentials, Snapshots and how the different presentations work.
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Medication | 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 | error | Medication | 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 | error | Medication | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Medication | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from MedicationListMedication
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | MedicationListMedication | Definition of a Medication | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..1 | string | Release version URL: https://eradocumentation.atostek.com/StructureDefinition/extension/drugDatabaseReleaseVersion | |
Documentation for this format | ||||
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | MedicationListMedication | Definition of a Medication | |||||
![]() ![]() |
0..1 | id | Logical id of this artifact | |||||
![]() ![]() |
0..1 | Meta | Metadata about the resource | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
0..1 | id | Version specific identifier | |||||
![]() ![]() ![]() |
0..1 | instant | When the resource version last changed | |||||
![]() ![]() ![]() |
0..1 | uri | Identifies where the resource comes from | |||||
![]() ![]() ![]() |
1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Fixed Value: http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication (no extensions allowed) | |||||
![]() ![]() ![]() |
0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | |||||
![]() ![]() ![]() |
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". | |||||
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
1..1 | Reference(MedicationListMedicationKnowledge) | Reference to MedicationKnowledge profile URL: http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | string | Valmisteen vahvuus ja yksikkö tekstinä URL: http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | string | Name of a medicinal product outside the drug database URL: http://resepti.kanta.fi/fhir/StructureDefinition/extension/itemName Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | string | Release version URL: https://eradocumentation.atostek.com/StructureDefinition/extension/drugDatabaseReleaseVersion | |||||
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |||||
![]() ![]() |
0..1 | CodeableConcept | Codes that identify this medication Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication. | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
0..* | Coding | Code defined by a terminology system Slice: Unordered, Open At End by value:system | |||||
![]() ![]() ![]() ![]() |
0..1 | Coding | ATC code and corresponding name | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | OID of the Kanta code system 'Fimea - ATC Luokitus' Fixed Value: urn:oid:1.2.246.537.6.32.2007 (no extensions allowed) | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Version of the system - if relevant | |||||
![]() ![]() ![]() ![]() ![]() |
1..1 | code | ATC code | |||||
![]() ![]() ![]() ![]() ![]() |
1..1 | string | Name of the drug group corresponding to the ATC code | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | boolean | If this coding was chosen directly by the user | |||||
![]() ![]() ![]() |
0..1 | string | Plain text representation of the concept | |||||
![]() ![]() |
0..* | BackboneElement | Ingredients of the drug | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Ainesosan määrä tekstinä URL: http://resepti.kanta.fi/fhir/StructureDefinition/extension/quantityText Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() |
1..1 | CodeableConcept | The actual ingredient or content | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..* | Coding | Code defined by a terminology system | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | uri | OID of the code system for ingredient Fixed Value: urn:oid:1.2.246.537.6.32.2007 (no extensions allowed) | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Version of the system - if relevant | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | Ingredient code | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Corresponding name of the ingredient code. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | boolean | If this coding was chosen directly by the user | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Name, strength, and pharmaceutical form of the ingredient as text | |||||
![]() ![]() ![]() |
1..1 | boolean | Information of whether this is an active ingredient or an excipient | |||||
![]() ![]() ![]() |
0..1 | Ratio | The amount and unit of the ingredient of a drug manufactured by a pharmacy | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | Quantity | Numerator value | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | decimal | Amount of ingredient | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unit of ingredient | |||||
![]() ![]() ![]() ![]() ![]() |
C | 0..1 | uri | System that defines coded unit form | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | Coded form of the unit | |||||
![]() ![]() ![]() ![]() |
0..1 | Quantity | Denominator value | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | decimal | Always set to 1 | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unit representation | |||||
![]() ![]() ![]() ![]() ![]() |
C | 0..1 | uri | System that defines coded unit form | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | Coded form of the unit | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Medication.meta.security | Base | extensible | SecurityLabels | 📍4.0.1 | FHIR Std. |
| Medication.meta.tag | Base | example | Common Tags | 📍4.0.1 | FHIR Std. |
| Medication.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std. |
| Medication.code | Base | example | SNOMED CT Medication Codes | 📍4.0.1 | FHIR Std. |
| Medication.ingredient.strength.numerator.comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std. |
| Medication.ingredient.strength.denominator.comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Medication | 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 | error | Medication | 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 | error | Medication | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Medication | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from MedicationListMedication
Key Elements View
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Medication | 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 | error | Medication | 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 | error | Medication | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Medication | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
Differential View
This structure is derived from MedicationListMedication
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() |
|---|---|---|---|---|
![]() |
0..* | MedicationListMedication | Definition of a Medication | |
![]() ![]() |
Content/Rules for all slices | |||
![]() ![]() ![]() |
0..1 | string | Release version URL: https://eradocumentation.atostek.com/StructureDefinition/extension/drugDatabaseReleaseVersion | |
Documentation for this format | ||||
Snapshot View
| Name | Flags | Card. | Type | Description & Constraints Filter: ![]() | ||||
|---|---|---|---|---|---|---|---|---|
![]() |
0..* | MedicationListMedication | Definition of a Medication | |||||
![]() ![]() |
0..1 | id | Logical id of this artifact | |||||
![]() ![]() |
0..1 | Meta | Metadata about the resource | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
0..1 | id | Version specific identifier | |||||
![]() ![]() ![]() |
0..1 | instant | When the resource version last changed | |||||
![]() ![]() ![]() |
0..1 | uri | Identifies where the resource comes from | |||||
![]() ![]() ![]() |
1..1 | canonical(StructureDefinition) | Profiles this resource claims to conform to Fixed Value: http://resepti.kanta.fi/fhir/StructureDefinition/MedicationListMedication (no extensions allowed) | |||||
![]() ![]() ![]() |
0..* | Coding | Security Labels applied to this resource Binding: All Security Labels (extensible): Security Labels from the Healthcare Privacy and Security Classification System. | |||||
![]() ![]() ![]() |
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". | |||||
![]() ![]() |
0..1 | uri | A set of rules under which this content was created | |||||
![]() ![]() |
0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
| |||||
![]() ![]() |
0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements | |||||
![]() ![]() |
0..* | Resource | Contained, inline Resources | |||||
![]() ![]() |
1..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
1..1 | Reference(MedicationListMedicationKnowledge) | Reference to MedicationKnowledge profile URL: http://resepti.kanta.fi/fhir/StructureDefinition/extension/medicationKnowledgeReference Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | string | Valmisteen vahvuus ja yksikkö tekstinä URL: http://resepti.kanta.fi/StructureDefinition/extension/pharmaceuticalProductStrength Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | string | Name of a medicinal product outside the drug database URL: http://resepti.kanta.fi/fhir/StructureDefinition/extension/itemName Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..1 | string | Release version URL: https://eradocumentation.atostek.com/StructureDefinition/extension/drugDatabaseReleaseVersion | |||||
![]() ![]() |
0..* | Extension | Extensions that cannot be ignored | |||||
![]() ![]() |
0..1 | CodeableConcept | Codes that identify this medication Binding: SNOMEDCTMedicationCodes (example): A coded concept that defines the type of a medication. | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() |
0..* | Coding | Code defined by a terminology system Slice: Unordered, Open At End by value:system | |||||
![]() ![]() ![]() ![]() |
0..1 | Coding | ATC code and corresponding name | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
1..1 | uri | OID of the Kanta code system 'Fimea - ATC Luokitus' Fixed Value: urn:oid:1.2.246.537.6.32.2007 (no extensions allowed) | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Version of the system - if relevant | |||||
![]() ![]() ![]() ![]() ![]() |
1..1 | code | ATC code | |||||
![]() ![]() ![]() ![]() ![]() |
1..1 | string | Name of the drug group corresponding to the ATC code | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | boolean | If this coding was chosen directly by the user | |||||
![]() ![]() ![]() |
0..1 | string | Plain text representation of the concept | |||||
![]() ![]() |
0..* | BackboneElement | Ingredients of the drug | |||||
![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() |
0..* | Extension | Extension Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Ainesosan määrä tekstinä URL: http://resepti.kanta.fi/fhir/StructureDefinition/extension/quantityText Constraints: ext-1 | |||||
![]() ![]() ![]() |
0..* | Extension | Extensions that cannot be ignored even if unrecognized | |||||
![]() ![]() ![]() |
1..1 | CodeableConcept | The actual ingredient or content | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..* | Coding | Code defined by a terminology system | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | uri | OID of the code system for ingredient Fixed Value: urn:oid:1.2.246.537.6.32.2007 (no extensions allowed) | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Version of the system - if relevant | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | Ingredient code | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Corresponding name of the ingredient code. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | boolean | If this coding was chosen directly by the user | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Name, strength, and pharmaceutical form of the ingredient as text | |||||
![]() ![]() ![]() |
1..1 | boolean | Information of whether this is an active ingredient or an excipient | |||||
![]() ![]() ![]() |
0..1 | Ratio | The amount and unit of the ingredient of a drug manufactured by a pharmacy | |||||
![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() |
0..1 | Quantity | Numerator value | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | decimal | Amount of ingredient | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unit of ingredient | |||||
![]() ![]() ![]() ![]() ![]() |
C | 0..1 | uri | System that defines coded unit form | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | Coded form of the unit | |||||
![]() ![]() ![]() ![]() |
0..1 | Quantity | Denominator value | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unique id for inter-element referencing | |||||
![]() ![]() ![]() ![]() ![]() |
0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | decimal | Always set to 1 | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | < | <= | >= | > - how to understand the value Binding: QuantityComparator (required): How the Quantity should be understood and represented. | |||||
![]() ![]() ![]() ![]() ![]() |
0..1 | string | Unit representation | |||||
![]() ![]() ![]() ![]() ![]() |
C | 0..1 | uri | System that defines coded unit form | ||||
![]() ![]() ![]() ![]() ![]() |
0..1 | code | Coded form of the unit | |||||
Documentation for this format | ||||||||
| Path | Status | Usage | ValueSet | Version | Source |
| Medication.meta.security | Base | extensible | SecurityLabels | 📍4.0.1 | FHIR Std. |
| Medication.meta.tag | Base | example | Common Tags | 📍4.0.1 | FHIR Std. |
| Medication.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std. |
| Medication.code | Base | example | SNOMED CT Medication Codes | 📍4.0.1 | FHIR Std. |
| Medication.ingredient.strength.numerator.comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std. |
| Medication.ingredient.strength.denominator.comparator | Base | required | QuantityComparator | 📍4.0.1 | FHIR Std. |
| Id | Grade | Path(s) | Description | Expression |
| dom-2 | error | Medication | If the resource is contained in another resource, it SHALL NOT contain nested Resources |
contained.contained.empty()
|
| dom-3 | error | Medication | 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 | error | Medication | 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 | error | Medication | If a resource is contained in another resource, it SHALL NOT have a security label |
contained.meta.security.empty()
|
| dom-6 | best practice | Medication | A resource should have narrative for robust management |
text.`div`.exists()
|
| ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children |
hasValue() or (children().count() > id.count())
|
| ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both |
extension.exists() != value.exists()
|
This structure is derived from MedicationListMedication
Other representations of profile: CSV, Excel, Schematron