IHEMultilineOrder
type: StructureDefinition
node role: treeRoot
id:
  v: IHEMultilineOrder
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition IHEMultilineOrder Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> IHEMultilineOrder 0..* Base Medication order - multiline (model) Instances of this logical model can be the target of a Reference identifier 1..* Identifier Business identifier(s) for the prescription group patient 1..1 Reference(Patient (model)) The person for whom the medication is prescribed/ordered prescriber 1..1 Reference(Practitioner (model) | PractitionerRole) The person who made the prescription, and who takes the responsibility of the treatment issueDate 1..1 dateTime Time of issuing (signing) the prescription by health care practicioner recorder 0..1 Reference(Practitioner (model) | PractitionerRole) The recorder of the prescription/draft in the information system recordingDate 0..1 dateTime Time of authoring the prescription/draft in the information system validFrom 0..1 dateTime Effective date of the prescription. The prescription is not dispensable before this date. In most cases this information repeats issueDate validUntil 0..1 dateTime The validity period end date. The prescription is not dispensable after this date. medicationLine 1..* BackboneElement Medication line in the prescription status 1..1 CodeableConcept Status of the prescription, this should not be status of treatment statusReason 0..* CodeableConcept Reason for the current status of prescription, for example the reason why the prescription was made invalid category 0..* CodeableConcept Category or categories of prescription. For example type of reimbursement, or type of prescription (e.g. hospital, private, etc). basedOn 0..1 Reference(Medication order - multiline (model)) What this order is based on medication 1..1 Reference(Medicinal product (model)) Prescribed product, branded, generic, virtual, extemporal, etc prescriptionIntent 0..1 CodeableConcept Type of intent of the prescription - prophylaxis, treatment, an…
extension:
  url:
    v: http://hl7.org/fhir/tools/StructureDefinition/logical-target
  value: boolean
    v: true
url:
  v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/IHEMultilineOrder
version:
  v: 1.0.0-preview
name:
  v: IHEMultilineOrder
title:
  v: Medication order - multiline (model)
status:
  v: active
date:
  v: 2025-05-01T17:32:42+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: José Costa Teixeira
  telecom:
    system:
      v: email
    use:
      v: work
description:
  v: Logical model for multiline medication prescription
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: 5.0.0
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
  name:
    v: RIM Mapping
kind:
  v: logical
abstract:
  v: false
type:
  v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/IHEMultilineOrder
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: 5.0.0
  element:
    id:
      v: IHEMultilineOrder
    path:
      v: IHEMultilineOrder
    short:
      v: Medication order - multiline (model)
    definition:
      v: Logical model for multiline medication prescription
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: IHEMultilineOrder.identifier
    path:
      v: IHEMultilineOrder.identifier
    short:
      v: Business identifier(s) for the prescription group
    definition:
      v: Business identifier(s) for the prescription group
    min:
      v: 1
    max:
      v: *
    base:
      path:
        v: IHEMultilineOrder.identifier
      min:
        v: 1
      max:
        v: *
    type:
      code:
        v: Identifier
  element:
    id:
      v: IHEMultilineOrder.patient
    path:
      v: IHEMultilineOrder.patient
    short:
      v: The person for whom the medication is prescribed/ordered
    definition:
      v: Question: would we want to add basic Patient model?
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: IHEMultilineOrder.patient
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: Reference
      target profile:
        v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/PatientBasic
        link: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/PatientBasic
  element:
    id:
      v: IHEMultilineOrder.prescriber
    path:
      v: IHEMultilineOrder.prescriber
    short:
      v: The person who made the prescription, and who takes the responsibility of the treatment
    definition:
      v: Question: would we want to add basic Practicioner model?
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: IHEMultilineOrder.prescriber
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: Reference
      target profile:
        v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/PractitionerBasic
        link: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/PractitionerBasic
      target profile:
        v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
        link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
  element:
    id:
      v: IHEMultilineOrder.issueDate
    path:
      v: IHEMultilineOrder.issueDate
    short:
      v: Time of issuing (signing) the prescription by health care practicioner
    definition:
      v: Time of issuing (signing) the prescription by health care practicioner
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: IHEMultilineOrder.issueDate

v: 1

v: 1

code:
  v: dateTime

