@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RxNormEntity extends Object implements Serializable, Cloneable, StructuredPojo
The collection of medical entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence that Amazon Comprehend Medical has in the detection and analysis. Attributes and traits of the entity are also returned.
Constructor and Description |
---|
RxNormEntity() |
Modifier and Type | Method and Description |
---|---|
RxNormEntity |
clone() |
boolean |
equals(Object obj) |
List<RxNormAttribute> |
getAttributes()
The extracted attributes that relate to the entity.
|
Integer |
getBeginOffset()
The 0-based character offset in the input text that shows where the entity begins.
|
String |
getCategory()
The category of the entity.
|
Integer |
getEndOffset()
The 0-based character offset in the input text that shows where the entity ends.
|
Integer |
getId()
The numeric identifier for the entity.
|
List<RxNormConcept> |
getRxNormConcepts()
The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
|
Float |
getScore()
The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.
|
String |
getText()
The segment of input text extracted from which the entity was detected.
|
List<RxNormTrait> |
getTraits()
Contextual information for the entity.
|
String |
getType()
Describes the specific type of entity.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttributes(Collection<RxNormAttribute> attributes)
The extracted attributes that relate to the entity.
|
void |
setBeginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the entity begins.
|
void |
setCategory(String category)
The category of the entity.
|
void |
setEndOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the entity ends.
|
void |
setId(Integer id)
The numeric identifier for the entity.
|
void |
setRxNormConcepts(Collection<RxNormConcept> rxNormConcepts)
The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
|
void |
setScore(Float score)
The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.
|
void |
setText(String text)
The segment of input text extracted from which the entity was detected.
|
void |
setTraits(Collection<RxNormTrait> traits)
Contextual information for the entity.
|
void |
setType(String type)
Describes the specific type of entity.
|
String |
toString()
Returns a string representation of this object.
|
RxNormEntity |
withAttributes(Collection<RxNormAttribute> attributes)
The extracted attributes that relate to the entity.
|
RxNormEntity |
withAttributes(RxNormAttribute... attributes)
The extracted attributes that relate to the entity.
|
RxNormEntity |
withBeginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the entity begins.
|
RxNormEntity |
withCategory(RxNormEntityCategory category)
The category of the entity.
|
RxNormEntity |
withCategory(String category)
The category of the entity.
|
RxNormEntity |
withEndOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the entity ends.
|
RxNormEntity |
withId(Integer id)
The numeric identifier for the entity.
|
RxNormEntity |
withRxNormConcepts(Collection<RxNormConcept> rxNormConcepts)
The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
|
RxNormEntity |
withRxNormConcepts(RxNormConcept... rxNormConcepts)
The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
|
RxNormEntity |
withScore(Float score)
The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.
|
RxNormEntity |
withText(String text)
The segment of input text extracted from which the entity was detected.
|
RxNormEntity |
withTraits(Collection<RxNormTrait> traits)
Contextual information for the entity.
|
RxNormEntity |
withTraits(RxNormTrait... traits)
Contextual information for the entity.
|
RxNormEntity |
withType(RxNormEntityType type)
Describes the specific type of entity.
|
RxNormEntity |
withType(String type)
Describes the specific type of entity.
|
public void setId(Integer id)
The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
id
- The numeric identifier for the entity. This is a monotonically increasing id unique within this response
rather than a global unique identifier.public Integer getId()
The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
public RxNormEntity withId(Integer id)
The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
id
- The numeric identifier for the entity. This is a monotonically increasing id unique within this response
rather than a global unique identifier.public void setText(String text)
The segment of input text extracted from which the entity was detected.
text
- The segment of input text extracted from which the entity was detected.public String getText()
The segment of input text extracted from which the entity was detected.
public RxNormEntity withText(String text)
The segment of input text extracted from which the entity was detected.
text
- The segment of input text extracted from which the entity was detected.public void setCategory(String category)
The category of the entity. The recognized categories are GENERIC
or BRAND_NAME
.
category
- The category of the entity. The recognized categories are GENERIC
or BRAND_NAME
.RxNormEntityCategory
public String getCategory()
The category of the entity. The recognized categories are GENERIC
or BRAND_NAME
.
GENERIC
or BRAND_NAME
.RxNormEntityCategory
public RxNormEntity withCategory(String category)
The category of the entity. The recognized categories are GENERIC
or BRAND_NAME
.
category
- The category of the entity. The recognized categories are GENERIC
or BRAND_NAME
.RxNormEntityCategory
public RxNormEntity withCategory(RxNormEntityCategory category)
The category of the entity. The recognized categories are GENERIC
or BRAND_NAME
.
category
- The category of the entity. The recognized categories are GENERIC
or BRAND_NAME
.RxNormEntityCategory
public void setType(String type)
Describes the specific type of entity. For InferRxNorm, the recognized entity type is MEDICATION
.
type
- Describes the specific type of entity. For InferRxNorm, the recognized entity type is
MEDICATION
.RxNormEntityType
public String getType()
Describes the specific type of entity. For InferRxNorm, the recognized entity type is MEDICATION
.
MEDICATION
.RxNormEntityType
public RxNormEntity withType(String type)
Describes the specific type of entity. For InferRxNorm, the recognized entity type is MEDICATION
.
type
- Describes the specific type of entity. For InferRxNorm, the recognized entity type is
MEDICATION
.RxNormEntityType
public RxNormEntity withType(RxNormEntityType type)
Describes the specific type of entity. For InferRxNorm, the recognized entity type is MEDICATION
.
type
- Describes the specific type of entity. For InferRxNorm, the recognized entity type is
MEDICATION
.RxNormEntityType
public void setScore(Float score)
The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.
score
- The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.public Float getScore()
The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.
public RxNormEntity withScore(Float score)
The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.
score
- The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.public void setBeginOffset(Integer 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.
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.public Integer getBeginOffset()
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.
public RxNormEntity withBeginOffset(Integer 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.
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.public void setEndOffset(Integer 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.
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.public Integer getEndOffset()
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.
public RxNormEntity withEndOffset(Integer 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.
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.public List<RxNormAttribute> getAttributes()
The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are
DOSAGE
, DURATION
, FORM
, FREQUENCY
, RATE
,
ROUTE_OR_MODE
, and STRENGTH
.
DOSAGE
, DURATION
, FORM
, FREQUENCY
, RATE
,
ROUTE_OR_MODE
, and STRENGTH
.public void setAttributes(Collection<RxNormAttribute> attributes)
The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are
DOSAGE
, DURATION
, FORM
, FREQUENCY
, RATE
,
ROUTE_OR_MODE
, and STRENGTH
.
attributes
- The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are
DOSAGE
, DURATION
, FORM
, FREQUENCY
, RATE
,
ROUTE_OR_MODE
, and STRENGTH
.public RxNormEntity withAttributes(RxNormAttribute... attributes)
The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are
DOSAGE
, DURATION
, FORM
, FREQUENCY
, RATE
,
ROUTE_OR_MODE
, and STRENGTH
.
NOTE: This method appends the values to the existing list (if any). Use
setAttributes(java.util.Collection)
or withAttributes(java.util.Collection)
if you want to
override the existing values.
attributes
- The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are
DOSAGE
, DURATION
, FORM
, FREQUENCY
, RATE
,
ROUTE_OR_MODE
, and STRENGTH
.public RxNormEntity withAttributes(Collection<RxNormAttribute> attributes)
The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are
DOSAGE
, DURATION
, FORM
, FREQUENCY
, RATE
,
ROUTE_OR_MODE
, and STRENGTH
.
attributes
- The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are
DOSAGE
, DURATION
, FORM
, FREQUENCY
, RATE
,
ROUTE_OR_MODE
, and STRENGTH
.public List<RxNormTrait> getTraits()
Contextual information for the entity.
public void setTraits(Collection<RxNormTrait> traits)
Contextual information for the entity.
traits
- Contextual information for the entity.public RxNormEntity withTraits(RxNormTrait... traits)
Contextual information for the entity.
NOTE: This method appends the values to the existing list (if any). Use
setTraits(java.util.Collection)
or withTraits(java.util.Collection)
if you want to override the
existing values.
traits
- Contextual information for the entity.public RxNormEntity withTraits(Collection<RxNormTrait> traits)
Contextual information for the entity.
traits
- Contextual information for the entity.public List<RxNormConcept> getRxNormConcepts()
The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
public void setRxNormConcepts(Collection<RxNormConcept> rxNormConcepts)
The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
rxNormConcepts
- The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the
match.public RxNormEntity withRxNormConcepts(RxNormConcept... rxNormConcepts)
The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
NOTE: This method appends the values to the existing list (if any). Use
setRxNormConcepts(java.util.Collection)
or withRxNormConcepts(java.util.Collection)
if you want
to override the existing values.
rxNormConcepts
- The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the
match.public RxNormEntity withRxNormConcepts(Collection<RxNormConcept> rxNormConcepts)
The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
rxNormConcepts
- The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the
match.public String toString()
toString
in class Object
Object.toString()
public RxNormEntity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.