Interface RxNormEntity.Builder

  • Method Details

    • id

      The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.

      Parameters:
      id - The numeric identifier for the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • text

      The segment of input text extracted from which the entity was detected.

      Parameters:
      text - The segment of input text extracted from which the entity was detected.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • category

      RxNormEntity.Builder category(String category)

      The category of the entity. The recognized categories are GENERIC or BRAND_NAME.

      Parameters:
      category - The category of the entity. The recognized categories are GENERIC or BRAND_NAME.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • category

      The category of the entity. The recognized categories are GENERIC or BRAND_NAME.

      Parameters:
      category - The category of the entity. The recognized categories are GENERIC or BRAND_NAME.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      Describes the specific type of entity. For InferRxNorm, the recognized entity type is MEDICATION .

      Parameters:
      type - Describes the specific type of entity. For InferRxNorm, the recognized entity type is MEDICATION.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      Describes the specific type of entity. For InferRxNorm, the recognized entity type is MEDICATION .

      Parameters:
      type - Describes the specific type of entity. For InferRxNorm, the recognized entity type is MEDICATION.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • score

      The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.

      Parameters:
      score - The level of confidence that Amazon Comprehend Medical has in the accuracy of the detected entity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • beginOffset

      RxNormEntity.Builder beginOffset(Integer beginOffset)

      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.

      Parameters:
      beginOffset - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endOffset

      RxNormEntity.Builder endOffset(Integer endOffset)

      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.

      Parameters:
      endOffset - 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.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE, and STRENGTH.

      Parameters:
      attributes - The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE, and STRENGTH.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      RxNormEntity.Builder attributes(RxNormAttribute... attributes)

      The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE, and STRENGTH.

      Parameters:
      attributes - The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE, and STRENGTH.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • attributes

      The extracted attributes that relate to the entity. The attributes recognized by InferRxNorm are DOSAGE, DURATION, FORM, FREQUENCY, RATE, ROUTE_OR_MODE, and STRENGTH.

      This is a convenience method that creates an instance of the RxNormAttribute.Builder avoiding the need to create one manually via RxNormAttribute.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to attributes(List<RxNormAttribute>).

      Parameters:
      attributes - a consumer that will call methods on RxNormAttribute.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • traits

      Contextual information for the entity.

      Parameters:
      traits - Contextual information for the entity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • traits

      RxNormEntity.Builder traits(RxNormTrait... traits)

      Contextual information for the entity.

      Parameters:
      traits - Contextual information for the entity.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • traits

      Contextual information for the entity.

      This is a convenience method that creates an instance of the RxNormTrait.Builder avoiding the need to create one manually via RxNormTrait.builder() .

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to traits(List<RxNormTrait>).

      Parameters:
      traits - a consumer that will call methods on RxNormTrait.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • rxNormConcepts

      RxNormEntity.Builder rxNormConcepts(Collection<RxNormConcept> rxNormConcepts)

      The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.

      Parameters:
      rxNormConcepts - The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rxNormConcepts

      RxNormEntity.Builder rxNormConcepts(RxNormConcept... rxNormConcepts)

      The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.

      Parameters:
      rxNormConcepts - The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rxNormConcepts

      RxNormEntity.Builder rxNormConcepts(Consumer<RxNormConcept.Builder>... rxNormConcepts)

      The RxNorm concepts that the entity could refer to, along with a score indicating the likelihood of the match.

      This is a convenience method that creates an instance of the RxNormConcept.Builder avoiding the need to create one manually via RxNormConcept.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rxNormConcepts(List<RxNormConcept>).

      Parameters:
      rxNormConcepts - a consumer that will call methods on RxNormConcept.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: