BeModelMedicationLine
type: StructureDefinition
node role: treeRoot
id:
  v: BeModelMedicationLine
language:
  v: en
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition BeModelMedicationLine Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> BeModelMedicationLine 0..* Base Medication Line (model) Instances of this logical model can be the target of a Reference #xD; identifier 1..* Identifier Unique identifier #xD; recordedDate 1..1 dateTime Timestamp the medication line content was recorded or last updated. #xD; recorder 1..1 Reference(BePractitioner) Recorder #xD; patient 1..1 Reference(BePatient) Patient #xD; status 1..1 code Status of the line entry Binding Description: (preferred): Draft, Recorded, or Entered in Error #xD; adherence 0..1 BackboneElement Whether the patient is known to be taking the medication #xD; status 1..1 CodeableConcept The status - taking, not taking,... Binding: BeExtAdherenceStatus ValueSet (required) #xD; adherenceStatusReason 0..1 CodeableConcept Reason for the adherence status Binding: Adherence Status Reason ValueSet (example) #xD; medication 1..1 BackboneElement The product or substance #xD; product 1..1 Reference(Medication (model)) Product reference, identifier or name #xD; type 1..1 CodeableConcept Type of medication - magistral, medicinal product, non-medicinal product Binding: Medication preparation Type value set (required) #xD; reason 0..* BackboneElement Reason for the medication treatment #xD; reference 0..1 Reference() Reference to existing condition or reason #xD; code 0..1 CodeableConcept Code of the condition, or free text #xD; effectivePeriod 1..1 BackboneElement Period of medication treatment #xD; start 1..1 dateTime The begin of the medication line #xD; end 0..1 dateTime The end of the medication line #xD; dosage 0..* BeModelDosagingInformation Structured Dosage #xD; offLabel 0..1 string Reason for Off-label use or dosage override #xD; exposure 0..1 CodeableConcept Therapeutic, Prophylactic Binding: Medication exposure intent (required) #xD; originType 0..1 CodeableConcept The ori…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics
    l: structuredefinition-type-characteristics
  value: Code
    v: can-be-target
url:
  v: https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelMedicationLine
  l: BeModelMedicationLine
version:
  v: 1.1.1
name:
  v: MedicationLine
title:
  v: Medication Line (model)
status:
  v: active
date:
  v: 2026-04-24T16:11:36+02:00
publisher:
  v: eHealth Platform
contact:
  name:
    v: eHealth Platform
  telecom:
    system:
      v: url
    value:
      v: https://www.ehealth.fgov.be/standards/fhir
  telecom:
    system:
      v: email
contact:
  name:
    v: Message Structure eHealth
  telecom:
    system:
      v: email
    use:
      v: work
description:
  v: Logical data model for medication line.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: BE
    display:
      v: Belgium
fhir version:
  v: 4.0.1
kind:
  v: logical
abstract:
  v: false
type:
  v: https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelMedicationLine
  l: BeModelMedicationLine
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  l: Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
      l: snapshot-base-version
    value: String
      v: 4.0.1
  element:
    id:
      v: BeModelMedicationLine
    path:
      v: BeModelMedicationLine
    short:
      v: Medication Line (model)
    definition:
      v: Logical data model for medication line.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: BeModelMedicationLine.identifier
    path:
      v: BeModelMedicationLine.identifier
    short:
      v: Unique identifier
    definition:
      v: A unique identifier for the medication line. This identifier alone may be the same for different versions of the medication line.
    min:
      v: 1
    max:
      v: *
    base:
      path:
        v: BeModelMedicationLine.identifier
      min:
        v: 1
      max:
        v: *
    type:
      code:
        v: Identifier
        l: Identifier
  element:
    id:
      v: BeModelMedicationLine.recordedDate
    path:
      v: BeModelMedicationLine.recordedDate
    short:
      v: Timestamp the medication line content was recorded or last updated.
    definition:
      v: Timestamp the medication line content was recorded or last updated.
    comment:
      v: We consider this is redundant with the above, given the intended use in Belgium (version is a date). How to ensure the compatibility?
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: BeModelMedicationLine.recordedDate
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: dateTime
        l: dateTime
  element:
    id:
      v: BeModelMedicationLine.recorder
    path:
      v: BeModelMedicationLine.recorder
    short:
      v: Recorder
    definition:
      v: Recorder
    comment:
      v: We understand this will be updated as the line changes
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: BeModelMedicationLine.recorder
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: Reference
        l: Reference
      target profile:
        v: https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitioner
        l: be-practitioner
  element:
    id:
      v: BeModelMedicationLine.patient
    path:
      v: BeModelMedicationLine.patient
    short:
      v: Patient
    definition:
      v: Patient
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: BeModelMedicationLine.patient
      min:
        v: 1
      max:
        v: 1

