PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver-r5.r4.r4@0.0.1-snapshot-2
    http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDefinition.correctiveAction
description: This cross-version extension represents DeviceDefinition.correctiveAction from http://hl7.org/fhir/StructureDefinition/DeviceDefinition|5.0.0 for use in FHIR R4.
package_name: hl7.fhir.uv.xver-r5.r4.r4
derivation: constraint
name: Ext_R5_DeviceDefinition_correctiveAction
type: Extension
elements:
  extension:
    base: {max: '*', min: 0, path: Extension.extension}
    array: true
    min: 2
    index: 0
    slicing:
      rules: closed
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 2
      slices:
        recall:
          match: {url: recall}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: Whether the corrective action was a recall
            _required: true
            index: 1
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: recall}
                index: 2
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Whether the corrective action was a recall
                choices: [valueBoolean]
                index: 4
              valueBoolean:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: boolean
                short: Whether the corrective action was a recall
                choiceOf: value
                index: 5
            required: [url]
        scope:
          match: {url: scope}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: model | lot-numbers | serial-numbers
            index: 6
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: scope}
                index: 7
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: model | lot-numbers | serial-numbers
                choices: [valueCode]
                index: 9
              valueCode:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: code
                short: model | lot-numbers | serial-numbers
                choiceOf: value
                index: 10
            required: [url]
        period:
          match: {url: period}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: Start and end dates of the  corrective action
            _required: true
            index: 11
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: period}
                index: 12
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Start and end dates of the  corrective action
                choices: [valuePeriod]
                index: 14
              valuePeriod:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: Period
                short: Start and end dates of the  corrective action
                choiceOf: value
                index: 15
            required: [url]
  url:
    base: {max: '1', min: 1, path: Extension.url}
    pattern: {type: Uri, value: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDefinition.correctiveAction'}
    index: 16
package_version: 0.0.1-snapshot-2
extensions:
  recall:
    url: recall
    base: {max: '*', min: 0, path: Extension.extension}
    short: Whether the corrective action was a recall
    _required: true
    index: 1
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: recall}
        index: 2
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Whether the corrective action was a recall
        choices: [valueBoolean]
        index: 4
      valueBoolean:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: boolean
        short: Whether the corrective action was a recall
        choiceOf: value
        index: 5
    required: [url]
  scope:
    url: scope
    base: {max: '*', min: 0, path: Extension.extension}
    short: model | lot-numbers | serial-numbers
    index: 6
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: scope}
        index: 7
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: model | lot-numbers | serial-numbers
        choices: [valueCode]
        index: 9
      valueCode:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: code
        short: model | lot-numbers | serial-numbers
        choiceOf: value
        index: 10
    required: [url]
  period:
    url: period
    base: {max: '*', min: 0, path: Extension.extension}
    short: Start and end dates of the  corrective action
    _required: true
    index: 11
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: period}
        index: 12
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Start and end dates of the  corrective action
        choices: [valuePeriod]
        index: 14
      valuePeriod:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: Period
        short: Start and end dates of the  corrective action
        choiceOf: value
        index: 15
    required: [url]
class: extension
kind: complex-type
url: http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceDefinition.correctiveAction
base: http://hl7.org/fhir/StructureDefinition/Extension|4.0.1
version: 0.0.1-snapshot-2
required: [url]