MedicationDispenseIHEMM
type: StructureDefinition
node role: treeRoot
id:
  v: MedicationDispenseIHEMM
text:
  status:
    v: extensions
  div: Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> <a href="StructureDefinition-MedicationDispenseIHEMM-definitions.html#MedicationDispenseIHEMM" title="A medication dispense relates to zero or one prescription item of one prescription. There are cases when a medication is dispensed before the prescription is created. Medications dispensed outside the context of any prescription are considered as self-prescribed by the professional who dispenses. Thus they are still attached to a pseudo-prescription. A medication dispense is issued by one pharmacy staff. It is related to zero (community use case) or one (hospital use case) encounter of care.">MedicationDispenseIHEMM 0..* Base [IHE MM] Logical Model for medication dispense This logical model cannot be the target of a reference identifier 0..1 Identifier status 0..1 code statusReason 0..1 CodeableConcept category 0..1 CodeableConcept medication 0..1 CodeableConcept subject 0..1 Reference(Patient) context 0..1 Reference(Encounter) supportingInformation 0..1 Reference() type 0..1 CodeableConcept quantity 0..1 Quantity note 0..1 Annotation prescription 0..1 Reference(MedicationRequest) steps 0..* BackboneElement stepName 0..1 CodeableConcept datetimeStep 0..1 dateTime actor 0..1 string substitution 0..1 boolean receiver 0..1 Reference(Patient | Person | Practitioner) destination 0..1 Reference(Location) detectedIssues 0..1 Reference(DetectedIssue) eventHistory 0..1 Reference(Provenance) <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format
url:
  v: http://profiles.ihe.net/PHARM/ihe.pharm.mpd/StructureDefinition/MedicationDispenseIHEMM
version:
  v: 0.1.0
name:
  v: MedicationDispenseIHEMM
title:
  v: [IHE MM] Logical Model for medication dispense
status:
  v: active
date:
  v: 2023-08-03T13:33:51+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: A medication dispense relates to zero or one prescription item of one prescription. There are cases when a medication is dispensed before the prescription is created. Medications dispensed outside the context of any prescription are considered as self-prescribed by the professional who dispenses. Thus they are still attached to a pseudo-prescription. A medication dispense is issued by one pharmacy staff. It is related to zero (community use case) or one (hospital use case) encounter of care.
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/ihe.pharm.mpd/StructureDefinition/MedicationDispenseIHEMM
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
derivation:
  v: specialization
snapshot:
  element:
    id:
      v: MedicationDispenseIHEMM
    path:
      v: MedicationDispenseIHEMM
    short:
      v: [IHE MM] Logical Model for medication dispense
    definition:
      v: A medication dispense relates to zero or one prescription item of one prescription. There are cases when a medication is dispensed before the prescription is created. Medications dispensed outside the context of any prescription are considered as self-prescribed by the professional who dispenses. Thus they are still attached to a pseudo-prescription. A medication dispense is issued by one pharmacy staff. It is related to zero (community use case) or one (hospital use case) encounter of care.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    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
    is modifier:
      v: false
    mapping:
      identity:
        v: rim
      map:
        v: n/a
  element:
    id:
      v: MedicationDispenseIHEMM.identifier
    path:
      v: MedicationDispenseIHEMM.identifier
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: MedicationDispenseIHEMM.identifier
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: Identifier
  element:
    id:
      v: MedicationDispenseIHEMM.status
    path:
      v: MedicationDispenseIHEMM.status
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: MedicationDispenseIHEMM.status
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: code
  element:
    id:
      v: MedicationDispenseIHEMM.statusReason
    path:
      v: MedicationDispenseIHEMM.statusReason
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: MedicationDispenseIHEMM.statusReason
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: CodeableConcept
  element:
    id:
      v: MedicationDispenseIHEMM.category
    path:
      v: MedicationDispenseIHEMM.category
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: MedicationDispenseIHEMM.category
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: CodeableConcept
  element:
    id:
      v: MedicationDispenseIHEMM.medication
    path:
      v: MedicationDispenseIHEMM.medication
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: MedicationDispenseIHEMM.medication
      min:
        v: 0
      max:
        v: 1

