description: This cross-version extension represents Account.balance from http://hl7.org/fhir/StructureDefinition/Account|5.0.0 for use in FHIR R4. package_name: hl7.fhir.uv.xver 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: base: {max: '*', min: 0, path: Extension.extension} short: current | 30 | 60 | 90 | 120 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: base: {max: '*', min: 0, path: Extension.extension} short: Estimated balance 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: base: {max: '*', min: 0, path: Extension.extension} short: Calculated amount _required: true 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: r5.r4-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 base: {max: '*', min: 0, path: Extension.extension} short: current | 30 | 60 | 90 | 120 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 base: {max: '*', min: 0, path: Extension.extension} short: Estimated balance 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 base: {max: '*', min: 0, path: Extension.extension} short: Calculated amount _required: true 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.0.1 version: 0.0.1-snapshot-2 required: [url, extension]