MedicationTreatmentLineLM
type: StructureDefinition
node role: treeRoot
resource.id:
  value: MedicationTreatmentLineLM
domain resource.text:
  narrative.status:
    value: extensions
  narrative.div: Generated Narrative: StructureDefinition MedicationTreatmentLineLM Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> MedicationTreatmentLineLM 0..* Base Medication Treatment Line (model) Instances of this type can be the target of a Reference #xD; identifier 0..* Identifier Unique business identifier(s) for the medication treatment line #xD; subject 1..1 Reference(Patient) The patient for whom the medication treatment line applies #xD; medication[x] 1..1 Medicinal product for which the treatment line refers to. Identification or sufficient description of the product. #xD; medicationCodeableConcept CodeableConcept #xD; medicationReference Reference(Medicinal product (model)) #xD; status 1..1 code Status of the treatment line entry Binding: Medication Status Codes (required) #xD; version 0..1 string Business version of the treatment line #xD; timestamp 0..1 dateTime Timestamp of the version of the treatment line #xD; treatmentStatus 0..1 CodeableConcept The state of the actual treatment - taking, not taken... #xD; treatmentStatusReasonCode 0..1 CodeableConcept The reason - coded - for the treatment status - i.e. adverse events, refusal... #xD; treatmentStatusReasonText 0..1 string The reason - free text - for the treatment status - i.e. adverse events, refusal... #xD; effectivePeriod 0..1 Period The period of time the treatment is in effect #xD; verificationInformation 0..* BackboneElement Verification of medication line #xD; verifier 1..1 Reference() HCP (or device, if authorized) verifying the treatments/overview #xD; verificationTime 1..1 dateTime The date and time when this medication treatment line was verified #xD; category 0..* CodeableConcept Whatever category for the treatment line. Categorisation of treatment lines is implementation-specific. #xD; medicationTreatment 0..* MedicationTreatmentLM Reference or identifier of the group of lines that belong together #xD; indication 0..* CodeableConcept…
domain resource.extension:
  index: 0
  extension.url:
    value: http://hl7.org/fhir/tools/StructureDefinition/logical-target
  extension.value boolean:
    value: true
structure definition.url:
  value: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationTreatmentLineLM
structure definition.version:
  value: 1.0.0-preview
structure definition.name:
  value: MedicationTreatmentLineLM
structure definition.title:
  value: Medication Treatment Line (model)
structure definition.status:
  value: active
structure definition.date:
  value: 2026-06-26T22:35:12+02:00
structure definition.publisher:
  value: Integrating the Healthcare Enterprise (IHE)
structure definition.contact:
  index: 0
  contact detail.name:
    value: Integrating the Healthcare Enterprise (IHE)
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: http://ihe.net
  contact detail.telecom:
    index: 1
    contact point.system:
      value: email
structure definition.contact:
  index: 1
  contact detail.name:
    value: Jose Costa Teixeira
  contact detail.telecom:
    index: 0
    contact point.system:
      value: email
    contact point.use:
      value: work
structure definition.description:
  value: Logical model for representing one line/medication in medication overview.
structure definition.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: http://unstats.un.org/unsd/methods/m49/m49.htm
    coding.code:
      value: 001
structure definition.copyright:
  value: IHE http://www.ihe.net/Governance/#Intellectual_Property
structure definition.fhir version:
  value: 4.0.1
structure definition.kind:
  value: logical
structure definition.abstract:
  value: false
structure definition.type:
  value: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationTreatmentLineLM
structure definition.base definition:
  value: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
structure definition.derivation:
  value: specialization
