Skip to content

RxNormEntity

Source code in docs_src/capo_comprehendmedical/types/rx_norm_entity.py
class RxNormEntity(TypedDict, closed=True):
    id: NotRequired["capo_comprehendmedical.types.integer.Integer"]
    """<p>The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.</p>"""
    text: NotRequired[
        "capo_comprehendmedical.types.ontology_linking_bounded_length_string.OntologyLinkingBoundedLengthString"
    ]
    """<p>The segment of input text extracted from which the entity was detected.</p>"""
    category: NotRequired[
        "capo_comprehendmedical.types.rx_norm_entity_category.RxNormEntityCategory"
    ]
    """<p>The category of the entity. The recognized categories are <code>GENERIC</code> or <code>BRAND_NAME</code>.</p>"""
    type: NotRequired[
        "capo_comprehendmedical.types.rx_norm_entity_type.RxNormEntityType"
    ]
    """<p> Describes the specific type of entity. For InferRxNorm, the recognized entity type is <code>MEDICATION</code>.</p>"""
    score: NotRequired["capo_comprehendmedical.types.float.Float"]
    """<p>The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.</p>"""
    begin_offset: NotRequired["capo_comprehendmedical.types.integer.Integer"]
    """<p>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.</p>"""
    end_offset: NotRequired["capo_comprehendmedical.types.integer.Integer"]
    """<p>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.</p>"""
    attributes: NotRequired[
        "capo_comprehendmedical.types.rx_norm_attribute_list.RxNormAttributeList"
    ]
    """<p>The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are <code>DOSAGE</code>, <code>DURATION</code>, <code>FORM</code>, <code>FREQUENCY</code>, <code>RATE</code>, <code>ROUTE_OR_MODE</code>, and <code>STRENGTH</code>.</p>"""
    traits: NotRequired[
        "capo_comprehendmedical.types.rx_norm_trait_list.RxNormTraitList"
    ]
    """<p>Contextual information for the entity.</p>"""
    rx_norm_concepts: NotRequired[
        "capo_comprehendmedical.types.rx_norm_concept_list.RxNormConceptList"
    ]
    """<p>The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.</p>"""

attributes instance-attribute

attributes: NotRequired[RxNormAttributeList]

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

begin_offset instance-attribute

begin_offset: NotRequired[Integer]

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.

category instance-attribute

category: NotRequired[RxNormEntityCategory]

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

end_offset instance-attribute

end_offset: NotRequired[Integer]

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.

id instance-attribute

id: NotRequired[Integer]

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

rx_norm_concepts instance-attribute

rx_norm_concepts: NotRequired[RxNormConceptList]

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

score instance-attribute

score: NotRequired[Float]

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

text instance-attribute

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

traits instance-attribute

traits: NotRequired[RxNormTraitList]

Contextual information for the entity.

type instance-attribute

type: NotRequired[RxNormEntityType]

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