Interface InferRxNormResponse.Builder

    • Method Detail

      • entities

        InferRxNormResponse.Builder entities​(Collection<RxNormEntity> entities)

        The medication entities detected in the text linked to RxNorm concepts. If the action is successful, the service sends back an HTTP 200 response, as well as the entities detected.

        Parameters:
        entities - The medication entities detected in the text linked to RxNorm concepts. If the action is successful, the service sends back an HTTP 200 response, as well as the entities detected.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • entities

        InferRxNormResponse.Builder entities​(RxNormEntity... entities)

        The medication entities detected in the text linked to RxNorm concepts. If the action is successful, the service sends back an HTTP 200 response, as well as the entities detected.

        Parameters:
        entities - The medication entities detected in the text linked to RxNorm concepts. If the action is successful, the service sends back an HTTP 200 response, as well as the entities detected.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • entities

        InferRxNormResponse.Builder entities​(Consumer<RxNormEntity.Builder>... entities)

        The medication entities detected in the text linked to RxNorm concepts. If the action is successful, the service sends back an HTTP 200 response, as well as the entities detected.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #entities(List).

        Parameters:
        entities - a consumer that will call methods on RxNormEntity.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #entities(java.util.Collection)
      • paginationToken

        InferRxNormResponse.Builder paginationToken​(String paginationToken)

        If the result of the previous request to InferRxNorm was truncated, include the PaginationToken to fetch the next page of medication entities.

        Parameters:
        paginationToken - If the result of the previous request to InferRxNorm was truncated, include the PaginationToken to fetch the next page of medication entities.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • modelVersion

        InferRxNormResponse.Builder modelVersion​(String modelVersion)

        The version of the model used to analyze the documents, in the format n.n.n You can use this information to track the model used for a particular batch of documents.

        Parameters:
        modelVersion - The version of the model used to analyze the documents, in the format n.n.n You can use this information to track the model used for a particular batch of documents.
        Returns:
        Returns a reference to this object so that method calls can be chained together.