/** * 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 #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ComprehendMedical { namespace Model { /** *

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.

See Also:

* AWS * API Reference

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

The numeric identifier for the entity. 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 the entity. 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 the entity. 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 the entity. This is a monotonically increasing id * unique within this response rather than a global unique identifier.

*/ inline RxNormEntity& WithId(int value) { SetId(value); return *this;} /** *

The segment of input text extracted from which the entity was detected.

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

The segment of input text extracted from which the entity was detected.

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

The segment of input text extracted from which the entity was detected.

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

The segment of input text extracted from which the entity was detected.

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

The segment of input text extracted from which the entity was detected.

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

The segment of input text extracted from which the entity was detected.

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

The segment of input text extracted from which the entity was detected.

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

The segment of input text extracted from which the entity was detected.

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

The category of the entity. The recognized categories are * GENERIC or BRAND_NAME.

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

The category of the entity. The recognized categories are * GENERIC or BRAND_NAME.

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

The category of the entity. The recognized categories are * GENERIC or BRAND_NAME.

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

The category of the entity. The recognized categories are * GENERIC or BRAND_NAME.

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

The category of the entity. The recognized categories are * GENERIC or BRAND_NAME.

*/ inline RxNormEntity& WithCategory(const RxNormEntityCategory& value) { SetCategory(value); return *this;} /** *

The category of the entity. The recognized categories are * GENERIC or BRAND_NAME.

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

Describes the specific type of entity. For InferRxNorm, the recognized * entity type is MEDICATION.

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

Describes the specific type of entity. For InferRxNorm, the recognized * entity type is MEDICATION.

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

Describes the specific type of entity. For InferRxNorm, the recognized * entity type is MEDICATION.

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

Describes the specific type of entity. For InferRxNorm, the recognized * entity type is MEDICATION.

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

Describes the specific type of entity. For InferRxNorm, the recognized * entity type is MEDICATION.

*/ inline RxNormEntity& WithType(const RxNormEntityType& value) { SetType(value); return *this;} /** *

Describes the specific type of entity. For InferRxNorm, the recognized * entity type is MEDICATION.

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

The level of confidence that Amazon Comprehend Medical has in the accuracy of * the detected entity.

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

The level of confidence that Amazon Comprehend Medical has in the accuracy of * the detected entity.

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

The level of confidence that Amazon Comprehend Medical has in the accuracy of * the detected entity.

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

The level of confidence that Amazon Comprehend Medical has in the accuracy of * the detected entity.

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

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.

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

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

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.

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

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.

*/ inline RxNormEntity& WithBeginOffset(int value) { SetBeginOffset(value); return *this;} /** *

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.

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

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

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.

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

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.

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

The extracted attributes that relate to the entity. The attributes recognized * by InferRxNorm are DOSAGE, DURATION, * FORM, FREQUENCY, RATE, * ROUTE_OR_MODE, and STRENGTH.

*/ inline const Aws::Vector& GetAttributes() const{ return m_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.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

The extracted attributes that relate to the entity. The attributes recognized * by InferRxNorm are DOSAGE, DURATION, * FORM, FREQUENCY, RATE, * ROUTE_OR_MODE, and STRENGTH.

*/ inline void SetAttributes(const Aws::Vector& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

The extracted attributes that relate to the entity. The attributes recognized * by InferRxNorm are DOSAGE, DURATION, * FORM, FREQUENCY, RATE, * ROUTE_OR_MODE, and STRENGTH.

*/ inline void SetAttributes(Aws::Vector&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

The extracted attributes that relate to the entity. The attributes recognized * by InferRxNorm are DOSAGE, DURATION, * FORM, FREQUENCY, RATE, * ROUTE_OR_MODE, and STRENGTH.

*/ inline RxNormEntity& WithAttributes(const Aws::Vector& value) { SetAttributes(value); return *this;} /** *

The extracted attributes that relate to the entity. The attributes recognized * by InferRxNorm are DOSAGE, DURATION, * FORM, FREQUENCY, RATE, * ROUTE_OR_MODE, and STRENGTH.

*/ inline RxNormEntity& WithAttributes(Aws::Vector&& value) { SetAttributes(std::move(value)); return *this;} /** *

The extracted attributes that relate to the entity. The attributes recognized * by InferRxNorm are DOSAGE, DURATION, * FORM, FREQUENCY, RATE, * ROUTE_OR_MODE, and STRENGTH.

*/ inline RxNormEntity& AddAttributes(const RxNormAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; } /** *

The extracted attributes that relate to the entity. The attributes recognized * by InferRxNorm are DOSAGE, DURATION, * FORM, FREQUENCY, RATE, * ROUTE_OR_MODE, and STRENGTH.

*/ inline RxNormEntity& AddAttributes(RxNormAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; } /** *

Contextual information for the entity.

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

Contextual information for the entity.

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

Contextual information for the entity.

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

Contextual information for the entity.

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

Contextual information for the entity.

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

Contextual information for the entity.

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

Contextual information for the entity.

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

Contextual information for the entity.

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

The RxNorm concepts that the entity could refer to, along with a score * indicating the likelihood of the match.

*/ inline const Aws::Vector& GetRxNormConcepts() const{ return m_rxNormConcepts; } /** *

The RxNorm concepts that the entity could refer to, along with a score * indicating the likelihood of the match.

*/ inline bool RxNormConceptsHasBeenSet() const { return m_rxNormConceptsHasBeenSet; } /** *

The RxNorm concepts that the entity could refer to, along with a score * indicating the likelihood of the match.

*/ inline void SetRxNormConcepts(const Aws::Vector& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts = value; } /** *

The RxNorm concepts that the entity could refer to, along with a score * indicating the likelihood of the match.

*/ inline void SetRxNormConcepts(Aws::Vector&& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts = std::move(value); } /** *

The RxNorm concepts that the entity could refer to, along with a score * indicating the likelihood of the match.

*/ inline RxNormEntity& WithRxNormConcepts(const Aws::Vector& value) { SetRxNormConcepts(value); return *this;} /** *

The RxNorm concepts that the entity could refer to, along with a score * indicating the likelihood of the match.

*/ inline RxNormEntity& WithRxNormConcepts(Aws::Vector&& value) { SetRxNormConcepts(std::move(value)); return *this;} /** *

The RxNorm concepts that the entity could refer to, along with a score * indicating the likelihood of the match.

*/ inline RxNormEntity& AddRxNormConcepts(const RxNormConcept& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts.push_back(value); return *this; } /** *

The RxNorm concepts that the entity could refer to, along with a score * indicating the likelihood of the match.

*/ inline RxNormEntity& AddRxNormConcepts(RxNormConcept&& value) { m_rxNormConceptsHasBeenSet = true; m_rxNormConcepts.push_back(std::move(value)); return *this; } private: int m_id; bool m_idHasBeenSet = false; Aws::String m_text; bool m_textHasBeenSet = false; RxNormEntityCategory m_category; bool m_categoryHasBeenSet = false; RxNormEntityType m_type; bool m_typeHasBeenSet = false; double m_score; bool m_scoreHasBeenSet = false; int m_beginOffset; bool m_beginOffsetHasBeenSet = false; int m_endOffset; bool m_endOffsetHasBeenSet = false; Aws::Vector m_attributes; bool m_attributesHasBeenSet = false; Aws::Vector m_traits; bool m_traitsHasBeenSet = false; Aws::Vector m_rxNormConcepts; bool m_rxNormConceptsHasBeenSet = false; }; } // namespace Model } // namespace ComprehendMedical } // namespace Aws