#[non_exhaustive]pub struct SnomedctAttribute {
pub category: Option<SnomedctEntityCategory>,
pub type: Option<SnomedctAttributeType>,
pub score: Option<f32>,
pub relationship_score: Option<f32>,
pub relationship_type: Option<SnomedctRelationshipType>,
pub id: Option<i32>,
pub begin_offset: Option<i32>,
pub end_offset: Option<i32>,
pub text: Option<String>,
pub traits: Option<Vec<SnomedctTrait>>,
pub snomedct_concepts: Option<Vec<SnomedctConcept>>,
}
Expand description
The extracted attributes that relate to an entity. 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.
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.category: Option<SnomedctEntityCategory>
The category of the detected attribute. Possible categories include MEDICAL_CONDITION, ANATOMY, and TEST_TREATMENT_PROCEDURE.
type: Option<SnomedctAttributeType>
The type of attribute. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE,TEST_NAME, TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, and TREATMENT_NAME.
score: Option<f32>
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
relationship_score: Option<f32>
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.
relationship_type: Option<SnomedctRelationshipType>
The type of relationship that exists between the entity and the related attribute.
id: Option<i32>
The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
begin_offset: Option<i32>
The 0-based character offset in the input text that shows where the attribute 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 attribute ends. The offset returns the UTF-8 code point in the string.
text: Option<String>
The segment of input text extracted as this attribute.
traits: Option<Vec<SnomedctTrait>>
Contextual information for an attribute. Examples include signs, symptoms, diagnosis, and negation.
snomedct_concepts: Option<Vec<SnomedctConcept>>
The SNOMED-CT concepts specific to an attribute, along with a score indicating the likelihood of the match.
Implementations§
source§impl SnomedctAttribute
impl SnomedctAttribute
sourcepub fn category(&self) -> Option<&SnomedctEntityCategory>
pub fn category(&self) -> Option<&SnomedctEntityCategory>
The category of the detected attribute. Possible categories include MEDICAL_CONDITION, ANATOMY, and TEST_TREATMENT_PROCEDURE.
sourcepub fn type(&self) -> Option<&SnomedctAttributeType>
pub fn type(&self) -> Option<&SnomedctAttributeType>
The type of attribute. Possible types include DX_NAME, ACUITY, DIRECTION, SYSTEM_ORGAN_SITE,TEST_NAME, TEST_VALUE, TEST_UNIT, PROCEDURE_NAME, and TREATMENT_NAME.
sourcepub fn score(&self) -> Option<f32>
pub fn score(&self) -> Option<f32>
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
sourcepub fn relationship_score(&self) -> Option<f32>
pub fn relationship_score(&self) -> Option<f32>
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.
sourcepub fn relationship_type(&self) -> Option<&SnomedctRelationshipType>
pub fn relationship_type(&self) -> Option<&SnomedctRelationshipType>
The type of relationship that exists between the entity and the related attribute.
sourcepub fn id(&self) -> Option<i32>
pub fn id(&self) -> Option<i32>
The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
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 attribute 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 attribute ends. The offset returns the UTF-8 code point in the string.
sourcepub fn traits(&self) -> &[SnomedctTrait]
pub fn traits(&self) -> &[SnomedctTrait]
Contextual information for an attribute. Examples include signs, symptoms, diagnosis, and negation.
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-CT concepts specific to an attribute, 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 SnomedctAttribute
impl SnomedctAttribute
sourcepub fn builder() -> SnomedctAttributeBuilder
pub fn builder() -> SnomedctAttributeBuilder
Creates a new builder-style object to manufacture SnomedctAttribute
.
Trait Implementations§
source§impl Clone for SnomedctAttribute
impl Clone for SnomedctAttribute
source§fn clone(&self) -> SnomedctAttribute
fn clone(&self) -> SnomedctAttribute
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SnomedctAttribute
impl Debug for SnomedctAttribute
source§impl PartialEq for SnomedctAttribute
impl PartialEq for SnomedctAttribute
source§fn eq(&self, other: &SnomedctAttribute) -> bool
fn eq(&self, other: &SnomedctAttribute) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SnomedctAttribute
Auto Trait Implementations§
impl Freeze for SnomedctAttribute
impl RefUnwindSafe for SnomedctAttribute
impl Send for SnomedctAttribute
impl Sync for SnomedctAttribute
impl Unpin for SnomedctAttribute
impl UnwindSafe for SnomedctAttribute
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