code:
  v: CodeableConcept

id:
  v: MedicationDispenseIHEMM.subject
path:
  v: MedicationDispenseIHEMM.subject
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.subject
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient

id:
  v: MedicationDispenseIHEMM.context
path:
  v: MedicationDispenseIHEMM.context
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.context
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Encounter
    link: http://hl7.org/fhir/StructureDefinition/Encounter

id:
  v: MedicationDispenseIHEMM.supportingInformation
path:
  v: MedicationDispenseIHEMM.supportingInformation
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.supportingInformation
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference

id:
  v: MedicationDispenseIHEMM.type
path:
  v: MedicationDispenseIHEMM.type
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept

id:
  v: MedicationDispenseIHEMM.quantity
path:
  v: MedicationDispenseIHEMM.quantity
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.quantity
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Quantity

id:
  v: MedicationDispenseIHEMM.note
path:
  v: MedicationDispenseIHEMM.note
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.note
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Annotation

id:
  v: MedicationDispenseIHEMM.prescription
path:
  v: MedicationDispenseIHEMM.prescription
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.prescription
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
    link: http://hl7.org/fhir/StructureDefinition/MedicationRequest

id:
  v: MedicationDispenseIHEMM.steps
path:
  v: MedicationDispenseIHEMM.steps
min:
  v: 0
max:
  v: *
base:
  path:
    v: MedicationDispenseIHEMM.steps
  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())
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: MedicationDispenseIHEMM.steps.id
path:
  v: MedicationDispenseIHEMM.steps.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:
      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: MedicationDispenseIHEMM.steps.extension
path:
  v: MedicationDispenseIHEMM.steps.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: MedicationDispenseIHEMM.steps.modifierExtension
path:
  v: MedicationDispenseIHEMM.steps.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: MedicationDispenseIHEMM.steps.stepName
path:
  v: MedicationDispenseIHEMM.steps.stepName
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.steps.stepName
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept

id:
  v: MedicationDispenseIHEMM.steps.datetimeStep
path:
  v: MedicationDispenseIHEMM.steps.datetimeStep
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.steps.datetimeStep
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: dateTime

id:
  v: MedicationDispenseIHEMM.steps.actor
path:
  v: MedicationDispenseIHEMM.steps.actor
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.steps.actor
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: MedicationDispenseIHEMM.substitution
path:
  v: MedicationDispenseIHEMM.substitution
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.substitution
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean

id:
  v: MedicationDispenseIHEMM.receiver
path:
  v: MedicationDispenseIHEMM.receiver
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.receiver
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Person
    link: http://hl7.org/fhir/StructureDefinition/Person
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner

id:
  v: MedicationDispenseIHEMM.destination
path:
  v: MedicationDispenseIHEMM.destination
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.destination
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location
    link: http://hl7.org/fhir/StructureDefinition/Location

id:
  v: MedicationDispenseIHEMM.detectedIssues
path:
  v: MedicationDispenseIHEMM.detectedIssues
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.detectedIssues
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DetectedIssue
    link: http://hl7.org/fhir/StructureDefinition/DetectedIssue

id:
  v: MedicationDispenseIHEMM.eventHistory
path:
  v: MedicationDispenseIHEMM.eventHistory
min:
  v: 0
max:
  v: 1
base:
  path:
    v: MedicationDispenseIHEMM.eventHistory
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Provenance
    link: http://hl7.org/fhir/StructureDefinition/Provenance

element:
  id:
    v: MedicationDispenseIHEMM
  path:
    v: MedicationDispenseIHEMM
  short:
    v: [IHE MM] Logical Model for medication dispense
  definition:
    v: A medication dispense relates to zero or one prescription item of one prescription. There are cases when a medication is dispensed before the prescription is created. Medications dispensed outside the context of any prescription are considered as self-prescribed by the professional who dispenses. Thus they are still attached to a pseudo-prescription. A medication dispense is issued by one pharmacy staff. It is related to zero (community use case) or one (hospital use case) encounter of care.
