Struct aws_sdk_comprehendmedical::types::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 Amazon 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 Amazon 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§
source§impl 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 Amazon 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) -> &[SnomedctAttribute]
pub fn attributes(&self) -> &[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.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .attributes.is_none()
.
sourcepub fn traits(&self) -> &[SnomedctTrait]
pub fn traits(&self) -> &[SnomedctTrait]
Contextual information for the entity.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .traits.is_none()
.
sourcepub fn snomedct_concepts(&self) -> &[SnomedctConcept]
pub fn snomedct_concepts(&self) -> &[SnomedctConcept]
The SNOMED concepts that the entity could refer to, along with a score indicating the likelihood of the match.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .snomedct_concepts.is_none()
.
source§impl SnomedctEntity
impl SnomedctEntity
sourcepub fn builder() -> SnomedctEntityBuilder
pub fn builder() -> SnomedctEntityBuilder
Creates a new builder-style object to manufacture SnomedctEntity
.
Trait Implementations§
source§impl Clone for SnomedctEntity
impl Clone for SnomedctEntity
source§fn clone(&self) -> SnomedctEntity
fn clone(&self) -> SnomedctEntity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SnomedctEntity
impl Debug for SnomedctEntity
source§impl PartialEq for SnomedctEntity
impl PartialEq for SnomedctEntity
source§fn eq(&self, other: &SnomedctEntity) -> bool
fn eq(&self, other: &SnomedctEntity) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SnomedctEntity
Auto Trait Implementations§
impl Freeze for SnomedctEntity
impl RefUnwindSafe for SnomedctEntity
impl Send for SnomedctEntity
impl Sync for SnomedctEntity
impl Unpin for SnomedctEntity
impl UnwindSafe for SnomedctEntity
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> 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