profile-DeviceDispense
type: StructureDefinition
node role: treeRoot
id:
  v: profile-DeviceDispense
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: StructureDefinition profile-DeviceDispense Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> Basic 0..* Basic Resource for non-supported content #xD; Slices for extension 1..* Extension Extension Slice: Unordered, Open by value:url #xD; extension:basedOn 0..* Reference(Cross-version Profile for R5.CarePlan for use in FHIR STU3(0.1.0) | CarePlan | Cross-version Profile for R5.DeviceRequest for use in FHIR STU3(0.1.0) | DeviceRequest) R5: The order or request that this dispense is fulfilling (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.basedOn #xD; extension:partOf 0..* Reference(Cross-version Profile for R5.Procedure for use in FHIR STU3(0.1.0) | Procedure) R5: The bigger event that this dispense is a part of (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.partOf #xD; extension:statusReason 0..1 (Complex) R5: Why a dispense was or was not performed (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.statusReason #xD; extension:category 0..* CodeableConcept R5: Type of device dispense (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.category #xD; extension:device 1..1 (Complex) R5: What device was supplied (new) URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.device #xD; extension:receiver 0..1 Reference(Cross-version Profile for R5.Patient for use in FHIR STU3(0.1.0) | Patient | Cross-version Profile for R5.Practitioner for use in FHIR STU3(0.1.0) | Practitioner | Cross-version Profile for R5.RelatedPerson for use in FHIR STU3(0.1.0) | RelatedPerson | Cross-version Profile for R5.Location for use in FHIR STU3(0.1.0) | Location | Cross-version Profile for R5.PractitionerRole for use in FHIR STU3(0.1.0) | PractitionerRole) R5: Who collected the device or where the medication was delivered (new) URL: http://hl7.org/fhir/5.0/StructureDefi…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
    l: structuredefinition-wg
  value: Code
    v: fhir
extension:
  extension:
    url:
      v: packageId
      l: packageId
    value: Id
      v: hl7.fhir.uv.xver-r5.r3
  extension:
    url:
      v: version
      l: version
    value: String
      v: 0.1.0
  url:
    v: http://hl7.org/fhir/StructureDefinition/package-source
    l: package-source
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
    l: structuredefinition-fmm
  value: Integer
    v: 0
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Uri
        v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r5.r3
        l: hl7.fhir.uv.xver-r5.r3
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
    l: structuredefinition-standards-status
  value: Code
    v: trial-use
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom
        l: structuredefinition-conformance-derivedFrom
      value: Uri
        v: http://hl7.org/fhir/uv/xver/ImplementationGuide/hl7.fhir.uv.xver-r5.r3
        l: hl7.fhir.uv.xver-r5.r3
url:
  v: http://hl7.org/fhir/5.0/StructureDefinition/profile-DeviceDispense
  l: profile-DeviceDispense
version:
  v: 0.1.0
name:
  v: Profile_R5_DeviceDispense_R3
title:
  v: Cross-version Profile for R5.DeviceDispense for use in FHIR STU3
status:
  v: active
experimental:
  v: false
date:
  v: 2026-03-17T16:05:12.9429992-05:00
publisher:
  v: FHIR Infrastructure
contact:
  name:
    v: FHIR Infrastructure
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/fiwg
description:
  v: This cross-version profile allows R5 DeviceDispense content to be represented via FHIR STU3 Basic resources.
jurisdiction:
  coding:
    system:
      v: http://unstats.un.org/unsd/methods/m49/m49.htm
      l: m49.htm
    code:
      v: 001
    display:
      v: World
fhir version:
  v: 3.0.2
mapping:
  identity:
    v: rim
  uri:
    v: http://hl7.org/v3
    l: v3
  name:
    v: RIM Mapping
mapping:
  identity:
    v: w5
  uri:
    v: http://hl7.org/fhir/w5
    l: w5
  name:
    v: W5 Mapping
kind:
  v: resource
abstract:
  v: false
type:
  v: Basic
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Basic
  l: Basic
derivation:
  v: constraint