element:
  id:
    v: MedicationDispenseIHEMM.identifier
  path:
    v: MedicationDispenseIHEMM.identifier
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Identifier
element:
  id:
    v: MedicationDispenseIHEMM.status
  path:
    v: MedicationDispenseIHEMM.status
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: code
element:
  id:
    v: MedicationDispenseIHEMM.statusReason
  path:
    v: MedicationDispenseIHEMM.statusReason
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
element:
  id:
    v: MedicationDispenseIHEMM.category
  path:
    v: MedicationDispenseIHEMM.category
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
element:
  id:
    v: MedicationDispenseIHEMM.medication
  path:
    v: MedicationDispenseIHEMM.medication
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
element:
  id:
    v: MedicationDispenseIHEMM.subject
  path:
    v: MedicationDispenseIHEMM.subject
  min:
    v: 0
  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: MedicationDispenseIHEMM.context
  path:
    v: MedicationDispenseIHEMM.context
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Reference
    target profile:
      v: http://hl7.org/fhir/StructureDefinition/Encounter
      link: http://hl7.org/fhir/StructureDefinition/Encounter
element:
  id:
    v: MedicationDispenseIHEMM.supportingInformation
  path:
    v: MedicationDispenseIHEMM.supportingInformation
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Reference
element:
  id:
    v: MedicationDispenseIHEMM.type
  path:
    v: MedicationDispenseIHEMM.type
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
element:
  id:
    v: MedicationDispenseIHEMM.quantity
  path:
    v: MedicationDispenseIHEMM.quantity
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Quantity
element:
  id:
    v: MedicationDispenseIHEMM.note
  path:
    v: MedicationDispenseIHEMM.note
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Annotation
element:
  id:
    v: MedicationDispenseIHEMM.prescription
  path:
    v: MedicationDispenseIHEMM.prescription
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: Reference
    target profile:
      v: http://hl7.org/fhir/StructureDefinition/MedicationRequest
      link: http://hl7.org/fhir/StructureDefinition/MedicationRequest
element:
  id:
    v: MedicationDispenseIHEMM.steps
  path:
    v: MedicationDispenseIHEMM.steps
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: BackboneElement
element:
  id:
    v: MedicationDispenseIHEMM.steps.stepName
  path:
    v: MedicationDispenseIHEMM.steps.stepName
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: CodeableConcept
element:
  id:
    v: MedicationDispenseIHEMM.steps.datetimeStep
  path:
    v: MedicationDispenseIHEMM.steps.datetimeStep
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: dateTime
element:
  id:
    v: MedicationDispenseIHEMM.steps.actor

v: MedicationDispenseIHEMM.steps.actor

v: 0

v: 1

code:
  v: string

id:
  v: MedicationDispenseIHEMM.substitution
path:
  v: MedicationDispenseIHEMM.substitution
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean

id:
  v: MedicationDispenseIHEMM.receiver
path:
  v: MedicationDispenseIHEMM.receiver
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    link: http://hl7.org/fhir/StructureDefinition/Patient
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Person
    link: http://hl7.org/fhir/StructureDefinition/Person
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    link: http://hl7.org/fhir/StructureDefinition/Practitioner

id:
  v: MedicationDispenseIHEMM.destination
path:
  v: MedicationDispenseIHEMM.destination
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Location
    link: http://hl7.org/fhir/StructureDefinition/Location

id:
  v: MedicationDispenseIHEMM.detectedIssues
path:
  v: MedicationDispenseIHEMM.detectedIssues
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/DetectedIssue
    link: http://hl7.org/fhir/StructureDefinition/DetectedIssue

id:
  v: MedicationDispenseIHEMM.eventHistory
path:
  v: MedicationDispenseIHEMM.eventHistory
min:
  v: 0
max:
  v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Provenance
    link: http://hl7.org/fhir/StructureDefinition/Provenance