@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RxNormAttribute extends Object implements Serializable, Cloneable, StructuredPojo
The extracted attributes that relate to this entity. The attributes recognized by InferRxNorm are DOSAGE
, DURATION
, FORM
, FREQUENCY
, RATE
, ROUTE_OR_MODE
.
Constructor and Description |
---|
RxNormAttribute() |
Modifier and Type | Method and Description |
---|---|
RxNormAttribute |
clone() |
boolean |
equals(Object obj) |
Integer |
getBeginOffset()
The 0-based character offset in the input text that shows where the attribute begins.
|
Integer |
getEndOffset()
The 0-based character offset in the input text that shows where the attribute ends.
|
Integer |
getId()
The numeric identifier for this attribute.
|
Float |
getRelationshipScore()
The level of confidence that Amazon Comprehend Medical has that the attribute is accurately linked to an entity.
|
Float |
getScore()
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an
attribute.
|
String |
getText()
The segment of input text which corresponds to the detected attribute.
|
List<RxNormTrait> |
getTraits()
Contextual information for the attribute.
|
String |
getType()
The type of attribute.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBeginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the attribute begins.
|
void |
setEndOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the attribute ends.
|
void |
setId(Integer id)
The numeric identifier for this attribute.
|
void |
setRelationshipScore(Float relationshipScore)
The level of confidence that Amazon Comprehend Medical has that the attribute is accurately linked to an entity.
|
void |
setScore(Float score)
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an
attribute.
|
void |
setText(String text)
The segment of input text which corresponds to the detected attribute.
|
void |
setTraits(Collection<RxNormTrait> traits)
Contextual information for the attribute.
|
void |
setType(String type)
The type of attribute.
|
String |
toString()
Returns a string representation of this object.
|
RxNormAttribute |
withBeginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the attribute begins.
|
RxNormAttribute |
withEndOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the attribute ends.
|
RxNormAttribute |
withId(Integer id)
The numeric identifier for this attribute.
|
RxNormAttribute |
withRelationshipScore(Float relationshipScore)
The level of confidence that Amazon Comprehend Medical has that the attribute is accurately linked to an entity.
|
RxNormAttribute |
withScore(Float score)
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an
attribute.
|
RxNormAttribute |
withText(String text)
The segment of input text which corresponds to the detected attribute.
|
RxNormAttribute |
withTraits(Collection<RxNormTrait> traits)
Contextual information for the attribute.
|
RxNormAttribute |
withTraits(RxNormTrait... traits)
Contextual information for the attribute.
|
RxNormAttribute |
withType(RxNormAttributeType type)
The type of attribute.
|
RxNormAttribute |
withType(String type)
The type of attribute.
|
public void setType(String type)
The type of attribute. The types of attributes recognized by InferRxNorm are BRAND_NAME
and
GENERIC_NAME
.
type
- The type of attribute. The types of attributes recognized by InferRxNorm are BRAND_NAME
and
GENERIC_NAME
.RxNormAttributeType
public String getType()
The type of attribute. The types of attributes recognized by InferRxNorm are BRAND_NAME
and
GENERIC_NAME
.
BRAND_NAME
and
GENERIC_NAME
.RxNormAttributeType
public RxNormAttribute withType(String type)
The type of attribute. The types of attributes recognized by InferRxNorm are BRAND_NAME
and
GENERIC_NAME
.
type
- The type of attribute. The types of attributes recognized by InferRxNorm are BRAND_NAME
and
GENERIC_NAME
.RxNormAttributeType
public RxNormAttribute withType(RxNormAttributeType type)
The type of attribute. The types of attributes recognized by InferRxNorm are BRAND_NAME
and
GENERIC_NAME
.
type
- The type of attribute. The types of attributes recognized by InferRxNorm are BRAND_NAME
and
GENERIC_NAME
.RxNormAttributeType
public void setScore(Float score)
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
score
- The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly
recognized as an attribute.public Float getScore()
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
public RxNormAttribute withScore(Float score)
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
score
- The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly
recognized as an attribute.public void setRelationshipScore(Float relationshipScore)
The level of confidence that Amazon Comprehend Medical has that the attribute is accurately linked to an entity.
relationshipScore
- The level of confidence that Amazon Comprehend Medical has that the attribute is accurately linked to an
entity.public Float getRelationshipScore()
The level of confidence that Amazon Comprehend Medical has that the attribute is accurately linked to an entity.
public RxNormAttribute withRelationshipScore(Float relationshipScore)
The level of confidence that Amazon Comprehend Medical has that the attribute is accurately linked to an entity.
relationshipScore
- The level of confidence that Amazon Comprehend Medical has that the attribute is accurately linked to an
entity.public void setId(Integer id)
The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
id
- The numeric identifier for this attribute. This is a monotonically increasing id unique within this
response rather than a global unique identifier.public Integer getId()
The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
public RxNormAttribute withId(Integer id)
The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
id
- The numeric identifier for this attribute. This is a monotonically increasing id unique within this
response rather than a global unique identifier.public void setBeginOffset(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.
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.public Integer getBeginOffset()
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.
public RxNormAttribute withBeginOffset(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.
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.public void setEndOffset(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.
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.public Integer getEndOffset()
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.
public RxNormAttribute withEndOffset(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.
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.public void setText(String text)
The segment of input text which corresponds to the detected attribute.
text
- The segment of input text which corresponds to the detected attribute.public String getText()
The segment of input text which corresponds to the detected attribute.
public RxNormAttribute withText(String text)
The segment of input text which corresponds to the detected attribute.
text
- The segment of input text which corresponds to the detected attribute.public List<RxNormTrait> getTraits()
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.
NEGATION
for
attributes, i.e. that the patient is not taking a specific dose or form of a medication.public void setTraits(Collection<RxNormTrait> 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.
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.public RxNormAttribute withTraits(RxNormTrait... 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.
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 attribute. InferRxNorm recognizes the trait NEGATION
for
attributes, i.e. that the patient is not taking a specific dose or form of a medication.public RxNormAttribute withTraits(Collection<RxNormTrait> 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.
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.public String toString()
toString
in class Object
Object.toString()
public RxNormAttribute clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.