id:
  v: IHEMultilineOrder.recorder
path:
  v: IHEMultilineOrder.recorder
short:
  v: The recorder of the prescription/draft in the information system
definition:
  v: The recorder of the prescription/draft in the information system
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.recorder
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/PractitionerBasic
    link: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/PractitionerBasic
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
    link: http://hl7.org/fhir/StructureDefinition/PractitionerRole

id:
  v: IHEMultilineOrder.recordingDate
path:
  v: IHEMultilineOrder.recordingDate
short:
  v: Time of authoring the prescription/draft in the information system
definition:
  v: Time of authoring the prescription/draft in the information system
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.recordingDate
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: IHEMultilineOrder.validFrom
path:
  v: IHEMultilineOrder.validFrom
short:
  v: Effective date of the prescription. The prescription is not dispensable before this date. In most cases this information repeats issueDate
definition:
  v: Effective date of the prescription. The prescription is not dispensable before this date. In most cases this information repeats issueDate
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.validFrom
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: IHEMultilineOrder.validUntil
path:
  v: IHEMultilineOrder.validUntil
short:
  v: The validity period end date. The prescription is not dispensable after this date.
definition:
  v: The validity period end date. The prescription is not dispensable after this date.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.validUntil
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: IHEMultilineOrder.medicationLine
path:
  v: IHEMultilineOrder.medicationLine
short:
  v: Medication line in the prescription
definition:
  v: Medication line in the prescription
min:
  v: 1
max:
  v: *
base:
  path:
    v: IHEMultilineOrder.medicationLine
  min:
    v: 1
  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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: IHEMultilineOrder.medicationLine.id
path:
  v: IHEMultilineOrder.medicationLine.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: id
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: IHEMultilineOrder.medicationLine.extension
path:
  v: IHEMultilineOrder.medicationLine.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 managable, 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())
  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()
  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: IHEMultilineOrder.medicationLine.modifierExtension
path:
  v: IHEMultilineOrder.medicationLine.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 managable, 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/R5/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())
  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()
  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: IHEMultilineOrder.medicationLine.status
path:
  v: IHEMultilineOrder.medicationLine.status
short:
  v: Status of the prescription, this should not be status of treatment
definition:
  v: Status of the prescription, this should not be status of treatment
min:
  v: 1
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.status
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept

id:
  v: IHEMultilineOrder.medicationLine.statusReason
path:
  v: IHEMultilineOrder.medicationLine.statusReason
short:
  v: Reason for the current status of prescription, for example the reason why the prescription was made invalid
definition:
  v: Reason for the current status of prescription, for example the reason why the prescription was made invalid
min:
  v: 0
max:
  v: *
base:
  path:
    v: IHEMultilineOrder.medicationLine.statusReason
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept

id:
  v: IHEMultilineOrder.medicationLine.category
path:
  v: IHEMultilineOrder.medicationLine.category
short:
  v: Category or categories of prescription. For example type of reimbursement, or type of prescription (e.g. hospital, private, etc).
definition:
  v: Category or categories of prescription. For example type of reimbursement, or type of prescription (e.g. hospital, private, etc).
min:
  v: 0
max:
  v: *
base:
  path:
    v: IHEMultilineOrder.medicationLine.category
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept

id:
  v: IHEMultilineOrder.medicationLine.basedOn
path:
  v: IHEMultilineOrder.medicationLine.basedOn
short:
  v: What this order is based on
definition:
  v: This is a reference to the order that this order is based on. For example, a prescription for a medication may be based on a proposal, and an administration request may be based on a prescription.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.basedOn
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/IHEMultilineOrder
    link: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/IHEMultilineOrder

id:
  v: IHEMultilineOrder.medicationLine.medication
path:
  v: IHEMultilineOrder.medicationLine.medication
short:
  v: Prescribed product, branded, generic, virtual, extemporal, etc
definition:
  v: Prescribed product, branded, generic, virtual, extemporal, etc
min:
  v: 1
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.medication
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/MedicinalProductModel
    link: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/MedicinalProductModel

id:
  v: IHEMultilineOrder.medicationLine.prescriptionIntent
path:
  v: IHEMultilineOrder.medicationLine.prescriptionIntent
short:
  v: Type of intent of the prescription - prophylaxis, treatment, anesthesia, etc
