PackagesCanonicalsLogsProblems
    Packages
    rs/hl7.fhir.uv.xver@r4.r4b-0.0.1-snapshot-1
    http://hl7.org/fhir/4.0/StructureDefinition/extension-SubstanceAmount
description: This cross-version extension represents SubstanceAmount from http://hl7.org/fhir/StructureDefinition/SubstanceAmount|4.0.1 for use in FHIR R4B.
package_name: rs/hl7.fhir.uv.xver
derivation: constraint
name: ext_R4_SubstanceAmount
type: Extension
elements:
  extension:
    array: true
    index: 0
    slicing:
      rules: closed
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        amount[x]:
          match: {url: null}
          schema:
            short: Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field
            isModifier: false
            index: 1
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field
                choices: [valueQuantity, valueRange, valueString]
                index: 3
              valueQuantity:
                base: {path: 'Extension.value[x]'}
                type: Quantity
                short: Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field
                choiceOf: value
                index: 4
              valueRange:
                base: {path: 'Extension.value[x]'}
                type: Range
                short: Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field
                choiceOf: value
                index: 5
              valueString:
                base: {path: 'Extension.value[x]'}
                type: string
                short: Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field
                choiceOf: value
                index: 6
        amountType:
          match: {url: null}
          schema:
            short: 'Most elements that require a quantitative value will also have a field called amount type. Amount type should always be specified because the actual value of the amount is often dependent on it. EXAMPLE: In capturing the actual relative amounts of substances or molecular fragments it is essential to indicate whether the amount refers to a mole ratio or weight ratio. For any given element an effort should be made to use same the amount type for all related definitional elements'
            isModifier: false
            index: 7
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: 'Most elements that require a quantitative value will also have a field called amount type. Amount type should always be specified because the actual value of the amount is often dependent on it. EXAMPLE: In capturing the actual relative amounts of substances or molecular fragments it is essential to indicate whether the amount refers to a mole ratio or weight ratio. For any given element an effort should be made to use same the amount type for all related definitional elements'
                choices: [valueCodeableConcept]
                index: 9
              valueCodeableConcept:
                base: {path: 'Extension.value[x]'}
                type: CodeableConcept
                short: 'Most elements that require a quantitative value will also have a field called amount type. Amount type should always be specified because the actual value of the amount is often dependent on it. EXAMPLE: In capturing the actual relative amounts of substances or molecular fragments it is essential to indicate whether the amount refers to a mole ratio or weight ratio. For any given element an effort should be made to use same the amount type for all related definitional elements'
                choiceOf: value
                index: 10
        amountText:
          match: {url: null}
          schema:
            short: A textual comment on a numeric value
            isModifier: false
            index: 11
            elements:
              value:
                base: {path: 'Extension.value[x]'}
                short: A textual comment on a numeric value
                choices: [valueString]
                index: 13
              valueString:
                base: {path: 'Extension.value[x]'}
                type: string
                short: A textual comment on a numeric value
                choiceOf: value
                index: 14
        referenceRange:
          match: {url: null}
          schema:
            short: Reference range of possible or expected values
            isModifier: false
            index: 15
            extensions:
              lowLimit:
                url: null
                short: Lower limit possible or expected
                isModifier: false
                index: 17
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Lower limit possible or expected
                    choices: [valueQuantity]
                    index: 19
                  valueQuantity:
                    base: {path: 'Extension.value[x]'}
                    type: Quantity
                    short: Lower limit possible or expected
                    choiceOf: value
                    index: 20
              highLimit:
                url: null
                short: Upper limit possible or expected
                isModifier: false
                index: 21
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Upper limit possible or expected
                    choices: [valueQuantity]
                    index: 23
                  valueQuantity:
                    base: {path: 'Extension.value[x]'}
                    type: Quantity
                    short: Upper limit possible or expected
                    choiceOf: value
                    index: 24
            elements:
              extension:
                array: true
                index: 16
                slicing:
                  rules: closed
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 0
                  slices:
                    lowLimit:
                      match: {url: null}
                      schema:
                        short: Lower limit possible or expected
                        isModifier: false
                        index: 17
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            short: Lower limit possible or expected
                            choices: [valueQuantity]
                            index: 19
                          valueQuantity:
                            base: {path: 'Extension.value[x]'}
                            type: Quantity
                            short: Lower limit possible or expected
                            choiceOf: value
                            index: 20
                    highLimit:
                      match: {url: null}
                      schema:
                        short: Upper limit possible or expected
                        isModifier: false
                        index: 21
                        elements:
                          value:
                            base: {path: 'Extension.value[x]'}
                            short: Upper limit possible or expected
                            choices: [valueQuantity]
                            index: 23
                          valueQuantity:
                            base: {path: 'Extension.value[x]'}
                            type: Quantity
                            short: Upper limit possible or expected
                            choiceOf: value
                            index: 24
  url:
    pattern: {type: uri, value: 'http://hl7.org/fhir/4.0/StructureDefinition/extension-SubstanceAmount'}
    type: uri
    index: 25