code:
  v: Reference
  l: Reference
target profile:
  v: https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-patient
  l: be-patient

id:
  v: BeModelMedicationLine.status
path:
  v: BeModelMedicationLine.status
short:
  v: Status of the line entry
definition:
  v: Status of the line entry
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  strength:
    v: preferred
  description:
    v: `Draft`, `Recorded`, or `Entered in Error`

id:
  v: BeModelMedicationLine.adherence
path:
  v: BeModelMedicationLine.adherence
short:
  v: Whether the patient is known to be taking the medication
definition:
  v: Whether the patient is known to be taking the medication
min:
  v: 0
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.adherence
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: BeModelMedicationLine.adherence.id
path:
  v: BeModelMedicationLine.adherence.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BeModelMedicationLine.adherence.extension
path:
  v: BeModelMedicationLine.adherence.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BeModelMedicationLine.adherence.modifierExtension
path:
  v: BeModelMedicationLine.adherence.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: BeModelMedicationLine.adherence.status
path:
  v: BeModelMedicationLine.adherence.status
short:
  v: The status - taking, not taking,...
definition:
  v: The status - taking, not taking,...
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.adherence.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: required
  value set:
    v: https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusVS
    l: BeMedicationLineAdherenceStatusVS

id:
  v: BeModelMedicationLine.adherence.adherenceStatusReason
path:
  v: BeModelMedicationLine.adherence.adherenceStatusReason
short:
  v: Reason for the adherence status
definition:
  v: Reason for the adherence status
comment:
  v: The value set provided is an indicative example
min:
  v: 0
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.adherence.adherenceStatusReason
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: example
  value set:
    v: https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusReasonVS
    l: BeMedicationLineAdherenceStatusReasonVS

id:
  v: BeModelMedicationLine.medication
path:
  v: BeModelMedicationLine.medication
short:
  v: The product or substance
definition:
  v: The product or substance
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.medication
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: BeModelMedicationLine.medication.id
path:
  v: BeModelMedicationLine.medication.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BeModelMedicationLine.medication.extension
path:
  v: BeModelMedicationLine.medication.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BeModelMedicationLine.medication.modifierExtension
path:
  v: BeModelMedicationLine.medication.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: BeModelMedicationLine.medication.product
path:
  v: BeModelMedicationLine.medication.product
short:
  v: Product reference, identifier or name
definition:
  v: Product reference, identifier or name
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.medication.product
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelMedication
    l: BeModelMedication

id:
  v: BeModelMedicationLine.medication.type
path:
  v: BeModelMedicationLine.medication.type
short:
  v: Type of medication - magistral, medicinal product, non-medicinal product
definition:
  v: Type of medication - magistral, medicinal product, non-medicinal product
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.medication.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: required
  value set:
    v: https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationTypeVS
    l: BeMedicationTypeVS

id:
  v: BeModelMedicationLine.reason
path:
  v: BeModelMedicationLine.reason
short:
  v: Reason for the medication treatment
definition:
  v: Reason for the medication treatment
min:
  v: 0
max:
  v: *
base:
  path:
    v: BeModelMedicationLine.reason
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: BeModelMedicationLine.reason.id
path:
  v: BeModelMedicationLine.reason.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BeModelMedicationLine.reason.extension
path:
  v: BeModelMedicationLine.reason.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BeModelMedicationLine.reason.modifierExtension
path:
  v: BeModelMedicationLine.reason.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: BeModelMedicationLine.reason.reference
path:
  v: BeModelMedicationLine.reason.reference
short:
  v: Reference to existing condition or reason
definition:
  v: Reference to existing condition or reason
min:
  v: 0
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.reason.reference
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference

id:
  v: BeModelMedicationLine.reason.code
path:
  v: BeModelMedicationLine.reason.code
short:
  v: Code of the condition, or free text
definition:
  v: Code of the condition, or free text
min:
  v: 0
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.reason.code
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BeModelMedicationLine.effectivePeriod
path:
  v: BeModelMedicationLine.effectivePeriod
short:
  v: Period of medication treatment
definition:
  v: Period of medication treatment
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.effectivePeriod
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element

id:
  v: BeModelMedicationLine.effectivePeriod.id
path:
  v: BeModelMedicationLine.effectivePeriod.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
      l: structuredefinition-fhir-type
    value: Url
      v: string
      l: string
  code:
    v: http://hl7.org/fhirpath/System.String
    l: System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BeModelMedicationLine.effectivePeriod.extension
