@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SNOMEDCTEntity 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 Comprehend Medical has in the detection and analysis. Attributes and traits of the entity are also returned.
Constructor and Description |
---|
SNOMEDCTEntity() |
Modifier and Type | Method and Description |
---|---|
SNOMEDCTEntity |
clone() |
boolean |
equals(Object obj) |
List<SNOMEDCTAttribute> |
getAttributes()
An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as
the dosage of a medication taken.
|
Integer |
getBeginOffset()
The 0-based character offset in the input text that shows where the entity begins.
|
String |
getCategory()
The category of the detected 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.
|
Float |
getScore()
The level of confidence that Comprehend Medical has in the accuracy of the detected entity.
|
List<SNOMEDCTConcept> |
getSNOMEDCTConcepts()
The SNOMED concepts that the entity could refer to, along with a score indicating the likelihood of the match.
|
String |
getText()
The segment of input text extracted as this entity.
|
List<SNOMEDCTTrait> |
getTraits()
Contextual information for the entity.
|
String |
getType()
Describes the specific type of entity with category of entities.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttributes(Collection<SNOMEDCTAttribute> attributes)
An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as
the dosage of a medication taken.
|
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 detected 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 |
setScore(Float score)
The level of confidence that Comprehend Medical has in the accuracy of the detected entity.
|
void |
setSNOMEDCTConcepts(Collection<SNOMEDCTConcept> sNOMEDCTConcepts)
The SNOMED concepts that the entity could refer to, along with a score indicating the likelihood of the match.
|
void |
setText(String text)
The segment of input text extracted as this entity.
|
void |
setTraits(Collection<SNOMEDCTTrait> traits)
Contextual information for the entity.
|
void |
setType(String type)
Describes the specific type of entity with category of entities.
|
String |
toString()
Returns a string representation of this object.
|
SNOMEDCTEntity |
withAttributes(Collection<SNOMEDCTAttribute> attributes)
An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as
the dosage of a medication taken.
|
SNOMEDCTEntity |
withAttributes(SNOMEDCTAttribute... attributes)
An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as
the dosage of a medication taken.
|
SNOMEDCTEntity |
withBeginOffset(Integer beginOffset)
The 0-based character offset in the input text that shows where the entity begins.
|
SNOMEDCTEntity |
withCategory(SNOMEDCTEntityCategory category)
The category of the detected entity.
|
SNOMEDCTEntity |
withCategory(String category)
The category of the detected entity.
|
SNOMEDCTEntity |
withEndOffset(Integer endOffset)
The 0-based character offset in the input text that shows where the entity ends.
|
SNOMEDCTEntity |
withId(Integer id)
The numeric identifier for the entity.
|
SNOMEDCTEntity |
withScore(Float score)
The level of confidence that Comprehend Medical has in the accuracy of the detected entity.
|
SNOMEDCTEntity |
withSNOMEDCTConcepts(Collection<SNOMEDCTConcept> sNOMEDCTConcepts)
The SNOMED concepts that the entity could refer to, along with a score indicating the likelihood of the match.
|
SNOMEDCTEntity |
withSNOMEDCTConcepts(SNOMEDCTConcept... sNOMEDCTConcepts)
The SNOMED concepts that the entity could refer to, along with a score indicating the likelihood of the match.
|
SNOMEDCTEntity |
withText(String text)
The segment of input text extracted as this entity.
|
SNOMEDCTEntity |
withTraits(Collection<SNOMEDCTTrait> traits)
Contextual information for the entity.
|
SNOMEDCTEntity |
withTraits(SNOMEDCTTrait... traits)
Contextual information for the entity.
|
SNOMEDCTEntity |
withType(SNOMEDCTEntityType type)
Describes the specific type of entity with category of entities.
|
SNOMEDCTEntity |
withType(String type)
Describes the specific type of entity with category of entities.
|
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 SNOMEDCTEntity 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 as this entity.
text
- The segment of input text extracted as this entity.public String getText()
The segment of input text extracted as this entity.
public SNOMEDCTEntity withText(String text)
The segment of input text extracted as this entity.
text
- The segment of input text extracted as this entity.public void setCategory(String category)
The category of the detected entity. Possible categories are MEDICAL_CONDITION, ANATOMY, or TEST_TREATMENT_PROCEDURE.
category
- The category of the detected entity. Possible categories are MEDICAL_CONDITION, ANATOMY, or
TEST_TREATMENT_PROCEDURE.SNOMEDCTEntityCategory
public String getCategory()
The category of the detected entity. Possible categories are MEDICAL_CONDITION, ANATOMY, or TEST_TREATMENT_PROCEDURE.
SNOMEDCTEntityCategory
public SNOMEDCTEntity withCategory(String category)
The category of the detected entity. Possible categories are MEDICAL_CONDITION, ANATOMY, or TEST_TREATMENT_PROCEDURE.
category
- The category of the detected entity. Possible categories are MEDICAL_CONDITION, ANATOMY, or
TEST_TREATMENT_PROCEDURE.SNOMEDCTEntityCategory
public SNOMEDCTEntity withCategory(SNOMEDCTEntityCategory category)
The category of the detected entity. Possible categories are MEDICAL_CONDITION, ANATOMY, or TEST_TREATMENT_PROCEDURE.
category
- The category of the detected entity. Possible categories are MEDICAL_CONDITION, ANATOMY, or
TEST_TREATMENT_PROCEDURE.SNOMEDCTEntityCategory
public void setType(String type)
Describes the specific type of entity with category of entities. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE, TEST_NAME, TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, or TREATMENT_NAME.
type
- Describes the specific type of entity with category of entities. Possible types include DX_NAME, ACUITY,
DIRECTION, SYSTEM_ORGAN_SITE, TEST_NAME, TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, or TREATMENT_NAME.SNOMEDCTEntityType
public String getType()
Describes the specific type of entity with category of entities. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE, TEST_NAME, TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, or TREATMENT_NAME.
SNOMEDCTEntityType
public SNOMEDCTEntity withType(String type)
Describes the specific type of entity with category of entities. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE, TEST_NAME, TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, or TREATMENT_NAME.
type
- Describes the specific type of entity with category of entities. Possible types include DX_NAME, ACUITY,
DIRECTION, SYSTEM_ORGAN_SITE, TEST_NAME, TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, or TREATMENT_NAME.SNOMEDCTEntityType
public SNOMEDCTEntity withType(SNOMEDCTEntityType type)
Describes the specific type of entity with category of entities. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE, TEST_NAME, TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, or TREATMENT_NAME.
type
- Describes the specific type of entity with category of entities. Possible types include DX_NAME, ACUITY,
DIRECTION, SYSTEM_ORGAN_SITE, TEST_NAME, TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, or TREATMENT_NAME.SNOMEDCTEntityType
public void setScore(Float score)
The level of confidence that Comprehend Medical has in the accuracy of the detected entity.
score
- The level of confidence that Comprehend Medical has in the accuracy of the detected entity.public Float getScore()
The level of confidence that Comprehend Medical has in the accuracy of the detected entity.
public SNOMEDCTEntity withScore(Float score)
The level of confidence that Comprehend Medical has in the accuracy of the detected entity.
score
- The level of confidence that 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 SNOMEDCTEntity 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 SNOMEDCTEntity 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<SNOMEDCTAttribute> getAttributes()
An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as the dosage of a medication taken.
public void setAttributes(Collection<SNOMEDCTAttribute> attributes)
An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as the dosage of a medication taken.
attributes
- An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity,
such as the dosage of a medication taken.public SNOMEDCTEntity withAttributes(SNOMEDCTAttribute... attributes)
An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as the dosage of a medication taken.
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
- An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity,
such as the dosage of a medication taken.public SNOMEDCTEntity withAttributes(Collection<SNOMEDCTAttribute> attributes)
An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as the dosage of a medication taken.
attributes
- An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity,
such as the dosage of a medication taken.public List<SNOMEDCTTrait> getTraits()
Contextual information for the entity.
public void setTraits(Collection<SNOMEDCTTrait> traits)
Contextual information for the entity.
traits
- Contextual information for the entity.public SNOMEDCTEntity withTraits(SNOMEDCTTrait... 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 SNOMEDCTEntity withTraits(Collection<SNOMEDCTTrait> traits)
Contextual information for the entity.
traits
- Contextual information for the entity.public List<SNOMEDCTConcept> getSNOMEDCTConcepts()
The SNOMED concepts that the entity could refer to, along with a score indicating the likelihood of the match.
public void setSNOMEDCTConcepts(Collection<SNOMEDCTConcept> sNOMEDCTConcepts)
The SNOMED concepts that the entity could refer to, along with a score indicating the likelihood of the match.
sNOMEDCTConcepts
- The SNOMED concepts that the entity could refer to, along with a score indicating the likelihood of the
match.public SNOMEDCTEntity withSNOMEDCTConcepts(SNOMEDCTConcept... sNOMEDCTConcepts)
The SNOMED 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
setSNOMEDCTConcepts(java.util.Collection)
or withSNOMEDCTConcepts(java.util.Collection)
if you
want to override the existing values.
sNOMEDCTConcepts
- The SNOMED concepts that the entity could refer to, along with a score indicating the likelihood of the
match.public SNOMEDCTEntity withSNOMEDCTConcepts(Collection<SNOMEDCTConcept> sNOMEDCTConcepts)
The SNOMED concepts that the entity could refer to, along with a score indicating the likelihood of the match.
sNOMEDCTConcepts
- The SNOMED 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 SNOMEDCTEntity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.