Interface RxNormAttribute.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<RxNormAttribute.Builder,RxNormAttribute>,SdkBuilder<RxNormAttribute.Builder,RxNormAttribute>,SdkPojo
- Enclosing class:
- RxNormAttribute
public static interface RxNormAttribute.Builder extends SdkPojo, CopyableBuilder<RxNormAttribute.Builder,RxNormAttribute>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RxNormAttribute.BuilderbeginOffset(Integer beginOffset)The 0-based character offset in the input text that shows where the attribute begins.RxNormAttribute.BuilderendOffset(Integer endOffset)The 0-based character offset in the input text that shows where the attribute ends.RxNormAttribute.Builderid(Integer id)The numeric identifier for this attribute.RxNormAttribute.BuilderrelationshipScore(Float relationshipScore)The level of confidence that Amazon Comprehend Medical has that the attribute is accurately linked to an entity.RxNormAttribute.Builderscore(Float score)The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.RxNormAttribute.Buildertext(String text)The segment of input text which corresponds to the detected attribute.RxNormAttribute.Buildertraits(Collection<RxNormTrait> traits)Contextual information for the attribute.RxNormAttribute.Buildertraits(Consumer<RxNormTrait.Builder>... traits)Contextual information for the attribute.RxNormAttribute.Buildertraits(RxNormTrait... traits)Contextual information for the attribute.RxNormAttribute.Buildertype(String type)The type of attribute.RxNormAttribute.Buildertype(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 Detail
-
type
RxNormAttribute.Builder type(String type)
The type of attribute. The types of attributes recognized by InferRxNorm are
BRAND_NAMEandGENERIC_NAME.- Parameters:
type- The type of attribute. The types of attributes recognized by InferRxNorm areBRAND_NAMEandGENERIC_NAME.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RxNormAttributeType,RxNormAttributeType
-
type
RxNormAttribute.Builder type(RxNormAttributeType type)
The type of attribute. The types of attributes recognized by InferRxNorm are
BRAND_NAMEandGENERIC_NAME.- Parameters:
type- The type of attribute. The types of attributes recognized by InferRxNorm areBRAND_NAMEandGENERIC_NAME.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RxNormAttributeType,RxNormAttributeType
-
score
RxNormAttribute.Builder score(Float 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
RxNormAttribute.Builder relationshipScore(Float 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
RxNormAttribute.Builder id(Integer 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
RxNormAttribute.Builder beginOffset(Integer 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
RxNormAttribute.Builder endOffset(Integer 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
RxNormAttribute.Builder text(String 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
RxNormAttribute.Builder traits(Collection<RxNormTrait> traits)
Contextual information for the attribute. InferRxNorm recognizes the trait
NEGATIONfor 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 traitNEGATIONfor 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
RxNormAttribute.Builder traits(RxNormTrait... traits)
Contextual information for the attribute. InferRxNorm recognizes the trait
NEGATIONfor 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 traitNEGATIONfor 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
RxNormAttribute.Builder traits(Consumer<RxNormTrait.Builder>... traits)
Contextual information for the attribute. InferRxNorm recognizes the trait
This is a convenience method that creates an instance of theNEGATIONfor attributes, i.e. that the patient is not taking a specific dose or form of a medication.RxNormTrait.Builderavoiding the need to create one manually viaRxNormTrait.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#traits(List.) - 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:
#traits(java.util.Collection)
-
-