snapshot:
  element:
    id:
      v: Basic
    path:
      v: Basic
    short:
      v: Resource for non-supported content
    definition:
      v: Basic is used for handling concepts not yet defined in FHIR, narrative-only resources that don't map to an existing resource, and custom resources not appropriate for inclusion in the FHIR specification.
    alias:
      v: Z-resource
    alias:
      v: Extension-resource
    alias:
      v: Custom-resource
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Basic
      min:
        v: 0
      max:
        v: *
    constraint:
      key:
        v: dom-2
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain nested Resources
      expression:
        v: contained.contained.empty()
      xpath:
        v: not(parent::f:contained and f:contained)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-1
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL NOT contain any narrative
      expression:
        v: contained.text.empty()
      xpath:
        v: not(parent::f:contained and f:text)
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-4
      severity:
        v: error
      human:
        v: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
      expression:
        v: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
      xpath:
        v: not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource
    constraint:
      key:
        v: dom-3
      severity:
        v: error
      human:
        v: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource
      expression:
        v: contained.where(('#'+id in %resource.descendants().reference).not()).empty()
      xpath:
        v: not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))
      source:
        v: http://hl7.org/fhir/StructureDefinition/DomainResource
        l: DomainResource

identity:
  v: rim
map:
  v: Entity. Role, or Act

identity:
  v: rim
map:
  v: Act, Entity or Role

identity:
  v: w5
map:
  v: infrastructure.structure

id:
  v: Basic.id
path:
  v: Basic.id
short:
  v: Logical id of this artifact
definition:
  v: The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
comment:
  v: The only time that a resource does not have an id is when it is being submitted to the server using a create operation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.id
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: id
    l: id
is summary:
  v: true

id:
  v: Basic.meta
path:
  v: Basic.meta
short:
  v: Metadata about the resource
definition:
  v: The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.meta
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Meta
    l: Meta
is summary:
  v: true

id:
  v: Basic.implicitRules
path:
  v: Basic.implicitRules
short:
  v: A set of rules under which this content was created
definition:
  v: A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content.
comment:
  v: Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.implicitRules
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
    l: uri
is modifier:
  v: true
is summary:
  v: true

id:
  v: Basic.language
path:
  v: Basic.language
short:
  v: Language of the resource content
definition:
  v: The base language in which the resource is written.
comment:
  v: Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Resource.language
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
    l: code
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet
      l: elementdefinition-maxValueSet
    value: Reference
      l: 3.0
      l: .2
      reference:
        v: http://hl7.org/fhir/ValueSet/all-languages|3.0.2
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: Language
  strength:
    v: extensible
  description:
    v: A human language.
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/languages|3.0.2

id:
  v: Basic.text
path:
  v: Basic.text
short:
  v: Text summary of the resource, for human interpretation
definition:
  v: A human-readable narrative that contains a summary of the resource, and may be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
comment:
  v: Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a "text blob" or where text is additionally entered raw or narrated and encoded in formation is added later.
alias:
  v: narrative
alias:
  v: html
alias:
  v: xhtml
alias:
  v: display
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.text
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Narrative
    l: Narrative
condition:
  v: dom-1
mapping:
  identity:
    v: rim
  map:
    v: Act.text?

id:
  v: Basic.contained
path:
  v: Basic.contained
short:
  v: Contained, inline Resources
definition:
  v: These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
comment:
  v: This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again.
alias:
  v: inline resources
alias:
  v: anonymous resources
alias:
  v: contained resources
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.contained
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Resource
    l: Resource
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: Basic.extension
path:
  v: Basic.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 1
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension

id:
  v: Basic.extension:basedOn
path:
  v: Basic.extension
slice name:
  v: basedOn
short:
  v: R5: The order or request that this dispense is fulfilling (new)
definition:
  v: R5: `DeviceDispense.basedOn` (new:Reference(CarePlan,DeviceRequest))
comment:
  v: Element `DeviceDispense.basedOn` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.basedOn` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.basedOn|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.basedOn
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:partOf
path:
  v: Basic.extension
slice name:
  v: partOf
short:
  v: R5: The bigger event that this dispense is a part of (new)
definition:
  v: R5: `DeviceDispense.partOf` (new:Reference(Procedure))
comment:
  v: Element `DeviceDispense.partOf` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.partOf` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.partOf|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.partOf
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:statusReason
path:
  v: Basic.extension
slice name:
  v: statusReason
short:
  v: R5: Why a dispense was or was not performed (new)
definition:
  v: R5: `DeviceDispense.statusReason` (new:CodeableReference(DetectedIssue))
