pub struct Trigger {
    pub name: String,
    pub loc: Location,
    pub loc_position: i32,
    pub text: String,
    pub part_of_speech: String,
    pub negation: bool,
}
Expand description

Struct to represent Trigger information.

Fields

name: String

UMLS concept name

loc: Location

location of text

loc_position: i32

number of the utterance within the location (starting with 1)

text: String

the actual text

part_of_speech: String

determined by MedPost Tagger or Lexical Lookup

negation: bool

True if text is considered negated by MetaMap

Implementations

New function to initialize a Trigger.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.