structure definition.snapshot:
  element.extension:
    index: 0
    extension.url:
      value: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    extension.value string:
      value: 4.0.1
  structure definition.snapshot.element:
    index: 0
    element.id:
      value: MedicationTreatmentLineLM
    element definition.path:
      value: MedicationTreatmentLineLM
    element definition.short:
      value: Medication Treatment Line (model)
    element definition.definition:
      value: Logical model for representing one line/medication in medication overview.
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: Base
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.is modifier:
      value: false
  structure definition.snapshot.element:
    index: 1
    element.id:
      value: MedicationTreatmentLineLM.identifier
    element definition.path:
      value: MedicationTreatmentLineLM.identifier
    element definition.short:
      value: Unique business identifier(s) for the medication treatment line
    element definition.definition:
      value: Unique business identifier(s) for the medication treatment line
    element definition.min:
      value: 0
    element definition.max:
      value: *
    element definition.base:
      element definition.base.path:
        value: MedicationTreatmentLineLM.identifier
      element definition.base.min:
        value: 0
      element definition.base.max:
        value: *
    element definition.type:
      index: 0
      element definition.type.code:
        value: Identifier
  structure definition.snapshot.element:
    index: 2
    element.id:
      value: MedicationTreatmentLineLM.subject
    element definition.path:
      value: MedicationTreatmentLineLM.subject
    element definition.short:
      value: The patient for whom the medication treatment line applies
    element definition.definition:
      value: The patient for whom the medication treatment line applies
    element definition.min:
      value: 1
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: MedicationTreatmentLineLM.subject
      element definition.base.min:
        value: 1
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: Reference
      element definition.type.target profile:
        value: http://hl7.org/fhir/StructureDefinition/Patient
        index: 0
        link: http://hl7.org/fhir/StructureDefinition/Patient
  structure definition.snapshot.element:
    index: 3
    element.id:
      value: MedicationTreatmentLineLM.medication[x]
    element definition.path:
      value: MedicationTreatmentLineLM.medication[x]
    element definition.short:
      value: Medicinal product for which the treatment line refers to. Identification or sufficient description of the product.
    element definition.definition:
      value: Medicinal product for which the treatment line refers to. Identification or sufficient description of the product.
    element definition.min:
      value: 1
    element definition.max:
      value: 1
    element definition.base:
      element definition.base.path:
        value: MedicationTreatmentLineLM.medication[x]
      element definition.base.min:
        value: 1
      element definition.base.max:
        value: 1
    element definition.type:
      index: 0
      element definition.type.code:
        value: CodeableConcept
    element definition.type:
      index: 1
      element definition.type.code:
        value: Reference
      element definition.type.target profile:
        value: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicinalProductLM
        index: 0
        link: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicinalProductLM
  structure definition.snapshot.element:
    index: 4
    element.id:
      value: MedicationTreatmentLineLM.status
    element definition.path:
      value: MedicationTreatmentLineLM.status
    element definition.short:
      value: Status of the treatment line entry

value: Status of the record, not the status of the treatment.

value: 1

value: 1

element definition.base.path:
  value: MedicationTreatmentLineLM.status
element definition.base.min:
  value: 1
element definition.base.max:
  value: 1

index: 0
element definition.type.code:
  value: code

element definition.binding.strength:
  value: required
element definition.binding.value set:
  value: http://hl7.org/fhir/ValueSet/medication-statement-status
  link: http://hl7.org/fhir/ValueSet/medication-statement-status

index: 5
element.id:
  value: MedicationTreatmentLineLM.version
element definition.path:
  value: MedicationTreatmentLineLM.version
element definition.short:
  value: Business version of the treatment line
element definition.definition:
  value: Business version of the treatment line
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.version
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 6
element.id:
  value: MedicationTreatmentLineLM.timestamp
element definition.path:
  value: MedicationTreatmentLineLM.timestamp
element definition.short:
  value: Timestamp of the version of the treatment line
element definition.definition:
  value: Timestamp of the version of the treatment line
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.timestamp
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime

index: 7
element.id:
  value: MedicationTreatmentLineLM.treatmentStatus
element definition.path:
  value: MedicationTreatmentLineLM.treatmentStatus
element definition.short:
  value: The state of the actual treatment - taking, not taken...
element definition.definition:
  value: The state of the actual treatment - taking, not taken...
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.treatmentStatus
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 8
element.id:
  value: MedicationTreatmentLineLM.treatmentStatusReasonCode
element definition.path:
  value: MedicationTreatmentLineLM.treatmentStatusReasonCode
element definition.short:
  value: The reason - coded - for the treatment status - i.e. adverse events, refusal...
element definition.definition:
  value: The reason - coded - for the treatment status - i.e. adverse events, refusal...
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.treatmentStatusReasonCode
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 9
element.id:
  value: MedicationTreatmentLineLM.treatmentStatusReasonText
element definition.path:
  value: MedicationTreatmentLineLM.treatmentStatusReasonText
element definition.short:
  value: The reason - free text - for the treatment status - i.e. adverse events, refusal...
element definition.definition:
  value: The reason - free text - for the treatment status - i.e. adverse events, refusal...
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.treatmentStatusReasonText
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 10
element.id:
  value: MedicationTreatmentLineLM.effectivePeriod
element definition.path:
  value: MedicationTreatmentLineLM.effectivePeriod
element definition.short:
  value: The period of time the treatment is in effect
element definition.definition:
  value: The period of time the treatment is in effect
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.effectivePeriod
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Period

index: 11
element.id:
  value: MedicationTreatmentLineLM.verificationInformation
element definition.path:
  value: MedicationTreatmentLineLM.verificationInformation
