/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.comprehendmedical.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The extracted attributes that relate to an entity. 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. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class SNOMEDCTAttribute implements Serializable, Cloneable, StructuredPojo { /** ** The category of the detected attribute. Possible categories include MEDICAL_CONDITION, ANATOMY, and * TEST_TREATMENT_PROCEDURE. *
*/ private String category; /** ** The type of attribute. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE,TEST_NAME, * TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, and TREATMENT_NAME. *
*/ private String type; /** ** The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an * attribute. *
*/ private Float score; /** ** The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this * entity. *
*/ private Float relationshipScore; /** ** The type of relationship that exists between the entity and the related attribute. *
*/ private String relationshipType; /** ** The numeric identifier for this attribute. This is a monotonically increasing id unique within this response * rather than a global unique identifier. *
*/ private Integer id; /** ** 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. *
*/ private Integer beginOffset; /** ** 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. *
*/ private Integer endOffset; /** ** The segment of input text extracted as this attribute. *
*/ private String text; /** ** Contextual information for an attribute. Examples include signs, symptoms, diagnosis, and negation. *
*/ private java.util.List* The SNOMED-CT concepts specific to an attribute, along with a score indicating the likelihood of the match. *
*/ private java.util.List* The category of the detected attribute. Possible categories include MEDICAL_CONDITION, ANATOMY, and * TEST_TREATMENT_PROCEDURE. *
* * @param category * The category of the detected attribute. Possible categories include MEDICAL_CONDITION, ANATOMY, and * TEST_TREATMENT_PROCEDURE. * @see SNOMEDCTEntityCategory */ public void setCategory(String category) { this.category = category; } /** ** The category of the detected attribute. Possible categories include MEDICAL_CONDITION, ANATOMY, and * TEST_TREATMENT_PROCEDURE. *
* * @return The category of the detected attribute. Possible categories include MEDICAL_CONDITION, ANATOMY, and * TEST_TREATMENT_PROCEDURE. * @see SNOMEDCTEntityCategory */ public String getCategory() { return this.category; } /** ** The category of the detected attribute. Possible categories include MEDICAL_CONDITION, ANATOMY, and * TEST_TREATMENT_PROCEDURE. *
* * @param category * The category of the detected attribute. Possible categories include MEDICAL_CONDITION, ANATOMY, and * TEST_TREATMENT_PROCEDURE. * @return Returns a reference to this object so that method calls can be chained together. * @see SNOMEDCTEntityCategory */ public SNOMEDCTAttribute withCategory(String category) { setCategory(category); return this; } /** ** The category of the detected attribute. Possible categories include MEDICAL_CONDITION, ANATOMY, and * TEST_TREATMENT_PROCEDURE. *
* * @param category * The category of the detected attribute. Possible categories include MEDICAL_CONDITION, ANATOMY, and * TEST_TREATMENT_PROCEDURE. * @return Returns a reference to this object so that method calls can be chained together. * @see SNOMEDCTEntityCategory */ public SNOMEDCTAttribute withCategory(SNOMEDCTEntityCategory category) { this.category = category.toString(); return this; } /** ** The type of attribute. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE,TEST_NAME, * TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, and TREATMENT_NAME. *
* * @param type * The type of attribute. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE,TEST_NAME, * TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, and TREATMENT_NAME. * @see SNOMEDCTAttributeType */ public void setType(String type) { this.type = type; } /** ** The type of attribute. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE,TEST_NAME, * TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, and TREATMENT_NAME. *
* * @return The type of attribute. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE,TEST_NAME, * TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, and TREATMENT_NAME. * @see SNOMEDCTAttributeType */ public String getType() { return this.type; } /** ** The type of attribute. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE,TEST_NAME, * TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, and TREATMENT_NAME. *
* * @param type * The type of attribute. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE,TEST_NAME, * TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, and TREATMENT_NAME. * @return Returns a reference to this object so that method calls can be chained together. * @see SNOMEDCTAttributeType */ public SNOMEDCTAttribute withType(String type) { setType(type); return this; } /** ** The type of attribute. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE,TEST_NAME, * TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, and TREATMENT_NAME. *
* * @param type * The type of attribute. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE,TEST_NAME, * TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, and TREATMENT_NAME. * @return Returns a reference to this object so that method calls can be chained together. * @see SNOMEDCTAttributeType */ public SNOMEDCTAttribute withType(SNOMEDCTAttributeType type) { this.type = type.toString(); return this; } /** ** The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an * attribute. *
* * @param score * The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly * recognized as an attribute. */ public void setScore(Float score) { this.score = score; } /** ** The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an * attribute. *
* * @return The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly * recognized as an attribute. */ public Float getScore() { return this.score; } /** ** The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an * attribute. *
* * @param score * The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly * recognized as an attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public SNOMEDCTAttribute withScore(Float score) { setScore(score); return this; } /** ** The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this * entity. *
* * @param relationshipScore * The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to * this entity. */ public void setRelationshipScore(Float relationshipScore) { this.relationshipScore = relationshipScore; } /** ** The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this * entity. *
* * @return The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to * this entity. */ public Float getRelationshipScore() { return this.relationshipScore; } /** ** The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this * entity. *
* * @param relationshipScore * The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to * this entity. * @return Returns a reference to this object so that method calls can be chained together. */ public SNOMEDCTAttribute withRelationshipScore(Float relationshipScore) { setRelationshipScore(relationshipScore); return this; } /** ** The type of relationship that exists between the entity and the related attribute. *
* * @param relationshipType * The type of relationship that exists between the entity and the related attribute. * @see SNOMEDCTRelationshipType */ public void setRelationshipType(String relationshipType) { this.relationshipType = relationshipType; } /** ** The type of relationship that exists between the entity and the related attribute. *
* * @return The type of relationship that exists between the entity and the related attribute. * @see SNOMEDCTRelationshipType */ public String getRelationshipType() { return this.relationshipType; } /** ** The type of relationship that exists between the entity and the related attribute. *
* * @param relationshipType * The type of relationship that exists between the entity and the related attribute. * @return Returns a reference to this object so that method calls can be chained together. * @see SNOMEDCTRelationshipType */ public SNOMEDCTAttribute withRelationshipType(String relationshipType) { setRelationshipType(relationshipType); return this; } /** ** The type of relationship that exists between the entity and the related attribute. *
* * @param relationshipType * The type of relationship that exists between the entity and the related attribute. * @return Returns a reference to this object so that method calls can be chained together. * @see SNOMEDCTRelationshipType */ public SNOMEDCTAttribute withRelationshipType(SNOMEDCTRelationshipType relationshipType) { this.relationshipType = relationshipType.toString(); return this; } /** ** The numeric identifier for this attribute. This is a monotonically increasing id unique within this response * rather than a global unique identifier. *
* * @param 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 setId(Integer id) { this.id = id; } /** ** The numeric identifier for this attribute. This is a monotonically increasing id unique within this response * rather than a global unique identifier. *
* * @return 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() { return this.id; } /** ** The numeric identifier for this attribute. This is a monotonically increasing id unique within this response * rather than a global unique identifier. *
* * @param id * The numeric identifier for this attribute. This is a monotonically increasing id unique within this * response rather than a global unique identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public SNOMEDCTAttribute withId(Integer id) { setId(id); return this; } /** ** 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. *
* * @param 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 setBeginOffset(Integer beginOffset) { this.beginOffset = 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. *
* * @return 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() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public SNOMEDCTAttribute withBeginOffset(Integer beginOffset) { setBeginOffset(beginOffset); return this; } /** ** 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. *
* * @param 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 setEndOffset(Integer endOffset) { this.endOffset = 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. *
* * @return 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() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public SNOMEDCTAttribute withEndOffset(Integer endOffset) { setEndOffset(endOffset); return this; } /** ** The segment of input text extracted as this attribute. *
* * @param text * The segment of input text extracted as this attribute. */ public void setText(String text) { this.text = text; } /** ** The segment of input text extracted as this attribute. *
* * @return The segment of input text extracted as this attribute. */ public String getText() { return this.text; } /** ** The segment of input text extracted as this attribute. *
* * @param text * The segment of input text extracted as this attribute. * @return Returns a reference to this object so that method calls can be chained together. */ public SNOMEDCTAttribute withText(String text) { setText(text); return this; } /** ** Contextual information for an attribute. Examples include signs, symptoms, diagnosis, and negation. *
* * @return Contextual information for an attribute. Examples include signs, symptoms, diagnosis, and negation. */ public java.util.List* Contextual information for an attribute. Examples include signs, symptoms, diagnosis, and negation. *
* * @param traits * Contextual information for an attribute. Examples include signs, symptoms, diagnosis, and negation. */ public void setTraits(java.util.Collection* Contextual information for an attribute. Examples include signs, symptoms, diagnosis, and negation. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTraits(java.util.Collection)} or {@link #withTraits(java.util.Collection)} if you want to override the * existing values. *
* * @param traits * Contextual information for an attribute. Examples include signs, symptoms, diagnosis, and negation. * @return Returns a reference to this object so that method calls can be chained together. */ public SNOMEDCTAttribute withTraits(SNOMEDCTTrait... traits) { if (this.traits == null) { setTraits(new java.util.ArrayList* Contextual information for an attribute. Examples include signs, symptoms, diagnosis, and negation. *
* * @param traits * Contextual information for an attribute. Examples include signs, symptoms, diagnosis, and negation. * @return Returns a reference to this object so that method calls can be chained together. */ public SNOMEDCTAttribute withTraits(java.util.Collection* The SNOMED-CT concepts specific to an attribute, along with a score indicating the likelihood of the match. *
* * @return The SNOMED-CT concepts specific to an attribute, along with a score indicating the likelihood of the * match. */ public java.util.List* The SNOMED-CT concepts specific to an attribute, along with a score indicating the likelihood of the match. *
* * @param sNOMEDCTConcepts * The SNOMED-CT concepts specific to an attribute, along with a score indicating the likelihood of the * match. */ public void setSNOMEDCTConcepts(java.util.Collection* The SNOMED-CT concepts specific to an attribute, along with a score indicating the likelihood of the match. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setSNOMEDCTConcepts(java.util.Collection)} or {@link #withSNOMEDCTConcepts(java.util.Collection)} if you * want to override the existing values. *
* * @param sNOMEDCTConcepts * The SNOMED-CT concepts specific to an attribute, along with a score indicating the likelihood of the * match. * @return Returns a reference to this object so that method calls can be chained together. */ public SNOMEDCTAttribute withSNOMEDCTConcepts(SNOMEDCTConcept... sNOMEDCTConcepts) { if (this.sNOMEDCTConcepts == null) { setSNOMEDCTConcepts(new java.util.ArrayList* The SNOMED-CT concepts specific to an attribute, along with a score indicating the likelihood of the match. *
* * @param sNOMEDCTConcepts * The SNOMED-CT concepts specific to an attribute, along with a score indicating the likelihood of the * match. * @return Returns a reference to this object so that method calls can be chained together. */ public SNOMEDCTAttribute withSNOMEDCTConcepts(java.util.Collection