MedicationTreatmentLineLM
type: StructureDefinition
node role: treeRoot
id:
  v: MedicationTreatmentLineLM
text:
  status:
    v: extensions
  div:
    v: 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 logical model 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..* Codeab…
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/logical-target
  value: boolean
    v: true
url:
  v: http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationTreatmentLineLM
version:
  v: 0.1.0
name:
  v: MedicationTreatmentLineLM
title:
  v: Medication Treatment Line (model)
status:
  v: active
date:
  v: 2026-06-25T14:07:22+00:00
publisher:
  v: Integrating the Healthcare Enterprise (IHE)
contact:
  name:
    v: Integrating the Healthcare Enterprise (IHE)
  telecom:
    system:
      v: url
    value:
      v: http://ihe.net
  telecom:
    system:
      v: email
contact:
  name:
    v: Jose Costa Teixeira
  telecom:
    system:
      v: email
    use:
      v: work
description:
  v: Logical model for representing one line/medication in medication overview.
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
    code:
      v: 001
copyright:
  v: IHE http://www.ihe.net/Governance/#Intellectual_Property
fhir version:
  v: 4.0.1
kind:
  v: logical
abstract:
  v: false
type:
  v: http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicationTreatmentLineLM
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
derivation:
  v: specialization
snapshot:
  extension:
    url:
      v: http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version
    value: string
      v: 4.0.1
  element:
    id:
      v: MedicationTreatmentLineLM
    path:
      v: MedicationTreatmentLineLM
    short:
      v: Medication Treatment Line (model)
    definition:
      v: Logical model for representing one line/medication in medication overview.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: MedicationTreatmentLineLM.identifier
    path:
      v: MedicationTreatmentLineLM.identifier
    short:
      v: Unique business identifier(s) for the medication treatment line
    definition:
      v: Unique business identifier(s) for the medication treatment line
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: MedicationTreatmentLineLM.identifier
      min:
        v: 0
      max:
        v: *
    type:
      code:
        v: Identifier
  element:
    id:
      v: MedicationTreatmentLineLM.subject
    path:
      v: MedicationTreatmentLineLM.subject
    short:
      v: The patient for whom the medication treatment line applies
    definition:
      v: The patient for whom the medication treatment line applies
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: MedicationTreatmentLineLM.subject
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: Reference
      target profile:
        v: http://hl7.org/fhir/StructureDefinition/Patient
        link: http://hl7.org/fhir/StructureDefinition/Patient
  element:
    id:
      v: MedicationTreatmentLineLM.medication[x]
    path:
      v: MedicationTreatmentLineLM.medication[x]
    short:
      v: Medicinal product for which the treatment line refers to. Identification or sufficient description of the product.
    definition:
      v: Medicinal product for which the treatment line refers to. Identification or sufficient description of the product.
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: MedicationTreatmentLineLM.medication[x]
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: CodeableConcept
    type:
      code:
        v: Reference
      target profile:
        v: http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicinalProductLM
        link: http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/MedicinalProductLM
  element:
    id:
      v: MedicationTreatmentLineLM.status
    path:
      v: MedicationTreatmentLineLM.status
    short:
      v: Status of the treatment line entry
    definition:
      v: Status of the record, not the status of the treatment.
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: MedicationTreatmentLineLM.status
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: code
    binding:
      strength:
        v: required
      value set:
        v: http://hl7.org/fhir/ValueSet/medication-statement-status
        link: http://hl7.org/fhir/ValueSet/medication-statement-status

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

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

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

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

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

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

id:
  v: MedicationTreatmentLineLM.verificationInformation
path:
  v: MedicationTreatmentLineLM.verificationInformation
short:
  v: Verification of medication line
definition:
  v: 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.
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationTreatmentLineLM.verificationInformation
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

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

id:
  v: MedicationTreatmentLineLM.verificationInformation.extension
path:
  v: MedicationTreatmentLineLM.verificationInformation.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationTreatmentLineLM.verificationInformation.modifierExtension
path:
  v: MedicationTreatmentLineLM.verificationInformation.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

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

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

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

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

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

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

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

id:
  v: MedicationTreatmentLineLM.usageInstructions
path:
  v: MedicationTreatmentLineLM.usageInstructions
short:
  v: Instructions about administration of the product
definition:
  v: 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
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationTreatmentLineLM.usageInstructions
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/DosagingInformation

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

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

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

id:
  v: MedicationTreatmentLineLM.comment.extension
path:
  v: MedicationTreatmentLineLM.comment.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationTreatmentLineLM.comment.modifierExtension
path:
  v: MedicationTreatmentLineLM.comment.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

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

id:
  v: MedicationTreatmentLineLM.comment.date
path:
  v: MedicationTreatmentLineLM.comment.date
short:
  v: time of comment