element definition.short:
  value: Verification of medication line
element definition.definition:
  value: Verification of medication line. The overview is verified as a whole, but each line is equipped with the information. The actual functional meaning and impact of this validation depends on the implementation.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.verificationInformation
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

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

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

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

index: 15
element.id:
  value: MedicationTreatmentLineLM.verificationInformation.verifier
element definition.path:
  value: MedicationTreatmentLineLM.verificationInformation.verifier
element definition.short:
  value: HCP (or device, if authorized) verifying the treatments/overview
element definition.definition:
  value: HCP (or device, if authorized) verifying the treatments/overview
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.verificationInformation.verifier
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 16
element.id:
  value: MedicationTreatmentLineLM.verificationInformation.verificationTime
element definition.path:
  value: MedicationTreatmentLineLM.verificationInformation.verificationTime
element definition.short:
  value: The date and time when this medication treatment line was verified
element definition.definition:
  value: The date and time when this medication treatment line was verified
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.verificationInformation.verificationTime
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime

index: 17
element.id:
  value: MedicationTreatmentLineLM.category
element definition.path:
  value: MedicationTreatmentLineLM.category
element definition.short:
  value: Whatever category for the treatment line. Categorisation of treatment lines is implementation-specific.
element definition.definition:
  value: Whatever category for the treatment line. Categorisation of treatment lines is implementation-specific.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.category
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 18
element.id:
  value: MedicationTreatmentLineLM.medicationTreatment
element definition.path:
  value: MedicationTreatmentLineLM.medicationTreatment
element definition.short:
  value: Reference or identifier of the group of lines that belong together
element definition.definition:
  value: Reference or identifier of the group of lines that belong together
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.medicationTreatment
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationTreatmentLM

index: 19
element.id:
  value: MedicationTreatmentLineLM.indication
element definition.path:
  value: MedicationTreatmentLineLM.indication
element definition.short:
  value: Reason why the product has been prescribed to the patient, or why the patient claims to be taking it
element definition.definition:
  value: Reason why the product has been prescribed to the patient, or why the patient claims to be taking it
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.indication
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 20
element.id:
  value: MedicationTreatmentLineLM.indicationText
element definition.path:
  value: MedicationTreatmentLineLM.indicationText
element definition.short:
  value: Textual explanation for why the medication has been prescribed or why the patient is taking it. This might not be allowed by some implementations.
element definition.definition:
  value: Textual explanation for why the medication has been prescribed or why the patient is taking it. This might not be allowed by some implementations.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.indicationText
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 21
element.id:
  value: MedicationTreatmentLineLM.intendedUse
element definition.path:
  value: MedicationTreatmentLineLM.intendedUse
element definition.short:
  value: Intended Use of the medication - prophylaxis, therapy...
element definition.definition:
  value: Intended Use of the medication - prophylaxis, therapy...
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.intendedUse
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 22
element.id:
  value: MedicationTreatmentLineLM.usageInstructions
element definition.path:
  value: MedicationTreatmentLineLM.usageInstructions
element definition.short:
  value: Instructions about administration of the product
element definition.definition:
  value: Instructions about requested or actual administration of the product. This is repeatable to support complex or concurrent dosage instructions. e.g. take 1 per day for 3 weeks; 2x PRN
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.usageInstructions
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/DosagingInformation

index: 23
element.id:
  value: MedicationTreatmentLineLM.preparationInstructions
element definition.path:
  value: MedicationTreatmentLineLM.preparationInstructions
element definition.short:
  value: Additional instructions about preparation or dispense
element definition.definition:
  value: Additional instructions about preparation or dispense
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.preparationInstructions
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 24
element.id:
  value: MedicationTreatmentLineLM.comment
element definition.path:
  value: MedicationTreatmentLineLM.comment
element definition.short:
  value: Comment on the individual line
element definition.definition:
  value: Comment on the individual line
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.comment
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

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

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

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

index: 28
element.id:
  value: MedicationTreatmentLineLM.comment.author
element definition.path:
  value: MedicationTreatmentLineLM.comment.author
element definition.short:
  value: Author of the comment (Pharmacist, doctor, social carer, patient, device, related person)
element definition.definition:
  value: Author of the comment (Pharmacist, doctor, social carer, patient, device, related person)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.comment.author
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 29
element.id:
  value: MedicationTreatmentLineLM.comment.date
element definition.path:
  value: MedicationTreatmentLineLM.comment.date
element definition.short:
  value: time of comment
element definition.definition:
  value: time of comment
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.comment.date
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime

index: 30
element.id:
  value: MedicationTreatmentLineLM.comment.commentText
