PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver-r5.r4b@0.0.1-snapshot-2
    http://hl7.org/fhir/5.0/StructureDefinition/extension-Account.balance
description: This cross-version extension represents Account.balance from http://hl7.org/fhir/StructureDefinition/Account|5.0.0 for use in FHIR R4B.
package_name: hl7.fhir.uv.xver-r5.r4b
derivation: constraint
name: Ext_R5_Account_balance
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:
        aggregate:
          match: {url: aggregate}
          schema:
            base: {max: '*', min: 0, path: Extension.extension}
            short: Who is expected to pay this part of the balance
            index: 1
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: aggregate}
                index: 2
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Who is expected to pay this part of the balance
                choices: [valueCodeableConcept]
                index: 4
              valueCodeableConcept:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: CodeableConcept
                short: Who is expected to pay this part of the balance
                choiceOf: value
                index: 5
            required: [url]
        term:
          match: {url: term}
          schema:
            short: current | 30 | 60 | 90 | 120
            base: {max: '*', min: 0, path: Extension.extension}
            index: 6
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: term}
                index: 7
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: current | 30 | 60 | 90 | 120
                choices: [valueCodeableConcept]
                index: 9
              valueCodeableConcept:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: CodeableConcept
                short: current | 30 | 60 | 90 | 120
                choiceOf: value
                index: 10
            required: [url]
        estimate:
          match: {url: estimate}
          schema:
            short: Estimated balance
            base: {max: '*', min: 0, path: Extension.extension}
            index: 11
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: estimate}
                index: 12
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Estimated balance
                choices: [valueBoolean]
                index: 14
              valueBoolean:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: boolean
                short: Estimated balance
                choiceOf: value
                index: 15
            required: [url]
        amount:
          match: {url: amount}
          schema:
            short: Calculated amount
            _required: true
            base: {max: '*', min: 0, path: Extension.extension}
            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: Calculated amount
                choices: [valueMoney]
                index: 19
              valueMoney:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                type: Money
                short: Calculated amount
                choiceOf: value
                index: 20
            required: [url]
  url:
    base: {max: '1', min: 1, path: Extension.url}
    pattern: {type: Uri, value: 'http://hl7.org/fhir/5.0/StructureDefinition/extension-Account.balance'}
    index: 21
package_version: 0.0.1-snapshot-2
extensions:
  aggregate:
    url: aggregate
    base: {max: '*', min: 0, path: Extension.extension}
    short: Who is expected to pay this part of the balance
    index: 1
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: aggregate}
        index: 2
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Who is expected to pay this part of the balance
        choices: [valueCodeableConcept]
        index: 4
      valueCodeableConcept:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: CodeableConcept
        short: Who is expected to pay this part of the balance
        choiceOf: value
        index: 5
    required: [url]
  term:
    url: term
    short: current | 30 | 60 | 90 | 120
    base: {max: '*', min: 0, path: Extension.extension}
    index: 6
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: term}
        index: 7
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: current | 30 | 60 | 90 | 120
        choices: [valueCodeableConcept]
        index: 9
      valueCodeableConcept:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: CodeableConcept
        short: current | 30 | 60 | 90 | 120
        choiceOf: value
        index: 10
    required: [url]
  estimate:
    url: estimate
    short: Estimated balance
    base: {max: '*', min: 0, path: Extension.extension}
    index: 11
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: estimate}
        index: 12
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Estimated balance
        choices: [valueBoolean]
        index: 14
      valueBoolean:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: boolean
        short: Estimated balance
        choiceOf: value
        index: 15
    required: [url]
  amount:
    url: amount
    short: Calculated amount
    _required: true
    base: {max: '*', min: 0, path: Extension.extension}
    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: Calculated amount
        choices: [valueMoney]
        index: 19
      valueMoney:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        type: Money
        short: Calculated amount
        choiceOf: value
        index: 20
    required: [url]
class: extension
kind: complex-type
url: http://hl7.org/fhir/5.0/StructureDefinition/extension-Account.balance
base: http://hl7.org/fhir/StructureDefinition/Extension|4.3.0
version: 0.0.1-snapshot-2
required: [url, extension]