definition:
  v: Type of intent of the prescription - prophylaxis, treatment, anesthesia, etc
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.prescriptionIntent
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept

id:
  v: IHEMultilineOrder.medicationLine.indication
path:
  v: IHEMultilineOrder.medicationLine.indication
short:
  v: Reason for the prescription (typically diagnosis, prophylaxis, or a procedure)
definition:
  v: Reason for the prescription (typically diagnosis, prophylaxis, or a procedure)
min:
  v: 0
max:
  v: *
base:
  path:
    v: IHEMultilineOrder.medicationLine.indication
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept

id:
  v: IHEMultilineOrder.medicationLine.indicationText
path:
  v: IHEMultilineOrder.medicationLine.indicationText
short:
  v: Reason for the prescription in textual form. This might not be allowed by some implementations.
definition:
  v: Reason for the prescription in textual form. This might not be allowed by some implementations.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.indicationText
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: IHEMultilineOrder.medicationLine.indicationReference
path:
  v: IHEMultilineOrder.medicationLine.indicationReference
short:
  v: Reason for the prescription - as a reference to a problem, result, etc.
definition:
  v: Reason for the prescription - as a reference to a problem, result, etc.
min:
  v: 0
max:
  v: *
base:
  path:
    v: IHEMultilineOrder.medicationLine.indicationReference
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string

id:
  v: IHEMultilineOrder.medicationLine.treatmentPeriod
path:
  v: IHEMultilineOrder.medicationLine.treatmentPeriod
short:
  v: Period over which the medication is to be taken (in case of multiple dosaging schemes, this would be the overall period of all dosages.)
definition:
  v: Period over which the medication is to be taken (in case of multiple dosaging schemes, this would be the overall period of all dosages.)
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.treatmentPeriod
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period

id:
  v: IHEMultilineOrder.medicationLine.quantityPrescribed
path:
  v: IHEMultilineOrder.medicationLine.quantityPrescribed
short:
  v: Overall quantity of prescribed product (e.g number of packages or number of tablets).
definition:
  v: Overall quantity of prescribed product (e.g number of packages or number of tablets).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.quantityPrescribed
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity

id:
  v: IHEMultilineOrder.medicationLine.dosageInstructions
path:
  v: IHEMultilineOrder.medicationLine.dosageInstructions
short:
  v: Dosaging and administration instructions
definition:
  v: Dosaging and administration instructions
min:
  v: 0
max:
  v: *
base:
  path:
    v: IHEMultilineOrder.medicationLine.dosageInstructions
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Reference
  target profile:
    v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/DosagingInformation
    link: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/DosagingInformation

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

id:
  v: IHEMultilineOrder.medicationLine.substitution
path:
  v: IHEMultilineOrder.medicationLine.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: IHEMultilineOrder.medicationLine.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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: IHEMultilineOrder.medicationLine.substitution.id
path:
  v: IHEMultilineOrder.medicationLine.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: id
  code:
    v: http://hl7.org/fhirpath/System.String
condition:
  v: ele-1
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: IHEMultilineOrder.medicationLine.substitution.extension
path:
  v: IHEMultilineOrder.medicationLine.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 managable, 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())
  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()
  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: IHEMultilineOrder.medicationLine.substitution.modifierExtension
path:
  v: IHEMultilineOrder.medicationLine.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 managable, 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/R5/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())
  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()
  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: IHEMultilineOrder.medicationLine.substitution.allowed[x]
path:
  v: IHEMultilineOrder.medicationLine.substitution.allowed[x]
short:
  v: Whether substitution is allowed or not (or type of substitution).