element definition.path:
  value: MedicationTreatmentLineLM.comment.commentText
element definition.short:
  value: content of the comment
element definition.definition:
  value: content of the comment
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.comment.commentText
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 31
element.id:
  value: MedicationTreatmentLineLM.substitution
element definition.path:
  value: MedicationTreatmentLineLM.substitution
element definition.short:
  value: Whether and which type of substitution is allowed for this medication treatment line
element definition.definition:
  value: Whether and which type of substitution is allowed for this medication treatment line
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.substitution
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

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

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

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

index: 35
element.id:
  value: MedicationTreatmentLineLM.substitution.substitutionType
element definition.path:
  value: MedicationTreatmentLineLM.substitution.substitutionType
element definition.short:
  value: The type of substitution that is allowed.
element definition.definition:
  value: The type of substitution that is allowed.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.substitution.substitutionType
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 36
element.id:
  value: MedicationTreatmentLineLM.substitution.substitutionTypeReason
element definition.path:
  value: MedicationTreatmentLineLM.substitution.substitutionTypeReason
element definition.short:
  value: Coded reason for the substitution requirement
element definition.definition:
  value: Coded reason for the substitution requirement
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.substitution.substitutionTypeReason
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 37
element.id:
  value: MedicationTreatmentLineLM.substitution.substitutionTypeReasonText
element definition.path:
  value: MedicationTreatmentLineLM.substitution.substitutionTypeReasonText
element definition.short:
  value: Textual reason for the substitution requirement
element definition.definition:
  value: Textual reason for the substitution requirement
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.substitution.substitutionTypeReasonText
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 38
element.id:
  value: MedicationTreatmentLineLM.recordingMetadata
element definition.path:
  value: MedicationTreatmentLineLM.recordingMetadata
element definition.short:
  value: Metadata about reporting/authoring of the treatment line
element definition.definition:
  value: Metadata about reporting/authoring of the treatment line
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.recordingMetadata
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

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

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

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

index: 42
element.id:
  value: MedicationTreatmentLineLM.recordingMetadata.recorder
element definition.path:
  value: MedicationTreatmentLineLM.recordingMetadata.recorder
element definition.short:
  value: Person entering the statement by initiating a treatment or documenting a statement by a patient or another professional. The recorder may be different from the author.
element definition.definition:
  value: Person entering the statement by initiating a treatment or documenting a statement by a patient or another professional. The recorder may be different from the author.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.recordingMetadata.recorder
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 43
element.id:
  value: MedicationTreatmentLineLM.recordingMetadata.recordedTime
element definition.path:
  value: MedicationTreatmentLineLM.recordingMetadata.recordedTime
element definition.short:
  value: Time of creation of the treatment line
element definition.definition:
  value: Time of creation of the treatment line
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.recordingMetadata.recordedTime
  element definition.base.min:
    value: 1
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime

index: 44
element.id:
  value: MedicationTreatmentLineLM.recordingMetadata.patientReported
element definition.path:
  value: MedicationTreatmentLineLM.recordingMetadata.patientReported
element definition.short:
  value: The treatment line has been documented according to patient's statement
element definition.definition:
  value: The treatment line has been documented according to patient's statement
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.recordingMetadata.patientReported
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: boolean

index: 45
element.id:
  value: MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor
element definition.path:
  value: MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor
element definition.short:
  value: HCP who takes the clinical decision for the medication treatment line. If an author is not present, the responsibility of the medication line is with the recorder.
element definition.definition:
  value: HCP who takes the clinical decision for the medication treatment line. If an author is not present, the responsibility of the medication line is with the recorder.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/PractitionerLM
    index: 0
    link: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/PractitionerLM

index: 46
element.id:
  value: MedicationTreatmentLineLM.recordingMetadata.authoringTime
element definition.path:
  value: MedicationTreatmentLineLM.recordingMetadata.authoringTime
element definition.short:
  value: The time the clinical decision was made by the responsibleAuthor. Normally, the same time as recording time when it's the same person.
element definition.definition:
  value: The time the clinical decision was made by the responsibleAuthor. Normally, the same time as recording time when it's the same person.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.recordingMetadata.authoringTime
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime

index: 47
element.id:
  value: MedicationTreatmentLineLM.derivedFrom
element definition.path:
  value: MedicationTreatmentLineLM.derivedFrom
element definition.short:
  value: Any data object that this treatment line is derived from