comment:
  v: Element `DeviceDispense.statusReason` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.statusReason` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.statusReason|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.statusReason
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:category
path:
  v: Basic.extension
slice name:
  v: category
short:
  v: R5: Type of device dispense (new)
definition:
  v: R5: `DeviceDispense.category` (new:CodeableConcept)
comment:
  v: Element `DeviceDispense.category` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.category` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The category can be used to include where the device is expected to be consumed or other types of dispenses. Invariants can be used to bind to different value sets when profiling to bind.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.category|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.category
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:device
path:
  v: Basic.extension
slice name:
  v: device
short:
  v: R5: What device was supplied (new)
definition:
  v: R5: `DeviceDispense.device` (new:CodeableReference(Device,DeviceDefinition))
comment:
  v: Element `DeviceDispense.device` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.device` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.device|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.device
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:receiver
path:
  v: Basic.extension
slice name:
  v: receiver
short:
  v: R5: Who collected the device or where the medication was delivered (new)
definition:
  v: R5: `DeviceDispense.receiver` (new:Reference(Patient,Practitioner,RelatedPerson,Location,PractitionerRole))
comment:
  v: Element `DeviceDispense.receiver` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.receiver` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.receiver|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.receiver
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:encounter
path:
  v: Basic.extension
slice name:
  v: encounter
short:
  v: R5: Encounter associated with event (new)
definition:
  v: R5: `DeviceDispense.encounter` (new:Reference(Encounter))
comment:
  v: Element `DeviceDispense.encounter` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.encounter` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.encounter|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.encounter
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:supportingInformation
path:
  v: Basic.extension
slice name:
  v: supportingInformation
short:
  v: R5: Information that supports the dispensing of the device (new)
definition:
  v: R5: `DeviceDispense.supportingInformation` (new:Reference(Resource))
comment:
  v: Element `DeviceDispense.supportingInformation` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.supportingInformation` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.supportingInformation|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.supportingInformation
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:performer
path:
  v: Basic.extension
slice name:
  v: performer
short:
  v: R5: Who performed event (new)
definition:
  v: R5: `DeviceDispense.performer` (new:BackboneElement)
comment:
  v: Element `DeviceDispense.performer` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.performer` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.performer|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.performer
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:location
path:
  v: Basic.extension
slice name:
  v: location
short:
  v: R5: Where the dispense occurred (new)
definition:
  v: R5: `DeviceDispense.location` (new:Reference(Location))
comment:
  v: Element `DeviceDispense.location` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.location` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.location|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.location
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:type
path:
  v: Basic.extension
slice name:
  v: type
short:
  v: R5: Trial fill, partial fill, emergency fill, etc (new)
definition:
  v: R5: `DeviceDispense.type` (new:CodeableConcept)
comment:
  v: Element `DeviceDispense.type` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.type` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.type|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.type
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:quantity
path:
  v: Basic.extension
slice name:
  v: quantity
short:
  v: R5: Amount dispensed (new)
definition:
  v: R5: `DeviceDispense.quantity` (new:Quantity[SimpleQuantity])
comment:
  v: Element `DeviceDispense.quantity` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.quantity` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.quantity|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.quantity
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:preparedDate
path:
  v: Basic.extension
slice name:
  v: preparedDate
short:
  v: R5: When product was packaged and reviewed (new)
definition:
  v: R5: `DeviceDispense.preparedDate` (new:dateTime)
comment:
  v: Element `DeviceDispense.preparedDate` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.preparedDate` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.preparedDate|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.preparedDate
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:whenHandedOver
path:
  v: Basic.extension
slice name:
  v: whenHandedOver
short:
  v: R5: When product was given out (new)
definition:
  v: R5: `DeviceDispense.whenHandedOver` (new:dateTime)
comment:
  v: Element `DeviceDispense.whenHandedOver` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.whenHandedOver` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.whenHandedOver|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.whenHandedOver
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:destination
path:
  v: Basic.extension
slice name:
  v: destination
short:
  v: R5: Where the device was sent or should be sent (new)
definition:
  v: R5: `DeviceDispense.destination` (new:Reference(Location))
comment:
  v: Element `DeviceDispense.destination` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.destination` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.destination|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.destination
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:note
path:
  v: Basic.extension
slice name:
  v: note
short:
  v: R5: Information about the dispense (new)
definition:
  v: R5: `DeviceDispense.note` (new:Annotation)
comment:
  v: Element `DeviceDispense.note` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.note` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.note|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.note
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:usageInstruction
path:
  v: Basic.extension
