@Generated(value="software.amazon.awssdk:codegen") public interface ComprehendMedicalClient extends SdkClient
builder()
method.
Comprehend Medical extracts structured information from unstructured clinical text. Use these actions to gain insight in your documents.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
static ComprehendMedicalClientBuilder |
builder()
Create a builder that can be used to configure and create a
ComprehendMedicalClient . |
static ComprehendMedicalClient |
create()
Create a
ComprehendMedicalClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default DetectEntitiesResponse |
detectEntities(Consumer<DetectEntitiesRequest.Builder> detectEntitiesRequest)
Inspects the clinical text for a variety of medical entities and returns specific information about them such as
entity category, location, and confidence score on that information .
|
default DetectEntitiesResponse |
detectEntities(DetectEntitiesRequest detectEntitiesRequest)
Inspects the clinical text for a variety of medical entities and returns specific information about them such as
entity category, location, and confidence score on that information .
|
default DetectPhiResponse |
detectPHI(Consumer<DetectPhiRequest.Builder> detectPhiRequest)
Inspects the clinical text for personal health information (PHI) entities and entity category, location, and
confidence score on that information.
|
default DetectPhiResponse |
detectPHI(DetectPhiRequest detectPhiRequest)
Inspects the clinical text for personal health information (PHI) entities and entity category, location, and
confidence score on that information.
|
static ServiceMetadata |
serviceMetadata() |
serviceName
close
static final String SERVICE_NAME
static ComprehendMedicalClient create()
ComprehendMedicalClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static ComprehendMedicalClientBuilder builder()
ComprehendMedicalClient
.default DetectEntitiesResponse detectEntities(DetectEntitiesRequest detectEntitiesRequest) throws InternalServerException, ServiceUnavailableException, TooManyRequestsException, InvalidRequestException, InvalidEncodingException, TextSizeLimitExceededException, AwsServiceException, SdkClientException, ComprehendMedicalException
Inspects the clinical text for a variety of medical entities and returns specific information about them such as entity category, location, and confidence score on that information .
detectEntitiesRequest
- InternalServerException
- An internal server error occurred. Retry your request.ServiceUnavailableException
- The Comprehend Medical service is temporarily unavailable. Please wait and then retry your request.TooManyRequestsException
- You have made too many requests within a short period of time. Wait for a short time and then try your
request again. Contact customer support for more information about a service limit increase.InvalidRequestException
- The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.InvalidEncodingException
- The input text was not in valid UTF-8 character encoding. Check your text then retry your request.TextSizeLimitExceededException
- The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller
document and then retry your request.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ComprehendMedicalException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DetectEntitiesResponse detectEntities(Consumer<DetectEntitiesRequest.Builder> detectEntitiesRequest) throws InternalServerException, ServiceUnavailableException, TooManyRequestsException, InvalidRequestException, InvalidEncodingException, TextSizeLimitExceededException, AwsServiceException, SdkClientException, ComprehendMedicalException
Inspects the clinical text for a variety of medical entities and returns specific information about them such as entity category, location, and confidence score on that information .
This is a convenience which creates an instance of the DetectEntitiesRequest.Builder
avoiding the need to
create one manually via DetectEntitiesRequest.builder()
detectEntitiesRequest
- A Consumer
that will call methods on DetectEntitiesRequest.Builder
to create a request.InternalServerException
- An internal server error occurred. Retry your request.ServiceUnavailableException
- The Comprehend Medical service is temporarily unavailable. Please wait and then retry your request.TooManyRequestsException
- You have made too many requests within a short period of time. Wait for a short time and then try your
request again. Contact customer support for more information about a service limit increase.InvalidRequestException
- The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.InvalidEncodingException
- The input text was not in valid UTF-8 character encoding. Check your text then retry your request.TextSizeLimitExceededException
- The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller
document and then retry your request.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ComprehendMedicalException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DetectPhiResponse detectPHI(DetectPhiRequest detectPhiRequest) throws InternalServerException, ServiceUnavailableException, TooManyRequestsException, InvalidRequestException, InvalidEncodingException, TextSizeLimitExceededException, AwsServiceException, SdkClientException, ComprehendMedicalException
Inspects the clinical text for personal health information (PHI) entities and entity category, location, and confidence score on that information.
detectPhiRequest
- InternalServerException
- An internal server error occurred. Retry your request.ServiceUnavailableException
- The Comprehend Medical service is temporarily unavailable. Please wait and then retry your request.TooManyRequestsException
- You have made too many requests within a short period of time. Wait for a short time and then try your
request again. Contact customer support for more information about a service limit increase.InvalidRequestException
- The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.InvalidEncodingException
- The input text was not in valid UTF-8 character encoding. Check your text then retry your request.TextSizeLimitExceededException
- The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller
document and then retry your request.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ComprehendMedicalException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
default DetectPhiResponse detectPHI(Consumer<DetectPhiRequest.Builder> detectPhiRequest) throws InternalServerException, ServiceUnavailableException, TooManyRequestsException, InvalidRequestException, InvalidEncodingException, TextSizeLimitExceededException, AwsServiceException, SdkClientException, ComprehendMedicalException
Inspects the clinical text for personal health information (PHI) entities and entity category, location, and confidence score on that information.
This is a convenience which creates an instance of the DetectPhiRequest.Builder
avoiding the need to
create one manually via DetectPhiRequest.builder()
detectPhiRequest
- A Consumer
that will call methods on DetectPHIRequest.Builder
to create a request.InternalServerException
- An internal server error occurred. Retry your request.ServiceUnavailableException
- The Comprehend Medical service is temporarily unavailable. Please wait and then retry your request.TooManyRequestsException
- You have made too many requests within a short period of time. Wait for a short time and then try your
request again. Contact customer support for more information about a service limit increase.InvalidRequestException
- The request that you made is invalid. Check your request to determine why it's invalid and then retry the
request.InvalidEncodingException
- The input text was not in valid UTF-8 character encoding. Check your text then retry your request.TextSizeLimitExceededException
- The size of the text you submitted exceeds the size limit. Reduce the size of the text or use a smaller
document and then retry your request.SdkException
- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException
- If any client side error occurs such as an IO related failure, failure to get credentials, etc.ComprehendMedicalException
- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException
static ServiceMetadata serviceMetadata()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.