element definition.definition:
  value: Any data object that this treatment line is derived from
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.derivedFrom
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement
element definition.constraint:
  index: 0
  element definition.constraint.key:
    value: ele-1
  element definition.constraint.severity:
    value: error
  element definition.constraint.human:
    value: All FHIR elements must have a @value or children
  element definition.constraint.expression:
    value: hasValue() or (children().count() > id.count())
  element definition.constraint.xpath:
    value: @value|f:*|h:div
  element definition.constraint.source:
    value: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

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

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

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

index: 51
element.id:
  value: MedicationTreatmentLineLM.derivedFrom.request
element definition.path:
  value: MedicationTreatmentLineLM.derivedFrom.request
element definition.short:
  value: Prescriptions that have been the source for creating the unverified treatment line
element definition.definition:
  value: Prescriptions that have been the source for creating the unverified treatment line
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.derivedFrom.request
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 52
element.id:
  value: MedicationTreatmentLineLM.derivedFrom.statement
element definition.path:
  value: MedicationTreatmentLineLM.derivedFrom.statement
element definition.short:
  value: Medication-related statements from patients, pharmacists, or other HCPs, that are the source for creating the unverified treatment line
element definition.definition:
  value: Medication-related statements from patients, pharmacists, or other HCPs, that are the source for creating the unverified treatment line
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.derivedFrom.statement
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 53
element.id:
  value: MedicationTreatmentLineLM.derivedFrom.dispensation
element definition.path:
  value: MedicationTreatmentLineLM.derivedFrom.dispensation
element definition.short:
  value: Related dispensations that are not necessarily related to existing prescriptions/requests/statements.
element definition.definition:
  value: Related dispensations that are not necessarily related to existing prescriptions/requests/statements.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.derivedFrom.dispensation
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 54
element.id:
  value: MedicationTreatmentLineLM.derivedFrom.administration
element definition.path:
  value: MedicationTreatmentLineLM.derivedFrom.administration
element definition.short:
  value: Related administrations that are not necessarily related to existing prescriptions/requests/statements.
element definition.definition:
  value: Related administrations that are not necessarily related to existing prescriptions/requests/statements.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.derivedFrom.administration
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 55
element.id:
  value: MedicationTreatmentLineLM.derivedFrom.other
element definition.path:
  value: MedicationTreatmentLineLM.derivedFrom.other
element definition.short:
  value: Other related sources of information - CarePlan, Immunizations, Documents (e.g. Discharge letters)...
element definition.definition:
  value: Other related sources of information - CarePlan, Immunizations, Documents (e.g. Discharge letters)...
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.base:
  element definition.base.path:
    value: MedicationTreatmentLineLM.derivedFrom.other
  element definition.base.min:
    value: 0
  element definition.base.max:
    value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

structure definition.differential.element:
  index: 0
  element.id:
    value: MedicationTreatmentLineLM
  element definition.path:
    value: MedicationTreatmentLineLM
  element definition.short:
    value: Medication Treatment Line (model)
  element definition.definition:
    value: Logical model for representing one line/medication in medication overview.
structure definition.differential.element:
  index: 1
  element.id:
    value: MedicationTreatmentLineLM.identifier
  element definition.path:
    value: MedicationTreatmentLineLM.identifier
  element definition.short:
    value: Unique business identifier(s) for the medication treatment line
  element definition.definition:
    value: Unique business identifier(s) for the medication treatment line
  element definition.min:
    value: 0
  element definition.max:
    value: *
  element definition.type:
    index: 0
    element definition.type.code:
      value: Identifier
structure definition.differential.element:
  index: 2
  element.id:
    value: MedicationTreatmentLineLM.subject
  element definition.path:
    value: MedicationTreatmentLineLM.subject
  element definition.short:
    value: The patient for whom the medication treatment line applies
  element definition.definition:
    value: The patient for whom the medication treatment line applies
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: Reference
    element definition.type.target profile:
      value: http://hl7.org/fhir/StructureDefinition/Patient
      index: 0
      link: http://hl7.org/fhir/StructureDefinition/Patient
structure definition.differential.element:
  index: 3
  element.id:
    value: MedicationTreatmentLineLM.medication[x]
  element definition.path:
    value: MedicationTreatmentLineLM.medication[x]
  element definition.short:
    value: Medicinal product for which the treatment line refers to. Identification or sufficient description of the product.
  element definition.definition:
    value: Medicinal product for which the treatment line refers to. Identification or sufficient description of the product.
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: CodeableConcept
  element definition.type:
    index: 1
    element definition.type.code:
      value: Reference
    element definition.type.target profile:
      value: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicinalProductLM
      index: 0
      link: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicinalProductLM
