Interface RxNormEntity.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<RxNormEntity.Builder,
,RxNormEntity> SdkBuilder<RxNormEntity.Builder,
,RxNormEntity> SdkPojo
- Enclosing class:
RxNormEntity
-
Method Summary
Modifier and TypeMethodDescriptionattributes
(Collection<RxNormAttribute> attributes) The extracted attributes that relate to the entity.attributes
(Consumer<RxNormAttribute.Builder>... attributes) The extracted attributes that relate to the entity.attributes
(RxNormAttribute... attributes) The extracted attributes that relate to the entity.beginOffset
(Integer beginOffset) The 0-based character offset in the input text that shows where the entity begins.The category of the entity.category
(RxNormEntityCategory category) The category of the entity.The 0-based character offset in the input text that shows where the entity ends.The numeric identifier for the entity.rxNormConcepts
(Collection<RxNormConcept> rxNormConcepts) The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.rxNormConcepts
(Consumer<RxNormConcept.Builder>... rxNormConcepts) The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.rxNormConcepts
(RxNormConcept... rxNormConcepts) The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.The segment of input text extracted from which the entity was detected.traits
(Collection<RxNormTrait> traits) Contextual information for the entity.traits
(Consumer<RxNormTrait.Builder>... traits) Contextual information for the entity.traits
(RxNormTrait... traits) Contextual information for the entity.Describes the specific type of entity.type
(RxNormEntityType type) Describes the specific type of entity.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
-
id
The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
- Parameters:
id
- The numeric identifier for the entity. 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.
-
text
The segment of input text extracted from which the entity was detected.
- Parameters:
text
- The segment of input text extracted from which the entity was detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
category
The category of the entity. The recognized categories are
GENERIC
orBRAND_NAME
.- Parameters:
category
- The category of the entity. The recognized categories areGENERIC
orBRAND_NAME
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
category
The category of the entity. The recognized categories are
GENERIC
orBRAND_NAME
.- Parameters:
category
- The category of the entity. The recognized categories areGENERIC
orBRAND_NAME
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Describes the specific type of entity. For InferRxNorm, the recognized entity type is
MEDICATION
.- Parameters:
type
- Describes the specific type of entity. For InferRxNorm, the recognized entity type isMEDICATION
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
Describes the specific type of entity. For InferRxNorm, the recognized entity type is
MEDICATION
.- Parameters:
type
- Describes the specific type of entity. For InferRxNorm, the recognized entity type isMEDICATION
.- 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 in the accuracy of the detected entity.
- Parameters:
score
- The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.- 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 entity 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 entity 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 entity 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 entity 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.
-
attributes
The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are
DOSAGE
,DURATION
,FORM
,FREQUENCY
,RATE
,ROUTE_OR_MODE
, andSTRENGTH
.- Parameters:
attributes
- The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm areDOSAGE
,DURATION
,FORM
,FREQUENCY
,RATE
,ROUTE_OR_MODE
, andSTRENGTH
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are
DOSAGE
,DURATION
,FORM
,FREQUENCY
,RATE
,ROUTE_OR_MODE
, andSTRENGTH
.- Parameters:
attributes
- The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm areDOSAGE
,DURATION
,FORM
,FREQUENCY
,RATE
,ROUTE_OR_MODE
, andSTRENGTH
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributes
The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are
This is a convenience method that creates an instance of theDOSAGE
,DURATION
,FORM
,FREQUENCY
,RATE
,ROUTE_OR_MODE
, andSTRENGTH
.RxNormAttribute.Builder
avoiding the need to create one manually viaRxNormAttribute.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattributes(List<RxNormAttribute>)
.- Parameters:
attributes
- a consumer that will call methods onRxNormAttribute.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
traits
Contextual information for the entity.
- Parameters:
traits
- Contextual information for the entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traits
Contextual information for the entity.
- Parameters:
traits
- Contextual information for the entity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
traits
Contextual information for the entity.
This is a convenience method that creates an instance of theRxNormTrait.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:
-
rxNormConcepts
The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
- Parameters:
rxNormConcepts
- The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rxNormConcepts
The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
- Parameters:
rxNormConcepts
- The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rxNormConcepts
The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
This is a convenience method that creates an instance of theRxNormConcept.Builder
avoiding the need to create one manually viaRxNormConcept.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torxNormConcepts(List<RxNormConcept>)
.- Parameters:
rxNormConcepts
- a consumer that will call methods onRxNormConcept.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-