/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ComprehendMedical { namespace Model { /** *

The detected attributes that relate to an entity. This includes an extracted * segment of the text that is an attribute of an entity, or otherwise related to * an entity. InferICD10CM detects the following attributes: * Direction, System, Organ or Site, and * Acuity.

See Also:

AWS * API Reference

*/ class ICD10CMAttribute { public: AWS_COMPREHENDMEDICAL_API ICD10CMAttribute(); AWS_COMPREHENDMEDICAL_API ICD10CMAttribute(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHENDMEDICAL_API ICD10CMAttribute& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_COMPREHENDMEDICAL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The type of attribute. InferICD10CM detects entities of the type * DX_NAME.

*/ inline const ICD10CMAttributeType& GetType() const{ return m_type; } /** *

The type of attribute. InferICD10CM detects entities of the type * DX_NAME.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of attribute. InferICD10CM detects entities of the type * DX_NAME.

*/ inline void SetType(const ICD10CMAttributeType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of attribute. InferICD10CM detects entities of the type * DX_NAME.

*/ inline void SetType(ICD10CMAttributeType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of attribute. InferICD10CM detects entities of the type * DX_NAME.

*/ inline ICD10CMAttribute& WithType(const ICD10CMAttributeType& value) { SetType(value); return *this;} /** *

The type of attribute. InferICD10CM detects entities of the type * DX_NAME.

*/ inline ICD10CMAttribute& WithType(ICD10CMAttributeType&& value) { SetType(std::move(value)); return *this;} /** *

The level of confidence that Amazon Comprehend Medical has that the segment * of text is correctly recognized as an attribute.

*/ inline double GetScore() const{ return m_score; } /** *

The level of confidence that Amazon Comprehend Medical has that the segment * of text is correctly recognized as an attribute.

*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *

The level of confidence that Amazon Comprehend Medical has that the segment * of text is correctly recognized as an attribute.

*/ inline void SetScore(double value) { m_scoreHasBeenSet = true; m_score = value; } /** *

The level of confidence that Amazon Comprehend Medical has that the segment * of text is correctly recognized as an attribute.

*/ inline ICD10CMAttribute& WithScore(double value) { SetScore(value); return *this;} /** *

The level of confidence that Amazon Comprehend Medical has that this * attribute is correctly related to this entity.

*/ inline double GetRelationshipScore() const{ return m_relationshipScore; } /** *

The level of confidence that Amazon Comprehend Medical has that this * attribute is correctly related to this entity.

*/ inline bool RelationshipScoreHasBeenSet() const { return m_relationshipScoreHasBeenSet; } /** *

The level of confidence that Amazon Comprehend Medical has that this * attribute is correctly related to this entity.

*/ inline void SetRelationshipScore(double value) { m_relationshipScoreHasBeenSet = true; m_relationshipScore = value; } /** *

The level of confidence that Amazon Comprehend Medical has that this * attribute is correctly related to this entity.

*/ inline ICD10CMAttribute& WithRelationshipScore(double value) { SetRelationshipScore(value); return *this;} /** *

The numeric identifier for this attribute. This is a monotonically increasing * id unique within this response rather than a global unique identifier.

*/ inline int GetId() const{ return m_id; } /** *

The numeric identifier for this attribute. This is a monotonically increasing * id unique within this response rather than a global unique identifier.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The numeric identifier for this attribute. This is a monotonically increasing * id unique within this response rather than a global unique identifier.

*/ inline void SetId(int value) { m_idHasBeenSet = true; m_id = value; } /** *

The numeric identifier for this attribute. This is a monotonically increasing * id unique within this response rather than a global unique identifier.

*/ inline ICD10CMAttribute& WithId(int value) { SetId(value); 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.

*/ inline int GetBeginOffset() const{ return m_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.

*/ inline bool BeginOffsetHasBeenSet() const { return m_beginOffsetHasBeenSet; } /** *

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.

*/ inline void SetBeginOffset(int value) { m_beginOffsetHasBeenSet = true; m_beginOffset = value; } /** *

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.

*/ inline ICD10CMAttribute& WithBeginOffset(int value) { SetBeginOffset(value); 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.

*/ inline int GetEndOffset() const{ return m_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.

*/ inline bool EndOffsetHasBeenSet() const { return m_endOffsetHasBeenSet; } /** *

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.

*/ inline void SetEndOffset(int value) { m_endOffsetHasBeenSet = true; m_endOffset = value; } /** *

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.

*/ inline ICD10CMAttribute& WithEndOffset(int value) { SetEndOffset(value); return *this;} /** *

The segment of input text which contains the detected attribute.

*/ inline const Aws::String& GetText() const{ return m_text; } /** *

The segment of input text which contains the detected attribute.

*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *

The segment of input text which contains the detected attribute.

*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *

The segment of input text which contains the detected attribute.

*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *

The segment of input text which contains the detected attribute.

*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *

The segment of input text which contains the detected attribute.

*/ inline ICD10CMAttribute& WithText(const Aws::String& value) { SetText(value); return *this;} /** *

The segment of input text which contains the detected attribute.

*/ inline ICD10CMAttribute& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *

The segment of input text which contains the detected attribute.

*/ inline ICD10CMAttribute& WithText(const char* value) { SetText(value); return *this;} /** *

The contextual information for the attribute. The traits recognized by * InferICD10CM are DIAGNOSIS, SIGN, * SYMPTOM, and NEGATION.

*/ inline const Aws::Vector& GetTraits() const{ return m_traits; } /** *

The contextual information for the attribute. The traits recognized by * InferICD10CM are DIAGNOSIS, SIGN, * SYMPTOM, and NEGATION.

*/ inline bool TraitsHasBeenSet() const { return m_traitsHasBeenSet; } /** *

The contextual information for the attribute. The traits recognized by * InferICD10CM are DIAGNOSIS, SIGN, * SYMPTOM, and NEGATION.

*/ inline void SetTraits(const Aws::Vector& value) { m_traitsHasBeenSet = true; m_traits = value; } /** *

The contextual information for the attribute. The traits recognized by * InferICD10CM are DIAGNOSIS, SIGN, * SYMPTOM, and NEGATION.

*/ inline void SetTraits(Aws::Vector&& value) { m_traitsHasBeenSet = true; m_traits = std::move(value); } /** *

The contextual information for the attribute. The traits recognized by * InferICD10CM are DIAGNOSIS, SIGN, * SYMPTOM, and NEGATION.

*/ inline ICD10CMAttribute& WithTraits(const Aws::Vector& value) { SetTraits(value); return *this;} /** *

The contextual information for the attribute. The traits recognized by * InferICD10CM are DIAGNOSIS, SIGN, * SYMPTOM, and NEGATION.

*/ inline ICD10CMAttribute& WithTraits(Aws::Vector&& value) { SetTraits(std::move(value)); return *this;} /** *

The contextual information for the attribute. The traits recognized by * InferICD10CM are DIAGNOSIS, SIGN, * SYMPTOM, and NEGATION.

*/ inline ICD10CMAttribute& AddTraits(const ICD10CMTrait& value) { m_traitsHasBeenSet = true; m_traits.push_back(value); return *this; } /** *

The contextual information for the attribute. The traits recognized by * InferICD10CM are DIAGNOSIS, SIGN, * SYMPTOM, and NEGATION.

*/ inline ICD10CMAttribute& AddTraits(ICD10CMTrait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; } /** *

The category of attribute. Can be either of DX_NAME or * TIME_EXPRESSION.

*/ inline const ICD10CMEntityType& GetCategory() const{ return m_category; } /** *

The category of attribute. Can be either of DX_NAME or * TIME_EXPRESSION.

*/ inline bool CategoryHasBeenSet() const { return m_categoryHasBeenSet; } /** *

The category of attribute. Can be either of DX_NAME or * TIME_EXPRESSION.

*/ inline void SetCategory(const ICD10CMEntityType& value) { m_categoryHasBeenSet = true; m_category = value; } /** *

The category of attribute. Can be either of DX_NAME or * TIME_EXPRESSION.

*/ inline void SetCategory(ICD10CMEntityType&& value) { m_categoryHasBeenSet = true; m_category = std::move(value); } /** *

The category of attribute. Can be either of DX_NAME or * TIME_EXPRESSION.

*/ inline ICD10CMAttribute& WithCategory(const ICD10CMEntityType& value) { SetCategory(value); return *this;} /** *

The category of attribute. Can be either of DX_NAME or * TIME_EXPRESSION.

*/ inline ICD10CMAttribute& WithCategory(ICD10CMEntityType&& value) { SetCategory(std::move(value)); return *this;} /** *

The type of relationship between the entity and attribute. Type for the * relationship can be either of OVERLAP or * SYSTEM_ORGAN_SITE.

*/ inline const ICD10CMRelationshipType& GetRelationshipType() const{ return m_relationshipType; } /** *

The type of relationship between the entity and attribute. Type for the * relationship can be either of OVERLAP or * SYSTEM_ORGAN_SITE.

*/ inline bool RelationshipTypeHasBeenSet() const { return m_relationshipTypeHasBeenSet; } /** *

The type of relationship between the entity and attribute. Type for the * relationship can be either of OVERLAP or * SYSTEM_ORGAN_SITE.

*/ inline void SetRelationshipType(const ICD10CMRelationshipType& value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = value; } /** *

The type of relationship between the entity and attribute. Type for the * relationship can be either of OVERLAP or * SYSTEM_ORGAN_SITE.

*/ inline void SetRelationshipType(ICD10CMRelationshipType&& value) { m_relationshipTypeHasBeenSet = true; m_relationshipType = std::move(value); } /** *

The type of relationship between the entity and attribute. Type for the * relationship can be either of OVERLAP or * SYSTEM_ORGAN_SITE.

*/ inline ICD10CMAttribute& WithRelationshipType(const ICD10CMRelationshipType& value) { SetRelationshipType(value); return *this;} /** *

The type of relationship between the entity and attribute. Type for the * relationship can be either of OVERLAP or * SYSTEM_ORGAN_SITE.

*/ inline ICD10CMAttribute& WithRelationshipType(ICD10CMRelationshipType&& value) { SetRelationshipType(std::move(value)); return *this;} private: ICD10CMAttributeType m_type; bool m_typeHasBeenSet = false; double m_score; bool m_scoreHasBeenSet = false; double m_relationshipScore; bool m_relationshipScoreHasBeenSet = false; int m_id; bool m_idHasBeenSet = false; int m_beginOffset; bool m_beginOffsetHasBeenSet = false; int m_endOffset; bool m_endOffsetHasBeenSet = false; Aws::String m_text; bool m_textHasBeenSet = false; Aws::Vector m_traits; bool m_traitsHasBeenSet = false; ICD10CMEntityType m_category; bool m_categoryHasBeenSet = false; ICD10CMRelationshipType m_relationshipType; bool m_relationshipTypeHasBeenSet = false; }; } // namespace Model } // namespace ComprehendMedical } // namespace Aws