Struct aws_sdk_comprehendmedical::model::SnomedctEntity
source · [−]#[non_exhaustive]pub struct SnomedctEntity {
pub id: Option<i32>,
pub text: Option<String>,
pub category: Option<SnomedctEntityCategory>,
pub type: Option<SnomedctEntityType>,
pub score: Option<f32>,
pub begin_offset: Option<i32>,
pub end_offset: Option<i32>,
pub attributes: Option<Vec<SnomedctAttribute>>,
pub traits: Option<Vec<SnomedctTrait>>,
pub snomedct_concepts: Option<Vec<SnomedctConcept>>,
}
Expand description
The collection of medical entities extracted from the input text and their associated information. For each entity, the response provides the entity text, the entity category, where the entity text begins and ends, and the level of confidence that Comprehend Medical has in the detection and analysis. Attributes and traits of the entity are also returned.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: Option<i32>
The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
text: Option<String>
The segment of input text extracted as this entity.
category: Option<SnomedctEntityCategory>
The category of the detected entity. Possible categories are MEDICAL_CONDITION, ANATOMY, or TEST_TREATMENT_PROCEDURE.
type: Option<SnomedctEntityType>
Describes the specific type of entity with category of entities. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE, TEST_NAME, TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, or TREATMENT_NAME.
score: Option<f32>
The level of confidence that Comprehend Medical has in the accuracy of the detected entity.
begin_offset: Option<i32>
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.
end_offset: Option<i32>
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.
attributes: Option<Vec<SnomedctAttribute>>
An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as the dosage of a medication taken.
traits: Option<Vec<SnomedctTrait>>
Contextual information for the entity.
snomedct_concepts: Option<Vec<SnomedctConcept>>
The SNOMED concepts that the entity could refer to, along with a score indicating the likelihood of the match.
Implementations
sourceimpl SnomedctEntity
impl SnomedctEntity
sourcepub fn id(&self) -> Option<i32>
pub fn id(&self) -> Option<i32>
The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
sourcepub fn category(&self) -> Option<&SnomedctEntityCategory>
pub fn category(&self) -> Option<&SnomedctEntityCategory>
The category of the detected entity. Possible categories are MEDICAL_CONDITION, ANATOMY, or TEST_TREATMENT_PROCEDURE.
sourcepub fn type(&self) -> Option<&SnomedctEntityType>
pub fn type(&self) -> Option<&SnomedctEntityType>
Describes the specific type of entity with category of entities. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE, TEST_NAME, TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, or TREATMENT_NAME.
sourcepub fn score(&self) -> Option<f32>
pub fn score(&self) -> Option<f32>
The level of confidence that Comprehend Medical has in the accuracy of the detected entity.
sourcepub fn begin_offset(&self) -> Option<i32>
pub fn begin_offset(&self) -> Option<i32>
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.
sourcepub fn end_offset(&self) -> Option<i32>
pub fn end_offset(&self) -> Option<i32>
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.
sourcepub fn attributes(&self) -> Option<&[SnomedctAttribute]>
pub fn attributes(&self) -> Option<&[SnomedctAttribute]>
An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as the dosage of a medication taken.
sourcepub fn snomedct_concepts(&self) -> Option<&[SnomedctConcept]>
pub fn snomedct_concepts(&self) -> Option<&[SnomedctConcept]>
The SNOMED concepts that the entity could refer to, along with a score indicating the likelihood of the match.
sourceimpl SnomedctEntity
impl SnomedctEntity
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SnomedctEntity
Trait Implementations
sourceimpl Clone for SnomedctEntity
impl Clone for SnomedctEntity
sourcefn clone(&self) -> SnomedctEntity
fn clone(&self) -> SnomedctEntity
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SnomedctEntity
impl Debug for SnomedctEntity
sourceimpl PartialEq<SnomedctEntity> for SnomedctEntity
impl PartialEq<SnomedctEntity> for SnomedctEntity
sourcefn eq(&self, other: &SnomedctEntity) -> bool
fn eq(&self, other: &SnomedctEntity) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SnomedctEntity) -> bool
fn ne(&self, other: &SnomedctEntity) -> bool
This method tests for !=
.
impl StructuralPartialEq for SnomedctEntity
Auto Trait Implementations
impl RefUnwindSafe for SnomedctEntity
impl Send for SnomedctEntity
impl Sync for SnomedctEntity
impl Unpin for SnomedctEntity
impl UnwindSafe for SnomedctEntity
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more