Medication
1.1.0 - STU Belgium flag

Medication, published by HL7 Belgium. This guide is not an authorized publication; it is the continuous build for version 1.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/hl7-be/medication/tree/master and changes regularly. See the Directory of published versions

Logical Model: Medication Line (model)

Official URL: https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/BeModelMedicationLine Version: 1.1.0
Draft as of 2025-07-25 Computable Name: MedicationLine

Logical data model for medication line.

Relationship with other elements:

The Medication Line relates to the other data structures in the following way:

 Medication  Medication Line Prescription Dispense      

Usages:

You can also check for usages in the FHIR IG Statistics

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. BeModelMedicationLine 0..* Base Medication Line (model)
Instances of this logical model can be the target of a Reference
... identifier 1..* Identifier Unique identifier
... recordedDate 1..1 dateTime Timestamp the medication line content was recorded or last updated.
... recorder 1..1 Reference(BePractitioner) Recorder
... status 1..1 code Status of the line entry
Binding Description: (preferred): Draft, Recorded, or Entered in Error
... adherence 0..1 BackboneElement Whether the patient is known to be taking the medication
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... status 1..1 CodeableConcept The status - taking, not taking,...
Binding: BeExtAdherenceStatus (required)
.... adherenceStatusReason 0..1 CodeableConcept Reason for the adherence status
Binding: Adherence Status Reason ValueSet (example)
... medication 1..1 BackboneElement The product or substance
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... product 1..1 Reference(Medication (model)) Product reference, identifier or name
.... type 1..1 CodeableConcept Type of medication - magistral, medicinal product, non-medicinal product
Binding: Medication preparation Type value set (required)
... reason 0..* BackboneElement Reason for the medication treatment
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... reference 0..1 Reference() Reference to existing condition or reason
.... code 0..1 CodeableConcept Code of the condition, or free text
... effectivePeriod 1..1 BackboneElement Period of medication treatment
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... start 1..1 dateTime The begin of the medication line
.... end 0..1 dateTime The end of the medication line
... dosage 0..* BeModelDosagingInformation Structured Dosage
... offLabel 0..1 string Reason for Off-label use or dosage override
... exposure 0..1 CodeableConcept Therapeutic, Prophylactic
Binding: Medication exposure intent (required)
... originType 0..1 CodeableConcept The origin of the line - hospital, ambulatory
Binding: Medication origin type value set (required)
... note 0..* Annotation A note captured by a professional

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
BeModelMedicationLine.statuspreferred
BeModelMedicationLine.adherence.statusrequiredBeMedicationLineAdherenceStatusVS(a valid code from Medication Line Adherence Status)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusVS
From this IG
BeModelMedicationLine.adherence.adherenceStatusReasonexampleBeMedicationLineAdherenceStatusReasonVS(a valid code from Adherence Status Reason)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusReasonVS
From this IG
BeModelMedicationLine.medication.typerequiredBeMedicationTypeVS(a valid code from Medication preparation Type)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationTypeVS
From this IG
BeModelMedicationLine.exposurerequiredBeMedicationExposureIntentVS
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationExposureIntentVS
From this IG
BeModelMedicationLine.originTyperequiredBeMedicationLineOriginTypeVS(a valid code from Medication origin Type)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineOriginTypeVS
From this IG

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