slice name:
  v: usageInstruction
short:
  v: R5: Full representation of the usage instructions (new)
definition:
  v: R5: `DeviceDispense.usageInstruction` (new:markdown)
comment:
  v: Element `DeviceDispense.usageInstruction` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.usageInstruction` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The content of the renderedDosageInstructions must not be different than the dose represented in the dosageInstruction content.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.usageInstruction|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.usageInstruction
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.extension:eventHistory
path:
  v: Basic.extension
slice name:
  v: eventHistory
short:
  v: R5: A list of relevant lifecycle events (new)
definition:
  v: R5: `DeviceDispense.eventHistory` (new:Reference(Provenance))
comment:
  v: Element `DeviceDispense.eventHistory` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.eventHistory` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.eventHistory|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.eventHistory
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: false

id:
  v: Basic.modifierExtension
path:
  v: Basic.modifierExtension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
short:
  v: Extension
definition:
  v: An Extension
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
is modifier:
  v: true

id:
  v: Basic.modifierExtension:status
path:
  v: Basic.modifierExtension
slice name:
  v: status
short:
  v: R5: preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown (new)
definition:
  v: R5: `DeviceDispense.status` (new:code)
comment:
  v: Element `DeviceDispense.status` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.status` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.status|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.status
condition:
  v: ele-1
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() | (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    l: 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
    l: Extension
is modifier:
  v: true

id:
  v: Basic.identifier
path:
  v: Basic.identifier
short:
  v: Business identifier
definition:
  v: Identifier assigned to the resource for business purposes, outside the context of FHIR.
min:
  v: 0
max:
  v: *
base:
  path:
    v: Basic.identifier
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Identifier
    l: Identifier
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: ./identifier
mapping:
  identity:
    v: w5
  map:
    v: id

id:
  v: Basic.code
path:
  v: Basic.code
short:
  v: Kind of Resource
definition:
  v: Identifies the 'type' of resource - equivalent to the resource name for other resources.
comment:
  v: Because resource references will only be able to indicate 'Basic', the type of reference will need to be specified in a Profile identified as part of the resource. Refer to the resource notes section for information on appropriate terminologies for this code. This element is labeled as a modifier because the it defines the meaning of the resource and cannot be ignored.
requirements:
  v: Must be able to distinguish different types of Basic resources.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Basic.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
    l: CodeableConcept
is modifier:
  v: true
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
      l: elementdefinition-bindingName
    value: String
      v: BasicResourceType
  strength:
    v: example
  description:
    v: Codes for identifying types of resources not yet defined by FHIR
  value set: Reference
    l: 3.0
    l: .2
    reference:
      v: http://hl7.org/fhir/ValueSet/basic-resource-type|3.0.2
mapping:
  identity:
    v: rim
  map:
    v: ./code
mapping:
  identity:
    v: w5
  map:
    v: what

id:
  v: Basic.subject
path:
  v: Basic.subject
short:
  v: Identifies the focus of this resource
definition:
  v: Identifies the patient, practitioner, device or any other resource that is the "focus" of this resource.
comment:
  v: Optional as not all potential resources will have subjects. Resources associated with multiple subjects can handle this via extension.
requirements:
  v: Needed for partitioning the resource by Patient.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Basic.subject
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Resource
    l: Resource
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: ./participation[typeCode='SBJ'] (possibly through a ControlAct and Role)
mapping:
  identity:
    v: w5
  map:
    v: who.focus

id:
  v: Basic.created
path:
  v: Basic.created
short:
  v: When created
definition:
  v: Identifies when the resource was first created.
requirements:
  v: Allows ordering resource instances by time.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Basic.created
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: date
    l: date
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: ./participation[typeCode='AUT']/time (possibly through a ControlAct and Role)
mapping:
  identity:
    v: w5
  map:
    v: when.recorded

id:
  v: Basic.author
path:
  v: Basic.author
short:
  v: Who created
definition:
  v: Indicates who was responsible for creating the resource instance.
requirements:
  v: Needed for partitioning the resource.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Basic.author
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Practitioner
    l: Practitioner
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Patient
    l: Patient
type:
  code:
    v: Reference
    l: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/RelatedPerson
    l: RelatedPerson
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: ./participation[typeCode='SUB'] (possibly through a ControlAct and Role)
mapping:
  identity:
    v: w5
  map:
    v: who.author

element:
  id:
    v: Basic
  path:
    v: Basic
element:
  id:
    v: Basic.extension
  path:
    v: Basic.extension
  slicing:
    discriminator:
      type:
        v: value
      path:
        v: url
    ordered:
      v: false
    rules:
      v: open
  min:
    v: 1
  max:
    v: *
element:
  id:
    v: Basic.extension:basedOn
  path:
    v: Basic.extension
  slice name:
    v: basedOn
  short:
    v: R5: The order or request that this dispense is fulfilling (new)
  definition:
    v: R5: `DeviceDispense.basedOn` (new:Reference(CarePlan,DeviceRequest))
  comment:
    v: Element `DeviceDispense.basedOn` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.basedOn` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: *
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.basedOn|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.basedOn
element:
  id:
    v: Basic.extension:partOf
  path:
    v: Basic.extension
  slice name:
    v: partOf
  short:
    v: R5: The bigger event that this dispense is a part of (new)
  definition:
    v: R5: `DeviceDispense.partOf` (new:Reference(Procedure))
  comment:
    v: Element `DeviceDispense.partOf` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.partOf` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: *
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.partOf|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.partOf
element:
  id:
    v: Basic.extension:statusReason
  path:
    v: Basic.extension
  slice name:
    v: statusReason
  short:
    v: R5: Why a dispense was or was not performed (new)
  definition:
    v: R5: `DeviceDispense.statusReason` (new:CodeableReference(DetectedIssue))
  comment:
    v: Element `DeviceDispense.statusReason` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.statusReason` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.statusReason|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.statusReason