structure definition.differential.element:
  index: 4
  element.id:
    value: MedicationTreatmentLineLM.status
  element definition.path:
    value: MedicationTreatmentLineLM.status
  element definition.short:
    value: Status of the treatment line entry
  element definition.definition:
    value: Status of the record, not the status of the treatment.
  element definition.min:
    value: 1
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: code
  element definition.binding:
    element definition.binding.strength:
      value: required
    element definition.binding.value set:
      value: http://hl7.org/fhir/ValueSet/medication-statement-status
      link: http://hl7.org/fhir/ValueSet/medication-statement-status
structure definition.differential.element:
  index: 5
  element.id:
    value: MedicationTreatmentLineLM.version
  element definition.path:
    value: MedicationTreatmentLineLM.version
  element definition.short:
    value: Business version of the treatment line
  element definition.definition:
    value: Business version of the treatment line
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string
structure definition.differential.element:
  index: 6
  element.id:
    value: MedicationTreatmentLineLM.timestamp
  element definition.path:
    value: MedicationTreatmentLineLM.timestamp
  element definition.short:
    value: Timestamp of the version of the treatment line
  element definition.definition:
    value: Timestamp of the version of the treatment line
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: dateTime
structure definition.differential.element:
  index: 7
  element.id:
    value: MedicationTreatmentLineLM.treatmentStatus
  element definition.path:
    value: MedicationTreatmentLineLM.treatmentStatus
  element definition.short:
    value: The state of the actual treatment - taking, not taken...
  element definition.definition:
    value: The state of the actual treatment - taking, not taken...
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: CodeableConcept
structure definition.differential.element:
  index: 8
  element.id:
    value: MedicationTreatmentLineLM.treatmentStatusReasonCode
  element definition.path:
    value: MedicationTreatmentLineLM.treatmentStatusReasonCode
  element definition.short:
    value: The reason - coded - for the treatment status - i.e. adverse events, refusal...
  element definition.definition:
    value: The reason - coded - for the treatment status - i.e. adverse events, refusal...
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: CodeableConcept
structure definition.differential.element:
  index: 9
  element.id:
    value: MedicationTreatmentLineLM.treatmentStatusReasonText
  element definition.path:
    value: MedicationTreatmentLineLM.treatmentStatusReasonText
  element definition.short:
    value: The reason - free text - for the treatment status - i.e. adverse events, refusal...
  element definition.definition:
    value: The reason - free text - for the treatment status - i.e. adverse events, refusal...
  element definition.min:
    value: 0
  element definition.max:
    value: 1
  element definition.type:
    index: 0
    element definition.type.code:
      value: string
structure definition.differential.element:
  index: 10
  element.id:
    value: MedicationTreatmentLineLM.effectivePeriod
  element definition.path:
    value: MedicationTreatmentLineLM.effectivePeriod
  element definition.short:
    value: The period of time the treatment is in effect
  element definition.definition:
    value: The period of time the treatment is in effect
  element definition.min:
    value: 0

value: 1

index: 0
element definition.type.code:
  value: Period

index: 11
element.id:
  value: MedicationTreatmentLineLM.verificationInformation
element definition.path:
  value: MedicationTreatmentLineLM.verificationInformation
element definition.short:
  value: Verification of medication line
element definition.definition:
  value: Verification of medication line. The overview is verified as a whole, but each line is equipped with the information. The actual functional meaning and impact of this validation depends on the implementation.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement

index: 12
element.id:
  value: MedicationTreatmentLineLM.verificationInformation.verifier
element definition.path:
  value: MedicationTreatmentLineLM.verificationInformation.verifier
element definition.short:
  value: HCP (or device, if authorized) verifying the treatments/overview
element definition.definition:
  value: HCP (or device, if authorized) verifying the treatments/overview
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 13
element.id:
  value: MedicationTreatmentLineLM.verificationInformation.verificationTime
element definition.path:
  value: MedicationTreatmentLineLM.verificationInformation.verificationTime
element definition.short:
  value: The date and time when this medication treatment line was verified
element definition.definition:
  value: The date and time when this medication treatment line was verified
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime

index: 14
element.id:
  value: MedicationTreatmentLineLM.category
element definition.path:
  value: MedicationTreatmentLineLM.category
element definition.short:
  value: Whatever category for the treatment line. Categorisation of treatment lines is implementation-specific.
element definition.definition:
  value: Whatever category for the treatment line. Categorisation of treatment lines is implementation-specific.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 15
element.id:
  value: MedicationTreatmentLineLM.medicationTreatment
element definition.path:
  value: MedicationTreatmentLineLM.medicationTreatment
element definition.short:
  value: Reference or identifier of the group of lines that belong together
element definition.definition:
  value: Reference or identifier of the group of lines that belong together
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationTreatmentLM

