/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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 ICD10CMEntity& WithId(int value) { SetId(value); return *this;} /** *The segment of input text that is matched to the detected entity.
*/ inline const Aws::String& GetText() const{ return m_text; } /** *The segment of input text that is matched to the detected entity.
*/ inline bool TextHasBeenSet() const { return m_textHasBeenSet; } /** *The segment of input text that is matched to the detected entity.
*/ inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } /** *The segment of input text that is matched to the detected entity.
*/ inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } /** *The segment of input text that is matched to the detected entity.
*/ inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } /** *The segment of input text that is matched to the detected entity.
*/ inline ICD10CMEntity& WithText(const Aws::String& value) { SetText(value); return *this;} /** *The segment of input text that is matched to the detected entity.
*/ inline ICD10CMEntity& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} /** *The segment of input text that is matched to the detected entity.
*/ inline ICD10CMEntity& WithText(const char* value) { SetText(value); return *this;} /** * The category of the entity. InferICD10CM detects entities in the
* MEDICAL_CONDITION
category.
The category of the entity. InferICD10CM detects entities in the
* MEDICAL_CONDITION
category.
The category of the entity. InferICD10CM detects entities in the
* MEDICAL_CONDITION
category.
The category of the entity. InferICD10CM detects entities in the
* MEDICAL_CONDITION
category.
The category of the entity. InferICD10CM detects entities in the
* MEDICAL_CONDITION
category.
The category of the entity. InferICD10CM detects entities in the
* MEDICAL_CONDITION
category.
Describes the specific type of entity with category of entities. InferICD10CM
* detects entities of the type DX_NAME
and
* TIME_EXPRESSION
.
Describes the specific type of entity with category of entities. InferICD10CM
* detects entities of the type DX_NAME
and
* TIME_EXPRESSION
.
Describes the specific type of entity with category of entities. InferICD10CM
* detects entities of the type DX_NAME
and
* TIME_EXPRESSION
.
Describes the specific type of entity with category of entities. InferICD10CM
* detects entities of the type DX_NAME
and
* TIME_EXPRESSION
.
Describes the specific type of entity with category of entities. InferICD10CM
* detects entities of the type DX_NAME
and
* TIME_EXPRESSION
.
Describes the specific type of entity with category of entities. InferICD10CM
* detects entities of the type DX_NAME
and
* TIME_EXPRESSION
.
The level of confidence that Amazon Comprehend Medical has in the accuracy of * the detection.
*/ inline double GetScore() const{ return m_score; } /** *The level of confidence that Amazon Comprehend Medical has in the accuracy of * the detection.
*/ inline bool ScoreHasBeenSet() const { return m_scoreHasBeenSet; } /** *The level of confidence that Amazon Comprehend Medical has in the accuracy of * the detection.
*/ 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 detection.
*/ inline ICD10CMEntity& 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 ICD10CMEntity& 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 ICD10CMEntity& WithEndOffset(int value) { SetEndOffset(value); return *this;} /** *The detected attributes that relate to the entity. An extracted segment of * the text that is an attribute of an entity, or otherwise related to an entity, * such as the nature of a medical condition.
*/ inline const Aws::VectorThe detected attributes that relate to the entity. An extracted segment of * the text that is an attribute of an entity, or otherwise related to an entity, * such as the nature of a medical condition.
*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *The detected attributes that relate to the entity. An extracted segment of * the text that is an attribute of an entity, or otherwise related to an entity, * such as the nature of a medical condition.
*/ inline void SetAttributes(const Aws::VectorThe detected attributes that relate to the entity. An extracted segment of * the text that is an attribute of an entity, or otherwise related to an entity, * such as the nature of a medical condition.
*/ inline void SetAttributes(Aws::VectorThe detected attributes that relate to the entity. An extracted segment of * the text that is an attribute of an entity, or otherwise related to an entity, * such as the nature of a medical condition.
*/ inline ICD10CMEntity& WithAttributes(const Aws::VectorThe detected attributes that relate to the entity. An extracted segment of * the text that is an attribute of an entity, or otherwise related to an entity, * such as the nature of a medical condition.
*/ inline ICD10CMEntity& WithAttributes(Aws::VectorThe detected attributes that relate to the entity. An extracted segment of * the text that is an attribute of an entity, or otherwise related to an entity, * such as the nature of a medical condition.
*/ inline ICD10CMEntity& AddAttributes(const ICD10CMAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; } /** *The detected attributes that relate to the entity. An extracted segment of * the text that is an attribute of an entity, or otherwise related to an entity, * such as the nature of a medical condition.
*/ inline ICD10CMEntity& AddAttributes(ICD10CMAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; } /** *Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are DIAGNOSIS
, SIGN
,
* SYMPTOM
, and NEGATION.
Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are DIAGNOSIS
, SIGN
,
* SYMPTOM
, and NEGATION.
Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are DIAGNOSIS
, SIGN
,
* SYMPTOM
, and NEGATION.
Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are DIAGNOSIS
, SIGN
,
* SYMPTOM
, and NEGATION.
Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are DIAGNOSIS
, SIGN
,
* SYMPTOM
, and NEGATION.
Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are DIAGNOSIS
, SIGN
,
* SYMPTOM
, and NEGATION.
Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are DIAGNOSIS
, SIGN
,
* SYMPTOM
, and NEGATION.
Provides Contextual information for the entity. The traits recognized by
* InferICD10CM are DIAGNOSIS
, SIGN
,
* SYMPTOM
, and NEGATION.
The ICD-10-CM concepts that the entity could refer to, along with a score * indicating the likelihood of the match.
*/ inline const Aws::VectorThe ICD-10-CM concepts that the entity could refer to, along with a score * indicating the likelihood of the match.
*/ inline bool ICD10CMConceptsHasBeenSet() const { return m_iCD10CMConceptsHasBeenSet; } /** *The ICD-10-CM concepts that the entity could refer to, along with a score * indicating the likelihood of the match.
*/ inline void SetICD10CMConcepts(const Aws::VectorThe ICD-10-CM concepts that the entity could refer to, along with a score * indicating the likelihood of the match.
*/ inline void SetICD10CMConcepts(Aws::VectorThe ICD-10-CM concepts that the entity could refer to, along with a score * indicating the likelihood of the match.
*/ inline ICD10CMEntity& WithICD10CMConcepts(const Aws::VectorThe ICD-10-CM concepts that the entity could refer to, along with a score * indicating the likelihood of the match.
*/ inline ICD10CMEntity& WithICD10CMConcepts(Aws::VectorThe ICD-10-CM concepts that the entity could refer to, along with a score * indicating the likelihood of the match.
*/ inline ICD10CMEntity& AddICD10CMConcepts(const ICD10CMConcept& value) { m_iCD10CMConceptsHasBeenSet = true; m_iCD10CMConcepts.push_back(value); return *this; } /** *The ICD-10-CM concepts that the entity could refer to, along with a score * indicating the likelihood of the match.
*/ inline ICD10CMEntity& AddICD10CMConcepts(ICD10CMConcept&& value) { m_iCD10CMConceptsHasBeenSet = true; m_iCD10CMConcepts.push_back(std::move(value)); return *this; } private: int m_id; bool m_idHasBeenSet = false; Aws::String m_text; bool m_textHasBeenSet = false; ICD10CMEntityCategory m_category; bool m_categoryHasBeenSet = false; ICD10CMEntityType 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