path:
  v: BeModelMedicationLine.effectivePeriod.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: 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.
comment:
  v: 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.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: BeModelMedicationLine.effectivePeriod.modifierExtension
path:
  v: BeModelMedicationLine.effectivePeriod.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: 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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: 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).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    l: Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: BeModelMedicationLine.effectivePeriod.start
path:
  v: BeModelMedicationLine.effectivePeriod.start
short:
  v: The begin of the medication line
definition:
  v: The begin of the medication line
min:
  v: 1
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.effectivePeriod.start
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: BeModelMedicationLine.effectivePeriod.end
path:
  v: BeModelMedicationLine.effectivePeriod.end
short:
  v: The end of the medication line
definition:
  v: The end of the medication line
min:
  v: 0
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.effectivePeriod.end
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: BeModelMedicationLine.dosage
path:
  v: BeModelMedicationLine.dosage
short:
  v: Structured Dosage
definition:
  v: Structured Dosage
min:
  v: 0
max:
  v: *
base:
  path:
    v: BeModelMedicationLine.dosage
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelDosagingInformation
    l: BeModelDosagingInformation

id:
  v: BeModelMedicationLine.offLabel
path:
  v: BeModelMedicationLine.offLabel
short:
  v: Reason for Off-label use or dosage override
definition:
  v: Reason for Off-label use or dosage override
comment:
  v: 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.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.offLabel
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
    l: string

id:
  v: BeModelMedicationLine.exposure
path:
  v: BeModelMedicationLine.exposure
short:
  v: Therapeutic, Prophylactic
definition:
  v: Therapeutic, Prophylactic
min:
  v: 0
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.exposure
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: required
  value set:
    v: https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationExposureIntentVS
    l: BeMedicationExposureIntentVS

id:
  v: BeModelMedicationLine.originType
path:
  v: BeModelMedicationLine.originType
short:
  v: The origin of the line - hospital, ambulatory
definition:
  v: The origin of the line - hospital, ambulatory
min:
  v: 0
max:
  v: 1
base:
  path:
    v: BeModelMedicationLine.originType
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: required
  value set:
    v: https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineOriginTypeVS
    l: BeMedicationLineOriginTypeVS

id:
  v: BeModelMedicationLine.note
path:
  v: BeModelMedicationLine.note
short:
  v: A note captured by a professional
definition:
  v: A note captured by a professional
min:
  v: 0
max:
  v: *
base:
  path:
    v: BeModelMedicationLine.note
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Annotation
    l: Annotation

element:
  id:
    v: BeModelMedicationLine
  path:
    v: BeModelMedicationLine
  short:
    v: Medication Line (model)
  definition:
    v: Logical data model for medication line.
element:
  id:
    v: BeModelMedicationLine.identifier
  path:
    v: BeModelMedicationLine.identifier
  short:
    v: Unique identifier
  definition:
    v: A unique identifier for the medication line. This identifier alone may be the same for different versions of the medication line.
  min:
    v: 1
  max:
    v: *
  type:
    code:
      v: Identifier
      l: Identifier
element:
  id:
    v: BeModelMedicationLine.recordedDate
  path:
    v: BeModelMedicationLine.recordedDate
  short:
    v: Timestamp the medication line content was recorded or last updated.
  definition:
    v: Timestamp the medication line content was recorded or last updated.
  comment:
    v: We consider this is redundant with the above, given the intended use in Belgium (version is a date). How to ensure the compatibility?
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: dateTime
      l: dateTime
element:
  id:
    v: BeModelMedicationLine.recorder
  path:
    v: BeModelMedicationLine.recorder
  short:
    v: Recorder
  definition:
    v: Recorder
  comment:
    v: We understand this will be updated as the line changes
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitioner
      l: be-practitioner
element:
  id:
    v: BeModelMedicationLine.patient
  path:
    v: BeModelMedicationLine.patient
  short:
    v: Patient
  definition:
    v: Patient
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Reference
      l: Reference
    target profile:
      v: https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-patient
      l: be-patient
element:
  id:
    v: BeModelMedicationLine.status
  path:
    v: BeModelMedicationLine.status
  short:
    v: Status of the line entry
  definition:
    v: Status of the line entry
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: code
      l: code
  binding:
    strength:
      v: preferred
    description:
      v: `Draft`, `Recorded`, or `Entered in Error`
