#[non_exhaustive]pub struct Icd10CmAttributeBuilder { /* private fields */ }
Expand description
A builder for Icd10CmAttribute
.
Implementations§
source§impl Icd10CmAttributeBuilder
impl Icd10CmAttributeBuilder
sourcepub fn type(self, input: Icd10CmAttributeType) -> Self
pub fn type(self, input: Icd10CmAttributeType) -> Self
The type of attribute. InferICD10CM detects entities of the type DX_NAME
.
sourcepub fn set_type(self, input: Option<Icd10CmAttributeType>) -> Self
pub fn set_type(self, input: Option<Icd10CmAttributeType>) -> Self
The type of attribute. InferICD10CM detects entities of the type DX_NAME
.
sourcepub fn get_type(&self) -> &Option<Icd10CmAttributeType>
pub fn get_type(&self) -> &Option<Icd10CmAttributeType>
The type of attribute. InferICD10CM detects entities of the type DX_NAME
.
sourcepub fn score(self, input: f32) -> Self
pub fn score(self, input: f32) -> Self
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
sourcepub fn set_score(self, input: Option<f32>) -> Self
pub fn set_score(self, input: Option<f32>) -> Self
The level of confidence that Amazon Comprehend Medical has that the segment of text is correctly recognized as an attribute.
sourcepub fn get_score(&self) -> &Option<f32>
pub fn get_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, input: f32) -> Self
pub fn relationship_score(self, input: f32) -> Self
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.
sourcepub fn set_relationship_score(self, input: Option<f32>) -> Self
pub fn set_relationship_score(self, input: Option<f32>) -> Self
The level of confidence that Amazon Comprehend Medical has that this attribute is correctly related to this entity.
sourcepub fn get_relationship_score(&self) -> &Option<f32>
pub fn get_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 id(self, input: i32) -> Self
pub fn id(self, input: i32) -> Self
The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
sourcepub fn set_id(self, input: Option<i32>) -> Self
pub fn set_id(self, input: Option<i32>) -> Self
The numeric identifier for this attribute. This is a monotonically increasing id unique within this response rather than a global unique identifier.
sourcepub fn get_id(&self) -> &Option<i32>
pub fn get_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, input: i32) -> Self
pub fn begin_offset(self, input: i32) -> Self
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 set_begin_offset(self, input: Option<i32>) -> Self
pub fn set_begin_offset(self, input: Option<i32>) -> Self
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 get_begin_offset(&self) -> &Option<i32>
pub fn get_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, input: i32) -> Self
pub fn end_offset(self, input: i32) -> Self
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 set_end_offset(self, input: Option<i32>) -> Self
pub fn set_end_offset(self, input: Option<i32>) -> Self
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 get_end_offset(&self) -> &Option<i32>
pub fn get_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 text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
The segment of input text which contains the detected attribute.
sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
The segment of input text which contains the detected attribute.
sourcepub fn get_text(&self) -> &Option<String>
pub fn get_text(&self) -> &Option<String>
The segment of input text which contains the detected attribute.
sourcepub fn traits(self, input: Icd10CmTrait) -> Self
pub fn traits(self, input: Icd10CmTrait) -> Self
Appends an item to traits
.
To override the contents of this collection use set_traits
.
The contextual information for the attribute. The traits recognized by InferICD10CM are DIAGNOSIS
, SIGN
, SYMPTOM
, and NEGATION
.
sourcepub fn set_traits(self, input: Option<Vec<Icd10CmTrait>>) -> Self
pub fn set_traits(self, input: Option<Vec<Icd10CmTrait>>) -> Self
The contextual information for the attribute. The traits recognized by InferICD10CM are DIAGNOSIS
, SIGN
, SYMPTOM
, and NEGATION
.
sourcepub fn get_traits(&self) -> &Option<Vec<Icd10CmTrait>>
pub fn get_traits(&self) -> &Option<Vec<Icd10CmTrait>>
The contextual information for the attribute. The traits recognized by InferICD10CM are DIAGNOSIS
, SIGN
, SYMPTOM
, and NEGATION
.
sourcepub fn category(self, input: Icd10CmEntityType) -> Self
pub fn category(self, input: Icd10CmEntityType) -> Self
The category of attribute. Can be either of DX_NAME
or TIME_EXPRESSION
.
sourcepub fn set_category(self, input: Option<Icd10CmEntityType>) -> Self
pub fn set_category(self, input: Option<Icd10CmEntityType>) -> Self
The category of attribute. Can be either of DX_NAME
or TIME_EXPRESSION
.
sourcepub fn get_category(&self) -> &Option<Icd10CmEntityType>
pub fn get_category(&self) -> &Option<Icd10CmEntityType>
The category of attribute. Can be either of DX_NAME
or TIME_EXPRESSION
.
sourcepub fn relationship_type(self, input: Icd10CmRelationshipType) -> Self
pub fn relationship_type(self, input: Icd10CmRelationshipType) -> Self
The type of relationship between the entity and attribute. Type for the relationship can be either of OVERLAP
or SYSTEM_ORGAN_SITE
.
sourcepub fn set_relationship_type(
self,
input: Option<Icd10CmRelationshipType>
) -> Self
pub fn set_relationship_type( self, input: Option<Icd10CmRelationshipType> ) -> Self
The type of relationship between the entity and attribute. Type for the relationship can be either of OVERLAP
or SYSTEM_ORGAN_SITE
.
sourcepub fn get_relationship_type(&self) -> &Option<Icd10CmRelationshipType>
pub fn get_relationship_type(&self) -> &Option<Icd10CmRelationshipType>
The type of relationship between the entity and attribute. Type for the relationship can be either of OVERLAP
or SYSTEM_ORGAN_SITE
.
sourcepub fn build(self) -> Icd10CmAttribute
pub fn build(self) -> Icd10CmAttribute
Consumes the builder and constructs a Icd10CmAttribute
.
Trait Implementations§
source§impl Clone for Icd10CmAttributeBuilder
impl Clone for Icd10CmAttributeBuilder
source§fn clone(&self) -> Icd10CmAttributeBuilder
fn clone(&self) -> Icd10CmAttributeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Icd10CmAttributeBuilder
impl Debug for Icd10CmAttributeBuilder
source§impl Default for Icd10CmAttributeBuilder
impl Default for Icd10CmAttributeBuilder
source§fn default() -> Icd10CmAttributeBuilder
fn default() -> Icd10CmAttributeBuilder
source§impl PartialEq for Icd10CmAttributeBuilder
impl PartialEq for Icd10CmAttributeBuilder
source§fn eq(&self, other: &Icd10CmAttributeBuilder) -> bool
fn eq(&self, other: &Icd10CmAttributeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Icd10CmAttributeBuilder
Auto Trait Implementations§
impl Freeze for Icd10CmAttributeBuilder
impl RefUnwindSafe for Icd10CmAttributeBuilder
impl Send for Icd10CmAttributeBuilder
impl Sync for Icd10CmAttributeBuilder
impl Unpin for Icd10CmAttributeBuilder
impl UnwindSafe for Icd10CmAttributeBuilder
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