element:
  id:
    v: Basic.extension:category
  path:
    v: Basic.extension
  slice name:
    v: category
  short:
    v: R5: Type of device dispense (new)
  definition:
    v: R5: `DeviceDispense.category` (new:CodeableConcept)
  comment:
    v: Element `DeviceDispense.category` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.category` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The category can be used to include where the device is expected to be consumed or other types of dispenses. Invariants can be used to bind to different value sets when profiling to bind.
  min:
    v: 0
  max:
    v: *
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.category|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.category
element:
  id:
    v: Basic.extension:device
  path:
    v: Basic.extension
  slice name:
    v: device
  short:
    v: R5: What device was supplied (new)
  definition:
    v: R5: `DeviceDispense.device` (new:CodeableReference(Device,DeviceDefinition))
  comment:
    v: Element `DeviceDispense.device` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.device` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 1
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *
  type:
    code:
      v: Extension
      l: Extension
    profile:
      v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.device|0.1.0
      l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.device
element:
  id:
    v: Basic.extension:receiver
  path:
    v: Basic.extension
  slice name:
    v: receiver
  short:
    v: R5: Who collected the device or where the medication was delivered (new)
  definition:
    v: R5: `DeviceDispense.receiver` (new:Reference(Patient,Practitioner,RelatedPerson,Location,PractitionerRole))
  comment:
    v: Element `DeviceDispense.receiver` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.receiver` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
  min:
    v: 0
  max:
    v: 1
  base:
    path:
      v: DomainResource.extension
    min:
      v: 0
    max:
      v: *

code:
  v: Extension
  l: Extension
profile:
  v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.receiver|0.1.0
  l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.receiver

id:
  v: Basic.extension:encounter
path:
  v: Basic.extension
slice name:
  v: encounter
short:
  v: R5: Encounter associated with event (new)
definition:
  v: R5: `DeviceDispense.encounter` (new:Reference(Encounter))
comment:
  v: Element `DeviceDispense.encounter` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.encounter` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.encounter|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.encounter

id:
  v: Basic.extension:supportingInformation
path:
  v: Basic.extension
slice name:
  v: supportingInformation
short:
  v: R5: Information that supports the dispensing of the device (new)
definition:
  v: R5: `DeviceDispense.supportingInformation` (new:Reference(Resource))
comment:
  v: Element `DeviceDispense.supportingInformation` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.supportingInformation` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.supportingInformation|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.supportingInformation

id:
  v: Basic.extension:performer
path:
  v: Basic.extension
slice name:
  v: performer
short:
  v: R5: Who performed event (new)
definition:
  v: R5: `DeviceDispense.performer` (new:BackboneElement)
comment:
  v: Element `DeviceDispense.performer` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.performer` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.performer|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.performer

