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

Class: Aws::ComprehendMedical::Types::Entity

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

Overview

Provides information about an extracted medical entity.

Instance Attribute Summary collapse

Instance Attribute Details

#attributesArray<Types::Attribute>

The extracted attributes that relate to this entity.

Returns:

  • (Array<Types::Attribute>)

    The extracted attributes that relate to this entity.

#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.

Possible values:

  • MEDICATION
  • MEDICAL_CONDITION
  • PROTECTED_HEALTH_INFORMATION
  • TEST_TREATMENT_PROCEDURE
  • ANATOMY

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.

#scoreFloat

The level of confidence that Comprehend Medical has in the accuracy of the detection.

Returns:

  • (Float)

    The level of confidence that Comprehend Medical has in the accuracy of the detection.

#textString

The segment of input text extracted as this entity.

Returns:

  • (String)

    The segment of input text extracted as this entity.

#traitsArray<Types::Trait>

Contextual information for the entity

Returns:

  • (Array<Types::Trait>)

    Contextual information for the entity.

#typeString

Describes the specific type of entity with category of entities.

Possible values:

  • NAME
  • DOSAGE
  • ROUTE_OR_MODE
  • FORM
  • FREQUENCY
  • DURATION
  • GENERIC_NAME
  • BRAND_NAME
  • STRENGTH
  • RATE
  • ACUITY
  • TEST_NAME
  • TEST_VALUE
  • TEST_UNITS
  • PROCEDURE_NAME
  • TREATMENT_NAME
  • DATE
  • AGE
  • CONTACT_POINT
  • EMAIL
  • IDENTIFIER
  • URL
  • ADDRESS
  • PROFESSION
  • SYSTEM_ORGAN_SITE
  • DIRECTION
  • QUALITY
  • QUANTITY

Returns:

  • (String)

    Describes the specific type of entity with category of entities.