element:
  id:
    v: BeModelMedicationLine.adherence
  path:
    v: BeModelMedicationLine.adherence
  short:
    v: Whether the patient is known to be taking the medication
  definition:
    v: Whether the patient is known to be taking the medication
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: BeModelMedicationLine.adherence.status
  path:
    v: BeModelMedicationLine.adherence.status
  short:
    v: The status - taking, not taking,...
  definition:
    v: The status - taking, not taking,...
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  binding:
    strength:
      v: required
    value set:
      v: https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusVS
      l: BeMedicationLineAdherenceStatusVS
element:
  id:
    v: BeModelMedicationLine.adherence.adherenceStatusReason
  path:
    v: BeModelMedicationLine.adherence.adherenceStatusReason
  short:
    v: Reason for the adherence status
  definition:
    v: Reason for the adherence status
  comment:
    v: The value set provided is an indicative example
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
      l: CodeableConcept
  binding:
    strength:
      v: example
    value set:
      v: https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusReasonVS
      l: BeMedicationLineAdherenceStatusReasonVS
element:
  id:
    v: BeModelMedicationLine.medication
  path:
    v: BeModelMedicationLine.medication
  short:
    v: The product or substance
  definition:
    v: The product or substance
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: BackboneElement
      l: BackboneElement
element:
  id:
    v: BeModelMedicationLine.medication.product
  path:
    v: BeModelMedicationLine.medication.product
  short:
    v: Product reference, identifier or name
  definition:
    v: Product reference, identifier or name
  min:
    v: 1

v: 1

code:
  v: Reference
  l: Reference
target profile:
  v: https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelMedication
  l: BeModelMedication

id:
  v: BeModelMedicationLine.medication.type
path:
  v: BeModelMedicationLine.medication.type
short:
  v: Type of medication - magistral, medicinal product, non-medicinal product
definition:
  v: Type of medication - magistral, medicinal product, non-medicinal product
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: required
  value set:
    v: https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationTypeVS
    l: BeMedicationTypeVS

id:
  v: BeModelMedicationLine.reason
path:
  v: BeModelMedicationLine.reason
short:
  v: Reason for the medication treatment
definition:
  v: Reason for the medication treatment
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: BeModelMedicationLine.reason.reference
path:
  v: BeModelMedicationLine.reason.reference
short:
  v: Reference to existing condition or reason
definition:
  v: Reference to existing condition or reason
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
    l: Reference

id:
  v: BeModelMedicationLine.reason.code
path:
  v: BeModelMedicationLine.reason.code
short:
  v: Code of the condition, or free text
definition:
  v: Code of the condition, or free text
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept

id:
  v: BeModelMedicationLine.effectivePeriod
path:
  v: BeModelMedicationLine.effectivePeriod
short:
  v: Period of medication treatment
definition:
  v: Period of medication treatment
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement
    l: BackboneElement

id:
  v: BeModelMedicationLine.effectivePeriod.start
path:
  v: BeModelMedicationLine.effectivePeriod.start
short:
  v: The begin of the medication line
definition:
  v: The begin of the medication line
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: BeModelMedicationLine.effectivePeriod.end
path:
  v: BeModelMedicationLine.effectivePeriod.end
short:
  v: The end of the medication line
definition:
  v: The end of the medication line
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime
    l: dateTime

id:
  v: BeModelMedicationLine.dosage
path:
  v: BeModelMedicationLine.dosage
short:
  v: Structured Dosage
definition:
  v: Structured Dosage
min:
  v: 0
max:
  v: *
type:
  code:
    v: https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelDosagingInformation
    l: BeModelDosagingInformation

id:
  v: BeModelMedicationLine.offLabel
path:
  v: BeModelMedicationLine.offLabel
short:
  v: Reason for Off-label use or dosage override
definition:
  v: Reason for Off-label use or dosage override
comment:
  v: 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.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string
    l: string

id:
  v: BeModelMedicationLine.exposure
path:
  v: BeModelMedicationLine.exposure
short:
  v: Therapeutic, Prophylactic
definition:
  v: Therapeutic, Prophylactic
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: required
  value set:
    v: https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationExposureIntentVS
    l: BeMedicationExposureIntentVS

id:
  v: BeModelMedicationLine.originType
path:
  v: BeModelMedicationLine.originType
short:
  v: The origin of the line - hospital, ambulatory
definition:
  v: The origin of the line - hospital, ambulatory
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
binding:
  strength:
    v: required
  value set:
    v: https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineOriginTypeVS
    l: BeMedicationLineOriginTypeVS

id:
  v: BeModelMedicationLine.note
path:
  v: BeModelMedicationLine.note
short:
  v: A note captured by a professional
definition:
  v: A note captured by a professional
min:
  v: 0
max:
  v: *
type:
  code:
    v: Annotation
    l: Annotation