import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DetectPHIRequest, DetectPHIResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DetectPHICommand}. */ export interface DetectPHICommandInput extends DetectPHIRequest { } /** * @public * * The output of {@link DetectPHICommand}. */ export interface DetectPHICommandOutput extends DetectPHIResponse, __MetadataBearer { } declare const DetectPHICommand_base: { new (input: DetectPHICommandInput): import("@smithy/core/client").CommandImpl; new (input: DetectPHICommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Inspects 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.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ComprehendMedicalClient, DetectPHICommand } from "@aws-sdk/client-comprehendmedical"; // ES Modules import * // const { ComprehendMedicalClient, DetectPHICommand } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import * // import type { ComprehendMedicalClientConfig } from "@aws-sdk/client-comprehendmedical"; * const config = {}; // type is ComprehendMedicalClientConfig * const client = new ComprehendMedicalClient(config); * const input = { // DetectPHIRequest * Text: "STRING_VALUE", // required * }; * const command = new DetectPHICommand(input); * const response = await client.send(command); * // { // DetectPHIResponse * // Entities: [ // EntityList // required * // { // Entity * // Id: Number("int"), * // BeginOffset: Number("int"), * // EndOffset: Number("int"), * // Score: Number("float"), * // Text: "STRING_VALUE", * // Category: "MEDICATION" || "MEDICAL_CONDITION" || "PROTECTED_HEALTH_INFORMATION" || "TEST_TREATMENT_PROCEDURE" || "ANATOMY" || "TIME_EXPRESSION" || "BEHAVIORAL_ENVIRONMENTAL_SOCIAL", * // Type: "NAME" || "DX_NAME" || "DOSAGE" || "ROUTE_OR_MODE" || "FORM" || "FREQUENCY" || "DURATION" || "GENERIC_NAME" || "BRAND_NAME" || "STRENGTH" || "RATE" || "ACUITY" || "TEST_NAME" || "TEST_VALUE" || "TEST_UNITS" || "TEST_UNIT" || "PROCEDURE_NAME" || "TREATMENT_NAME" || "DATE" || "AGE" || "CONTACT_POINT" || "PHONE_OR_FAX" || "EMAIL" || "IDENTIFIER" || "ID" || "URL" || "ADDRESS" || "PROFESSION" || "SYSTEM_ORGAN_SITE" || "DIRECTION" || "QUALITY" || "QUANTITY" || "TIME_EXPRESSION" || "TIME_TO_MEDICATION_NAME" || "TIME_TO_DX_NAME" || "TIME_TO_TEST_NAME" || "TIME_TO_PROCEDURE_NAME" || "TIME_TO_TREATMENT_NAME" || "AMOUNT" || "GENDER" || "RACE_ETHNICITY" || "ALLERGIES" || "TOBACCO_USE" || "ALCOHOL_CONSUMPTION" || "REC_DRUG_USE", * // Traits: [ // TraitList * // { // Trait * // Name: "SIGN" || "SYMPTOM" || "DIAGNOSIS" || "NEGATION" || "PERTAINS_TO_FAMILY" || "HYPOTHETICAL" || "LOW_CONFIDENCE" || "PAST_HISTORY" || "FUTURE", * // Score: Number("float"), * // }, * // ], * // Attributes: [ // AttributeList * // { // Attribute * // Type: "NAME" || "DX_NAME" || "DOSAGE" || "ROUTE_OR_MODE" || "FORM" || "FREQUENCY" || "DURATION" || "GENERIC_NAME" || "BRAND_NAME" || "STRENGTH" || "RATE" || "ACUITY" || "TEST_NAME" || "TEST_VALUE" || "TEST_UNITS" || "TEST_UNIT" || "PROCEDURE_NAME" || "TREATMENT_NAME" || "DATE" || "AGE" || "CONTACT_POINT" || "PHONE_OR_FAX" || "EMAIL" || "IDENTIFIER" || "ID" || "URL" || "ADDRESS" || "PROFESSION" || "SYSTEM_ORGAN_SITE" || "DIRECTION" || "QUALITY" || "QUANTITY" || "TIME_EXPRESSION" || "TIME_TO_MEDICATION_NAME" || "TIME_TO_DX_NAME" || "TIME_TO_TEST_NAME" || "TIME_TO_PROCEDURE_NAME" || "TIME_TO_TREATMENT_NAME" || "AMOUNT" || "GENDER" || "RACE_ETHNICITY" || "ALLERGIES" || "TOBACCO_USE" || "ALCOHOL_CONSUMPTION" || "REC_DRUG_USE", * // Score: Number("float"), * // RelationshipScore: Number("float"), * // RelationshipType: "EVERY" || "WITH_DOSAGE" || "ADMINISTERED_VIA" || "FOR" || "NEGATIVE" || "OVERLAP" || "DOSAGE" || "ROUTE_OR_MODE" || "FORM" || "FREQUENCY" || "DURATION" || "STRENGTH" || "RATE" || "ACUITY" || "TEST_VALUE" || "TEST_UNITS" || "TEST_UNIT" || "DIRECTION" || "SYSTEM_ORGAN_SITE" || "AMOUNT" || "USAGE" || "QUALITY", * // Id: Number("int"), * // BeginOffset: Number("int"), * // EndOffset: Number("int"), * // Text: "STRING_VALUE", * // Category: "MEDICATION" || "MEDICAL_CONDITION" || "PROTECTED_HEALTH_INFORMATION" || "TEST_TREATMENT_PROCEDURE" || "ANATOMY" || "TIME_EXPRESSION" || "BEHAVIORAL_ENVIRONMENTAL_SOCIAL", * // Traits: [ * // { * // Name: "SIGN" || "SYMPTOM" || "DIAGNOSIS" || "NEGATION" || "PERTAINS_TO_FAMILY" || "HYPOTHETICAL" || "LOW_CONFIDENCE" || "PAST_HISTORY" || "FUTURE", * // Score: Number("float"), * // }, * // ], * // }, * // ], * // }, * // ], * // PaginationToken: "STRING_VALUE", * // ModelVersion: "STRING_VALUE", // required * // }; * * ``` * * @param DetectPHICommandInput - {@link DetectPHICommandInput} * @returns {@link DetectPHICommandOutput} * @see {@link DetectPHICommandInput} for command's `input` shape. * @see {@link DetectPHICommandOutput} for command's `response` shape. * @see {@link ComprehendMedicalClientResolvedConfig | config} for ComprehendMedicalClient's `config` shape. * * @throws {@link InternalServerException} (server fault) *

An internal server error occurred. Retry your request.

* * @throws {@link InvalidEncodingException} (client fault) *

The input text was not in valid UTF-8 character encoding. Check your text then retry your * request.

* * @throws {@link InvalidRequestException} (client fault) *

The request that you made is invalid. Check your request to determine why it's invalid * and then retry the request.

* * @throws {@link ServiceUnavailableException} (server fault) *

The Amazon Comprehend Medical service is temporarily unavailable. Please wait and then retry your request. *

* * @throws {@link TextSizeLimitExceededException} (client fault) *

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.

* * @throws {@link TooManyRequestsException} (client fault) *

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.

* * @throws {@link ComprehendMedicalServiceException} *

Base exception class for all service exceptions from ComprehendMedical service.

* * * @public */ export declare class DetectPHICommand extends DetectPHICommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DetectPHIRequest; output: DetectPHIResponse; }; sdk: { input: DetectPHICommandInput; output: DetectPHICommandOutput; }; }; }