pub struct MmiOutput {
    pub id: String,
    pub mmi: String,
    pub score: f64,
    pub name: String,
    pub cui: String,
    pub semantic_types: Vec<String>,
    pub triggers: Vec<Trigger>,
    pub location: Location,
    pub positional_info: Vec<Position>,
    pub tree_codes: Option<Vec<String>>,
}
Expand description

Main struct for entire library. Represents an entire fielded MMI record as one type.

Fields

id: String

unique identifier

mmi: String

always MMI

score: f64

score of concept relevance, 0-1000, 1000 being perfect

name: String

name of the concept matched

cui: String

CUI for identified UMLS concept

semantic_types: Vec<String>

Semantic Type abbreviations

triggers: Vec<Trigger>

Triggers for MMI to flag this concept

location: Location

Location of concept

positional_info: Vec<Position>

Positional information of concept

tree_codes: Option<Vec<String>>

Optional MeSH tree code(s)

Implementations

Parses a hashmap into MMiOutput field types. Utilizes all other functionality defined in this module to assemble/parse each field into its appropriate format and types.

While this function is useful for building MmiOutput types, parse_mmi will probably be much more practical since it accepts a string reference and does the field tagging/mapping for you.

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.