{
"description": "Logical data model for medication line.",
"_filename": "StructureDefinition-BeModelMedicationLine.json",
"package_name": "hl7.fhir.be.medication",
"date": "2026-04-24T16:06:58+02:00",
"derivation": "specialization",
"publisher": "eHealth Platform",
"fhirVersion": "4.0.1",
"jurisdiction": [ {
"coding": [ {
"code": "BE",
"system": "urn:iso:std:iso:3166",
"display": "Belgium"
} ]
} ],
"name": "MedicationLine",
"abstract": false,
"type": "https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelMedicationLine",
"experimental": null,
"resourceType": "StructureDefinition",
"title": "Medication Line (model)",
"package_version": "1.1.1",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
"valueCode": "can-be-target"
} ],
"snapshot": {
"element": [ {
"id": "BeModelMedicationLine",
"max": "*",
"min": 0,
"base": {
"max": "*",
"min": 0,
"path": "Base"
},
"path": "BeModelMedicationLine",
"short": "Medication Line (model)",
"definition": "Logical data model for medication line.",
"isModifier": false
}, {
"id": "BeModelMedicationLine.identifier",
"max": "*",
"min": 1,
"base": {
"max": "*",
"min": 1,
"path": "BeModelMedicationLine.identifier"
},
"path": "BeModelMedicationLine.identifier",
"type": [ {
"code": "Identifier"
} ],
"short": "Unique identifier",
"definition": "A unique identifier for the medication line. This identifier alone may be the same for different versions of the medication line."
}, {
"path": "BeModelMedicationLine.recordedDate",
"min": 1,
"definition": "Timestamp the medication line content was recorded or last updated.",
"short": "Timestamp the medication line content was recorded or last updated.",
"type": [ {
"code": "dateTime"
} ],
"max": "1",
"id": "BeModelMedicationLine.recordedDate",
"comment": " We consider this is redundant with the above, given the intended use in Belgium (version is a date). How to ensure the compatibility?",
"base": {
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.recordedDate"
}
}, {
"path": "BeModelMedicationLine.recorder",
"min": 1,
"definition": "Recorder",
"short": "Recorder",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitioner" ]
} ],
"max": "1",
"id": "BeModelMedicationLine.recorder",
"comment": "We understand this will be updated as the line changes",
"base": {
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.recorder"
}
}, {
"id": "BeModelMedicationLine.patient",
"max": "1",
"min": 1,
"base": {
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.patient"
},
"path": "BeModelMedicationLine.patient",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-patient" ]
} ],
"short": "Patient",
"definition": "Patient"
}, {
"path": "BeModelMedicationLine.status",
"min": 1,
"definition": "Status of the line entry",
"short": "Status of the line entry",
"type": [ {
"code": "code"
} ],
"binding": {
"strength": "preferred",
"description": "`Draft`, `Recorded`, or `Entered in Error`"
},
"max": "1",
"id": "BeModelMedicationLine.status",
"base": {
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.status"
}
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "BeModelMedicationLine.adherence",
"min": 0,
"definition": "Whether the patient is known to be taking the medication",
"short": "Whether the patient is known to be taking the medication",
"type": [ {
"code": "BackboneElement"
} ],
"max": "1",
"id": "BeModelMedicationLine.adherence",
"base": {
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.adherence"
}
}, {
"path": "BeModelMedicationLine.adherence.id",
"min": 0,
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"isModifier": false,
"short": "Unique id for inter-element referencing",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"type": [ {
"code": "http://hl7.org/fhirpath/System.String",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
} ]
} ],
"representation": [ "xmlAttr" ],
"max": "1",
"id": "BeModelMedicationLine.adherence.id",
"base": {
"max": "1",
"min": 0,
"path": "Element.id"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "BeModelMedicationLine.adherence.extension",
"min": 0,
"definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
"isModifier": false,
"short": "Additional content defined by implementations",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"slicing": {
"rules": "open",
"description": "Extensions are always sliced by (at least) url",
"discriminator": [ {
"path": "url",
"type": "value"
} ]
},
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content" ],
"max": "*",
"id": "BeModelMedicationLine.adherence.extension",
"comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
"base": {
"max": "*",
"min": 0,
"path": "Element.extension"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "BeModelMedicationLine.adherence.modifierExtension",
"requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
"min": 0,
"definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
"isModifier": true,
"short": "Extensions that cannot be ignored even if unrecognized",
"mapping": [ {
"map": "N/A",
"identity": "rim"
} ],
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content", "modifiers" ],
"max": "*",
"id": "BeModelMedicationLine.adherence.modifierExtension",
"comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
"base": {
"max": "*",
"min": 0,
"path": "BackboneElement.modifierExtension"
},
"isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
"isSummary": true
}, {
"path": "BeModelMedicationLine.adherence.status",
"min": 1,
"definition": "The status - taking, not taking,...",
"short": "The status - taking, not taking,...",
"type": [ {
"code": "CodeableConcept"
} ],
"binding": {
"strength": "required",
"valueSet": "https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusVS"
},
"max": "1",
"id": "BeModelMedicationLine.adherence.status",
"base": {
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.adherence.status"
}
}, {
"path": "BeModelMedicationLine.adherence.adherenceStatusReason",
"min": 0,
"definition": "Reason for the adherence status",
"short": "Reason for the adherence status",
"type": [ {
"code": "CodeableConcept"
} ],
"binding": {
"strength": "example",
"valueSet": "https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusReasonVS"
},
"max": "1",
"id": "BeModelMedicationLine.adherence.adherenceStatusReason",
"comment": "The value set provided is an indicative example",
"base": {
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.adherence.adherenceStatusReason"
}
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "BeModelMedicationLine.medication",
"min": 1,
"definition": "The product or substance",
"short": "The product or substance",
"type": [ {
"code": "BackboneElement"
} ],
"max": "1",
"id": "BeModelMedicationLine.medication",
"base": {
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.medication"
}
}, {
"path": "BeModelMedicationLine.medication.id",
"min": 0,
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"isModifier": false,
"short": "Unique id for inter-element referencing",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"type": [ {
"code": "http://hl7.org/fhirpath/System.String",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
} ]
} ],
"representation": [ "xmlAttr" ],
"max": "1",
"id": "BeModelMedicationLine.medication.id",
"base": {
"max": "1",
"min": 0,
"path": "Element.id"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "BeModelMedicationLine.medication.extension",
"min": 0,
"definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
"isModifier": false,
"short": "Additional content defined by implementations",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"slicing": {
"rules": "open",
"description": "Extensions are always sliced by (at least) url",
"discriminator": [ {
"path": "url",
"type": "value"
} ]
},
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content" ],
"max": "*",
"id": "BeModelMedicationLine.medication.extension",
"comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
"base": {
"max": "*",
"min": 0,
"path": "Element.extension"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "BeModelMedicationLine.medication.modifierExtension",
"requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
"min": 0,
"definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
"isModifier": true,
"short": "Extensions that cannot be ignored even if unrecognized",
"mapping": [ {
"map": "N/A",
"identity": "rim"
} ],
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content", "modifiers" ],
"max": "*",
"id": "BeModelMedicationLine.medication.modifierExtension",
"comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
"base": {
"max": "*",
"min": 0,
"path": "BackboneElement.modifierExtension"
},
"isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
"isSummary": true
}, {
"id": "BeModelMedicationLine.medication.product",
"max": "1",
"min": 1,
"base": {
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.medication.product"
},
"path": "BeModelMedicationLine.medication.product",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelMedication" ]
} ],
"short": "Product reference, identifier or name",
"definition": "Product reference, identifier or name"
}, {
"path": "BeModelMedicationLine.medication.type",
"min": 1,
"definition": "Type of medication - magistral, medicinal product, non-medicinal product",
"short": "Type of medication - magistral, medicinal product, non-medicinal product",
"type": [ {
"code": "CodeableConcept"
} ],
"binding": {
"strength": "required",
"valueSet": "https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationTypeVS"
},
"max": "1",
"id": "BeModelMedicationLine.medication.type",
"base": {
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.medication.type"
}
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "BeModelMedicationLine.reason",
"min": 0,
"definition": "Reason for the medication treatment",
"short": "Reason for the medication treatment",
"type": [ {
"code": "BackboneElement"
} ],
"max": "*",
"id": "BeModelMedicationLine.reason",
"base": {
"max": "*",
"min": 0,
"path": "BeModelMedicationLine.reason"
}
}, {
"path": "BeModelMedicationLine.reason.id",
"min": 0,
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"isModifier": false,
"short": "Unique id for inter-element referencing",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"type": [ {
"code": "http://hl7.org/fhirpath/System.String",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
} ]
} ],
"representation": [ "xmlAttr" ],
"max": "1",
"id": "BeModelMedicationLine.reason.id",
"base": {
"max": "1",
"min": 0,
"path": "Element.id"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "BeModelMedicationLine.reason.extension",
"min": 0,
"definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
"isModifier": false,
"short": "Additional content defined by implementations",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"slicing": {
"rules": "open",
"description": "Extensions are always sliced by (at least) url",
"discriminator": [ {
"path": "url",
"type": "value"
} ]
},
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content" ],
"max": "*",
"id": "BeModelMedicationLine.reason.extension",
"comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
"base": {
"max": "*",
"min": 0,
"path": "Element.extension"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "BeModelMedicationLine.reason.modifierExtension",
"requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
"min": 0,
"definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
"isModifier": true,
"short": "Extensions that cannot be ignored even if unrecognized",
"mapping": [ {
"map": "N/A",
"identity": "rim"
} ],
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content", "modifiers" ],
"max": "*",
"id": "BeModelMedicationLine.reason.modifierExtension",
"comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
"base": {
"max": "*",
"min": 0,
"path": "BackboneElement.modifierExtension"
},
"isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
"isSummary": true
}, {
"id": "BeModelMedicationLine.reason.reference",
"max": "1",
"min": 0,
"base": {
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.reason.reference"
},
"path": "BeModelMedicationLine.reason.reference",
"type": [ {
"code": "Reference"
} ],
"short": "Reference to existing condition or reason",
"definition": "Reference to existing condition or reason"
}, {
"id": "BeModelMedicationLine.reason.code",
"max": "1",
"min": 0,
"base": {
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.reason.code"
},
"path": "BeModelMedicationLine.reason.code",
"type": [ {
"code": "CodeableConcept"
} ],
"short": "Code of the condition, or free text",
"definition": "Code of the condition, or free text"
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
} ],
"path": "BeModelMedicationLine.effectivePeriod",
"min": 1,
"definition": "Period of medication treatment",
"short": "Period of medication treatment",
"type": [ {
"code": "BackboneElement"
} ],
"max": "1",
"id": "BeModelMedicationLine.effectivePeriod",
"base": {
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.effectivePeriod"
}
}, {
"path": "BeModelMedicationLine.effectivePeriod.id",
"min": 0,
"definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
"isModifier": false,
"short": "Unique id for inter-element referencing",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"type": [ {
"code": "http://hl7.org/fhirpath/System.String",
"extension": [ {
"url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
"valueUrl": "string"
} ]
} ],
"representation": [ "xmlAttr" ],
"max": "1",
"id": "BeModelMedicationLine.effectivePeriod.id",
"base": {
"max": "1",
"min": 0,
"path": "Element.id"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "BeModelMedicationLine.effectivePeriod.extension",
"min": 0,
"definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
"isModifier": false,
"short": "Additional content defined by implementations",
"mapping": [ {
"map": "n/a",
"identity": "rim"
} ],
"slicing": {
"rules": "open",
"description": "Extensions are always sliced by (at least) url",
"discriminator": [ {
"path": "url",
"type": "value"
} ]
},
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content" ],
"max": "*",
"id": "BeModelMedicationLine.effectivePeriod.extension",
"comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
"base": {
"max": "*",
"min": 0,
"path": "Element.extension"
},
"isSummary": false
}, {
"constraint": [ {
"key": "ele-1",
"human": "All FHIR elements must have a @value or children",
"xpath": "@value|f:*|h:div",
"source": "http://hl7.org/fhir/StructureDefinition/Element",
"severity": "error",
"expression": "hasValue() or (children().count() > id.count())"
}, {
"key": "ext-1",
"human": "Must have either extensions or value[x], not both",
"xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
"source": "http://hl7.org/fhir/StructureDefinition/Extension",
"severity": "error",
"expression": "extension.exists() != value.exists()"
} ],
"path": "BeModelMedicationLine.effectivePeriod.modifierExtension",
"requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).",
"min": 0,
"definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
"isModifier": true,
"short": "Extensions that cannot be ignored even if unrecognized",
"mapping": [ {
"map": "N/A",
"identity": "rim"
} ],
"type": [ {
"code": "Extension"
} ],
"alias": [ "extensions", "user content", "modifiers" ],
"max": "*",
"id": "BeModelMedicationLine.effectivePeriod.modifierExtension",
"comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
"base": {
"max": "*",
"min": 0,
"path": "BackboneElement.modifierExtension"
},
"isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
"isSummary": true
}, {
"id": "BeModelMedicationLine.effectivePeriod.start",
"max": "1",
"min": 1,
"base": {
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.effectivePeriod.start"
},
"path": "BeModelMedicationLine.effectivePeriod.start",
"type": [ {
"code": "dateTime"
} ],
"short": "The begin of the medication line",
"definition": "The begin of the medication line"
}, {
"id": "BeModelMedicationLine.effectivePeriod.end",
"max": "1",
"min": 0,
"base": {
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.effectivePeriod.end"
},
"path": "BeModelMedicationLine.effectivePeriod.end",
"type": [ {
"code": "dateTime"
} ],
"short": "The end of the medication line",
"definition": "The end of the medication line"
}, {
"id": "BeModelMedicationLine.dosage",
"max": "*",
"min": 0,
"base": {
"max": "*",
"min": 0,
"path": "BeModelMedicationLine.dosage"
},
"path": "BeModelMedicationLine.dosage",
"type": [ {
"code": "https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelDosagingInformation"
} ],
"short": "Structured Dosage",
"definition": "Structured Dosage"
}, {
"path": "BeModelMedicationLine.offLabel",
"min": 0,
"definition": "Reason for Off-label use or dosage override",
"short": "Reason for Off-label use or dosage override",
"type": [ {
"code": "string"
} ],
"max": "1",
"id": "BeModelMedicationLine.offLabel",
"comment": "isOffLabelUse and reason are expected to be manually filled by the prescriber, indicating that this dosage is not entered in error. This information is an indication (for example) for the pharmacist to see that there is a justification of the dosage difference.",
"base": {
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.offLabel"
}
}, {
"path": "BeModelMedicationLine.exposure",
"min": 0,
"definition": "Therapeutic, Prophylactic",
"short": "Therapeutic, Prophylactic",
"type": [ {
"code": "CodeableConcept"
} ],
"binding": {
"strength": "required",
"valueSet": "https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationExposureIntentVS"
},
"max": "1",
"id": "BeModelMedicationLine.exposure",
"base": {
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.exposure"
}
}, {
"path": "BeModelMedicationLine.originType",
"min": 0,
"definition": "The origin of the line - hospital, ambulatory",
"short": "The origin of the line - hospital, ambulatory",
"type": [ {
"code": "CodeableConcept"
} ],
"binding": {
"strength": "required",
"valueSet": "https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineOriginTypeVS"
},
"max": "1",
"id": "BeModelMedicationLine.originType",
"base": {
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.originType"
}
}, {
"id": "BeModelMedicationLine.note",
"max": "*",
"min": 0,
"base": {
"max": "*",
"min": 0,
"path": "BeModelMedicationLine.note"
},
"path": "BeModelMedicationLine.note",
"type": [ {
"code": "Annotation"
} ],
"short": "A note captured by a professional",
"definition": "A note captured by a professional"
} ],
"extension": [ {
"url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
"valueString": "4.0.1"
} ]
},
"status": "active",
"id": "906820c2-85c6-4fc2-9450-374ee56e4b52",
"kind": "logical",
"url": "https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelMedicationLine",
"version": "1.1.1",
"differential": {
"element": [ {
"id": "BeModelMedicationLine",
"path": "BeModelMedicationLine",
"short": "Medication Line (model)",
"definition": "Logical data model for medication line."
}, {
"id": "BeModelMedicationLine.identifier",
"max": "*",
"min": 1,
"path": "BeModelMedicationLine.identifier",
"type": [ {
"code": "Identifier"
} ],
"short": "Unique identifier",
"definition": "A unique identifier for the medication line. This identifier alone may be the same for different versions of the medication line."
}, {
"id": "BeModelMedicationLine.recordedDate",
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.recordedDate",
"type": [ {
"code": "dateTime"
} ],
"short": "Timestamp the medication line content was recorded or last updated.",
"comment": " We consider this is redundant with the above, given the intended use in Belgium (version is a date). How to ensure the compatibility?",
"definition": "Timestamp the medication line content was recorded or last updated."
}, {
"id": "BeModelMedicationLine.recorder",
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.recorder",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitioner" ]
} ],
"short": "Recorder",
"comment": "We understand this will be updated as the line changes",
"definition": "Recorder"
}, {
"id": "BeModelMedicationLine.patient",
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.patient",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-patient" ]
} ],
"short": "Patient",
"definition": "Patient"
}, {
"id": "BeModelMedicationLine.status",
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.status",
"type": [ {
"code": "code"
} ],
"short": "Status of the line entry",
"binding": {
"strength": "preferred",
"description": "`Draft`, `Recorded`, or `Entered in Error`"
},
"definition": "Status of the line entry"
}, {
"id": "BeModelMedicationLine.adherence",
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.adherence",
"type": [ {
"code": "BackboneElement"
} ],
"short": "Whether the patient is known to be taking the medication",
"definition": "Whether the patient is known to be taking the medication"
}, {
"id": "BeModelMedicationLine.adherence.status",
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.adherence.status",
"type": [ {
"code": "CodeableConcept"
} ],
"short": "The status - taking, not taking,...",
"binding": {
"strength": "required",
"valueSet": "https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusVS"
},
"definition": "The status - taking, not taking,..."
}, {
"path": "BeModelMedicationLine.adherence.adherenceStatusReason",
"min": 0,
"definition": "Reason for the adherence status",
"short": "Reason for the adherence status",
"type": [ {
"code": "CodeableConcept"
} ],
"binding": {
"strength": "example",
"valueSet": "https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusReasonVS"
},
"max": "1",
"id": "BeModelMedicationLine.adherence.adherenceStatusReason",
"comment": "The value set provided is an indicative example"
}, {
"id": "BeModelMedicationLine.medication",
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.medication",
"type": [ {
"code": "BackboneElement"
} ],
"short": "The product or substance",
"definition": "The product or substance"
}, {
"id": "BeModelMedicationLine.medication.product",
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.medication.product",
"type": [ {
"code": "Reference",
"targetProfile": [ "https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelMedication" ]
} ],
"short": "Product reference, identifier or name",
"definition": "Product reference, identifier or name"
}, {
"id": "BeModelMedicationLine.medication.type",
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.medication.type",
"type": [ {
"code": "CodeableConcept"
} ],
"short": "Type of medication - magistral, medicinal product, non-medicinal product",
"binding": {
"strength": "required",
"valueSet": "https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationTypeVS"
},
"definition": "Type of medication - magistral, medicinal product, non-medicinal product"
}, {
"id": "BeModelMedicationLine.reason",
"max": "*",
"min": 0,
"path": "BeModelMedicationLine.reason",
"type": [ {
"code": "BackboneElement"
} ],
"short": "Reason for the medication treatment",
"definition": "Reason for the medication treatment"
}, {
"id": "BeModelMedicationLine.reason.reference",
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.reason.reference",
"type": [ {
"code": "Reference"
} ],
"short": "Reference to existing condition or reason",
"definition": "Reference to existing condition or reason"
}, {
"id": "BeModelMedicationLine.reason.code",
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.reason.code",
"type": [ {
"code": "CodeableConcept"
} ],
"short": "Code of the condition, or free text",
"definition": "Code of the condition, or free text"
}, {
"id": "BeModelMedicationLine.effectivePeriod",
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.effectivePeriod",
"type": [ {
"code": "BackboneElement"
} ],
"short": "Period of medication treatment",
"definition": "Period of medication treatment"
}, {
"id": "BeModelMedicationLine.effectivePeriod.start",
"max": "1",
"min": 1,
"path": "BeModelMedicationLine.effectivePeriod.start",
"type": [ {
"code": "dateTime"
} ],
"short": "The begin of the medication line",
"definition": "The begin of the medication line"
}, {
"id": "BeModelMedicationLine.effectivePeriod.end",
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.effectivePeriod.end",
"type": [ {
"code": "dateTime"
} ],
"short": "The end of the medication line",
"definition": "The end of the medication line"
}, {
"id": "BeModelMedicationLine.dosage",
"max": "*",
"min": 0,
"path": "BeModelMedicationLine.dosage",
"type": [ {
"code": "https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelDosagingInformation"
} ],
"short": "Structured Dosage",
"definition": "Structured Dosage"
}, {
"id": "BeModelMedicationLine.offLabel",
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.offLabel",
"type": [ {
"code": "string"
} ],
"short": "Reason for Off-label use or dosage override",
"comment": "isOffLabelUse and reason are expected to be manually filled by the prescriber, indicating that this dosage is not entered in error. This information is an indication (for example) for the pharmacist to see that there is a justification of the dosage difference.",
"definition": "Reason for Off-label use or dosage override"
}, {
"id": "BeModelMedicationLine.exposure",
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.exposure",
"type": [ {
"code": "CodeableConcept"
} ],
"short": "Therapeutic, Prophylactic",
"binding": {
"strength": "required",
"valueSet": "https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationExposureIntentVS"
},
"definition": "Therapeutic, Prophylactic"
}, {
"id": "BeModelMedicationLine.originType",
"max": "1",
"min": 0,
"path": "BeModelMedicationLine.originType",
"type": [ {
"code": "CodeableConcept"
} ],
"short": "The origin of the line - hospital, ambulatory",
"binding": {
"strength": "required",
"valueSet": "https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineOriginTypeVS"
},
"definition": "The origin of the line - hospital, ambulatory"
}, {
"id": "BeModelMedicationLine.note",
"max": "*",
"min": 0,
"path": "BeModelMedicationLine.note",
"type": [ {
"code": "Annotation"
} ],
"short": "A note captured by a professional",
"definition": "A note captured by a professional"
} ]
},
"contact": [ {
"name": "eHealth Platform",
"telecom": [ {
"value": "https://www.ehealth.fgov.be/standards/fhir",
"system": "url"
}, {
"value": "support@be-ehealth-standards.atlassian.net",
"system": "email"
} ]
}, {
"name": "Message Structure eHealth",
"telecom": [ {
"use": "work",
"value": "support@be-ehealth-standards.atlassian.net",
"system": "email"
} ]
} ],
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base"
}