PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver@r2.r4-0.0.1-snapshot-2
    http://hl7.org/fhir/1.0/StructureDefinition/extension-DiagnosticOrder.item
description: This cross-version extension represents DiagnosticOrder.item from http://hl7.org/fhir/StructureDefinition/DiagnosticOrder|1.0.2 for use in FHIR R4.
package_name: hl7.fhir.uv.xver
derivation: constraint
name: Ext_R2_DiagnosticOrder_item
type: Extension
elements:
  extension:
    base: {max: '*', min: 0, path: Extension.extension}
    array: true
    min: 1
    index: 0
    slicing:
      rules: closed
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 1
      slices:
        code:
          match: {url: code}
          schema:
            short: Code to indicate the item (test or panel) being ordered
            _required: true
            base: {max: '*', min: 0, path: Extension.extension}
            index: 1
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: code}
                index: 2
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Code to indicate the item (test or panel) being ordered
                choices: [valueCodeableConcept]
                index: 4
              valueCodeableConcept:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: CodeableConcept
                short: Code to indicate the item (test or panel) being ordered
                choiceOf: value
                index: 5
            required: [url]
        specimen:
          match: {url: specimen}
          schema:
            short: If this item relates to specific specimens
            array: true
            base: {max: '*', min: 0, path: Extension.extension}
            index: 6
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: specimen}
                index: 7
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: If this item relates to specific specimens
                choices: [valueReference]
                index: 9
              valueReference:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: Reference
                short: If this item relates to specific specimens
                choiceOf: value
                index: 10
            required: [url]
        bodySite:
          match: {url: bodySite}
          schema:
            short: Location of requested test (if applicable)
            base: {max: '*', min: 0, path: Extension.extension}
            index: 11
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: bodySite}
                index: 12
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Location of requested test (if applicable)
                choices: [valueCodeableConcept]
                index: 14
              valueCodeableConcept:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: CodeableConcept
                short: Location of requested test (if applicable)
                choiceOf: value
                index: 15
            required: [url]
        status:
          match: {url: status}
          schema:
            short: proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed
            base: {max: '*', min: 0, path: Extension.extension}
            index: 16
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: status}
                index: 17
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed
                choices: [valueCode]
                index: 19
              valueCode:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: code
                short: proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed
                choiceOf: value
                index: 20
            required: [url]
        event:
          match: {url: event}
          schema:
            short: Events specific to this item
            array: true
            base: {max: '*', min: 0, path: Extension.extension}
            index: 21
            extensions:
              _datatype:
                url: http://hl7.org/fhir/StructureDefinition/_datatype|5.2.0
                type: Extension
                short: Data type name for DiagnosticOrder.item.event from FHIR R2
                index: 23
                elements:
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    pattern: {type: String, value: DiagnosticOrder.event}
                    choices: [valueString]
                    index: 25
                  valueString:
                    type: string
                    pattern: {type: String, value: DiagnosticOrder.event}
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 26
                required: [valueString, value]
            elements:
              extension:
                base: {max: '*', min: 0, path: Extension.extension}
                array: true
                index: 22
                slicing:
                  rules: closed
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 0
                  slices:
                    _datatype:
                      match: {url: null}
                      schema:
                        type: Extension
                        short: Data type name for DiagnosticOrder.item.event from FHIR R2
                        url: http://hl7.org/fhir/StructureDefinition/_datatype|5.2.0
                        index: 23
                        elements:
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            pattern: {type: String, value: DiagnosticOrder.event}
                            choices: [valueString]
                            index: 25
                          valueString:
                            type: string
                            pattern: {type: String, value: DiagnosticOrder.event}
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 26
                        required: [valueString, value]
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: event}
                index: 27
            required: [url]
  url:
    base: {max: '1', min: 1, path: Extension.url}
    pattern: {type: Uri, value: 'http://hl7.org/fhir/1.0/StructureDefinition/extension-DiagnosticOrder.item'}
    index: 28
package_version: r2.r4-0.0.1-snapshot-2
extensions:
  code:
    url: code
    short: Code to indicate the item (test or panel) being ordered
    _required: true
    base: {max: '*', min: 0, path: Extension.extension}
    index: 1
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: code}
        index: 2
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Code to indicate the item (test or panel) being ordered
        choices: [valueCodeableConcept]
        index: 4
      valueCodeableConcept:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: CodeableConcept
        short: Code to indicate the item (test or panel) being ordered
        choiceOf: value
        index: 5
    required: [url]
  specimen:
    url: specimen
    short: If this item relates to specific specimens
    array: true
    base: {max: '*', min: 0, path: Extension.extension}
    index: 6
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: specimen}
        index: 7
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: If this item relates to specific specimens
        choices: [valueReference]
        index: 9
      valueReference:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: Reference
        short: If this item relates to specific specimens
        choiceOf: value
        index: 10
    required: [url]
  bodySite:
    url: bodySite
    short: Location of requested test (if applicable)
    base: {max: '*', min: 0, path: Extension.extension}
    index: 11
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: bodySite}
        index: 12
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Location of requested test (if applicable)
        choices: [valueCodeableConcept]
        index: 14
      valueCodeableConcept:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: CodeableConcept
        short: Location of requested test (if applicable)
        choiceOf: value
        index: 15
    required: [url]
  status:
    url: status
    short: proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed
    base: {max: '*', min: 0, path: Extension.extension}
    index: 16
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: status}
        index: 17
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed
        choices: [valueCode]
        index: 19
      valueCode:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: code
        short: proposed | draft | planned | requested | received | accepted | in-progress | review | completed | cancelled | suspended | rejected | failed
        choiceOf: value
        index: 20
    required: [url]
  event:
    url: event
    short: Events specific to this item
    array: true
    base: {max: '*', min: 0, path: Extension.extension}
    index: 21
    extensions:
      _datatype:
        url: http://hl7.org/fhir/StructureDefinition/_datatype|5.2.0
        type: Extension
        short: Data type name for DiagnosticOrder.item.event from FHIR R2
        index: 23
        elements:
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            pattern: {type: String, value: DiagnosticOrder.event}
            choices: [valueString]
            index: 25
          valueString:
            type: string
            pattern: {type: String, value: DiagnosticOrder.event}
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            choiceOf: value
            index: 26
        required: [valueString, value]
    elements:
      extension:
        base: {max: '*', min: 0, path: Extension.extension}
        array: true
        index: 22
        slicing:
          rules: closed
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            _datatype:
              match: {url: null}
              schema:
                type: Extension
                short: Data type name for DiagnosticOrder.item.event from FHIR R2
                url: http://hl7.org/fhir/StructureDefinition/_datatype|5.2.0
                index: 23
                elements:
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    pattern: {type: String, value: DiagnosticOrder.event}
                    choices: [valueString]
                    index: 25
                  valueString:
                    type: string
                    pattern: {type: String, value: DiagnosticOrder.event}
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 26
                required: [valueString, value]
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: event}
        index: 27
    required: [url]
class: extension
kind: complex-type
url: http://hl7.org/fhir/1.0/StructureDefinition/extension-DiagnosticOrder.item
base: http://hl7.org/fhir/StructureDefinition/Extension|4.0.1
version: 0.0.1-snapshot-2
required: [url, extension]