id:
  v: Basic.extension:location
path:
  v: Basic.extension
slice name:
  v: location
short:
  v: R5: Where the dispense occurred (new)
definition:
  v: R5: `DeviceDispense.location` (new:Reference(Location))
comment:
  v: Element `DeviceDispense.location` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.location` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.location|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.location

id:
  v: Basic.extension:type
path:
  v: Basic.extension
slice name:
  v: type
short:
  v: R5: Trial fill, partial fill, emergency fill, etc (new)
definition:
  v: R5: `DeviceDispense.type` (new:CodeableConcept)
comment:
  v: Element `DeviceDispense.type` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.type` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.type|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.type

id:
  v: Basic.extension:quantity
path:
  v: Basic.extension
slice name:
  v: quantity
short:
  v: R5: Amount dispensed (new)
definition:
  v: R5: `DeviceDispense.quantity` (new:Quantity[SimpleQuantity])
comment:
  v: Element `DeviceDispense.quantity` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.quantity` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.quantity|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.quantity

id:
  v: Basic.extension:preparedDate
path:
  v: Basic.extension
slice name:
  v: preparedDate
short:
  v: R5: When product was packaged and reviewed (new)
definition:
  v: R5: `DeviceDispense.preparedDate` (new:dateTime)
comment:
  v: Element `DeviceDispense.preparedDate` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.preparedDate` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.preparedDate|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.preparedDate

id:
  v: Basic.extension:whenHandedOver
path:
  v: Basic.extension
slice name:
  v: whenHandedOver
short:
  v: R5: When product was given out (new)
definition:
  v: R5: `DeviceDispense.whenHandedOver` (new:dateTime)
comment:
  v: Element `DeviceDispense.whenHandedOver` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.whenHandedOver` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.whenHandedOver|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.whenHandedOver

id:
  v: Basic.extension:destination
path:
  v: Basic.extension
slice name:
  v: destination
short:
  v: R5: Where the device was sent or should be sent (new)
definition:
  v: R5: `DeviceDispense.destination` (new:Reference(Location))
comment:
  v: Element `DeviceDispense.destination` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.destination` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.destination|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.destination

id:
  v: Basic.extension:note
path:
  v: Basic.extension
slice name:
  v: note
short:
  v: R5: Information about the dispense (new)
definition:
  v: R5: `DeviceDispense.note` (new:Annotation)
comment:
  v: Element `DeviceDispense.note` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.note` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.note|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.note

id:
  v: Basic.extension:usageInstruction
path:
  v: Basic.extension
slice name:
  v: usageInstruction
short:
  v: R5: Full representation of the usage instructions (new)
definition:
  v: R5: `DeviceDispense.usageInstruction` (new:markdown)
comment:
  v: Element `DeviceDispense.usageInstruction` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.usageInstruction` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). The content of the renderedDosageInstructions must not be different than the dose represented in the dosageInstruction content.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.usageInstruction|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.usageInstruction

id:
  v: Basic.extension:eventHistory
path:
  v: Basic.extension
slice name:
  v: eventHistory
short:
  v: R5: A list of relevant lifecycle events (new)
definition:
  v: R5: `DeviceDispense.eventHistory` (new:Reference(Provenance))
comment:
  v: Element `DeviceDispense.eventHistory` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.eventHistory` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.).
min:
  v: 0
max:
  v: *
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.eventHistory|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.eventHistory

id:
  v: Basic.modifierExtension
path:
  v: Basic.modifierExtension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  ordered:
    v: false
  rules:
    v: open
min:
  v: 0
max:
  v: *

id:
  v: Basic.modifierExtension:status
path:
  v: Basic.modifierExtension
slice name:
  v: status
short:
  v: R5: preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown (new)
definition:
  v: R5: `DeviceDispense.status` (new:code)
comment:
  v: Element `DeviceDispense.status` is not mapped to FHIR STU3, since FHIR R5 `DeviceDispense` is not mapped. Element `DeviceDispense.status` has no mapping targets in FHIR STU3. Typically, this is because the element has been added (is a new element). This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DomainResource.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
    l: Extension
  profile:
    v: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.status|0.1.0
    l: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense.status