This structure is derived from Base

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. BeModelMedicationLine 0..* Base Medication Line (model)
Instances of this logical model can be the target of a Reference
... identifier 1..* Identifier Unique identifier
... recordedDate 1..1 dateTime Timestamp the medication line content was recorded or last updated.
... recorder 1..1 Reference(BePractitioner) Recorder
... status 1..1 code Status of the line entry
Binding Description: (preferred): Draft, Recorded, or Entered in Error
... adherence 0..1 BackboneElement Whether the patient is known to be taking the medication
.... status 1..1 CodeableConcept The status - taking, not taking,...
Binding: BeExtAdherenceStatus (required)
.... adherenceStatusReason 0..1 CodeableConcept Reason for the adherence status
Binding: Adherence Status Reason ValueSet (example)
... medication 1..1 BackboneElement The product or substance
.... product 1..1 Reference(Medication (model)) Product reference, identifier or name
.... type 1..1 CodeableConcept Type of medication - magistral, medicinal product, non-medicinal product
Binding: Medication preparation Type value set (required)
... reason 0..* BackboneElement Reason for the medication treatment
.... reference 0..1 Reference() Reference to existing condition or reason
.... code 0..1 CodeableConcept Code of the condition, or free text
... effectivePeriod 1..1 BackboneElement Period of medication treatment
.... start 1..1 dateTime The begin of the medication line
.... end 0..1 dateTime The end of the medication line
... dosage 0..* BeModelDosagingInformation Structured Dosage
... offLabel 0..1 string Reason for Off-label use or dosage override
... exposure 0..1 CodeableConcept Therapeutic, Prophylactic
Binding: Medication exposure intent (required)
... originType 0..1 CodeableConcept The origin of the line - hospital, ambulatory
Binding: Medication origin type value set (required)
... note 0..* Annotation A note captured by a professional

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
BeModelMedicationLine.statuspreferred
BeModelMedicationLine.adherence.statusrequiredBeMedicationLineAdherenceStatusVS(a valid code from Medication Line Adherence Status)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusVS
From this IG
BeModelMedicationLine.adherence.adherenceStatusReasonexampleBeMedicationLineAdherenceStatusReasonVS(a valid code from Adherence Status Reason)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusReasonVS
From this IG
BeModelMedicationLine.medication.typerequiredBeMedicationTypeVS(a valid code from Medication preparation Type)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationTypeVS
From this IG
BeModelMedicationLine.exposurerequiredBeMedicationExposureIntentVS
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationExposureIntentVS
From this IG
BeModelMedicationLine.originTyperequiredBeMedicationLineOriginTypeVS(a valid code from Medication origin Type)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineOriginTypeVS
From this IG
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. BeModelMedicationLine 0..* Base Medication Line (model)
Instances of this logical model can be the target of a Reference
... identifier 1..* Identifier Unique identifier
... recordedDate 1..1 dateTime Timestamp the medication line content was recorded or last updated.
... recorder 1..1 Reference(BePractitioner) Recorder
... status 1..1 code Status of the line entry
Binding Description: (preferred): Draft, Recorded, or Entered in Error
... adherence 0..1 BackboneElement Whether the patient is known to be taking the medication
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... status 1..1 CodeableConcept The status - taking, not taking,...
Binding: BeExtAdherenceStatus (required)
.... adherenceStatusReason 0..1 CodeableConcept Reason for the adherence status
Binding: Adherence Status Reason ValueSet (example)
... medication 1..1 BackboneElement The product or substance
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... product 1..1 Reference(Medication (model)) Product reference, identifier or name
.... type 1..1 CodeableConcept Type of medication - magistral, medicinal product, non-medicinal product
Binding: Medication preparation Type value set (required)
... reason 0..* BackboneElement Reason for the medication treatment
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... reference 0..1 Reference() Reference to existing condition or reason
.... code 0..1 CodeableConcept Code of the condition, or free text
... effectivePeriod 1..1 BackboneElement Period of medication treatment
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... start 1..1 dateTime The begin of the medication line
.... end 0..1 dateTime The end of the medication line
... dosage 0..* BeModelDosagingInformation Structured Dosage
... offLabel 0..1 string Reason for Off-label use or dosage override
... exposure 0..1 CodeableConcept Therapeutic, Prophylactic
Binding: Medication exposure intent (required)
... originType 0..1 CodeableConcept The origin of the line - hospital, ambulatory
Binding: Medication origin type value set (required)
... note 0..* Annotation A note captured by a professional

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
BeModelMedicationLine.statuspreferred
BeModelMedicationLine.adherence.statusrequiredBeMedicationLineAdherenceStatusVS(a valid code from Medication Line Adherence Status)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusVS
From this IG
BeModelMedicationLine.adherence.adherenceStatusReasonexampleBeMedicationLineAdherenceStatusReasonVS(a valid code from Adherence Status Reason)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusReasonVS
From this IG
BeModelMedicationLine.medication.typerequiredBeMedicationTypeVS(a valid code from Medication preparation Type)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationTypeVS
From this IG
BeModelMedicationLine.exposurerequiredBeMedicationExposureIntentVS
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationExposureIntentVS
From this IG
BeModelMedicationLine.originTyperequiredBeMedicationLineOriginTypeVS(a valid code from Medication origin Type)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineOriginTypeVS
From this IG

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. BeModelMedicationLine 0..* Base Medication Line (model)
Instances of this logical model can be the target of a Reference
... identifier 1..* Identifier Unique identifier
... recordedDate 1..1 dateTime Timestamp the medication line content was recorded or last updated.
... recorder 1..1 Reference(BePractitioner) Recorder
... status 1..1 code Status of the line entry
Binding Description: (preferred): Draft, Recorded, or Entered in Error
... adherence 0..1 BackboneElement Whether the patient is known to be taking the medication
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... status 1..1 CodeableConcept The status - taking, not taking,...
Binding: BeExtAdherenceStatus (required)
.... adherenceStatusReason 0..1 CodeableConcept Reason for the adherence status
Binding: Adherence Status Reason ValueSet (example)
... medication 1..1 BackboneElement The product or substance
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... product 1..1 Reference(Medication (model)) Product reference, identifier or name
.... type 1..1 CodeableConcept Type of medication - magistral, medicinal product, non-medicinal product
Binding: Medication preparation Type value set (required)
... reason 0..* BackboneElement Reason for the medication treatment
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... reference 0..1 Reference() Reference to existing condition or reason
.... code 0..1 CodeableConcept Code of the condition, or free text
... effectivePeriod 1..1 BackboneElement Period of medication treatment
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... start 1..1 dateTime The begin of the medication line
.... end 0..1 dateTime The end of the medication line
... dosage 0..* BeModelDosagingInformation Structured Dosage
... offLabel 0..1 string Reason for Off-label use or dosage override
... exposure 0..1 CodeableConcept Therapeutic, Prophylactic
Binding: Medication exposure intent (required)
... originType 0..1 CodeableConcept The origin of the line - hospital, ambulatory
Binding: Medication origin type value set (required)
... note 0..* Annotation A note captured by a professional

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
BeModelMedicationLine.statuspreferred
BeModelMedicationLine.adherence.statusrequiredBeMedicationLineAdherenceStatusVS(a valid code from Medication Line Adherence Status)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusVS
From this IG
BeModelMedicationLine.adherence.adherenceStatusReasonexampleBeMedicationLineAdherenceStatusReasonVS(a valid code from Adherence Status Reason)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusReasonVS
From this IG
BeModelMedicationLine.medication.typerequiredBeMedicationTypeVS(a valid code from Medication preparation Type)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationTypeVS
From this IG
BeModelMedicationLine.exposurerequiredBeMedicationExposureIntentVS
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationExposureIntentVS
From this IG
BeModelMedicationLine.originTyperequiredBeMedicationLineOriginTypeVS(a valid code from Medication origin Type)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineOriginTypeVS
From this IG

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