index: 16
element.id:
  value: MedicationTreatmentLineLM.indication
element definition.path:
  value: MedicationTreatmentLineLM.indication
element definition.short:
  value: Reason why the product has been prescribed to the patient, or why the patient claims to be taking it
element definition.definition:
  value: Reason why the product has been prescribed to the patient, or why the patient claims to be taking it
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 17
element.id:
  value: MedicationTreatmentLineLM.indicationText
element definition.path:
  value: MedicationTreatmentLineLM.indicationText
element definition.short:
  value: Textual explanation for why the medication has been prescribed or why the patient is taking it. This might not be allowed by some implementations.
element definition.definition:
  value: Textual explanation for why the medication has been prescribed or why the patient is taking it. This might not be allowed by some implementations.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 18
element.id:
  value: MedicationTreatmentLineLM.intendedUse
element definition.path:
  value: MedicationTreatmentLineLM.intendedUse
element definition.short:
  value: Intended Use of the medication - prophylaxis, therapy...
element definition.definition:
  value: Intended Use of the medication - prophylaxis, therapy...
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 19
element.id:
  value: MedicationTreatmentLineLM.usageInstructions
element definition.path:
  value: MedicationTreatmentLineLM.usageInstructions
element definition.short:
  value: Instructions about administration of the product
element definition.definition:
  value: Instructions about requested or actual administration of the product. This is repeatable to support complex or concurrent dosage instructions. e.g. take 1 per day for 3 weeks; 2x PRN
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/DosagingInformation

index: 20
element.id:
  value: MedicationTreatmentLineLM.preparationInstructions
element definition.path:
  value: MedicationTreatmentLineLM.preparationInstructions
element definition.short:
  value: Additional instructions about preparation or dispense
element definition.definition:
  value: Additional instructions about preparation or dispense
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 21
element.id:
  value: MedicationTreatmentLineLM.comment
element definition.path:
  value: MedicationTreatmentLineLM.comment
element definition.short:
  value: Comment on the individual line
element definition.definition:
  value: Comment on the individual line
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement

index: 22
element.id:
  value: MedicationTreatmentLineLM.comment.author
element definition.path:
  value: MedicationTreatmentLineLM.comment.author
element definition.short:
  value: Author of the comment (Pharmacist, doctor, social carer, patient, device, related person)
element definition.definition:
  value: Author of the comment (Pharmacist, doctor, social carer, patient, device, related person)
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 23
element.id:
  value: MedicationTreatmentLineLM.comment.date
element definition.path:
  value: MedicationTreatmentLineLM.comment.date
element definition.short:
  value: time of comment
element definition.definition:
  value: time of comment
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime

index: 24
element.id:
  value: MedicationTreatmentLineLM.comment.commentText
element definition.path:
  value: MedicationTreatmentLineLM.comment.commentText
element definition.short:
  value: content of the comment
element definition.definition:
  value: content of the comment
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 25
element.id:
  value: MedicationTreatmentLineLM.substitution
element definition.path:
  value: MedicationTreatmentLineLM.substitution
element definition.short:
  value: Whether and which type of substitution is allowed for this medication treatment line
element definition.definition:
  value: Whether and which type of substitution is allowed for this medication treatment line
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement

index: 26
element.id:
  value: MedicationTreatmentLineLM.substitution.substitutionType
element definition.path:
  value: MedicationTreatmentLineLM.substitution.substitutionType
element definition.short:
  value: The type of substitution that is allowed.
element definition.definition:
  value: The type of substitution that is allowed.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 27
element.id:
  value: MedicationTreatmentLineLM.substitution.substitutionTypeReason
element definition.path:
  value: MedicationTreatmentLineLM.substitution.substitutionTypeReason
element definition.short:
  value: Coded reason for the substitution requirement
element definition.definition:
  value: Coded reason for the substitution requirement
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: CodeableConcept

index: 28
element.id:
  value: MedicationTreatmentLineLM.substitution.substitutionTypeReasonText
element definition.path:
  value: MedicationTreatmentLineLM.substitution.substitutionTypeReasonText
element definition.short:
  value: Textual reason for the substitution requirement
element definition.definition:
  value: Textual reason for the substitution requirement
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: string

index: 29
element.id:
  value: MedicationTreatmentLineLM.recordingMetadata
element definition.path:
  value: MedicationTreatmentLineLM.recordingMetadata
element definition.short:
  value: Metadata about reporting/authoring of the treatment line
element definition.definition:
  value: Metadata about reporting/authoring of the treatment line
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement

index: 30
element.id:
  value: MedicationTreatmentLineLM.recordingMetadata.recorder