definition:
  v: Whether substitution is allowed or not (or type of substitution).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.substitution.allowed[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
type:
  code:
    v: CodeableConcept

id:
  v: IHEMultilineOrder.medicationLine.substitution.reason[x]
path:
  v: IHEMultilineOrder.medicationLine.substitution.reason[x]
short:
  v: Reason for the substitution requirement
definition:
  v: Reason for the substitution requirement
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.substitution.reason[x]
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
type:
  code:
    v: string

id:
  v: IHEMultilineOrder.medicationLine.offLabel
path:
  v: IHEMultilineOrder.medicationLine.offLabel
short:
  v: Indicates that the prescriber has knowingly prescribed the medication for an indication, age group, dosage, or route of administration that is not approved by the regulatory agencies and is not mentioned in the prescribing information for the product.
definition:
  v: Indicates that the prescriber has knowingly prescribed the medication for an indication, age group, dosage, or route of administration that is not approved by the regulatory agencies and is not mentioned in the prescribing information for the product.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.offLabel
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Base

id:
  v: IHEMultilineOrder.medicationLine.offLabel.isOffLabelUse
path:
  v: IHEMultilineOrder.medicationLine.offLabel.isOffLabelUse
short:
  v: Indicates off-label use. Must be 'true' when .reason is provided.
definition:
  v: Indicates off-label use. Must be 'true' when .reason is provided.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.offLabel.isOffLabelUse
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: boolean

id:
  v: IHEMultilineOrder.medicationLine.offLabel.reason[x]
path:
  v: IHEMultilineOrder.medicationLine.offLabel.reason[x]
short:
  v: Reason or related clarification for off-label use.
definition:
  v: Reason or related clarification for off-label use.
min:
  v: 0
max:
  v: *
base:
  path:
    v: IHEMultilineOrder.medicationLine.offLabel.reason[x]
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
type:
  code:
    v: string

id:
  v: IHEMultilineOrder.medicationLine.repeatsAllowed
path:
  v: IHEMultilineOrder.medicationLine.repeatsAllowed
short:
  v: Number of refills authorized
definition:
  v: How many times the prescription item can be dispensed in addition to the original dispense.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.repeatsAllowed
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer

id:
  v: IHEMultilineOrder.medicationLine.minimumDispenseInterval
path:
  v: IHEMultilineOrder.medicationLine.minimumDispenseInterval
short:
  v: Minimum Dispense Interval
definition:
  v: If a prescription allows for repeated dispensations, the interval between dispensations shall be stated here.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: IHEMultilineOrder.medicationLine.minimumDispenseInterval
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Duration

id:
  v: IHEMultilineOrder.comment
path:
  v: IHEMultilineOrder.comment
short:
  v: Additional information or comments
definition:
  v: Additional information or comments
min:
  v: 0
max:
  v: *
base:
  path:
    v: IHEMultilineOrder.comment
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string

element:
  id:
    v: IHEMultilineOrder
  path:
    v: IHEMultilineOrder
  short:
    v: Medication order - multiline (model)
  definition:
    v: Logical model for multiline medication prescription
element:
  id:
    v: IHEMultilineOrder.identifier
  path:
    v: IHEMultilineOrder.identifier
  short:
    v: Business identifier(s) for the prescription group
  definition:
    v: Business identifier(s) for the prescription group
  min:
    v: 1
  max:
    v: *
  type:
    code:
      v: Identifier
element:
  id:
    v: IHEMultilineOrder.patient
  path:
    v: IHEMultilineOrder.patient
  short:
    v: The person for whom the medication is prescribed/ordered
  definition:
    v: Question: would we want to add basic Patient model?
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Reference
    target profile:
      v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/PatientBasic
      link: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/PatientBasic
element:
  id:
    v: IHEMultilineOrder.prescriber
  path:
    v: IHEMultilineOrder.prescriber
  short:
    v: The person who made the prescription, and who takes the responsibility of the treatment
  definition:
    v: Question: would we want to add basic Practicioner model?
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Reference
    target profile:
      v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/PractitionerBasic
      link: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/PractitionerBasic
    target profile:
      v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
      link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
element:
  id:
    v: IHEMultilineOrder.issueDate
  path:
    v: IHEMultilineOrder.issueDate
  short:
    v: Time of issuing (signing) the prescription by health care practicioner
  definition:
    v: Time of issuing (signing) the prescription by health care practicioner
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: dateTime
element:
  id:
    v: IHEMultilineOrder.recorder
  path:
    v: IHEMultilineOrder.recorder
  short:
    v: The recorder of the prescription/draft in the information system
  definition:
    v: The recorder of the prescription/draft in the information system
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Reference
    target profile:
      v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/PractitionerBasic
      link: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/PractitionerBasic
    target profile:
      v: http://hl7.org/fhir/StructureDefinition/PractitionerRole
      link: http://hl7.org/fhir/StructureDefinition/PractitionerRole
element:
  id:
    v: IHEMultilineOrder.recordingDate
  path:
    v: IHEMultilineOrder.recordingDate
  short:
    v: Time of authoring the prescription/draft in the information system
  definition:
    v: Time of authoring the prescription/draft in the information system
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: dateTime
element:
  id:
    v: IHEMultilineOrder.validFrom
  path:
    v: IHEMultilineOrder.validFrom
  short:
    v: Effective date of the prescription. The prescription is not dispensable before this date. In most cases this information repeats issueDate
  definition:
    v: Effective date of the prescription. The prescription is not dispensable before this date. In most cases this information repeats issueDate
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: dateTime
element:
  id:
    v: IHEMultilineOrder.validUntil
  path:
    v: IHEMultilineOrder.validUntil
  short:
    v: The validity period end date. The prescription is not dispensable after this date.
  definition:
    v: The validity period end date. The prescription is not dispensable after this date.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: dateTime
element:
  id:
    v: IHEMultilineOrder.medicationLine
  path:
    v: IHEMultilineOrder.medicationLine
  short:
    v: Medication line in the prescription
  definition:
    v: Medication line in the prescription
  min:
    v: 1
  max:
    v: *
  type:
    code:
      v: BackboneElement
element:
  id:
    v: IHEMultilineOrder.medicationLine.status
  path:
    v: IHEMultilineOrder.medicationLine.status
  short:
    v: Status of the prescription, this should not be status of treatment
  definition:
    v: Status of the prescription, this should not be status of treatment
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
element:
  id:
    v: IHEMultilineOrder.medicationLine.statusReason
  path:
    v: IHEMultilineOrder.medicationLine.statusReason
  short:
    v: Reason for the current status of prescription, for example the reason why the prescription was made invalid
  definition:
    v: Reason for the current status of prescription, for example the reason why the prescription was made invalid
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: CodeableConcept

id:
  v: IHEMultilineOrder.medicationLine.category
path:
  v: IHEMultilineOrder.medicationLine.category
short:
  v: Category or categories of prescription. For example type of reimbursement, or type of prescription (e.g. hospital, private, etc).
definition:
  v: Category or categories of prescription. For example type of reimbursement, or type of prescription (e.g. hospital, private, etc).
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept

id:
  v: IHEMultilineOrder.medicationLine.basedOn
path:
  v: IHEMultilineOrder.medicationLine.basedOn
short:
  v: What this order is based on
definition:
  v: This is a reference to the order that this order is based on. For example, a prescription for a medication may be based on a proposal, and an administration request may be based on a prescription.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/IHEMultilineOrder
    link: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/IHEMultilineOrder

id:
  v: IHEMultilineOrder.medicationLine.medication
path:
  v: IHEMultilineOrder.medicationLine.medication
short:
  v: Prescribed product, branded, generic, virtual, extemporal, etc
definition:
  v: Prescribed product, branded, generic, virtual, extemporal, etc
min:
  v: 1
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/MedicinalProductModel
    link: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/MedicinalProductModel

id:
  v: IHEMultilineOrder.medicationLine.prescriptionIntent
path:
  v: IHEMultilineOrder.medicationLine.prescriptionIntent
short:
  v: Type of intent of the prescription - prophylaxis, treatment, anesthesia, etc
definition:
  v: Type of intent of the prescription - prophylaxis, treatment, anesthesia, etc
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept

id:
  v: IHEMultilineOrder.medicationLine.indication
path:
  v: IHEMultilineOrder.medicationLine.indication
short:
  v: Reason for the prescription (typically diagnosis, prophylaxis, or a procedure)
definition:
  v: Reason for the prescription (typically diagnosis, prophylaxis, or a procedure)
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept

id:
  v: IHEMultilineOrder.medicationLine.indicationText
path:
  v: IHEMultilineOrder.medicationLine.indicationText
short:
  v: Reason for the prescription in textual form. This might not be allowed by some implementations.
definition:
  v: Reason for the prescription in textual form. This might not be allowed by some implementations.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: IHEMultilineOrder.medicationLine.indicationReference
path:
  v: IHEMultilineOrder.medicationLine.indicationReference
short:
  v: Reason for the prescription - as a reference to a problem, result, etc.
definition:
  v: Reason for the prescription - as a reference to a problem, result, etc.
min:
  v: 0
max:
  v: *
type:
  code:
    v: string

id:
  v: IHEMultilineOrder.medicationLine.treatmentPeriod
path:
  v: IHEMultilineOrder.medicationLine.treatmentPeriod
short:
  v: Period over which the medication is to be taken (in case of multiple dosaging schemes, this would be the overall period of all dosages.)
definition:
  v: Period over which the medication is to be taken (in case of multiple dosaging schemes, this would be the overall period of all dosages.)
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Period

id:
  v: IHEMultilineOrder.medicationLine.quantityPrescribed
path:
  v: IHEMultilineOrder.medicationLine.quantityPrescribed
short:
  v: Overall quantity of prescribed product (e.g number of packages or number of tablets).
definition:
  v: Overall quantity of prescribed product (e.g number of packages or number of tablets).
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Quantity

id:
  v: IHEMultilineOrder.medicationLine.dosageInstructions
path:
  v: IHEMultilineOrder.medicationLine.dosageInstructions
short:
  v: Dosaging and administration instructions
definition:
  v: Dosaging and administration instructions
min:
  v: 0
max:
  v: *
type:
  code:
    v: Reference
  target profile:
    v: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/DosagingInformation
    link: http://profiles.ihe.net/PHARM/MPD/StructureDefinition/DosagingInformation

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

id:
  v: IHEMultilineOrder.medicationLine.substitution
path:
  v: IHEMultilineOrder.medicationLine.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: IHEMultilineOrder.medicationLine.substitution.allowed[x]
path:
  v: IHEMultilineOrder.medicationLine.substitution.allowed[x]
short:
  v: Whether substitution is allowed or not (or type of substitution).
definition:
  v: Whether substitution is allowed or not (or type of substitution).
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
type:
  code:
    v: CodeableConcept

id:
  v: IHEMultilineOrder.medicationLine.substitution.reason[x]
path:
  v: IHEMultilineOrder.medicationLine.substitution.reason[x]
short:
  v: Reason for the substitution requirement
definition:
  v: Reason for the substitution requirement
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
type:
  code:
    v: string

id:
  v: IHEMultilineOrder.medicationLine.offLabel
path:
  v: IHEMultilineOrder.medicationLine.offLabel
short:
  v: Indicates that the prescriber has knowingly prescribed the medication for an indication, age group, dosage, or route of administration that is not approved by the regulatory agencies and is not mentioned in the prescribing information for the product.
definition:
  v: Indicates that the prescriber has knowingly prescribed the medication for an indication, age group, dosage, or route of administration that is not approved by the regulatory agencies and is not mentioned in the prescribing information for the product.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Base

id:
  v: IHEMultilineOrder.medicationLine.offLabel.isOffLabelUse
path:
  v: IHEMultilineOrder.medicationLine.offLabel.isOffLabelUse
short:
  v: Indicates off-label use. Must be 'true' when .reason is provided.
definition:
  v: Indicates off-label use. Must be 'true' when .reason is provided.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: boolean

id:
  v: IHEMultilineOrder.medicationLine.offLabel.reason[x]
path:
  v: IHEMultilineOrder.medicationLine.offLabel.reason[x]
short:
  v: Reason or related clarification for off-label use.
definition:
  v: Reason or related clarification for off-label use.
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
type:
  code:
    v: string

id:
  v: IHEMultilineOrder.medicationLine.repeatsAllowed
path:
  v: IHEMultilineOrder.medicationLine.repeatsAllowed
short:
  v: Number of refills authorized
definition:
  v: How many times the prescription item can be dispensed in addition to the original dispense.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: integer

id:
  v: IHEMultilineOrder.medicationLine.minimumDispenseInterval
path:
  v: IHEMultilineOrder.medicationLine.minimumDispenseInterval
short:
  v: Minimum Dispense Interval
definition:
  v: If a prescription allows for repeated dispensations, the interval between dispensations shall be stated here.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Duration

id:
  v: IHEMultilineOrder.comment
path:
  v: IHEMultilineOrder.comment
short:
  v: Additional information or comments
definition:
  v: Additional information or comments
min:
  v: 0
max:
  v: *
type:
  code:
    v: string