/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 extracted attributes that relate to this entity. The attributes * recognized by InferRxNorm are DOSAGE, DURATION, * FORM, FREQUENCY, RATE, * ROUTE_OR_MODE.

See Also:

AWS * API Reference

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

The type of attribute. The types of attributes recognized by InferRxNorm are * BRAND_NAME and GENERIC_NAME.

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

The type of attribute. The types of attributes recognized by InferRxNorm are * BRAND_NAME and GENERIC_NAME.

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

The type of attribute. The types of attributes recognized by InferRxNorm are * BRAND_NAME and GENERIC_NAME.

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

The type of attribute. The types of attributes recognized by InferRxNorm are * BRAND_NAME and GENERIC_NAME.

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

The type of attribute. The types of attributes recognized by InferRxNorm are * BRAND_NAME and GENERIC_NAME.

*/ inline RxNormAttribute& WithType(const RxNormAttributeType& value) { SetType(value); return *this;} /** *

The type of attribute. The types of attributes recognized by InferRxNorm are * BRAND_NAME and GENERIC_NAME.

*/ inline RxNormAttribute& WithType(RxNormAttributeType&& 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 RxNormAttribute& WithScore(double value) { SetScore(value); return *this;} /** *

The level of confidence that Amazon Comprehend Medical has that the attribute * is accurately linked to an entity.

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

The level of confidence that Amazon Comprehend Medical has that the attribute * is accurately linked to an entity.

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

The level of confidence that Amazon Comprehend Medical has that the attribute * is accurately linked to an entity.

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

The level of confidence that Amazon Comprehend Medical has that the attribute * is accurately linked to an entity.

*/ inline RxNormAttribute& 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 RxNormAttribute& 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 RxNormAttribute& 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 RxNormAttribute& WithEndOffset(int value) { SetEndOffset(value); return *this;} /** *

The segment of input text which corresponds to the detected attribute.

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

The segment of input text which corresponds to the detected attribute.

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

The segment of input text which corresponds to the detected attribute.

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

The segment of input text which corresponds to the detected attribute.

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

The segment of input text which corresponds to the detected attribute.

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

The segment of input text which corresponds to the detected attribute.

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

The segment of input text which corresponds to the detected attribute.

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

The segment of input text which corresponds to the detected attribute.

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

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.

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

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

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.

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

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.

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

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.

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

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.

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

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.

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

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.

*/ inline RxNormAttribute& AddTraits(RxNormTrait&& value) { m_traitsHasBeenSet = true; m_traits.push_back(std::move(value)); return *this; } private: RxNormAttributeType 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; }; } // namespace Model } // namespace ComprehendMedical } // namespace Aws