element definition.path:
  value: MedicationTreatmentLineLM.recordingMetadata.recorder
element definition.short:
  value: Person entering the statement by initiating a treatment or documenting a statement by a patient or another professional. The recorder may be different from the author.
element definition.definition:
  value: Person entering the statement by initiating a treatment or documenting a statement by a patient or another professional. The recorder may be different from the author.
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 31
element.id:
  value: MedicationTreatmentLineLM.recordingMetadata.recordedTime
element definition.path:
  value: MedicationTreatmentLineLM.recordingMetadata.recordedTime
element definition.short:
  value: Time of creation of the treatment line
element definition.definition:
  value: Time of creation of the treatment line
element definition.min:
  value: 1
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime

index: 32
element.id:
  value: MedicationTreatmentLineLM.recordingMetadata.patientReported
element definition.path:
  value: MedicationTreatmentLineLM.recordingMetadata.patientReported
element definition.short:
  value: The treatment line has been documented according to patient's statement
element definition.definition:
  value: The treatment line has been documented according to patient's statement
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: boolean

index: 33
element.id:
  value: MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor
element definition.path:
  value: MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor
element definition.short:
  value: HCP who takes the clinical decision for the medication treatment line. If an author is not present, the responsibility of the medication line is with the recorder.
element definition.definition:
  value: HCP who takes the clinical decision for the medication treatment line. If an author is not present, the responsibility of the medication line is with the recorder.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference
  element definition.type.target profile:
    value: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/PractitionerLM
    index: 0
    link: https://profiles.ihe.net/PHARM/MEOW/StructureDefinition/PractitionerLM

index: 34
element.id:
  value: MedicationTreatmentLineLM.recordingMetadata.authoringTime
element definition.path:
  value: MedicationTreatmentLineLM.recordingMetadata.authoringTime
element definition.short:
  value: The time the clinical decision was made by the responsibleAuthor. Normally, the same time as recording time when it's the same person.
element definition.definition:
  value: The time the clinical decision was made by the responsibleAuthor. Normally, the same time as recording time when it's the same person.
element definition.min:
  value: 0
element definition.max:
  value: 1
element definition.type:
  index: 0
  element definition.type.code:
    value: dateTime

index: 35
element.id:
  value: MedicationTreatmentLineLM.derivedFrom
element definition.path:
  value: MedicationTreatmentLineLM.derivedFrom
element definition.short:
  value: Any data object that this treatment line is derived from
element definition.definition:
  value: Any data object that this treatment line is derived from
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: BackboneElement

index: 36
element.id:
  value: MedicationTreatmentLineLM.derivedFrom.request
element definition.path:
  value: MedicationTreatmentLineLM.derivedFrom.request
element definition.short:
  value: Prescriptions that have been the source for creating the unverified treatment line
element definition.definition:
  value: Prescriptions that have been the source for creating the unverified treatment line
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 37
element.id:
  value: MedicationTreatmentLineLM.derivedFrom.statement
element definition.path:
  value: MedicationTreatmentLineLM.derivedFrom.statement
element definition.short:
  value: Medication-related statements from patients, pharmacists, or other HCPs, that are the source for creating the unverified treatment line
element definition.definition:
  value: Medication-related statements from patients, pharmacists, or other HCPs, that are the source for creating the unverified treatment line
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 38
element.id:
  value: MedicationTreatmentLineLM.derivedFrom.dispensation
element definition.path:
  value: MedicationTreatmentLineLM.derivedFrom.dispensation
element definition.short:
  value: Related dispensations that are not necessarily related to existing prescriptions/requests/statements.
element definition.definition:
  value: Related dispensations that are not necessarily related to existing prescriptions/requests/statements.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 39
element.id:
  value: MedicationTreatmentLineLM.derivedFrom.administration
element definition.path:
  value: MedicationTreatmentLineLM.derivedFrom.administration
element definition.short:
  value: Related administrations that are not necessarily related to existing prescriptions/requests/statements.
element definition.definition:
  value: Related administrations that are not necessarily related to existing prescriptions/requests/statements.
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference

index: 40
element.id:
  value: MedicationTreatmentLineLM.derivedFrom.other
element definition.path:
  value: MedicationTreatmentLineLM.derivedFrom.other
element definition.short:
  value: Other related sources of information - CarePlan, Immunizations, Documents (e.g. Discharge letters)...
element definition.definition:
  value: Other related sources of information - CarePlan, Immunizations, Documents (e.g. Discharge letters)...
element definition.min:
  value: 0
element definition.max:
  value: *
element definition.type:
  index: 0
  element definition.type.code:
    value: Reference