package_version: r4.r4b-0.0.1-snapshot-1
extensions:
  amount[x]:
    url: null
    short: Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field
    isModifier: false
    index: 1
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field
        choices: [valueQuantity, valueRange, valueString]
        index: 3
      valueQuantity:
        base: {path: 'Extension.value[x]'}
        type: Quantity
        short: Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field
        choiceOf: value
        index: 4
      valueRange:
        base: {path: 'Extension.value[x]'}
        type: Range
        short: Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field
        choiceOf: value
        index: 5
      valueString:
        base: {path: 'Extension.value[x]'}
        type: string
        short: Used to capture quantitative values for a variety of elements. If only limits are given, the arithmetic mean would be the average. If only a single definite value for a given element is given, it would be captured in this field
        choiceOf: value
        index: 6
  amountType:
    url: null
    short: 'Most elements that require a quantitative value will also have a field called amount type. Amount type should always be specified because the actual value of the amount is often dependent on it. EXAMPLE: In capturing the actual relative amounts of substances or molecular fragments it is essential to indicate whether the amount refers to a mole ratio or weight ratio. For any given element an effort should be made to use same the amount type for all related definitional elements'
    isModifier: false
    index: 7
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: 'Most elements that require a quantitative value will also have a field called amount type. Amount type should always be specified because the actual value of the amount is often dependent on it. EXAMPLE: In capturing the actual relative amounts of substances or molecular fragments it is essential to indicate whether the amount refers to a mole ratio or weight ratio. For any given element an effort should be made to use same the amount type for all related definitional elements'
        choices: [valueCodeableConcept]
        index: 9
      valueCodeableConcept:
        base: {path: 'Extension.value[x]'}
        type: CodeableConcept
        short: 'Most elements that require a quantitative value will also have a field called amount type. Amount type should always be specified because the actual value of the amount is often dependent on it. EXAMPLE: In capturing the actual relative amounts of substances or molecular fragments it is essential to indicate whether the amount refers to a mole ratio or weight ratio. For any given element an effort should be made to use same the amount type for all related definitional elements'
        choiceOf: value
        index: 10
  amountText:
    url: null
    short: A textual comment on a numeric value
    isModifier: false
    index: 11
    elements:
      value:
        base: {path: 'Extension.value[x]'}
        short: A textual comment on a numeric value
        choices: [valueString]
        index: 13
      valueString:
        base: {path: 'Extension.value[x]'}
        type: string
        short: A textual comment on a numeric value
        choiceOf: value
        index: 14
  referenceRange:
    url: null
    short: Reference range of possible or expected values
    isModifier: false
    index: 15
    extensions:
      lowLimit:
        url: null
        short: Lower limit possible or expected
        isModifier: false
        index: 17
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            short: Lower limit possible or expected
            choices: [valueQuantity]
            index: 19
          valueQuantity:
            base: {path: 'Extension.value[x]'}
            type: Quantity
            short: Lower limit possible or expected
            choiceOf: value
            index: 20
      highLimit:
        url: null
        short: Upper limit possible or expected
        isModifier: false
        index: 21
        elements:
          value:
            base: {path: 'Extension.value[x]'}
            short: Upper limit possible or expected
            choices: [valueQuantity]
            index: 23
          valueQuantity:
            base: {path: 'Extension.value[x]'}
            type: Quantity
            short: Upper limit possible or expected
            choiceOf: value
            index: 24
    elements:
      extension:
        array: true
        index: 16
        slicing:
          rules: closed
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            lowLimit:
              match: {url: null}
              schema:
                short: Lower limit possible or expected
                isModifier: false
                index: 17
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Lower limit possible or expected
                    choices: [valueQuantity]
                    index: 19
                  valueQuantity:
                    base: {path: 'Extension.value[x]'}
                    type: Quantity
                    short: Lower limit possible or expected
                    choiceOf: value
                    index: 20
            highLimit:
              match: {url: null}
              schema:
                short: Upper limit possible or expected
                isModifier: false
                index: 21
                elements:
                  value:
                    base: {path: 'Extension.value[x]'}
                    short: Upper limit possible or expected
                    choices: [valueQuantity]
                    index: 23
                  valueQuantity:
                    base: {path: 'Extension.value[x]'}
                    type: Quantity
                    short: Upper limit possible or expected
                    choiceOf: value
                    index: 24
class: extension
kind: complex-type
url: http://hl7.org/fhir/4.0/StructureDefinition/extension-SubstanceAmount
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 0.0.1-snapshot-1
required: [url]