You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::ComprehendMedical::Types::RxNormEntity

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

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.

Instance Attribute Summary collapse

Instance Attribute Details

#attributesArray<Types::RxNormAttribute>

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

Returns:

#begin_offsetInteger

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.

Returns:

  • (Integer)

    The 0-based character offset in the input text that shows where the entity begins.

#categoryString

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

Possible values:

  • MEDICATION

Returns:

  • (String)

    The category of the entity.

#end_offsetInteger

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.

Returns:

  • (Integer)

    The 0-based character offset in the input text that shows where the entity ends.

#idInteger

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

Returns:

  • (Integer)

    The numeric identifier for the entity.

#rx_norm_conceptsArray<Types::RxNormConcept>

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

Returns:

  • (Array<Types::RxNormConcept>)

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

#scoreFloat

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

Returns:

  • (Float)

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

#textString

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

Returns:

  • (String)

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

#traitsArray<Types::RxNormTrait>

Contextual information for the entity.

Returns:

#typeString

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

Possible values:

  • BRAND_NAME
  • GENERIC_NAME

Returns:

  • (String)

    Describes the specific type of entity.