pub struct EntityMention {
pub additional_info: Option<Vec<Feature>>,
pub certainty_assessment: Option<Feature>,
pub confidence: Option<f64>,
pub linked_entities: Option<Vec<LinkedEntity>>,
pub mention_id: Option<String>,
pub subject: Option<Feature>,
pub temporal_assessment: Option<Feature>,
pub text: Option<TextSpan>,
pub type_: Option<String>,
}
Expand description
An entity mention in the document.
This type is not used in any activity, and only used as part of another schema.
Fields§
§additional_info: Option<Vec<Feature>>
Additional information about the entity mention. For example, for an entity mention of type DATE
this can be its more specific date types from the following list: ADMISSION_DATE
, CONSULTATION_DATE
, DISCHARGE_DATE
, SERVICE_DATE
, VISIT_DATE
, DIAGNOSIS_DATE
, MED_STARTED_DATE
, MED_ENDED_DATE
, NOTE_DATE
, PROCEDURE_DATE
, RADIATION_STARTED_DATE
, RADIATION_ENDED_DATE
, STAGE_DATE
certainty_assessment: Option<Feature>
The certainty assessment of the entity mention. Its value is one of: LIKELY, SOMEWHAT_LIKELY, UNCERTAIN, SOMEWHAT_UNLIKELY, UNLIKELY, CONDITIONAL
confidence: Option<f64>
The model’s confidence in this entity mention annotation. A number between 0 and 1.
linked_entities: Option<Vec<LinkedEntity>>
linked_entities are candidate ontological concepts that this entity mention may refer to. They are sorted by decreasing confidence.
mention_id: Option<String>
mention_id uniquely identifies each entity mention in a single response.
subject: Option<Feature>
The subject this entity mention relates to. Its value is one of: PATIENT, FAMILY_MEMBER, OTHER
temporal_assessment: Option<Feature>
How this entity mention relates to the subject temporally. Its value is one of: CURRENT, CLINICAL_HISTORY, FAMILY_HISTORY, UPCOMING, ALLERGY
text: Option<TextSpan>
text is the location of the entity mention in the document.
type_: Option<String>
The semantic type of the entity: UNKNOWN_ENTITY_TYPE, ALONE, ANATOMICAL_STRUCTURE, ASSISTED_LIVING, BF_RESULT, BM_RESULT, BM_UNIT, BM_VALUE, BODY_FUNCTION, BODY_MEASUREMENT, COMPLIANT, DOESNOT_FOLLOWUP, FAMILY, FOLLOWSUP, LABORATORY_DATA, LAB_RESULT, LAB_UNIT, LAB_VALUE, MEDICAL_DEVICE, MEDICINE, MED_DOSE, MED_DURATION, MED_FORM, MED_FREQUENCY, MED_ROUTE, MED_STATUS, MED_STRENGTH, MED_TOTALDOSE, MED_UNIT, NON_COMPLIANT, OTHER_LIVINGSTATUS, PROBLEM, PROCEDURE, PROCEDURE_RESULT, PROC_METHOD, REASON_FOR_NONCOMPLIANCE, SEVERITY, SUBSTANCE_ABUSE, UNCLEAR_FOLLOWUP.
Trait Implementations§
source§impl Clone for EntityMention
impl Clone for EntityMention
source§fn clone(&self) -> EntityMention
fn clone(&self) -> EntityMention
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EntityMention
impl Debug for EntityMention
source§impl Default for EntityMention
impl Default for EntityMention
source§fn default() -> EntityMention
fn default() -> EntityMention
source§impl<'de> Deserialize<'de> for EntityMention
impl<'de> Deserialize<'de> for EntityMention
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for EntityMention
impl Serialize for EntityMention
impl Part for EntityMention
Auto Trait Implementations§
impl Freeze for EntityMention
impl RefUnwindSafe for EntityMention
impl Send for EntityMention
impl Sync for EntityMention
impl Unpin for EntityMention
impl UnwindSafe for EntityMention
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more