Differential View

This structure is derived from Base

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. BeModelMedicationLine 0..* Base Medication Line (model)
Instances of this logical model can be the target of a Reference
... identifier 1..* Identifier Unique identifier
... recordedDate 1..1 dateTime Timestamp the medication line content was recorded or last updated.
... recorder 1..1 Reference(BePractitioner) Recorder
... status 1..1 code Status of the line entry
Binding Description: (preferred): Draft, Recorded, or Entered in Error
... adherence 0..1 BackboneElement Whether the patient is known to be taking the medication
.... status 1..1 CodeableConcept The status - taking, not taking,...
Binding: BeExtAdherenceStatus (required)
.... adherenceStatusReason 0..1 CodeableConcept Reason for the adherence status
Binding: Adherence Status Reason ValueSet (example)
... medication 1..1 BackboneElement The product or substance
.... product 1..1 Reference(Medication (model)) Product reference, identifier or name
.... type 1..1 CodeableConcept Type of medication - magistral, medicinal product, non-medicinal product
Binding: Medication preparation Type value set (required)
... reason 0..* BackboneElement Reason for the medication treatment
.... reference 0..1 Reference() Reference to existing condition or reason
.... code 0..1 CodeableConcept Code of the condition, or free text
... effectivePeriod 1..1 BackboneElement Period of medication treatment
.... start 1..1 dateTime The begin of the medication line
.... end 0..1 dateTime The end of the medication line
... dosage 0..* BeModelDosagingInformation Structured Dosage
... offLabel 0..1 string Reason for Off-label use or dosage override
... exposure 0..1 CodeableConcept Therapeutic, Prophylactic
Binding: Medication exposure intent (required)
... originType 0..1 CodeableConcept The origin of the line - hospital, ambulatory
Binding: Medication origin type value set (required)
... note 0..* Annotation A note captured by a professional

doco Documentation for this format

