PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver@r5.r4-0.0.1-snapshot-2
    http://hl7.org/fhir/5.0/StructureDefinition/extension-ChargeItem.unitPriceComponent
description: This cross-version extension represents ChargeItem.unitPriceComponent from http://hl7.org/fhir/StructureDefinition/ChargeItem|5.0.0 for use in FHIR R4.
package_name: hl7.fhir.uv.xver
derivation: constraint
name: Ext_R5_ChargeItem_unitPriceComponent
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:
        type:
          match: {url: type}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: base | surcharge | deduction | discount | tax | informational
            _required: true
            index: 1
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: type}
                index: 2
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: base | surcharge | deduction | discount | tax | informational
                choices: [valueCode]
                index: 4
              valueCode:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: code
                short: base | surcharge | deduction | discount | tax | informational
                choiceOf: value
                index: 5
            required: [url]
        code:
          match: {url: code}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc.
            index: 6
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: code}
                index: 7
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc.
                choices: [valueCodeableConcept]
                index: 9
              valueCodeableConcept:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: CodeableConcept
                short: Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc.
                choiceOf: value
                index: 10
            required: [url]
        factor:
          match: {url: factor}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: Factor used for calculating this component
            index: 11
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: factor}
                index: 12
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Factor used for calculating this component
                choices: [valueDecimal]
                index: 14
              valueDecimal:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: decimal
                short: Factor used for calculating this component
                choiceOf: value
                index: 15
            required: [url]
        amount:
          match: {url: amount}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: Explicit value amount to be used
            index: 16
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: amount}
                index: 17
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Explicit value amount to be used
                choices: [valueMoney]
                index: 19
              valueMoney:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: Money
                short: Explicit value amount to be used
                choiceOf: value
                index: 20
            required: [url]
        _datatype:
          match: {url: null}
          schema:
            type: Extension
            short: Data type name for ChargeItem.unitPriceComponent from FHIR R5
            url: http://hl7.org/fhir/StructureDefinition/_datatype|5.2.0
            index: 21
            elements:
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                pattern: {type: String, value: MonetaryComponent}
                choices: [valueString]
                index: 23
              valueString:
                type: string
                pattern: {type: String, value: MonetaryComponent}
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choiceOf: value
                index: 24
            required: [valueString, value]
  url:
    base: {max: '1', min: 1, path: Extension.url}
    pattern: {type: Uri, value: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-ChargeItem.unitPriceComponent'}
    index: 25
package_version: r5.r4-0.0.1-snapshot-2
extensions:
  type:
    url: type
    base: {max: '*', min: 0, path: Extension.extension}
    short: base | surcharge | deduction | discount | tax | informational
    _required: true
    index: 1
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: type}
        index: 2
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: base | surcharge | deduction | discount | tax | informational
        choices: [valueCode]
        index: 4
      valueCode:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: code
        short: base | surcharge | deduction | discount | tax | informational
        choiceOf: value
        index: 5
    required: [url]
  code:
    url: code
    base: {max: '*', min: 0, path: Extension.extension}
    short: Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc.
    index: 6
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: code}
        index: 7
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc.
        choices: [valueCodeableConcept]
        index: 9
      valueCodeableConcept:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: CodeableConcept
        short: Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc.
        choiceOf: value
        index: 10
    required: [url]
  factor:
    url: factor
    base: {max: '*', min: 0, path: Extension.extension}
    short: Factor used for calculating this component
    index: 11
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: factor}
        index: 12
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Factor used for calculating this component
        choices: [valueDecimal]
        index: 14
      valueDecimal:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: decimal
        short: Factor used for calculating this component
        choiceOf: value
        index: 15
    required: [url]
  amount:
    url: amount
    base: {max: '*', min: 0, path: Extension.extension}
    short: Explicit value amount to be used
    index: 16
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: amount}
        index: 17
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Explicit value amount to be used
        choices: [valueMoney]
        index: 19
      valueMoney:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: Money
        short: Explicit value amount to be used
        choiceOf: value
        index: 20
    required: [url]
  _datatype:
    url: http://hl7.org/fhir/StructureDefinition/_datatype|5.2.0
    type: Extension
    short: Data type name for ChargeItem.unitPriceComponent from FHIR R5
    index: 21
    elements:
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        pattern: {type: String, value: MonetaryComponent}
        choices: [valueString]
        index: 23
      valueString:
        type: string
        pattern: {type: String, value: MonetaryComponent}
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        choiceOf: value
        index: 24
    required: [valueString, value]
class: extension
kind: complex-type
url: http://hl7.org/fhir/5.0/StructureDefinition/extension-ChargeItem.unitPriceComponent
base: http://hl7.org/fhir/StructureDefinition/Extension|4.0.1
version: 0.0.1-snapshot-2
required: [url, extension]