definition:
  v: time of comment
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationTreatmentLineLM.comment.date
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: MedicationTreatmentLineLM.comment.commentText
path:
  v: MedicationTreatmentLineLM.comment.commentText
short:
  v: content of the comment
definition:
  v: content of the comment
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationTreatmentLineLM.comment.commentText
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string

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

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

id:
  v: MedicationTreatmentLineLM.substitution.extension
path:
  v: MedicationTreatmentLineLM.substitution.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationTreatmentLineLM.substitution.modifierExtension
path:
  v: MedicationTreatmentLineLM.substitution.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MedicationTreatmentLineLM.substitution.substitutionType
path:
  v: MedicationTreatmentLineLM.substitution.substitutionType
short:
  v: The type of substitution that is allowed.
definition:
  v: The type of substitution that is allowed.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationTreatmentLineLM.substitution.substitutionType
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept

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

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

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

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

id:
  v: MedicationTreatmentLineLM.recordingMetadata.extension
path:
  v: MedicationTreatmentLineLM.recordingMetadata.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationTreatmentLineLM.recordingMetadata.modifierExtension
path:
  v: MedicationTreatmentLineLM.recordingMetadata.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: MedicationTreatmentLineLM.recordingMetadata.recorder
path:
  v: MedicationTreatmentLineLM.recordingMetadata.recorder
short:
  v: 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.
definition:
  v: 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.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationTreatmentLineLM.recordingMetadata.recorder
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference

id:
  v: MedicationTreatmentLineLM.recordingMetadata.recordedTime
path:
  v: MedicationTreatmentLineLM.recordingMetadata.recordedTime
short:
  v: Time of creation of the treatment line
definition:
  v: Time of creation of the treatment line
min:
  v: 1
max:
  v: 1
base:
  path:
    v: MedicationTreatmentLineLM.recordingMetadata.recordedTime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: dateTime

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

id:
  v: MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor
path:
  v: MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor
short:
  v: 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.
definition:
  v: 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.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/PractitionerLM
    link: http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/PractitionerLM

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

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

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

id:
  v: MedicationTreatmentLineLM.derivedFrom.extension
path:
  v: MedicationTreatmentLineLM.derivedFrom.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
alias:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: MedicationTreatmentLineLM.derivedFrom.modifierExtension
path:
  v: MedicationTreatmentLineLM.derivedFrom.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

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

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

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

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

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

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

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

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

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

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

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

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

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

id:
  v: MedicationTreatmentLineLM.usageInstructions
path:
  v: MedicationTreatmentLineLM.usageInstructions
short:
  v: Instructions about administration of the product
definition:
  v: 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
min:
  v: 0
max:
  v: *
type:
  code:
    v: http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/DosagingInformation

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

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

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

id:
  v: MedicationTreatmentLineLM.comment.date
path:
  v: MedicationTreatmentLineLM.comment.date
short:
  v: time of comment
definition:
  v: time of comment
min:
  v: 0
max:
  v: 1
type:
  code:
    v: dateTime

id:
  v: MedicationTreatmentLineLM.comment.commentText
path:
  v: MedicationTreatmentLineLM.comment.commentText
short:
  v: content of the comment
definition:
  v: content of the comment
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string

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

id:
  v: MedicationTreatmentLineLM.substitution.substitutionType
path:
  v: MedicationTreatmentLineLM.substitution.substitutionType
short:
  v: The type of substitution that is allowed.
definition:
  v: The type of substitution that is allowed.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept

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

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

id:
  v: MedicationTreatmentLineLM.recordingMetadata
path:
  v: MedicationTreatmentLineLM.recordingMetadata
short:
  v: Metadata about reporting/authoring of the treatment line
definition:
  v: Metadata about reporting/authoring of the treatment line
min:
  v: 1
max:
  v: 1
type:
  code:
    v: BackboneElement

id:
  v: MedicationTreatmentLineLM.recordingMetadata.recorder
path:
  v: MedicationTreatmentLineLM.recordingMetadata.recorder
short:
  v: 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.
definition:
  v: 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.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Reference

id:
  v: MedicationTreatmentLineLM.recordingMetadata.recordedTime
path:
  v: MedicationTreatmentLineLM.recordingMetadata.recordedTime
short:
  v: Time of creation of the treatment line
definition:
  v: Time of creation of the treatment line
min:
  v: 1
max:
  v: 1
type:
  code:
    v: dateTime

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

id:
  v: MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor
path:
  v: MedicationTreatmentLineLM.recordingMetadata.responsibleAuthor
short:
  v: 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.
definition:
  v: 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.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/PractitionerLM
    link: http://profiles.ihe.net/PHARM/MEOW/StructureDefinition/PractitionerLM

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

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

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

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

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

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

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