PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver-r5.r4@0.0.1-snapshot-1
    http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense
description: This cross-version extension represents DeviceDispense from http://hl7.org/fhir/StructureDefinition/DeviceDispense|5.0.0 for use in FHIR R4.
package_name: hl7.fhir.uv.xver-r5.r4
derivation: constraint
name: ext_R5_DeviceDispense
type: Extension
elements:
  extension:
    array: true
    min: 3
    index: 0
    slicing:
      rules: closed
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 3
      slices:
        category:
          match: {url: null}
          schema:
            short: Type of device dispense
            isModifier: false
            array: true
            index: 26
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Type of device dispense
                choices: [valueCodeableConcept]
                index: 28
              valueCodeableConcept:
                base: {path: 'Extension.value[x]'}
                type: CodeableConcept
                short: Type of device dispense
                choiceOf: value
                index: 29
        whenHandedOver:
          match: {url: null}
          schema:
            short: When product was given out
            isModifier: false
            index: 81
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: When product was given out
                choices: [valueDateTime]
                index: 83
              valueDateTime:
                base: {path: 'Extension.value[x]'}
                type: dateTime
                short: When product was given out
                choiceOf: value
                index: 84
        eventHistory:
          match: {url: null}
          schema:
            short: A list of relevant lifecycle events
            isModifier: false
            array: true
            index: 97
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: A list of relevant lifecycle events
                choices: [valueReference]
                index: 99
              valueReference:
                base: {path: 'Extension.value[x]'}
                type: Reference
                short: A list of relevant lifecycle events
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Provenance']
                index: 100
        usageInstruction:
          match: {url: null}
          schema:
            short: Full representation of the usage instructions
            isModifier: false
            index: 93
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Full representation of the usage instructions
                choices: [valueMarkdown]
                index: 95
              valueMarkdown:
                base: {path: 'Extension.value[x]'}
                type: markdown
                short: Full representation of the usage instructions
                choiceOf: value
                index: 96
        encounter:
          match: {url: null}
          schema:
            short: Encounter associated with event
            isModifier: false
            index: 47
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Encounter associated with event
                choices: [valueReference]
                index: 49
              valueReference:
                base: {path: 'Extension.value[x]'}
                type: Reference
                short: Encounter associated with event
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Encounter']
                index: 50
        preparedDate:
          match: {url: null}
          schema:
            short: When product was packaged and reviewed
            isModifier: false
            index: 77
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: When product was packaged and reviewed
                choices: [valueDateTime]
                index: 79
              valueDateTime:
                base: {path: 'Extension.value[x]'}
                type: dateTime
                short: When product was packaged and reviewed
                choiceOf: value
                index: 80
        type:
          match: {url: null}
          schema:
            short: Trial fill, partial fill, emergency fill, etc
            isModifier: false
            index: 69
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Trial fill, partial fill, emergency fill, etc
                choices: [valueCodeableConcept]
                index: 71
              valueCodeableConcept:
                base: {path: 'Extension.value[x]'}
                type: CodeableConcept
                short: Trial fill, partial fill, emergency fill, etc
                choiceOf: value
                index: 72
        statusReason:
          match: {url: null}
          schema:
            short: Why a dispense was or was not performed
            isModifier: false
            index: 13
            extensions:
              _datatype:
                url: http://hl7.org/fhir/StructureDefinition/_datatype
                type: Extension
                short: Data type name for DeviceDispense.statusReason from FHIR R5
                index: 14
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    pattern: {type: String, value: CodeableReference}
                    choices: [valueString]
                    index: 16
                  valueString:
                    type: string
                    pattern: {type: String, value: CodeableReference}
                    base: {path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 17
                required: [valueString, value]
              concept:
                url: null
                short: Reference to a concept (by class)
                isModifier: false
                index: 18
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Reference to a concept (by class)
                    choices: [valueCodeableConcept]
                    index: 20
                  valueCodeableConcept:
                    base: {path: 'Extension.value[x]'}
                    type: CodeableConcept
                    short: Reference to a concept (by class)
                    choiceOf: value
                    index: 21
              reference:
                url: null
                short: Reference to a resource (by instance)
                isModifier: false
                index: 22
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Reference to a resource (by instance)
                    choices: [valueReference]
                    index: 24
                  valueReference:
                    base: {path: 'Extension.value[x]'}
                    type: Reference
                    short: Reference to a resource (by instance)
                    choiceOf: value
                    index: 25
            elements:
              extension:
                type: Extension
                short: Data type name for DeviceDispense.statusReason from FHIR R5
                url: http://hl7.org/fhir/StructureDefinition/_datatype
                index: 14
                slicing:
                  slices:
                    _datatype:
                      match: {}
                      schema:
                        type: Extension
                        short: Data type name for DeviceDispense.statusReason from FHIR R5
                        url: http://hl7.org/fhir/StructureDefinition/_datatype
                        index: 14
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            pattern: {type: String, value: CodeableReference}
                            choices: [valueString]
                            index: 16
                          valueString:
                            type: string
                            pattern: {type: String, value: CodeableReference}
                            base: {path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 17
                        required: [valueString, value]
                    concept:
                      match: {}
                      schema:
                        short: Reference to a concept (by class)
                        isModifier: false
                        index: 18
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            short: Reference to a concept (by class)
                            choices: [valueCodeableConcept]
                            index: 20
                          valueCodeableConcept:
                            base: {path: 'Extension.value[x]'}
                            type: CodeableConcept
                            short: Reference to a concept (by class)
                            choiceOf: value
                            index: 21
                    reference:
                      match: {}
                      schema:
                        short: Reference to a resource (by instance)
                        isModifier: false
                        index: 22
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            short: Reference to a resource (by instance)
                            choices: [valueReference]
                            index: 24
                          valueReference:
                            base: {path: 'Extension.value[x]'}
                            type: Reference
                            short: Reference to a resource (by instance)
                            choiceOf: value
                            index: 25
        note:
          match: {url: null}
          schema:
            short: Information about the dispense
            isModifier: false
            array: true
            index: 89
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Information about the dispense
                choices: [valueAnnotation]
                index: 91
              valueAnnotation:
                base: {path: 'Extension.value[x]'}
                type: Annotation
                short: Information about the dispense
                choiceOf: value
                index: 92
        supportingInformation:
          match: {url: null}
          schema:
            short: Information that supports the dispensing of the device
            isModifier: false
            array: true
            index: 51
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Information that supports the dispensing of the device
                choices: [valueReference]
                index: 53
              valueReference:
                base: {path: 'Extension.value[x]'}
                type: Reference
                short: Information that supports the dispensing of the device
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
                index: 54
        status:
          match: {url: null}
          schema:
            isModifier: true
            short: preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
            _required: true
            isModifierReason: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
            index: 9
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
                choices: [valueCode]
                index: 11
              valueCode:
                base: {path: 'Extension.value[x]'}
                type: code
                short: preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
                choiceOf: value
                index: 12
        device:
          match: {url: null}
          schema:
            short: What device was supplied
            isModifier: false
            _required: true
            index: 30
            extensions:
              _datatype:
                url: http://hl7.org/fhir/StructureDefinition/_datatype
                type: Extension
                short: Data type name for DeviceDispense.device from FHIR R5
                index: 31
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    pattern: {type: String, value: CodeableReference}
                    choices: [valueString]
                    index: 33
                  valueString:
                    type: string
                    pattern: {type: String, value: CodeableReference}
                    base: {path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 34
                required: [valueString, value]
              concept:
                url: null
                short: Reference to a concept (by class)
                isModifier: false
                index: 35
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Reference to a concept (by class)
                    choices: [valueCodeableConcept]
                    index: 37
                  valueCodeableConcept:
                    base: {path: 'Extension.value[x]'}
                    type: CodeableConcept
                    short: Reference to a concept (by class)
                    choiceOf: value
                    index: 38
              reference:
                url: null
                short: Reference to a resource (by instance)
                isModifier: false
                index: 39
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Reference to a resource (by instance)
                    choices: [valueReference]
                    index: 41
                  valueReference:
                    base: {path: 'Extension.value[x]'}
                    type: Reference
                    short: Reference to a resource (by instance)
                    choiceOf: value
                    index: 42
            elements:
              extension:
                type: Extension
                short: Data type name for DeviceDispense.device from FHIR R5
                url: http://hl7.org/fhir/StructureDefinition/_datatype
                index: 31
                slicing:
                  slices:
                    _datatype:
                      match: {}
                      schema:
                        type: Extension
                        short: Data type name for DeviceDispense.device from FHIR R5
                        url: http://hl7.org/fhir/StructureDefinition/_datatype
                        index: 31
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            pattern: {type: String, value: CodeableReference}
                            choices: [valueString]
                            index: 33
                          valueString:
                            type: string
                            pattern: {type: String, value: CodeableReference}
                            base: {path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 34
                        required: [valueString, value]
                    concept:
                      match: {}
                      schema:
                        short: Reference to a concept (by class)
                        isModifier: false
                        index: 35
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            short: Reference to a concept (by class)
                            choices: [valueCodeableConcept]
                            index: 37
                          valueCodeableConcept:
                            base: {path: 'Extension.value[x]'}
                            type: CodeableConcept
                            short: Reference to a concept (by class)
                            choiceOf: value
                            index: 38
                    reference:
                      match: {}
                      schema:
                        short: Reference to a resource (by instance)
                        isModifier: false
                        index: 39
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            short: Reference to a resource (by instance)
                            choices: [valueReference]
                            index: 41
                          valueReference:
                            base: {path: 'Extension.value[x]'}
                            type: Reference
                            short: Reference to a resource (by instance)
                            choiceOf: value
                            index: 42
        basedOn:
          match: {url: null}
          schema:
            short: The order or request that this dispense is fulfilling
            isModifier: false
            array: true
            index: 1
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: The order or request that this dispense is fulfilling
                choices: [valueReference]
                index: 3
              valueReference:
                base: {path: 'Extension.value[x]'}
                type: Reference
                short: The order or request that this dispense is fulfilling
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/DeviceRequest']
                index: 4
        quantity:
          match: {url: null}
          schema:
            short: Amount dispensed
            isModifier: false
            index: 73
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Amount dispensed
                choices: [valueQuantity]
                index: 75
              valueQuantity:
                base: {path: 'Extension.value[x]'}
                type: Quantity
                short: Amount dispensed
                choiceOf: value
                index: 76
        partOf:
          match: {url: null}
          schema:
            short: The bigger event that this dispense is a part of
            isModifier: false
            array: true
            index: 5
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: The bigger event that this dispense is a part of
                choices: [valueReference]
                index: 7
              valueReference:
                base: {path: 'Extension.value[x]'}
                type: Reference
                short: The bigger event that this dispense is a part of
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Procedure']
                index: 8
        location:
          match: {url: null}
          schema:
            short: Where the dispense occurred
            isModifier: false
            index: 65
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Where the dispense occurred
                choices: [valueReference]
                index: 67
              valueReference:
                base: {path: 'Extension.value[x]'}
                type: Reference
                short: Where the dispense occurred
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Location']
                index: 68
        receiver:
          match: {url: null}
          schema:
            short: Who collected the device or where the medication was delivered
            isModifier: false
            index: 43
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Who collected the device or where the medication was delivered
                choices: [valueReference]
                index: 45
              valueReference:
                base: {path: 'Extension.value[x]'}
                type: Reference
                short: Who collected the device or where the medication was delivered
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Location', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
                index: 46
        destination:
          match: {url: null}
          schema:
            short: Where the device was sent or should be sent
            isModifier: false
            index: 85
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Where the device was sent or should be sent
                choices: [valueReference]
                index: 87
              valueReference:
                base: {path: 'Extension.value[x]'}
                type: Reference
                short: Where the device was sent or should be sent
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Location']
                index: 88
        performer:
          match: {url: null}
          schema:
            short: Who performed event
            isModifier: false
            array: true
            index: 55
            extensions:
              function:
                url: null
                short: Who performed the dispense and what they did
                isModifier: false
                index: 57
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Who performed the dispense and what they did
                    choices: [valueCodeableConcept]
                    index: 59
                  valueCodeableConcept:
                    base: {path: 'Extension.value[x]'}
                    type: CodeableConcept
                    short: Who performed the dispense and what they did
                    choiceOf: value
                    index: 60
              actor:
                url: null
                short: Individual who was performing
                isModifier: false
                _required: true
                index: 61
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Individual who was performing
                    choices: [valueReference]
                    index: 63
                  valueReference:
                    base: {path: 'Extension.value[x]'}
                    type: Reference
                    short: Individual who was performing
                    choiceOf: value
                    refers: ['http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
                    index: 64
            elements:
              extension:
                array: true
                min: 1
                index: 56
                slicing:
                  rules: closed
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    function:
                      match: {url: null}
                      schema:
                        short: Who performed the dispense and what they did
                        isModifier: false
                        index: 57
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            short: Who performed the dispense and what they did
                            choices: [valueCodeableConcept]
                            index: 59
                          valueCodeableConcept:
                            base: {path: 'Extension.value[x]'}
                            type: CodeableConcept
                            short: Who performed the dispense and what they did
                            choiceOf: value
                            index: 60
                    actor:
                      match: {url: null}
                      schema:
                        short: Individual who was performing
                        isModifier: false
                        _required: true
                        index: 61
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            short: Individual who was performing
                            choices: [valueReference]
                            index: 63
                          valueReference:
                            base: {path: 'Extension.value[x]'}
                            type: Reference
                            short: Individual who was performing
                            choiceOf: value
                            refers: ['http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
                            index: 64
            required: [extension]
  url:
    pattern: {type: Uri, value: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense'}
    index: 101
package_version: 0.0.1-snapshot-1
extensions:
  category:
    url: null
    short: Type of device dispense
    isModifier: false
    array: true
    index: 26
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Type of device dispense
        choices: [valueCodeableConcept]
        index: 28
      valueCodeableConcept:
        base: {path: 'Extension.value[x]'}
        type: CodeableConcept
        short: Type of device dispense
        choiceOf: value
        index: 29
  whenHandedOver:
    url: null
    short: When product was given out
    isModifier: false
    index: 81
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: When product was given out
        choices: [valueDateTime]
        index: 83
      valueDateTime:
        base: {path: 'Extension.value[x]'}
        type: dateTime
        short: When product was given out
        choiceOf: value
        index: 84
  eventHistory:
    url: null
    short: A list of relevant lifecycle events
    isModifier: false
    array: true
    index: 97
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: A list of relevant lifecycle events
        choices: [valueReference]
        index: 99
      valueReference:
        base: {path: 'Extension.value[x]'}
        type: Reference
        short: A list of relevant lifecycle events
        choiceOf: value
        refers: ['http://hl7.org/fhir/StructureDefinition/Provenance']
        index: 100
  usageInstruction:
    url: null
    short: Full representation of the usage instructions
    isModifier: false
    index: 93
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Full representation of the usage instructions
        choices: [valueMarkdown]
        index: 95
      valueMarkdown:
        base: {path: 'Extension.value[x]'}
        type: markdown
        short: Full representation of the usage instructions
        choiceOf: value
        index: 96
  encounter:
    url: null
    short: Encounter associated with event
    isModifier: false
    index: 47
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Encounter associated with event
        choices: [valueReference]
        index: 49
      valueReference:
        base: {path: 'Extension.value[x]'}
        type: Reference
        short: Encounter associated with event
        choiceOf: value
        refers: ['http://hl7.org/fhir/StructureDefinition/Encounter']
        index: 50
  preparedDate:
    url: null
    short: When product was packaged and reviewed
    isModifier: false
    index: 77
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: When product was packaged and reviewed
        choices: [valueDateTime]
        index: 79
      valueDateTime:
        base: {path: 'Extension.value[x]'}
        type: dateTime
        short: When product was packaged and reviewed
        choiceOf: value
        index: 80
  type:
    url: null
    short: Trial fill, partial fill, emergency fill, etc
    isModifier: false
    index: 69
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Trial fill, partial fill, emergency fill, etc
        choices: [valueCodeableConcept]
        index: 71
      valueCodeableConcept:
        base: {path: 'Extension.value[x]'}
        type: CodeableConcept
        short: Trial fill, partial fill, emergency fill, etc
        choiceOf: value
        index: 72
  statusReason:
    url: null
    short: Why a dispense was or was not performed
    isModifier: false
    index: 13
    extensions:
      _datatype:
        url: http://hl7.org/fhir/StructureDefinition/_datatype
        type: Extension
        short: Data type name for DeviceDispense.statusReason from FHIR R5
        index: 14
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            pattern: {type: String, value: CodeableReference}
            choices: [valueString]
            index: 16
          valueString:
            type: string
            pattern: {type: String, value: CodeableReference}
            base: {path: 'Extension.value[x]'}
            choiceOf: value
            index: 17
        required: [valueString, value]
      concept:
        url: null
        short: Reference to a concept (by class)
        isModifier: false
        index: 18
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            short: Reference to a concept (by class)
            choices: [valueCodeableConcept]
            index: 20
          valueCodeableConcept:
            base: {path: 'Extension.value[x]'}
            type: CodeableConcept
            short: Reference to a concept (by class)
            choiceOf: value
            index: 21
      reference:
        url: null
        short: Reference to a resource (by instance)
        isModifier: false
        index: 22
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            short: Reference to a resource (by instance)
            choices: [valueReference]
            index: 24
          valueReference:
            base: {path: 'Extension.value[x]'}
            type: Reference
            short: Reference to a resource (by instance)
            choiceOf: value
            index: 25
    elements:
      extension:
        type: Extension
        short: Data type name for DeviceDispense.statusReason from FHIR R5
        url: http://hl7.org/fhir/StructureDefinition/_datatype
        index: 14
        slicing:
          slices:
            _datatype:
              match: {}
              schema:
                type: Extension
                short: Data type name for DeviceDispense.statusReason from FHIR R5
                url: http://hl7.org/fhir/StructureDefinition/_datatype
                index: 14
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    pattern: {type: String, value: CodeableReference}
                    choices: [valueString]
                    index: 16
                  valueString:
                    type: string
                    pattern: {type: String, value: CodeableReference}
                    base: {path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 17
                required: [valueString, value]
            concept:
              match: {}
              schema:
                short: Reference to a concept (by class)
                isModifier: false
                index: 18
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Reference to a concept (by class)
                    choices: [valueCodeableConcept]
                    index: 20
                  valueCodeableConcept:
                    base: {path: 'Extension.value[x]'}
                    type: CodeableConcept
                    short: Reference to a concept (by class)
                    choiceOf: value
                    index: 21
            reference:
              match: {}
              schema:
                short: Reference to a resource (by instance)
                isModifier: false
                index: 22
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Reference to a resource (by instance)
                    choices: [valueReference]
                    index: 24
                  valueReference:
                    base: {path: 'Extension.value[x]'}
                    type: Reference
                    short: Reference to a resource (by instance)
                    choiceOf: value
                    index: 25
  note:
    url: null
    short: Information about the dispense
    isModifier: false
    array: true
    index: 89
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Information about the dispense
        choices: [valueAnnotation]
        index: 91
      valueAnnotation:
        base: {path: 'Extension.value[x]'}
        type: Annotation
        short: Information about the dispense
        choiceOf: value
        index: 92
  supportingInformation:
    url: null
    short: Information that supports the dispensing of the device
    isModifier: false
    array: true
    index: 51
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Information that supports the dispensing of the device
        choices: [valueReference]
        index: 53
      valueReference:
        base: {path: 'Extension.value[x]'}
        type: Reference
        short: Information that supports the dispensing of the device
        choiceOf: value
        refers: ['http://hl7.org/fhir/StructureDefinition/Resource']
        index: 54
  status:
    url: null
    isModifier: true
    short: preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
    _required: true
    isModifierReason: This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid
    index: 9
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
        choices: [valueCode]
        index: 11
      valueCode:
        base: {path: 'Extension.value[x]'}
        type: code
        short: preparation | in-progress | cancelled | on-hold | completed | entered-in-error | stopped | declined | unknown
        choiceOf: value
        index: 12
  device:
    url: null
    short: What device was supplied
    isModifier: false
    _required: true
    index: 30
    extensions:
      _datatype:
        url: http://hl7.org/fhir/StructureDefinition/_datatype
        type: Extension
        short: Data type name for DeviceDispense.device from FHIR R5
        index: 31
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            pattern: {type: String, value: CodeableReference}
            choices: [valueString]
            index: 33
          valueString:
            type: string
            pattern: {type: String, value: CodeableReference}
            base: {path: 'Extension.value[x]'}
            choiceOf: value
            index: 34
        required: [valueString, value]
      concept:
        url: null
        short: Reference to a concept (by class)
        isModifier: false
        index: 35
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            short: Reference to a concept (by class)
            choices: [valueCodeableConcept]
            index: 37
          valueCodeableConcept:
            base: {path: 'Extension.value[x]'}
            type: CodeableConcept
            short: Reference to a concept (by class)
            choiceOf: value
            index: 38
      reference:
        url: null
        short: Reference to a resource (by instance)
        isModifier: false
        index: 39
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            short: Reference to a resource (by instance)
            choices: [valueReference]
            index: 41
          valueReference:
            base: {path: 'Extension.value[x]'}
            type: Reference
            short: Reference to a resource (by instance)
            choiceOf: value
            index: 42
    elements:
      extension:
        type: Extension
        short: Data type name for DeviceDispense.device from FHIR R5
        url: http://hl7.org/fhir/StructureDefinition/_datatype
        index: 31
        slicing:
          slices:
            _datatype:
              match: {}
              schema:
                type: Extension
                short: Data type name for DeviceDispense.device from FHIR R5
                url: http://hl7.org/fhir/StructureDefinition/_datatype
                index: 31
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    pattern: {type: String, value: CodeableReference}
                    choices: [valueString]
                    index: 33
                  valueString:
                    type: string
                    pattern: {type: String, value: CodeableReference}
                    base: {path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 34
                required: [valueString, value]
            concept:
              match: {}
              schema:
                short: Reference to a concept (by class)
                isModifier: false
                index: 35
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Reference to a concept (by class)
                    choices: [valueCodeableConcept]
                    index: 37
                  valueCodeableConcept:
                    base: {path: 'Extension.value[x]'}
                    type: CodeableConcept
                    short: Reference to a concept (by class)
                    choiceOf: value
                    index: 38
            reference:
              match: {}
              schema:
                short: Reference to a resource (by instance)
                isModifier: false
                index: 39
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Reference to a resource (by instance)
                    choices: [valueReference]
                    index: 41
                  valueReference:
                    base: {path: 'Extension.value[x]'}
                    type: Reference
                    short: Reference to a resource (by instance)
                    choiceOf: value
                    index: 42
  basedOn:
    url: null
    short: The order or request that this dispense is fulfilling
    isModifier: false
    array: true
    index: 1
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: The order or request that this dispense is fulfilling
        choices: [valueReference]
        index: 3
      valueReference:
        base: {path: 'Extension.value[x]'}
        type: Reference
        short: The order or request that this dispense is fulfilling
        choiceOf: value
        refers: ['http://hl7.org/fhir/StructureDefinition/CarePlan', 'http://hl7.org/fhir/StructureDefinition/DeviceRequest']
        index: 4
  quantity:
    url: null
    short: Amount dispensed
    isModifier: false
    index: 73
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Amount dispensed
        choices: [valueQuantity]
        index: 75
      valueQuantity:
        base: {path: 'Extension.value[x]'}
        type: Quantity
        short: Amount dispensed
        choiceOf: value
        index: 76
  partOf:
    url: null
    short: The bigger event that this dispense is a part of
    isModifier: false
    array: true
    index: 5
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: The bigger event that this dispense is a part of
        choices: [valueReference]
        index: 7
      valueReference:
        base: {path: 'Extension.value[x]'}
        type: Reference
        short: The bigger event that this dispense is a part of
        choiceOf: value
        refers: ['http://hl7.org/fhir/StructureDefinition/Procedure']
        index: 8
  location:
    url: null
    short: Where the dispense occurred
    isModifier: false
    index: 65
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Where the dispense occurred
        choices: [valueReference]
        index: 67
      valueReference:
        base: {path: 'Extension.value[x]'}
        type: Reference
        short: Where the dispense occurred
        choiceOf: value
        refers: ['http://hl7.org/fhir/StructureDefinition/Location']
        index: 68
  receiver:
    url: null
    short: Who collected the device or where the medication was delivered
    isModifier: false
    index: 43
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Who collected the device or where the medication was delivered
        choices: [valueReference]
        index: 45
      valueReference:
        base: {path: 'Extension.value[x]'}
        type: Reference
        short: Who collected the device or where the medication was delivered
        choiceOf: value
        refers: ['http://hl7.org/fhir/StructureDefinition/Location', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
        index: 46
  destination:
    url: null
    short: Where the device was sent or should be sent
    isModifier: false
    index: 85
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Where the device was sent or should be sent
        choices: [valueReference]
        index: 87
      valueReference:
        base: {path: 'Extension.value[x]'}
        type: Reference
        short: Where the device was sent or should be sent
        choiceOf: value
        refers: ['http://hl7.org/fhir/StructureDefinition/Location']
        index: 88
  performer:
    url: null
    short: Who performed event
    isModifier: false
    array: true
    index: 55
    extensions:
      function:
        url: null
        short: Who performed the dispense and what they did
        isModifier: false
        index: 57
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            short: Who performed the dispense and what they did
            choices: [valueCodeableConcept]
            index: 59
          valueCodeableConcept:
            base: {path: 'Extension.value[x]'}
            type: CodeableConcept
            short: Who performed the dispense and what they did
            choiceOf: value
            index: 60
      actor:
        url: null
        short: Individual who was performing
        isModifier: false
        _required: true
        index: 61
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            short: Individual who was performing
            choices: [valueReference]
            index: 63
          valueReference:
            base: {path: 'Extension.value[x]'}
            type: Reference
            short: Individual who was performing
            choiceOf: value
            refers: ['http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
            index: 64
    elements:
      extension:
        array: true
        min: 1
        index: 56
        slicing:
          rules: closed
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            function:
              match: {url: null}
              schema:
                short: Who performed the dispense and what they did
                isModifier: false
                index: 57
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Who performed the dispense and what they did
                    choices: [valueCodeableConcept]
                    index: 59
                  valueCodeableConcept:
                    base: {path: 'Extension.value[x]'}
                    type: CodeableConcept
                    short: Who performed the dispense and what they did
                    choiceOf: value
                    index: 60
            actor:
              match: {url: null}
              schema:
                short: Individual who was performing
                isModifier: false
                _required: true
                index: 61
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Individual who was performing
                    choices: [valueReference]
                    index: 63
                  valueReference:
                    base: {path: 'Extension.value[x]'}
                    type: Reference
                    short: Individual who was performing
                    choiceOf: value
                    refers: ['http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
                    index: 64
    required: [extension]
class: extension
kind: complex-type
url: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDispense
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 0.0.1-snapshot-1
required: [url]