Interface RxNormAttribute.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RxNormAttribute.Builder,
,RxNormAttribute> SdkBuilder<RxNormAttribute.Builder,
,RxNormAttribute> SdkPojo
- Enclosing class:
RxNormAttribute
-
Method Summary
Modifier and TypeMethodDescriptionbeginOffset
(Integer beginOffset) The 0-based character offset in the input text that shows where the attribute begins.The 0-based character offset in the input text that shows where the attribute ends.The numeric identifier for this attribute.relationshipScore
(Float relationshipScore) The level of confidence that Amazon Comprehend Medical has that the attribute is accurately linked to an entity.The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.The segment of input text which corresponds to the detected attribute.traits
(Collection<RxNormTrait> traits) Contextual information for the attribute.traits
(Consumer<RxNormTrait.Builder>... traits) Contextual information for the attribute.traits
(RxNormTrait... traits) Contextual information for the attribute.The type of attribute.type
(RxNormAttributeType type) The type of attribute.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
type
The type of attribute. The types of attributes recognized by InferRxNorm are
BRAND_NAME
andGENERIC_NAME
.- Parameters:
type
- The type of attribute. The types of attributes recognized by InferRxNorm areBRAND_NAME
andGENERIC_NAME
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of attribute. The types of attributes recognized by InferRxNorm are
BRAND_NAME
andGENERIC_NAME
.- Parameters:
type
- The type of attribute. The types of attributes recognized by InferRxNorm areBRAND_NAME
andGENERIC_NAME
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
score
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
- Parameters:
score
- The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
relationshipScore
The level of confidence that Amazon Comprehend Medical has that the attribute is accurately linked to an entity.
- Parameters:
relationshipScore
- The level of confidence that Amazon Comprehend Medical has that the attribute is accurately linked to an entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
- Parameters:
id
- The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
beginOffset
The 0-based character offset in the input text that shows where the attribute begins. The offset returns the UTF-8 code point in the string.
- Parameters:
beginOffset
- The 0-based character offset in the input text that shows where the attribute begins. The offset returns the UTF-8 code point in the string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endOffset
The 0-based character offset in the input text that shows where the attribute ends. The offset returns the UTF-8 code point in the string.
- Parameters:
endOffset
- The 0-based character offset in the input text that shows where the attribute ends. The offset returns the UTF-8 code point in the string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
The segment of input text which corresponds to the detected attribute.
- Parameters:
text
- The segment of input text which corresponds to the detected attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traits
Contextual information for the attribute. InferRxNorm recognizes the trait
NEGATION
for attributes, i.e. that the patient is not taking a specific dose or form of a medication.- Parameters:
traits
- Contextual information for the attribute. InferRxNorm recognizes the traitNEGATION
for attributes, i.e. that the patient is not taking a specific dose or form of a medication.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traits
Contextual information for the attribute. InferRxNorm recognizes the trait
NEGATION
for attributes, i.e. that the patient is not taking a specific dose or form of a medication.- Parameters:
traits
- Contextual information for the attribute. InferRxNorm recognizes the traitNEGATION
for attributes, i.e. that the patient is not taking a specific dose or form of a medication.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traits
Contextual information for the attribute. InferRxNorm recognizes the trait
This is a convenience method that creates an instance of theNEGATION
for attributes, i.e. that the patient is not taking a specific dose or form of a medication.RxNormTrait.Builder
avoiding the need to create one manually viaRxNormTrait.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totraits(List<RxNormTrait>)
.- Parameters:
traits
- a consumer that will call methods onRxNormTrait.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-