PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.uv.xver-r4.r3@0.1.0
    http://hl7.org/fhir/4.0/StructureDefinition/extension-SubstancePolymer.monomerSet
description: 'R4: `SubstancePolymer.monomerSet` (new:BackboneElement)'
package_name: hl7.fhir.uv.xver-r4.r3
derivation: constraint
name: ExtensionSubstancePolymer_MonomerSet
type: Extension
elements:
  extension:
    base: {max: '*', min: 0, path: Extension.extension}
    array: true
    index: 0
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: url, type: value}
      min: 0
      slices:
        ratioType:
          match: {url: ratioType}
          schema:
            short: 'R4: Todo (new)'
            base: {max: '*', min: 0, path: Extension.extension}
            index: 1
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: ratioType}
                index: 2
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: Todo
                choices: [valueCodeableConcept]
                index: 4
              valueCodeableConcept:
                short: Todo
                type: CodeableConcept
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choiceOf: value
                index: 5
            required: [url]
        startingMaterial:
          match: {url: startingMaterial}
          schema:
            short: 'R4: Todo (new)'
            array: true
            base: {max: '*', min: 0, path: Extension.extension}
            index: 6
            extensions:
              material:
                url: material
                short: 'R4: Todo (new)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 8
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: material}
                    index: 9
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Todo
                    choices: [valueCodeableConcept]
                    index: 11
                  valueCodeableConcept:
                    short: Todo
                    type: CodeableConcept
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 12
                required: [url]
              type:
                url: type
                short: 'R4: Todo (new)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 13
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: type}
                    index: 14
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Todo
                    choices: [valueCodeableConcept]
                    index: 16
                  valueCodeableConcept:
                    short: Todo
                    type: CodeableConcept
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 17
                required: [url]
              isDefining:
                url: isDefining
                short: 'R4: Todo (new)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 18
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: isDefining}
                    index: 19
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Todo
                    choices: [valueBoolean]
                    index: 21
                  valueBoolean:
                    short: Todo
                    type: boolean
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 22
                required: [url]
              amount:
                url: amount
                short: 'R4: Todo (new)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 23
                extensions:
                  _datatype:
                    url: http://hl7.org/fhir/StructureDefinition/_datatype
                    base: {max: '*', min: 0, path: Extension.extension}
                    short: DataType slice for a FHIR R4 `SubstanceAmount` value
                    _required: true
                    index: 25
                    elements:
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                        index: 26
                      value:
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        pattern: {type: String, value: SubstanceAmount}
                        choices: [valueString]
                        index: 28
                      valueString:
                        type: string
                        pattern: {type: String, value: SubstanceAmount}
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 29
                    required: [url, valueString, value]
                  amount:
                    url: amount
                    short: 'R4: 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 (new)'
                    base: {max: '*', min: 0, path: Extension.extension}
                    index: 30
                    elements:
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: amount}
                        index: 31
                      value:
                        base: {max: '1', min: 0, 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: 33
                      valueQuantity:
                        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
                        type: Quantity
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 34
                      valueRange:
                        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
                        type: Range
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 35
                      valueString:
                        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
                        type: string
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 36
                    required: [url]
                  amountType:
                    url: amountType
                    short: 'R4: 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 (new)'
                    base: {max: '*', min: 0, path: Extension.extension}
                    index: 37
                    elements:
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: amountType}
                        index: 38
                      value:
                        base: {max: '1', min: 0, 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: 40
                      valueCodeableConcept:
                        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'
                        type: CodeableConcept
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 41
                    required: [url]
                  amountText:
                    url: amountText
                    short: 'R4: A textual comment on a numeric value (new)'
                    base: {max: '*', min: 0, path: Extension.extension}
                    index: 42
                    elements:
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: amountText}
                        index: 43
                      value:
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        short: A textual comment on a numeric value
                        choices: [valueString]
                        index: 45
                      valueString:
                        short: A textual comment on a numeric value
                        type: string
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 46
                    required: [url]
                  referenceRange:
                    url: referenceRange
                    short: 'R4: Reference range of possible or expected values (new)'
                    base: {max: '*', min: 0, path: Extension.extension}
                    index: 47
                    extensions:
                      lowLimit:
                        url: lowLimit
                        short: 'R4: Lower limit possible or expected (new)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 49
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: lowLimit}
                            index: 50
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Lower limit possible or expected
                            choices: [valueQuantity]
                            index: 52
                          valueQuantity:
                            short: Lower limit possible or expected
                            type: Quantity
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 53
                        required: [url]
                      highLimit:
                        url: highLimit
                        short: 'R4: Upper limit possible or expected (new)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 54
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: highLimit}
                            index: 55
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Upper limit possible or expected
                            choices: [valueQuantity]
                            index: 57
                          valueQuantity:
                            short: Upper limit possible or expected
                            type: Quantity
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 58
                        required: [url]
                    elements:
                      extension:
                        base: {max: '*', min: 0, path: Extension.extension}
                        array: true
                        index: 48
                        slicing:
                          rules: open
                          ordered: false
                          discriminator:
                          - {path: url, type: value}
                          min: 0
                          slices:
                            lowLimit:
                              match: {url: lowLimit}
                              schema:
                                short: 'R4: Lower limit possible or expected (new)'
                                base: {max: '*', min: 0, path: Extension.extension}
                                index: 49
                                elements:
                                  url:
                                    base: {max: '1', min: 1, path: Extension.url}
                                    pattern: {type: Uri, value: lowLimit}
                                    index: 50
                                  value:
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    short: Lower limit possible or expected
                                    choices: [valueQuantity]
                                    index: 52
                                  valueQuantity:
                                    short: Lower limit possible or expected
                                    type: Quantity
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    choiceOf: value
                                    index: 53
                                required: [url]
                            highLimit:
                              match: {url: highLimit}
                              schema:
                                short: 'R4: Upper limit possible or expected (new)'
                                base: {max: '*', min: 0, path: Extension.extension}
                                index: 54
                                elements:
                                  url:
                                    base: {max: '1', min: 1, path: Extension.url}
                                    pattern: {type: Uri, value: highLimit}
                                    index: 55
                                  value:
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    short: Upper limit possible or expected
                                    choices: [valueQuantity]
                                    index: 57
                                  valueQuantity:
                                    short: Upper limit possible or expected
                                    type: Quantity
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    choiceOf: value
                                    index: 58
                                required: [url]
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: referenceRange}
                        index: 59
                      value:
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choices: []
                        index: 61
                    required: [url]
                elements:
                  extension:
                    base: {max: '*', min: 0, path: Extension.extension}
                    array: true
                    index: 24
                    slicing:
                      rules: open
                      ordered: false
                      discriminator:
                      - {path: url, type: value}
                      min: 0
                      slices:
                        _datatype:
                          match: {url: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                          schema:
                            base: {max: '*', min: 0, path: Extension.extension}
                            short: DataType slice for a FHIR R4 `SubstanceAmount` value
                            _required: true
                            index: 25
                            elements:
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                                index: 26
                              value:
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                pattern: {type: String, value: SubstanceAmount}
                                choices: [valueString]
                                index: 28
                              valueString:
                                type: string
                                pattern: {type: String, value: SubstanceAmount}
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 29
                            required: [url, valueString, value]
                        amount:
                          match: {url: amount}
                          schema:
                            short: 'R4: 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 (new)'
                            base: {max: '*', min: 0, path: Extension.extension}
                            index: 30
                            elements:
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: amount}
                                index: 31
                              value:
                                base: {max: '1', min: 0, 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: 33
                              valueQuantity:
                                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
                                type: Quantity
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 34
                              valueRange:
                                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
                                type: Range
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 35
                              valueString:
                                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
                                type: string
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 36
                            required: [url]
                        amountType:
                          match: {url: amountType}
                          schema:
                            short: 'R4: 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 (new)'
                            base: {max: '*', min: 0, path: Extension.extension}
                            index: 37
                            elements:
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: amountType}
                                index: 38
                              value:
                                base: {max: '1', min: 0, 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: 40
                              valueCodeableConcept:
                                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'
                                type: CodeableConcept
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 41
                            required: [url]
                        amountText:
                          match: {url: amountText}
                          schema:
                            short: 'R4: A textual comment on a numeric value (new)'
                            base: {max: '*', min: 0, path: Extension.extension}
                            index: 42
                            elements:
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: amountText}
                                index: 43
                              value:
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                short: A textual comment on a numeric value
                                choices: [valueString]
                                index: 45
                              valueString:
                                short: A textual comment on a numeric value
                                type: string
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 46
                            required: [url]
                        referenceRange:
                          match: {url: referenceRange}
                          schema:
                            short: 'R4: Reference range of possible or expected values (new)'
                            base: {max: '*', min: 0, path: Extension.extension}
                            index: 47
                            extensions:
                              lowLimit:
                                url: lowLimit
                                short: 'R4: Lower limit possible or expected (new)'
                                base: {max: '*', min: 0, path: Extension.extension}
                                index: 49
                                elements:
                                  url:
                                    base: {max: '1', min: 1, path: Extension.url}
                                    pattern: {type: Uri, value: lowLimit}
                                    index: 50
                                  value:
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    short: Lower limit possible or expected
                                    choices: [valueQuantity]
                                    index: 52
                                  valueQuantity:
                                    short: Lower limit possible or expected
                                    type: Quantity
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    choiceOf: value
                                    index: 53
                                required: [url]
                              highLimit:
                                url: highLimit
                                short: 'R4: Upper limit possible or expected (new)'
                                base: {max: '*', min: 0, path: Extension.extension}
                                index: 54
                                elements:
                                  url:
                                    base: {max: '1', min: 1, path: Extension.url}
                                    pattern: {type: Uri, value: highLimit}
                                    index: 55
                                  value:
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    short: Upper limit possible or expected
                                    choices: [valueQuantity]
                                    index: 57
                                  valueQuantity:
                                    short: Upper limit possible or expected
                                    type: Quantity
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    choiceOf: value
                                    index: 58
                                required: [url]
                            elements:
                              extension:
                                base: {max: '*', min: 0, path: Extension.extension}
                                array: true
                                index: 48
                                slicing:
                                  rules: open
                                  ordered: false
                                  discriminator:
                                  - {path: url, type: value}
                                  min: 0
                                  slices:
                                    lowLimit:
                                      match: {url: lowLimit}
                                      schema:
                                        short: 'R4: Lower limit possible or expected (new)'
                                        base: {max: '*', min: 0, path: Extension.extension}
                                        index: 49
                                        elements:
                                          url:
                                            base: {max: '1', min: 1, path: Extension.url}
                                            pattern: {type: Uri, value: lowLimit}
                                            index: 50
                                          value:
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            short: Lower limit possible or expected
                                            choices: [valueQuantity]
                                            index: 52
                                          valueQuantity:
                                            short: Lower limit possible or expected
                                            type: Quantity
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            choiceOf: value
                                            index: 53
                                        required: [url]
                                    highLimit:
                                      match: {url: highLimit}
                                      schema:
                                        short: 'R4: Upper limit possible or expected (new)'
                                        base: {max: '*', min: 0, path: Extension.extension}
                                        index: 54
                                        elements:
                                          url:
                                            base: {max: '1', min: 1, path: Extension.url}
                                            pattern: {type: Uri, value: highLimit}
                                            index: 55
                                          value:
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            short: Upper limit possible or expected
                                            choices: [valueQuantity]
                                            index: 57
                                          valueQuantity:
                                            short: Upper limit possible or expected
                                            type: Quantity
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            choiceOf: value
                                            index: 58
                                        required: [url]
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: referenceRange}
                                index: 59
                              value:
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choices: []
                                index: 61
                            required: [url]
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: amount}
                    index: 62
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choices: []
                    index: 64
                required: [url]
            elements:
              extension:
                base: {max: '*', min: 0, path: Extension.extension}
                array: true
                index: 7
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 0
                  slices:
                    material:
                      match: {url: material}
                      schema:
                        short: 'R4: Todo (new)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 8
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: material}
                            index: 9
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Todo
                            choices: [valueCodeableConcept]
                            index: 11
                          valueCodeableConcept:
                            short: Todo
                            type: CodeableConcept
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 12
                        required: [url]
                    type:
                      match: {url: type}
                      schema:
                        short: 'R4: Todo (new)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 13
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: type}
                            index: 14
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Todo
                            choices: [valueCodeableConcept]
                            index: 16
                          valueCodeableConcept:
                            short: Todo
                            type: CodeableConcept
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 17
                        required: [url]
                    isDefining:
                      match: {url: isDefining}
                      schema:
                        short: 'R4: Todo (new)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 18
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: isDefining}
                            index: 19
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Todo
                            choices: [valueBoolean]
                            index: 21
                          valueBoolean:
                            short: Todo
                            type: boolean
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 22
                        required: [url]
                    amount:
                      match: {url: amount}
                      schema:
                        short: 'R4: Todo (new)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 23
                        extensions:
                          _datatype:
                            url: http://hl7.org/fhir/StructureDefinition/_datatype
                            base: {max: '*', min: 0, path: Extension.extension}
                            short: DataType slice for a FHIR R4 `SubstanceAmount` value
                            _required: true
                            index: 25
                            elements:
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                                index: 26
                              value:
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                pattern: {type: String, value: SubstanceAmount}
                                choices: [valueString]
                                index: 28
                              valueString:
                                type: string
                                pattern: {type: String, value: SubstanceAmount}
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 29
                            required: [url, valueString, value]
                          amount:
                            url: amount
                            short: 'R4: 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 (new)'
                            base: {max: '*', min: 0, path: Extension.extension}
                            index: 30
                            elements:
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: amount}
                                index: 31
                              value:
                                base: {max: '1', min: 0, 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: 33
                              valueQuantity:
                                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
                                type: Quantity
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 34
                              valueRange:
                                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
                                type: Range
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 35
                              valueString:
                                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
                                type: string
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 36
                            required: [url]
                          amountType:
                            url: amountType
                            short: 'R4: 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 (new)'
                            base: {max: '*', min: 0, path: Extension.extension}
                            index: 37
                            elements:
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: amountType}
                                index: 38
                              value:
                                base: {max: '1', min: 0, 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: 40
                              valueCodeableConcept:
                                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'
                                type: CodeableConcept
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 41
                            required: [url]
                          amountText:
                            url: amountText
                            short: 'R4: A textual comment on a numeric value (new)'
                            base: {max: '*', min: 0, path: Extension.extension}
                            index: 42
                            elements:
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: amountText}
                                index: 43
                              value:
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                short: A textual comment on a numeric value
                                choices: [valueString]
                                index: 45
                              valueString:
                                short: A textual comment on a numeric value
                                type: string
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 46
                            required: [url]
                          referenceRange:
                            url: referenceRange
                            short: 'R4: Reference range of possible or expected values (new)'
                            base: {max: '*', min: 0, path: Extension.extension}
                            index: 47
                            extensions:
                              lowLimit:
                                url: lowLimit
                                short: 'R4: Lower limit possible or expected (new)'
                                base: {max: '*', min: 0, path: Extension.extension}
                                index: 49
                                elements:
                                  url:
                                    base: {max: '1', min: 1, path: Extension.url}
                                    pattern: {type: Uri, value: lowLimit}
                                    index: 50
                                  value:
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    short: Lower limit possible or expected
                                    choices: [valueQuantity]
                                    index: 52
                                  valueQuantity:
                                    short: Lower limit possible or expected
                                    type: Quantity
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    choiceOf: value
                                    index: 53
                                required: [url]
                              highLimit:
                                url: highLimit
                                short: 'R4: Upper limit possible or expected (new)'
                                base: {max: '*', min: 0, path: Extension.extension}
                                index: 54
                                elements:
                                  url:
                                    base: {max: '1', min: 1, path: Extension.url}
                                    pattern: {type: Uri, value: highLimit}
                                    index: 55
                                  value:
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    short: Upper limit possible or expected
                                    choices: [valueQuantity]
                                    index: 57
                                  valueQuantity:
                                    short: Upper limit possible or expected
                                    type: Quantity
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    choiceOf: value
                                    index: 58
                                required: [url]
                            elements:
                              extension:
                                base: {max: '*', min: 0, path: Extension.extension}
                                array: true
                                index: 48
                                slicing:
                                  rules: open
                                  ordered: false
                                  discriminator:
                                  - {path: url, type: value}
                                  min: 0
                                  slices:
                                    lowLimit:
                                      match: {url: lowLimit}
                                      schema:
                                        short: 'R4: Lower limit possible or expected (new)'
                                        base: {max: '*', min: 0, path: Extension.extension}
                                        index: 49
                                        elements:
                                          url:
                                            base: {max: '1', min: 1, path: Extension.url}
                                            pattern: {type: Uri, value: lowLimit}
                                            index: 50
                                          value:
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            short: Lower limit possible or expected
                                            choices: [valueQuantity]
                                            index: 52
                                          valueQuantity:
                                            short: Lower limit possible or expected
                                            type: Quantity
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            choiceOf: value
                                            index: 53
                                        required: [url]
                                    highLimit:
                                      match: {url: highLimit}
                                      schema:
                                        short: 'R4: Upper limit possible or expected (new)'
                                        base: {max: '*', min: 0, path: Extension.extension}
                                        index: 54
                                        elements:
                                          url:
                                            base: {max: '1', min: 1, path: Extension.url}
                                            pattern: {type: Uri, value: highLimit}
                                            index: 55
                                          value:
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            short: Upper limit possible or expected
                                            choices: [valueQuantity]
                                            index: 57
                                          valueQuantity:
                                            short: Upper limit possible or expected
                                            type: Quantity
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            choiceOf: value
                                            index: 58
                                        required: [url]
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: referenceRange}
                                index: 59
                              value:
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choices: []
                                index: 61
                            required: [url]
                        elements:
                          extension:
                            base: {max: '*', min: 0, path: Extension.extension}
                            array: true
                            index: 24
                            slicing:
                              rules: open
                              ordered: false
                              discriminator:
                              - {path: url, type: value}
                              min: 0
                              slices:
                                _datatype:
                                  match: {url: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                                  schema:
                                    base: {max: '*', min: 0, path: Extension.extension}
                                    short: DataType slice for a FHIR R4 `SubstanceAmount` value
                                    _required: true
                                    index: 25
                                    elements:
                                      url:
                                        base: {max: '1', min: 1, path: Extension.url}
                                        pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                                        index: 26
                                      value:
                                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                        pattern: {type: String, value: SubstanceAmount}
                                        choices: [valueString]
                                        index: 28
                                      valueString:
                                        type: string
                                        pattern: {type: String, value: SubstanceAmount}
                                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                        choiceOf: value
                                        index: 29
                                    required: [url, valueString, value]
                                amount:
                                  match: {url: amount}
                                  schema:
                                    short: 'R4: 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 (new)'
                                    base: {max: '*', min: 0, path: Extension.extension}
                                    index: 30
                                    elements:
                                      url:
                                        base: {max: '1', min: 1, path: Extension.url}
                                        pattern: {type: Uri, value: amount}
                                        index: 31
                                      value:
                                        base: {max: '1', min: 0, 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: 33
                                      valueQuantity:
                                        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
                                        type: Quantity
                                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                        choiceOf: value
                                        index: 34
                                      valueRange:
                                        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
                                        type: Range
                                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                        choiceOf: value
                                        index: 35
                                      valueString:
                                        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
                                        type: string
                                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                        choiceOf: value
                                        index: 36
                                    required: [url]
                                amountType:
                                  match: {url: amountType}
                                  schema:
                                    short: 'R4: 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 (new)'
                                    base: {max: '*', min: 0, path: Extension.extension}
                                    index: 37
                                    elements:
                                      url:
                                        base: {max: '1', min: 1, path: Extension.url}
                                        pattern: {type: Uri, value: amountType}
                                        index: 38
                                      value:
                                        base: {max: '1', min: 0, 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: 40
                                      valueCodeableConcept:
                                        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'
                                        type: CodeableConcept
                                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                        choiceOf: value
                                        index: 41
                                    required: [url]
                                amountText:
                                  match: {url: amountText}
                                  schema:
                                    short: 'R4: A textual comment on a numeric value (new)'
                                    base: {max: '*', min: 0, path: Extension.extension}
                                    index: 42
                                    elements:
                                      url:
                                        base: {max: '1', min: 1, path: Extension.url}
                                        pattern: {type: Uri, value: amountText}
                                        index: 43
                                      value:
                                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                        short: A textual comment on a numeric value
                                        choices: [valueString]
                                        index: 45
                                      valueString:
                                        short: A textual comment on a numeric value
                                        type: string
                                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                        choiceOf: value
                                        index: 46
                                    required: [url]
                                referenceRange:
                                  match: {url: referenceRange}
                                  schema:
                                    short: 'R4: Reference range of possible or expected values (new)'
                                    base: {max: '*', min: 0, path: Extension.extension}
                                    index: 47
                                    extensions:
                                      lowLimit:
                                        url: lowLimit
                                        short: 'R4: Lower limit possible or expected (new)'
                                        base: {max: '*', min: 0, path: Extension.extension}
                                        index: 49
                                        elements:
                                          url:
                                            base: {max: '1', min: 1, path: Extension.url}
                                            pattern: {type: Uri, value: lowLimit}
                                            index: 50
                                          value:
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            short: Lower limit possible or expected
                                            choices: [valueQuantity]
                                            index: 52
                                          valueQuantity:
                                            short: Lower limit possible or expected
                                            type: Quantity
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            choiceOf: value
                                            index: 53
                                        required: [url]
                                      highLimit:
                                        url: highLimit
                                        short: 'R4: Upper limit possible or expected (new)'
                                        base: {max: '*', min: 0, path: Extension.extension}
                                        index: 54
                                        elements:
                                          url:
                                            base: {max: '1', min: 1, path: Extension.url}
                                            pattern: {type: Uri, value: highLimit}
                                            index: 55
                                          value:
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            short: Upper limit possible or expected
                                            choices: [valueQuantity]
                                            index: 57
                                          valueQuantity:
                                            short: Upper limit possible or expected
                                            type: Quantity
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            choiceOf: value
                                            index: 58
                                        required: [url]
                                    elements:
                                      extension:
                                        base: {max: '*', min: 0, path: Extension.extension}
                                        array: true
                                        index: 48
                                        slicing:
                                          rules: open
                                          ordered: false
                                          discriminator:
                                          - {path: url, type: value}
                                          min: 0
                                          slices:
                                            lowLimit:
                                              match: {url: lowLimit}
                                              schema:
                                                short: 'R4: Lower limit possible or expected (new)'
                                                base: {max: '*', min: 0, path: Extension.extension}
                                                index: 49
                                                elements:
                                                  url:
                                                    base: {max: '1', min: 1, path: Extension.url}
                                                    pattern: {type: Uri, value: lowLimit}
                                                    index: 50
                                                  value:
                                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                                    short: Lower limit possible or expected
                                                    choices: [valueQuantity]
                                                    index: 52
                                                  valueQuantity:
                                                    short: Lower limit possible or expected
                                                    type: Quantity
                                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                                    choiceOf: value
                                                    index: 53
                                                required: [url]
                                            highLimit:
                                              match: {url: highLimit}
                                              schema:
                                                short: 'R4: Upper limit possible or expected (new)'
                                                base: {max: '*', min: 0, path: Extension.extension}
                                                index: 54
                                                elements:
                                                  url:
                                                    base: {max: '1', min: 1, path: Extension.url}
                                                    pattern: {type: Uri, value: highLimit}
                                                    index: 55
                                                  value:
                                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                                    short: Upper limit possible or expected
                                                    choices: [valueQuantity]
                                                    index: 57
                                                  valueQuantity:
                                                    short: Upper limit possible or expected
                                                    type: Quantity
                                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                                    choiceOf: value
                                                    index: 58
                                                required: [url]
                                      url:
                                        base: {max: '1', min: 1, path: Extension.url}
                                        pattern: {type: Uri, value: referenceRange}
                                        index: 59
                                      value:
                                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                        choices: []
                                        index: 61
                                    required: [url]
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: amount}
                            index: 62
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choices: []
                            index: 64
                        required: [url]
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: startingMaterial}
                index: 65
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choices: []
                index: 67
            required: [url]
  url:
    base: {max: '1', min: 1, path: Extension.url}
    pattern: {type: Uri, value: 'http://hl7.org/fhir/4.0/StructureDefinition/extension-SubstancePolymer.monomerSet'}
    index: 68
  value:
    base: {max: '1', min: 0, path: 'Extension.value[x]'}
    choices: []
    index: 70
package_version: 0.1.0
extensions:
  ratioType:
    url: ratioType
    short: 'R4: Todo (new)'
    base: {max: '*', min: 0, path: Extension.extension}
    index: 1
    elements:
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: ratioType}
        index: 2
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        short: Todo
        choices: [valueCodeableConcept]
        index: 4
      valueCodeableConcept:
        short: Todo
        type: CodeableConcept
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        choiceOf: value
        index: 5
    required: [url]
  startingMaterial:
    url: startingMaterial
    short: 'R4: Todo (new)'
    array: true
    base: {max: '*', min: 0, path: Extension.extension}
    index: 6
    extensions:
      material:
        url: material
        short: 'R4: Todo (new)'
        base: {max: '*', min: 0, path: Extension.extension}
        index: 8
        elements:
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: material}
            index: 9
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            short: Todo
            choices: [valueCodeableConcept]
            index: 11
          valueCodeableConcept:
            short: Todo
            type: CodeableConcept
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            choiceOf: value
            index: 12
        required: [url]
      type:
        url: type
        short: 'R4: Todo (new)'
        base: {max: '*', min: 0, path: Extension.extension}
        index: 13
        elements:
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: type}
            index: 14
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            short: Todo
            choices: [valueCodeableConcept]
            index: 16
          valueCodeableConcept:
            short: Todo
            type: CodeableConcept
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            choiceOf: value
            index: 17
        required: [url]
      isDefining:
        url: isDefining
        short: 'R4: Todo (new)'
        base: {max: '*', min: 0, path: Extension.extension}
        index: 18
        elements:
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: isDefining}
            index: 19
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            short: Todo
            choices: [valueBoolean]
            index: 21
          valueBoolean:
            short: Todo
            type: boolean
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            choiceOf: value
            index: 22
        required: [url]
      amount:
        url: amount
        short: 'R4: Todo (new)'
        base: {max: '*', min: 0, path: Extension.extension}
        index: 23
        extensions:
          _datatype:
            url: http://hl7.org/fhir/StructureDefinition/_datatype
            base: {max: '*', min: 0, path: Extension.extension}
            short: DataType slice for a FHIR R4 `SubstanceAmount` value
            _required: true
            index: 25
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                index: 26
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                pattern: {type: String, value: SubstanceAmount}
                choices: [valueString]
                index: 28
              valueString:
                type: string
                pattern: {type: String, value: SubstanceAmount}
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choiceOf: value
                index: 29
            required: [url, valueString, value]
          amount:
            url: amount
            short: 'R4: 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 (new)'
            base: {max: '*', min: 0, path: Extension.extension}
            index: 30
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: amount}
                index: 31
              value:
                base: {max: '1', min: 0, 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: 33
              valueQuantity:
                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
                type: Quantity
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choiceOf: value
                index: 34
              valueRange:
                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
                type: Range
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choiceOf: value
                index: 35
              valueString:
                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
                type: string
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choiceOf: value
                index: 36
            required: [url]
          amountType:
            url: amountType
            short: 'R4: 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 (new)'
            base: {max: '*', min: 0, path: Extension.extension}
            index: 37
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: amountType}
                index: 38
              value:
                base: {max: '1', min: 0, 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: 40
              valueCodeableConcept:
                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'
                type: CodeableConcept
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choiceOf: value
                index: 41
            required: [url]
          amountText:
            url: amountText
            short: 'R4: A textual comment on a numeric value (new)'
            base: {max: '*', min: 0, path: Extension.extension}
            index: 42
            elements:
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: amountText}
                index: 43
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                short: A textual comment on a numeric value
                choices: [valueString]
                index: 45
              valueString:
                short: A textual comment on a numeric value
                type: string
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choiceOf: value
                index: 46
            required: [url]
          referenceRange:
            url: referenceRange
            short: 'R4: Reference range of possible or expected values (new)'
            base: {max: '*', min: 0, path: Extension.extension}
            index: 47
            extensions:
              lowLimit:
                url: lowLimit
                short: 'R4: Lower limit possible or expected (new)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 49
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: lowLimit}
                    index: 50
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Lower limit possible or expected
                    choices: [valueQuantity]
                    index: 52
                  valueQuantity:
                    short: Lower limit possible or expected
                    type: Quantity
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 53
                required: [url]
              highLimit:
                url: highLimit
                short: 'R4: Upper limit possible or expected (new)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 54
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: highLimit}
                    index: 55
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Upper limit possible or expected
                    choices: [valueQuantity]
                    index: 57
                  valueQuantity:
                    short: Upper limit possible or expected
                    type: Quantity
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 58
                required: [url]
            elements:
              extension:
                base: {max: '*', min: 0, path: Extension.extension}
                array: true
                index: 48
                slicing:
                  rules: open
                  ordered: false
                  discriminator:
                  - {path: url, type: value}
                  min: 0
                  slices:
                    lowLimit:
                      match: {url: lowLimit}
                      schema:
                        short: 'R4: Lower limit possible or expected (new)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 49
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: lowLimit}
                            index: 50
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Lower limit possible or expected
                            choices: [valueQuantity]
                            index: 52
                          valueQuantity:
                            short: Lower limit possible or expected
                            type: Quantity
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 53
                        required: [url]
                    highLimit:
                      match: {url: highLimit}
                      schema:
                        short: 'R4: Upper limit possible or expected (new)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 54
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: highLimit}
                            index: 55
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Upper limit possible or expected
                            choices: [valueQuantity]
                            index: 57
                          valueQuantity:
                            short: Upper limit possible or expected
                            type: Quantity
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 58
                        required: [url]
              url:
                base: {max: '1', min: 1, path: Extension.url}
                pattern: {type: Uri, value: referenceRange}
                index: 59
              value:
                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                choices: []
                index: 61
            required: [url]
        elements:
          extension:
            base: {max: '*', min: 0, path: Extension.extension}
            array: true
            index: 24
            slicing:
              rules: open
              ordered: false
              discriminator:
              - {path: url, type: value}
              min: 0
              slices:
                _datatype:
                  match: {url: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                  schema:
                    base: {max: '*', min: 0, path: Extension.extension}
                    short: DataType slice for a FHIR R4 `SubstanceAmount` value
                    _required: true
                    index: 25
                    elements:
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                        index: 26
                      value:
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        pattern: {type: String, value: SubstanceAmount}
                        choices: [valueString]
                        index: 28
                      valueString:
                        type: string
                        pattern: {type: String, value: SubstanceAmount}
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 29
                    required: [url, valueString, value]
                amount:
                  match: {url: amount}
                  schema:
                    short: 'R4: 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 (new)'
                    base: {max: '*', min: 0, path: Extension.extension}
                    index: 30
                    elements:
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: amount}
                        index: 31
                      value:
                        base: {max: '1', min: 0, 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: 33
                      valueQuantity:
                        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
                        type: Quantity
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 34
                      valueRange:
                        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
                        type: Range
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 35
                      valueString:
                        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
                        type: string
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 36
                    required: [url]
                amountType:
                  match: {url: amountType}
                  schema:
                    short: 'R4: 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 (new)'
                    base: {max: '*', min: 0, path: Extension.extension}
                    index: 37
                    elements:
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: amountType}
                        index: 38
                      value:
                        base: {max: '1', min: 0, 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: 40
                      valueCodeableConcept:
                        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'
                        type: CodeableConcept
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 41
                    required: [url]
                amountText:
                  match: {url: amountText}
                  schema:
                    short: 'R4: A textual comment on a numeric value (new)'
                    base: {max: '*', min: 0, path: Extension.extension}
                    index: 42
                    elements:
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: amountText}
                        index: 43
                      value:
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        short: A textual comment on a numeric value
                        choices: [valueString]
                        index: 45
                      valueString:
                        short: A textual comment on a numeric value
                        type: string
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 46
                    required: [url]
                referenceRange:
                  match: {url: referenceRange}
                  schema:
                    short: 'R4: Reference range of possible or expected values (new)'
                    base: {max: '*', min: 0, path: Extension.extension}
                    index: 47
                    extensions:
                      lowLimit:
                        url: lowLimit
                        short: 'R4: Lower limit possible or expected (new)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 49
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: lowLimit}
                            index: 50
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Lower limit possible or expected
                            choices: [valueQuantity]
                            index: 52
                          valueQuantity:
                            short: Lower limit possible or expected
                            type: Quantity
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 53
                        required: [url]
                      highLimit:
                        url: highLimit
                        short: 'R4: Upper limit possible or expected (new)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 54
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: highLimit}
                            index: 55
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Upper limit possible or expected
                            choices: [valueQuantity]
                            index: 57
                          valueQuantity:
                            short: Upper limit possible or expected
                            type: Quantity
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 58
                        required: [url]
                    elements:
                      extension:
                        base: {max: '*', min: 0, path: Extension.extension}
                        array: true
                        index: 48
                        slicing:
                          rules: open
                          ordered: false
                          discriminator:
                          - {path: url, type: value}
                          min: 0
                          slices:
                            lowLimit:
                              match: {url: lowLimit}
                              schema:
                                short: 'R4: Lower limit possible or expected (new)'
                                base: {max: '*', min: 0, path: Extension.extension}
                                index: 49
                                elements:
                                  url:
                                    base: {max: '1', min: 1, path: Extension.url}
                                    pattern: {type: Uri, value: lowLimit}
                                    index: 50
                                  value:
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    short: Lower limit possible or expected
                                    choices: [valueQuantity]
                                    index: 52
                                  valueQuantity:
                                    short: Lower limit possible or expected
                                    type: Quantity
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    choiceOf: value
                                    index: 53
                                required: [url]
                            highLimit:
                              match: {url: highLimit}
                              schema:
                                short: 'R4: Upper limit possible or expected (new)'
                                base: {max: '*', min: 0, path: Extension.extension}
                                index: 54
                                elements:
                                  url:
                                    base: {max: '1', min: 1, path: Extension.url}
                                    pattern: {type: Uri, value: highLimit}
                                    index: 55
                                  value:
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    short: Upper limit possible or expected
                                    choices: [valueQuantity]
                                    index: 57
                                  valueQuantity:
                                    short: Upper limit possible or expected
                                    type: Quantity
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    choiceOf: value
                                    index: 58
                                required: [url]
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: referenceRange}
                        index: 59
                      value:
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choices: []
                        index: 61
                    required: [url]
          url:
            base: {max: '1', min: 1, path: Extension.url}
            pattern: {type: Uri, value: amount}
            index: 62
          value:
            base: {max: '1', min: 0, path: 'Extension.value[x]'}
            choices: []
            index: 64
        required: [url]
    elements:
      extension:
        base: {max: '*', min: 0, path: Extension.extension}
        array: true
        index: 7
        slicing:
          rules: open
          ordered: false
          discriminator:
          - {path: url, type: value}
          min: 0
          slices:
            material:
              match: {url: material}
              schema:
                short: 'R4: Todo (new)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 8
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: material}
                    index: 9
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Todo
                    choices: [valueCodeableConcept]
                    index: 11
                  valueCodeableConcept:
                    short: Todo
                    type: CodeableConcept
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 12
                required: [url]
            type:
              match: {url: type}
              schema:
                short: 'R4: Todo (new)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 13
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: type}
                    index: 14
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Todo
                    choices: [valueCodeableConcept]
                    index: 16
                  valueCodeableConcept:
                    short: Todo
                    type: CodeableConcept
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 17
                required: [url]
            isDefining:
              match: {url: isDefining}
              schema:
                short: 'R4: Todo (new)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 18
                elements:
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: isDefining}
                    index: 19
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    short: Todo
                    choices: [valueBoolean]
                    index: 21
                  valueBoolean:
                    short: Todo
                    type: boolean
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choiceOf: value
                    index: 22
                required: [url]
            amount:
              match: {url: amount}
              schema:
                short: 'R4: Todo (new)'
                base: {max: '*', min: 0, path: Extension.extension}
                index: 23
                extensions:
                  _datatype:
                    url: http://hl7.org/fhir/StructureDefinition/_datatype
                    base: {max: '*', min: 0, path: Extension.extension}
                    short: DataType slice for a FHIR R4 `SubstanceAmount` value
                    _required: true
                    index: 25
                    elements:
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                        index: 26
                      value:
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        pattern: {type: String, value: SubstanceAmount}
                        choices: [valueString]
                        index: 28
                      valueString:
                        type: string
                        pattern: {type: String, value: SubstanceAmount}
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 29
                    required: [url, valueString, value]
                  amount:
                    url: amount
                    short: 'R4: 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 (new)'
                    base: {max: '*', min: 0, path: Extension.extension}
                    index: 30
                    elements:
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: amount}
                        index: 31
                      value:
                        base: {max: '1', min: 0, 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: 33
                      valueQuantity:
                        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
                        type: Quantity
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 34
                      valueRange:
                        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
                        type: Range
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 35
                      valueString:
                        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
                        type: string
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 36
                    required: [url]
                  amountType:
                    url: amountType
                    short: 'R4: 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 (new)'
                    base: {max: '*', min: 0, path: Extension.extension}
                    index: 37
                    elements:
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: amountType}
                        index: 38
                      value:
                        base: {max: '1', min: 0, 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: 40
                      valueCodeableConcept:
                        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'
                        type: CodeableConcept
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 41
                    required: [url]
                  amountText:
                    url: amountText
                    short: 'R4: A textual comment on a numeric value (new)'
                    base: {max: '*', min: 0, path: Extension.extension}
                    index: 42
                    elements:
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: amountText}
                        index: 43
                      value:
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        short: A textual comment on a numeric value
                        choices: [valueString]
                        index: 45
                      valueString:
                        short: A textual comment on a numeric value
                        type: string
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choiceOf: value
                        index: 46
                    required: [url]
                  referenceRange:
                    url: referenceRange
                    short: 'R4: Reference range of possible or expected values (new)'
                    base: {max: '*', min: 0, path: Extension.extension}
                    index: 47
                    extensions:
                      lowLimit:
                        url: lowLimit
                        short: 'R4: Lower limit possible or expected (new)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 49
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: lowLimit}
                            index: 50
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Lower limit possible or expected
                            choices: [valueQuantity]
                            index: 52
                          valueQuantity:
                            short: Lower limit possible or expected
                            type: Quantity
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 53
                        required: [url]
                      highLimit:
                        url: highLimit
                        short: 'R4: Upper limit possible or expected (new)'
                        base: {max: '*', min: 0, path: Extension.extension}
                        index: 54
                        elements:
                          url:
                            base: {max: '1', min: 1, path: Extension.url}
                            pattern: {type: Uri, value: highLimit}
                            index: 55
                          value:
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            short: Upper limit possible or expected
                            choices: [valueQuantity]
                            index: 57
                          valueQuantity:
                            short: Upper limit possible or expected
                            type: Quantity
                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                            choiceOf: value
                            index: 58
                        required: [url]
                    elements:
                      extension:
                        base: {max: '*', min: 0, path: Extension.extension}
                        array: true
                        index: 48
                        slicing:
                          rules: open
                          ordered: false
                          discriminator:
                          - {path: url, type: value}
                          min: 0
                          slices:
                            lowLimit:
                              match: {url: lowLimit}
                              schema:
                                short: 'R4: Lower limit possible or expected (new)'
                                base: {max: '*', min: 0, path: Extension.extension}
                                index: 49
                                elements:
                                  url:
                                    base: {max: '1', min: 1, path: Extension.url}
                                    pattern: {type: Uri, value: lowLimit}
                                    index: 50
                                  value:
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    short: Lower limit possible or expected
                                    choices: [valueQuantity]
                                    index: 52
                                  valueQuantity:
                                    short: Lower limit possible or expected
                                    type: Quantity
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    choiceOf: value
                                    index: 53
                                required: [url]
                            highLimit:
                              match: {url: highLimit}
                              schema:
                                short: 'R4: Upper limit possible or expected (new)'
                                base: {max: '*', min: 0, path: Extension.extension}
                                index: 54
                                elements:
                                  url:
                                    base: {max: '1', min: 1, path: Extension.url}
                                    pattern: {type: Uri, value: highLimit}
                                    index: 55
                                  value:
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    short: Upper limit possible or expected
                                    choices: [valueQuantity]
                                    index: 57
                                  valueQuantity:
                                    short: Upper limit possible or expected
                                    type: Quantity
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    choiceOf: value
                                    index: 58
                                required: [url]
                      url:
                        base: {max: '1', min: 1, path: Extension.url}
                        pattern: {type: Uri, value: referenceRange}
                        index: 59
                      value:
                        base: {max: '1', min: 0, path: 'Extension.value[x]'}
                        choices: []
                        index: 61
                    required: [url]
                elements:
                  extension:
                    base: {max: '*', min: 0, path: Extension.extension}
                    array: true
                    index: 24
                    slicing:
                      rules: open
                      ordered: false
                      discriminator:
                      - {path: url, type: value}
                      min: 0
                      slices:
                        _datatype:
                          match: {url: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                          schema:
                            base: {max: '*', min: 0, path: Extension.extension}
                            short: DataType slice for a FHIR R4 `SubstanceAmount` value
                            _required: true
                            index: 25
                            elements:
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/_datatype'}
                                index: 26
                              value:
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                pattern: {type: String, value: SubstanceAmount}
                                choices: [valueString]
                                index: 28
                              valueString:
                                type: string
                                pattern: {type: String, value: SubstanceAmount}
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 29
                            required: [url, valueString, value]
                        amount:
                          match: {url: amount}
                          schema:
                            short: 'R4: 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 (new)'
                            base: {max: '*', min: 0, path: Extension.extension}
                            index: 30
                            elements:
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: amount}
                                index: 31
                              value:
                                base: {max: '1', min: 0, 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: 33
                              valueQuantity:
                                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
                                type: Quantity
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 34
                              valueRange:
                                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
                                type: Range
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 35
                              valueString:
                                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
                                type: string
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 36
                            required: [url]
                        amountType:
                          match: {url: amountType}
                          schema:
                            short: 'R4: 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 (new)'
                            base: {max: '*', min: 0, path: Extension.extension}
                            index: 37
                            elements:
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: amountType}
                                index: 38
                              value:
                                base: {max: '1', min: 0, 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: 40
                              valueCodeableConcept:
                                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'
                                type: CodeableConcept
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 41
                            required: [url]
                        amountText:
                          match: {url: amountText}
                          schema:
                            short: 'R4: A textual comment on a numeric value (new)'
                            base: {max: '*', min: 0, path: Extension.extension}
                            index: 42
                            elements:
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: amountText}
                                index: 43
                              value:
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                short: A textual comment on a numeric value
                                choices: [valueString]
                                index: 45
                              valueString:
                                short: A textual comment on a numeric value
                                type: string
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choiceOf: value
                                index: 46
                            required: [url]
                        referenceRange:
                          match: {url: referenceRange}
                          schema:
                            short: 'R4: Reference range of possible or expected values (new)'
                            base: {max: '*', min: 0, path: Extension.extension}
                            index: 47
                            extensions:
                              lowLimit:
                                url: lowLimit
                                short: 'R4: Lower limit possible or expected (new)'
                                base: {max: '*', min: 0, path: Extension.extension}
                                index: 49
                                elements:
                                  url:
                                    base: {max: '1', min: 1, path: Extension.url}
                                    pattern: {type: Uri, value: lowLimit}
                                    index: 50
                                  value:
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    short: Lower limit possible or expected
                                    choices: [valueQuantity]
                                    index: 52
                                  valueQuantity:
                                    short: Lower limit possible or expected
                                    type: Quantity
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    choiceOf: value
                                    index: 53
                                required: [url]
                              highLimit:
                                url: highLimit
                                short: 'R4: Upper limit possible or expected (new)'
                                base: {max: '*', min: 0, path: Extension.extension}
                                index: 54
                                elements:
                                  url:
                                    base: {max: '1', min: 1, path: Extension.url}
                                    pattern: {type: Uri, value: highLimit}
                                    index: 55
                                  value:
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    short: Upper limit possible or expected
                                    choices: [valueQuantity]
                                    index: 57
                                  valueQuantity:
                                    short: Upper limit possible or expected
                                    type: Quantity
                                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                    choiceOf: value
                                    index: 58
                                required: [url]
                            elements:
                              extension:
                                base: {max: '*', min: 0, path: Extension.extension}
                                array: true
                                index: 48
                                slicing:
                                  rules: open
                                  ordered: false
                                  discriminator:
                                  - {path: url, type: value}
                                  min: 0
                                  slices:
                                    lowLimit:
                                      match: {url: lowLimit}
                                      schema:
                                        short: 'R4: Lower limit possible or expected (new)'
                                        base: {max: '*', min: 0, path: Extension.extension}
                                        index: 49
                                        elements:
                                          url:
                                            base: {max: '1', min: 1, path: Extension.url}
                                            pattern: {type: Uri, value: lowLimit}
                                            index: 50
                                          value:
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            short: Lower limit possible or expected
                                            choices: [valueQuantity]
                                            index: 52
                                          valueQuantity:
                                            short: Lower limit possible or expected
                                            type: Quantity
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            choiceOf: value
                                            index: 53
                                        required: [url]
                                    highLimit:
                                      match: {url: highLimit}
                                      schema:
                                        short: 'R4: Upper limit possible or expected (new)'
                                        base: {max: '*', min: 0, path: Extension.extension}
                                        index: 54
                                        elements:
                                          url:
                                            base: {max: '1', min: 1, path: Extension.url}
                                            pattern: {type: Uri, value: highLimit}
                                            index: 55
                                          value:
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            short: Upper limit possible or expected
                                            choices: [valueQuantity]
                                            index: 57
                                          valueQuantity:
                                            short: Upper limit possible or expected
                                            type: Quantity
                                            base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                            choiceOf: value
                                            index: 58
                                        required: [url]
                              url:
                                base: {max: '1', min: 1, path: Extension.url}
                                pattern: {type: Uri, value: referenceRange}
                                index: 59
                              value:
                                base: {max: '1', min: 0, path: 'Extension.value[x]'}
                                choices: []
                                index: 61
                            required: [url]
                  url:
                    base: {max: '1', min: 1, path: Extension.url}
                    pattern: {type: Uri, value: amount}
                    index: 62
                  value:
                    base: {max: '1', min: 0, path: 'Extension.value[x]'}
                    choices: []
                    index: 64
                required: [url]
      url:
        base: {max: '1', min: 1, path: Extension.url}
        pattern: {type: Uri, value: startingMaterial}
        index: 65
      value:
        base: {max: '1', min: 0, path: 'Extension.value[x]'}
        choices: []
        index: 67
    required: [url]
class: extension
kind: complex-type
url: http://hl7.org/fhir/4.0/StructureDefinition/extension-SubstancePolymer.monomerSet
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 0.1.0
required: [url]