PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver-r5.r4b@0.0.1-snapshot-1
    http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceAssociation
description: This cross-version extension represents DeviceAssociation from http://hl7.org/fhir/StructureDefinition/DeviceAssociation|5.0.0 for use in FHIR R4B.
package_name: hl7.fhir.uv.xver-r5.r4b
derivation: constraint
name: ext_R5_DeviceAssociation
type: Extension
elements:
  extension:
    array: true
    min: 2
    index: 0
    slicing:
      rules: closed
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 2
      slices:
        device:
          match: {url: null}
          schema:
            short: Reference to the devices associated with the patient or group
            isModifier: false
            _required: true
            index: 1
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Reference to the devices associated with the patient or group
                choices: [valueReference]
                index: 3
              valueReference:
                base: {path: 'Extension.value[x]'}
                type: Reference
                short: Reference to the devices associated with the patient or group
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/Device']
                index: 4
        category:
          match: {url: null}
          schema:
            short: Describes the relationship between the device and subject
            isModifier: false
            array: true
            index: 5
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Describes the relationship between the device and subject
                choices: [valueCodeableConcept]
                index: 7
              valueCodeableConcept:
                base: {path: 'Extension.value[x]'}
                type: CodeableConcept
                short: Describes the relationship between the device and subject
                choiceOf: value
                index: 8
        status:
          match: {url: null}
          schema:
            short: implanted | explanted | attached | entered-in-error | unknown
            isModifier: false
            _required: true
            index: 9
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: implanted | explanted | attached | entered-in-error | unknown
                choices: [valueCodeableConcept]
                index: 11
              valueCodeableConcept:
                base: {path: 'Extension.value[x]'}
                type: CodeableConcept
                short: implanted | explanted | attached | entered-in-error | unknown
                choiceOf: value
                index: 12
        statusReason:
          match: {url: null}
          schema:
            short: The reasons given for the current association status
            isModifier: false
            array: true
            index: 13
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: The reasons given for the current association status
                choices: [valueCodeableConcept]
                index: 15
              valueCodeableConcept:
                base: {path: 'Extension.value[x]'}
                type: CodeableConcept
                short: The reasons given for the current association status
                choiceOf: value
                index: 16
        bodyStructure:
          match: {url: null}
          schema:
            short: Current anatomical location of the device in/on subject
            isModifier: false
            index: 17
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Current anatomical location of the device in/on subject
                choices: [valueReference]
                index: 19
              valueReference:
                base: {path: 'Extension.value[x]'}
                type: Reference
                short: Current anatomical location of the device in/on subject
                choiceOf: value
                refers: ['http://hl7.org/fhir/StructureDefinition/BodyStructure']
                index: 20
        period:
          match: {url: null}
          schema:
            short: Begin and end dates and times for the device association
            isModifier: false
            index: 21
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Begin and end dates and times for the device association
                choices: [valuePeriod]
                index: 23
              valuePeriod:
                base: {path: 'Extension.value[x]'}
                type: Period
                short: Begin and end dates and times for the device association
                choiceOf: value
                index: 24
        operation:
          match: {url: null}
          schema:
            short: The details about the device when it is in use to describe its operation
            isModifier: false
            array: true
            index: 25
            extensions:
              status:
                url: null
                short: Device operational condition
                isModifier: false
                _required: true
                index: 27
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Device operational condition
                    choices: [valueCodeableConcept]
                    index: 29
                  valueCodeableConcept:
                    base: {path: 'Extension.value[x]'}
                    type: CodeableConcept
                    short: Device operational condition
                    choiceOf: value
                    index: 30
              operator:
                url: null
                short: The individual performing the action enabled by the device
                isModifier: false
                array: true
                index: 31
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: The individual performing the action enabled by the device
                    choices: [valueReference]
                    index: 33
                  valueReference:
                    base: {path: 'Extension.value[x]'}
                    type: Reference
                    short: The individual performing the action enabled by the device
                    choiceOf: value
                    refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
                    index: 34
              period:
                url: null
                short: Begin and end dates and times for the device's operation
                isModifier: false
                index: 35
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Begin and end dates and times for the device's operation
                    choices: [valuePeriod]
                    index: 37
                  valuePeriod:
                    base: {path: 'Extension.value[x]'}
                    type: Period
                    short: Begin and end dates and times for the device's operation
                    choiceOf: value
                    index: 38
            elements:
              extension:
                array: true
                min: 1
                index: 26
                slicing:
                  rules: closed
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 1
                  slices:
                    status:
                      match: {url: null}
                      schema:
                        short: Device operational condition
                        isModifier: false
                        _required: true
                        index: 27
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            short: Device operational condition
                            choices: [valueCodeableConcept]
                            index: 29
                          valueCodeableConcept:
                            base: {path: 'Extension.value[x]'}
                            type: CodeableConcept
                            short: Device operational condition
                            choiceOf: value
                            index: 30
                    operator:
                      match: {url: null}
                      schema:
                        short: The individual performing the action enabled by the device
                        isModifier: false
                        array: true
                        index: 31
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            short: The individual performing the action enabled by the device
                            choices: [valueReference]
                            index: 33
                          valueReference:
                            base: {path: 'Extension.value[x]'}
                            type: Reference
                            short: The individual performing the action enabled by the device
                            choiceOf: value
                            refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
                            index: 34
                    period:
                      match: {url: null}
                      schema:
                        short: Begin and end dates and times for the device's operation
                        isModifier: false
                        index: 35
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            short: Begin and end dates and times for the device's operation
                            choices: [valuePeriod]
                            index: 37
                          valuePeriod:
                            base: {path: 'Extension.value[x]'}
                            type: Period
                            short: Begin and end dates and times for the device's operation
                            choiceOf: value
                            index: 38
            required: [extension]
  url:
    pattern: {type: Uri, value: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceAssociation'}
    index: 39
package_version: 0.0.1-snapshot-1
extensions:
  device:
    url: null
    short: Reference to the devices associated with the patient or group
    isModifier: false
    _required: true
    index: 1
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Reference to the devices associated with the patient or group
        choices: [valueReference]
        index: 3
      valueReference:
        base: {path: 'Extension.value[x]'}
        type: Reference
        short: Reference to the devices associated with the patient or group
        choiceOf: value
        refers: ['http://hl7.org/fhir/StructureDefinition/Device']
        index: 4
  category:
    url: null
    short: Describes the relationship between the device and subject
    isModifier: false
    array: true
    index: 5
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Describes the relationship between the device and subject
        choices: [valueCodeableConcept]
        index: 7
      valueCodeableConcept:
        base: {path: 'Extension.value[x]'}
        type: CodeableConcept
        short: Describes the relationship between the device and subject
        choiceOf: value
        index: 8
  status:
    url: null
    short: implanted | explanted | attached | entered-in-error | unknown
    isModifier: false
    _required: true
    index: 9
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: implanted | explanted | attached | entered-in-error | unknown
        choices: [valueCodeableConcept]
        index: 11
      valueCodeableConcept:
        base: {path: 'Extension.value[x]'}
        type: CodeableConcept
        short: implanted | explanted | attached | entered-in-error | unknown
        choiceOf: value
        index: 12
  statusReason:
    url: null
    short: The reasons given for the current association status
    isModifier: false
    array: true
    index: 13
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: The reasons given for the current association status
        choices: [valueCodeableConcept]
        index: 15
      valueCodeableConcept:
        base: {path: 'Extension.value[x]'}
        type: CodeableConcept
        short: The reasons given for the current association status
        choiceOf: value
        index: 16
  bodyStructure:
    url: null
    short: Current anatomical location of the device in/on subject
    isModifier: false
    index: 17
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Current anatomical location of the device in/on subject
        choices: [valueReference]
        index: 19
      valueReference:
        base: {path: 'Extension.value[x]'}
        type: Reference
        short: Current anatomical location of the device in/on subject
        choiceOf: value
        refers: ['http://hl7.org/fhir/StructureDefinition/BodyStructure']
        index: 20
  period:
    url: null
    short: Begin and end dates and times for the device association
    isModifier: false
    index: 21
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Begin and end dates and times for the device association
        choices: [valuePeriod]
        index: 23
      valuePeriod:
        base: {path: 'Extension.value[x]'}
        type: Period
        short: Begin and end dates and times for the device association
        choiceOf: value
        index: 24
  operation:
    url: null
    short: The details about the device when it is in use to describe its operation
    isModifier: false
    array: true
    index: 25
    extensions:
      status:
        url: null
        short: Device operational condition
        isModifier: false
        _required: true
        index: 27
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            short: Device operational condition
            choices: [valueCodeableConcept]
            index: 29
          valueCodeableConcept:
            base: {path: 'Extension.value[x]'}
            type: CodeableConcept
            short: Device operational condition
            choiceOf: value
            index: 30
      operator:
        url: null
        short: The individual performing the action enabled by the device
        isModifier: false
        array: true
        index: 31
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            short: The individual performing the action enabled by the device
            choices: [valueReference]
            index: 33
          valueReference:
            base: {path: 'Extension.value[x]'}
            type: Reference
            short: The individual performing the action enabled by the device
            choiceOf: value
            refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
            index: 34
      period:
        url: null
        short: Begin and end dates and times for the device's operation
        isModifier: false
        index: 35
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            short: Begin and end dates and times for the device's operation
            choices: [valuePeriod]
            index: 37
          valuePeriod:
            base: {path: 'Extension.value[x]'}
            type: Period
            short: Begin and end dates and times for the device's operation
            choiceOf: value
            index: 38
    elements:
      extension:
        array: true
        min: 1
        index: 26
        slicing:
          rules: closed
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: 1
          slices:
            status:
              match: {url: null}
              schema:
                short: Device operational condition
                isModifier: false
                _required: true
                index: 27
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Device operational condition
                    choices: [valueCodeableConcept]
                    index: 29
                  valueCodeableConcept:
                    base: {path: 'Extension.value[x]'}
                    type: CodeableConcept
                    short: Device operational condition
                    choiceOf: value
                    index: 30
            operator:
              match: {url: null}
              schema:
                short: The individual performing the action enabled by the device
                isModifier: false
                array: true
                index: 31
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: The individual performing the action enabled by the device
                    choices: [valueReference]
                    index: 33
                  valueReference:
                    base: {path: 'Extension.value[x]'}
                    type: Reference
                    short: The individual performing the action enabled by the device
                    choiceOf: value
                    refers: ['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson']
                    index: 34
            period:
              match: {url: null}
              schema:
                short: Begin and end dates and times for the device's operation
                isModifier: false
                index: 35
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Begin and end dates and times for the device's operation
                    choices: [valuePeriod]
                    index: 37
                  valuePeriod:
                    base: {path: 'Extension.value[x]'}
                    type: Period
                    short: Begin and end dates and times for the device's operation
                    choiceOf: value
                    index: 38
    required: [extension]
class: extension
kind: complex-type
url: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceAssociation
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 0.0.1-snapshot-1
required: [url]