Terminology Bindings (Differential)

PathConformanceValueSetURI
BeModelMedicationLine.statuspreferred
BeModelMedicationLine.adherence.statusrequiredBeMedicationLineAdherenceStatusVS(a valid code from Medication Line Adherence Status)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusVS
From this IG
BeModelMedicationLine.adherence.adherenceStatusReasonexampleBeMedicationLineAdherenceStatusReasonVS(a valid code from Adherence Status Reason)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusReasonVS
From this IG
BeModelMedicationLine.medication.typerequiredBeMedicationTypeVS(a valid code from Medication preparation Type)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationTypeVS
From this IG
BeModelMedicationLine.exposurerequiredBeMedicationExposureIntentVS
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationExposureIntentVS
From this IG
BeModelMedicationLine.originTyperequiredBeMedicationLineOriginTypeVS(a valid code from Medication origin Type)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineOriginTypeVS
From this IG

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. BeModelMedicationLine 0..* Base Medication Line (model)
Instances of this logical model can be the target of a Reference
... identifier 1..* Identifier Unique identifier
... recordedDate 1..1 dateTime Timestamp the medication line content was recorded or last updated.
... recorder 1..1 Reference(BePractitioner) Recorder
... status 1..1 code Status of the line entry
Binding Description: (preferred): Draft, Recorded, or Entered in Error
... adherence 0..1 BackboneElement Whether the patient is known to be taking the medication
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... status 1..1 CodeableConcept The status - taking, not taking,...
Binding: BeExtAdherenceStatus (required)
.... adherenceStatusReason 0..1 CodeableConcept Reason for the adherence status
Binding: Adherence Status Reason ValueSet (example)
... medication 1..1 BackboneElement The product or substance
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... product 1..1 Reference(Medication (model)) Product reference, identifier or name
.... type 1..1 CodeableConcept Type of medication - magistral, medicinal product, non-medicinal product
Binding: Medication preparation Type value set (required)
... reason 0..* BackboneElement Reason for the medication treatment
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... reference 0..1 Reference() Reference to existing condition or reason
.... code 0..1 CodeableConcept Code of the condition, or free text
... effectivePeriod 1..1 BackboneElement Period of medication treatment
.... @id 0..1 string Unique id for inter-element referencing
.... extension 0..* Extension Additional content defined by implementations
Slice: Unordered, Open by value:url
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
.... start 1..1 dateTime The begin of the medication line
.... end 0..1 dateTime The end of the medication line
... dosage 0..* BeModelDosagingInformation Structured Dosage
... offLabel 0..1 string Reason for Off-label use or dosage override
... exposure 0..1 CodeableConcept Therapeutic, Prophylactic
Binding: Medication exposure intent (required)
... originType 0..1 CodeableConcept The origin of the line - hospital, ambulatory
Binding: Medication origin type value set (required)
... note 0..* Annotation A note captured by a professional

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
BeModelMedicationLine.statuspreferred
BeModelMedicationLine.adherence.statusrequiredBeMedicationLineAdherenceStatusVS(a valid code from Medication Line Adherence Status)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusVS
From this IG
BeModelMedicationLine.adherence.adherenceStatusReasonexampleBeMedicationLineAdherenceStatusReasonVS(a valid code from Adherence Status Reason)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineAdherenceStatusReasonVS
From this IG
BeModelMedicationLine.medication.typerequiredBeMedicationTypeVS(a valid code from Medication preparation Type)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationTypeVS
From this IG
BeModelMedicationLine.exposurerequiredBeMedicationExposureIntentVS
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationExposureIntentVS
From this IG
BeModelMedicationLine.originTyperequiredBeMedicationLineOriginTypeVS(a valid code from Medication origin Type)
https://www.ehealth.fgov.be/standards/fhir/terminology/ValueSet/BeMedicationLineOriginTypeVS
From this IG

Constraints

IdGradePath(s)DetailsRequirements
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()

 

Other representations of profile: CSV, Excel

Notes:

Detailed diagram:

MedicationLineuniqueIdentifier 1..*recordedDate 1..1status 1..1recorder 1..1patient 1..1category 0..*originType 0..1medication 1..1product 1..1type 1..1exposure 0..1reason 0..*reference 0..1code 0..1effectivePeriod 1..1start 1..1end 0..1adherence 0..1status 1..1adherenceStatusReason 0..1dosage 0..1offLabel 0..1note 0..*