Smaws_Client_ComprehendMedical.DetectPHIInspects the clinical text for protected health information (PHI) entities and returns the entity category, location, and confidence score for each entity. Amazon Comprehend Medical only detects entities in English language texts.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidEncodingException of Types.invalid_encoding_exception
| `InvalidRequestException of Types.invalid_request_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `TextSizeLimitExceededException of Types.text_size_limit_exceeded_exception
| `TooManyRequestsException of Types.too_many_requests_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.detect_phi_request ->
(Types.detect_phi_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidEncodingException of Types.invalid_encoding_exception
| `InvalidRequestException of Types.invalid_request_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `TextSizeLimitExceededException of
Types.text_size_limit_exceeded_exception
| `TooManyRequestsException of Types.too_many_requests_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.detect_phi_request ->
(Types.detect_phi_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InternalServerException of Types.internal_server_exception
| `InvalidEncodingException of Types.invalid_encoding_exception
| `InvalidRequestException of Types.invalid_request_exception
| `ServiceUnavailableException of Types.service_unavailable_exception
| `TextSizeLimitExceededException of
Types.text_size_limit_exceeded_exception
| `TooManyRequestsException of Types.too_many_requests_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result