@aws-sdk/client-comprehendmedical 3.35.0 → 3.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -0
- package/dist-cjs/ComprehendMedical.js +0 -5
- package/dist-cjs/ComprehendMedicalClient.js +0 -10
- package/dist-cjs/commands/DescribeEntitiesDetectionV2JobCommand.js +0 -26
- package/dist-cjs/commands/DescribeICD10CMInferenceJobCommand.js +0 -26
- package/dist-cjs/commands/DescribePHIDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/DescribeRxNormInferenceJobCommand.js +0 -26
- package/dist-cjs/commands/DetectEntitiesCommand.js +0 -30
- package/dist-cjs/commands/DetectEntitiesV2Command.js +0 -34
- package/dist-cjs/commands/DetectPHICommand.js +0 -27
- package/dist-cjs/commands/InferICD10CMCommand.js +0 -28
- package/dist-cjs/commands/InferRxNormCommand.js +0 -27
- package/dist-cjs/commands/ListEntitiesDetectionV2JobsCommand.js +0 -25
- package/dist-cjs/commands/ListICD10CMInferenceJobsCommand.js +0 -25
- package/dist-cjs/commands/ListPHIDetectionJobsCommand.js +0 -26
- package/dist-cjs/commands/ListRxNormInferenceJobsCommand.js +0 -25
- package/dist-cjs/commands/StartEntitiesDetectionV2JobCommand.js +0 -26
- package/dist-cjs/commands/StartICD10CMInferenceJobCommand.js +0 -27
- package/dist-cjs/commands/StartPHIDetectionJobCommand.js +0 -26
- package/dist-cjs/commands/StartRxNormInferenceJobCommand.js +0 -27
- package/dist-cjs/commands/StopEntitiesDetectionV2JobCommand.js +0 -25
- package/dist-cjs/commands/StopICD10CMInferenceJobCommand.js +0 -25
- package/dist-cjs/commands/StopPHIDetectionJobCommand.js +0 -25
- package/dist-cjs/commands/StopRxNormInferenceJobCommand.js +0 -25
- package/dist-cjs/commands/index.js +24 -0
- package/dist-cjs/endpoints.js +1 -2
- package/dist-cjs/index.js +3 -24
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -199
- package/dist-cjs/protocols/Aws_json1_1.js +0 -6
- package/dist-cjs/runtimeConfig.browser.js +1 -6
- package/dist-cjs/runtimeConfig.js +2 -7
- package/dist-cjs/runtimeConfig.native.js +0 -4
- package/dist-cjs/runtimeConfig.shared.js +0 -4
- package/dist-es/ComprehendMedical.js +0 -1
- package/dist-es/ComprehendMedicalClient.js +0 -1
- package/dist-es/commands/DescribeEntitiesDetectionV2JobCommand.js +0 -1
- package/dist-es/commands/DescribeICD10CMInferenceJobCommand.js +0 -1
- package/dist-es/commands/DescribePHIDetectionJobCommand.js +0 -1
- package/dist-es/commands/DescribeRxNormInferenceJobCommand.js +0 -1
- package/dist-es/commands/DetectEntitiesCommand.js +0 -1
- package/dist-es/commands/DetectEntitiesV2Command.js +0 -1
- package/dist-es/commands/DetectPHICommand.js +0 -1
- package/dist-es/commands/InferICD10CMCommand.js +0 -1
- package/dist-es/commands/InferRxNormCommand.js +0 -1
- package/dist-es/commands/ListEntitiesDetectionV2JobsCommand.js +0 -1
- package/dist-es/commands/ListICD10CMInferenceJobsCommand.js +0 -1
- package/dist-es/commands/ListPHIDetectionJobsCommand.js +0 -1
- package/dist-es/commands/ListRxNormInferenceJobsCommand.js +0 -1
- package/dist-es/commands/StartEntitiesDetectionV2JobCommand.js +0 -1
- package/dist-es/commands/StartICD10CMInferenceJobCommand.js +0 -1
- package/dist-es/commands/StartPHIDetectionJobCommand.js +0 -1
- package/dist-es/commands/StartRxNormInferenceJobCommand.js +0 -1
- package/dist-es/commands/StopEntitiesDetectionV2JobCommand.js +0 -1
- package/dist-es/commands/StopICD10CMInferenceJobCommand.js +0 -1
- package/dist-es/commands/StopPHIDetectionJobCommand.js +0 -1
- package/dist-es/commands/StopRxNormInferenceJobCommand.js +0 -1
- package/dist-es/commands/index.js +21 -0
- package/dist-es/endpoints.js +1 -2
- package/dist-es/index.js +3 -24
- package/dist-es/models/index.js +0 -1
- package/dist-es/models/models_0.js +0 -1
- package/dist-es/protocols/Aws_json1_1.js +0 -1
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/runtimeConfig.native.js +0 -1
- package/dist-es/runtimeConfig.shared.js +0 -1
- package/dist-types/commands/index.d.ts +21 -0
- package/dist-types/index.d.ts +3 -23
- package/dist-types/ts3.4/ComprehendMedical.d.ts +22 -99
- package/dist-types/ts3.4/ComprehendMedicalClient.d.ts +24 -90
- package/dist-types/ts3.4/commands/DescribeEntitiesDetectionV2JobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeICD10CMInferenceJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribePHIDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DescribeRxNormInferenceJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/DetectEntitiesCommand.d.ts +2 -25
- package/dist-types/ts3.4/commands/DetectEntitiesV2Command.d.ts +2 -29
- package/dist-types/ts3.4/commands/DetectPHICommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/InferICD10CMCommand.d.ts +2 -23
- package/dist-types/ts3.4/commands/InferRxNormCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/ListEntitiesDetectionV2JobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListICD10CMInferenceJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/ListPHIDetectionJobsCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/ListRxNormInferenceJobsCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StartEntitiesDetectionV2JobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/StartICD10CMInferenceJobCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StartPHIDetectionJobCommand.d.ts +2 -21
- package/dist-types/ts3.4/commands/StartRxNormInferenceJobCommand.d.ts +2 -22
- package/dist-types/ts3.4/commands/StopEntitiesDetectionV2JobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopICD10CMInferenceJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopPHIDetectionJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/StopRxNormInferenceJobCommand.d.ts +2 -20
- package/dist-types/ts3.4/commands/index.d.ts +21 -0
- package/dist-types/ts3.4/index.d.ts +3 -23
- package/dist-types/ts3.4/models/models_0.d.ts +273 -985
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +33 -30
- package/dist-cjs/ComprehendMedical.js.map +0 -1
- package/dist-cjs/ComprehendMedicalClient.js.map +0 -1
- package/dist-cjs/commands/DescribeEntitiesDetectionV2JobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeICD10CMInferenceJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribePHIDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/DescribeRxNormInferenceJobCommand.js.map +0 -1
- package/dist-cjs/commands/DetectEntitiesCommand.js.map +0 -1
- package/dist-cjs/commands/DetectEntitiesV2Command.js.map +0 -1
- package/dist-cjs/commands/DetectPHICommand.js.map +0 -1
- package/dist-cjs/commands/InferICD10CMCommand.js.map +0 -1
- package/dist-cjs/commands/InferRxNormCommand.js.map +0 -1
- package/dist-cjs/commands/ListEntitiesDetectionV2JobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListICD10CMInferenceJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListPHIDetectionJobsCommand.js.map +0 -1
- package/dist-cjs/commands/ListRxNormInferenceJobsCommand.js.map +0 -1
- package/dist-cjs/commands/StartEntitiesDetectionV2JobCommand.js.map +0 -1
- package/dist-cjs/commands/StartICD10CMInferenceJobCommand.js.map +0 -1
- package/dist-cjs/commands/StartPHIDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StartRxNormInferenceJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopEntitiesDetectionV2JobCommand.js.map +0 -1
- package/dist-cjs/commands/StopICD10CMInferenceJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopPHIDetectionJobCommand.js.map +0 -1
- package/dist-cjs/commands/StopRxNormInferenceJobCommand.js.map +0 -1
- package/dist-cjs/endpoints.js.map +0 -1
- package/dist-cjs/index.js.map +0 -1
- package/dist-cjs/models/index.js.map +0 -1
- package/dist-cjs/models/models_0.js.map +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist-cjs/runtimeConfig.browser.js.map +0 -1
- package/dist-cjs/runtimeConfig.js.map +0 -1
- package/dist-cjs/runtimeConfig.native.js.map +0 -1
- package/dist-cjs/runtimeConfig.shared.js.map +0 -1
- package/dist-es/ComprehendMedical.js.map +0 -1
- package/dist-es/ComprehendMedicalClient.js.map +0 -1
- package/dist-es/commands/DescribeEntitiesDetectionV2JobCommand.js.map +0 -1
- package/dist-es/commands/DescribeICD10CMInferenceJobCommand.js.map +0 -1
- package/dist-es/commands/DescribePHIDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/DescribeRxNormInferenceJobCommand.js.map +0 -1
- package/dist-es/commands/DetectEntitiesCommand.js.map +0 -1
- package/dist-es/commands/DetectEntitiesV2Command.js.map +0 -1
- package/dist-es/commands/DetectPHICommand.js.map +0 -1
- package/dist-es/commands/InferICD10CMCommand.js.map +0 -1
- package/dist-es/commands/InferRxNormCommand.js.map +0 -1
- package/dist-es/commands/ListEntitiesDetectionV2JobsCommand.js.map +0 -1
- package/dist-es/commands/ListICD10CMInferenceJobsCommand.js.map +0 -1
- package/dist-es/commands/ListPHIDetectionJobsCommand.js.map +0 -1
- package/dist-es/commands/ListRxNormInferenceJobsCommand.js.map +0 -1
- package/dist-es/commands/StartEntitiesDetectionV2JobCommand.js.map +0 -1
- package/dist-es/commands/StartICD10CMInferenceJobCommand.js.map +0 -1
- package/dist-es/commands/StartPHIDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StartRxNormInferenceJobCommand.js.map +0 -1
- package/dist-es/commands/StopEntitiesDetectionV2JobCommand.js.map +0 -1
- package/dist-es/commands/StopICD10CMInferenceJobCommand.js.map +0 -1
- package/dist-es/commands/StopPHIDetectionJobCommand.js.map +0 -1
- package/dist-es/commands/StopRxNormInferenceJobCommand.js.map +0 -1
- package/dist-es/endpoints.js.map +0 -1
- package/dist-es/index.js.map +0 -1
- package/dist-es/models/index.js.map +0 -1
- package/dist-es/models/models_0.js.map +0 -1
- package/dist-es/protocols/Aws_json1_1.js.map +0 -1
- package/dist-es/runtimeConfig.browser.js.map +0 -1
- package/dist-es/runtimeConfig.js.map +0 -1
- package/dist-es/runtimeConfig.native.js.map +0 -1
- package/dist-es/runtimeConfig.shared.js.map +0 -1
- package/jest.config.js +0 -4
- package/src/ComprehendMedical.ts +0 -795
- package/src/ComprehendMedicalClient.ts +0 -348
- package/src/commands/DescribeEntitiesDetectionV2JobCommand.ts +0 -108
- package/src/commands/DescribeICD10CMInferenceJobCommand.ts +0 -105
- package/src/commands/DescribePHIDetectionJobCommand.ts +0 -100
- package/src/commands/DescribeRxNormInferenceJobCommand.ts +0 -103
- package/src/commands/DetectEntitiesCommand.ts +0 -104
- package/src/commands/DetectEntitiesV2Command.ts +0 -108
- package/src/commands/DetectPHICommand.ts +0 -98
- package/src/commands/InferICD10CMCommand.ts +0 -102
- package/src/commands/InferRxNormCommand.ts +0 -101
- package/src/commands/ListEntitiesDetectionV2JobsCommand.ts +0 -104
- package/src/commands/ListICD10CMInferenceJobsCommand.ts +0 -99
- package/src/commands/ListPHIDetectionJobsCommand.ts +0 -100
- package/src/commands/ListRxNormInferenceJobsCommand.ts +0 -99
- package/src/commands/StartEntitiesDetectionV2JobCommand.ts +0 -105
- package/src/commands/StartICD10CMInferenceJobCommand.ts +0 -101
- package/src/commands/StartPHIDetectionJobCommand.ts +0 -100
- package/src/commands/StartRxNormInferenceJobCommand.ts +0 -101
- package/src/commands/StopEntitiesDetectionV2JobCommand.ts +0 -102
- package/src/commands/StopICD10CMInferenceJobCommand.ts +0 -99
- package/src/commands/StopPHIDetectionJobCommand.ts +0 -99
- package/src/commands/StopRxNormInferenceJobCommand.ts +0 -99
- package/src/endpoints.ts +0 -77
- package/src/index.ts +0 -24
- package/src/models/index.ts +0 -1
- package/src/models/models_0.ts +0 -2054
- package/src/protocols/Aws_json1_1.ts +0 -3273
- package/src/runtimeConfig.browser.ts +0 -41
- package/src/runtimeConfig.native.ts +0 -17
- package/src/runtimeConfig.shared.ts +0 -17
- package/src/runtimeConfig.ts +0 -46
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -33
- package/tsconfig.types.json +0 -9
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
ComprehendMedicalClientResolvedConfig,
|
|
16
|
-
ServiceInputTypes,
|
|
17
|
-
ServiceOutputTypes,
|
|
18
|
-
} from "../ComprehendMedicalClient";
|
|
19
|
-
import { DescribeRxNormInferenceJobRequest, DescribeRxNormInferenceJobResponse } from "../models/models_0";
|
|
20
|
-
import {
|
|
21
|
-
deserializeAws_json1_1DescribeRxNormInferenceJobCommand,
|
|
22
|
-
serializeAws_json1_1DescribeRxNormInferenceJobCommand,
|
|
23
|
-
} from "../protocols/Aws_json1_1";
|
|
24
|
-
|
|
25
|
-
export interface DescribeRxNormInferenceJobCommandInput extends DescribeRxNormInferenceJobRequest {}
|
|
26
|
-
export interface DescribeRxNormInferenceJobCommandOutput extends DescribeRxNormInferenceJobResponse, __MetadataBearer {}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* <p>Gets the properties associated with an InferRxNorm job. Use this operation to get the
|
|
30
|
-
* status of an inference job.</p>
|
|
31
|
-
* @example
|
|
32
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
-
* ```javascript
|
|
34
|
-
* import { ComprehendMedicalClient, DescribeRxNormInferenceJobCommand } from "@aws-sdk/client-comprehendmedical"; // ES Modules import
|
|
35
|
-
* // const { ComprehendMedicalClient, DescribeRxNormInferenceJobCommand } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import
|
|
36
|
-
* const client = new ComprehendMedicalClient(config);
|
|
37
|
-
* const command = new DescribeRxNormInferenceJobCommand(input);
|
|
38
|
-
* const response = await client.send(command);
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* @see {@link DescribeRxNormInferenceJobCommandInput} for command's `input` shape.
|
|
42
|
-
* @see {@link DescribeRxNormInferenceJobCommandOutput} for command's `response` shape.
|
|
43
|
-
* @see {@link ComprehendMedicalClientResolvedConfig | config} for command's `input` shape.
|
|
44
|
-
*
|
|
45
|
-
*/
|
|
46
|
-
export class DescribeRxNormInferenceJobCommand extends $Command<
|
|
47
|
-
DescribeRxNormInferenceJobCommandInput,
|
|
48
|
-
DescribeRxNormInferenceJobCommandOutput,
|
|
49
|
-
ComprehendMedicalClientResolvedConfig
|
|
50
|
-
> {
|
|
51
|
-
// Start section: command_properties
|
|
52
|
-
// End section: command_properties
|
|
53
|
-
|
|
54
|
-
constructor(readonly input: DescribeRxNormInferenceJobCommandInput) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
// End section: command_constructor
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(
|
|
64
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
65
|
-
configuration: ComprehendMedicalClientResolvedConfig,
|
|
66
|
-
options?: __HttpHandlerOptions
|
|
67
|
-
): Handler<DescribeRxNormInferenceJobCommandInput, DescribeRxNormInferenceJobCommandOutput> {
|
|
68
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
69
|
-
|
|
70
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
71
|
-
|
|
72
|
-
const { logger } = configuration;
|
|
73
|
-
const clientName = "ComprehendMedicalClient";
|
|
74
|
-
const commandName = "DescribeRxNormInferenceJobCommand";
|
|
75
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
76
|
-
logger,
|
|
77
|
-
clientName,
|
|
78
|
-
commandName,
|
|
79
|
-
inputFilterSensitiveLog: DescribeRxNormInferenceJobRequest.filterSensitiveLog,
|
|
80
|
-
outputFilterSensitiveLog: DescribeRxNormInferenceJobResponse.filterSensitiveLog,
|
|
81
|
-
};
|
|
82
|
-
const { requestHandler } = configuration;
|
|
83
|
-
return stack.resolve(
|
|
84
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
85
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
86
|
-
handlerExecutionContext
|
|
87
|
-
);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
private serialize(input: DescribeRxNormInferenceJobCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
91
|
-
return serializeAws_json1_1DescribeRxNormInferenceJobCommand(input, context);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private deserialize(
|
|
95
|
-
output: __HttpResponse,
|
|
96
|
-
context: __SerdeContext
|
|
97
|
-
): Promise<DescribeRxNormInferenceJobCommandOutput> {
|
|
98
|
-
return deserializeAws_json1_1DescribeRxNormInferenceJobCommand(output, context);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// Start section: command_body_extra
|
|
102
|
-
// End section: command_body_extra
|
|
103
|
-
}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
ComprehendMedicalClientResolvedConfig,
|
|
16
|
-
ServiceInputTypes,
|
|
17
|
-
ServiceOutputTypes,
|
|
18
|
-
} from "../ComprehendMedicalClient";
|
|
19
|
-
import { DetectEntitiesRequest, DetectEntitiesResponse } from "../models/models_0";
|
|
20
|
-
import {
|
|
21
|
-
deserializeAws_json1_1DetectEntitiesCommand,
|
|
22
|
-
serializeAws_json1_1DetectEntitiesCommand,
|
|
23
|
-
} from "../protocols/Aws_json1_1";
|
|
24
|
-
|
|
25
|
-
export interface DetectEntitiesCommandInput extends DetectEntitiesRequest {}
|
|
26
|
-
export interface DetectEntitiesCommandOutput extends DetectEntitiesResponse, __MetadataBearer {}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @deprecated
|
|
30
|
-
*
|
|
31
|
-
* <p>The <code>DetectEntities</code> operation is deprecated. You should use the <a>DetectEntitiesV2</a> operation instead.</p>
|
|
32
|
-
* <p> Inspects the clinical text for a variety of medical entities and returns specific
|
|
33
|
-
* information about them such as entity category, location, and confidence score on that
|
|
34
|
-
* information .</p>
|
|
35
|
-
* @example
|
|
36
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
37
|
-
* ```javascript
|
|
38
|
-
* import { ComprehendMedicalClient, DetectEntitiesCommand } from "@aws-sdk/client-comprehendmedical"; // ES Modules import
|
|
39
|
-
* // const { ComprehendMedicalClient, DetectEntitiesCommand } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import
|
|
40
|
-
* const client = new ComprehendMedicalClient(config);
|
|
41
|
-
* const command = new DetectEntitiesCommand(input);
|
|
42
|
-
* const response = await client.send(command);
|
|
43
|
-
* ```
|
|
44
|
-
*
|
|
45
|
-
* @see {@link DetectEntitiesCommandInput} for command's `input` shape.
|
|
46
|
-
* @see {@link DetectEntitiesCommandOutput} for command's `response` shape.
|
|
47
|
-
* @see {@link ComprehendMedicalClientResolvedConfig | config} for command's `input` shape.
|
|
48
|
-
*
|
|
49
|
-
*/
|
|
50
|
-
export class DetectEntitiesCommand extends $Command<
|
|
51
|
-
DetectEntitiesCommandInput,
|
|
52
|
-
DetectEntitiesCommandOutput,
|
|
53
|
-
ComprehendMedicalClientResolvedConfig
|
|
54
|
-
> {
|
|
55
|
-
// Start section: command_properties
|
|
56
|
-
// End section: command_properties
|
|
57
|
-
|
|
58
|
-
constructor(readonly input: DetectEntitiesCommandInput) {
|
|
59
|
-
// Start section: command_constructor
|
|
60
|
-
super();
|
|
61
|
-
// End section: command_constructor
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
resolveMiddleware(
|
|
68
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
69
|
-
configuration: ComprehendMedicalClientResolvedConfig,
|
|
70
|
-
options?: __HttpHandlerOptions
|
|
71
|
-
): Handler<DetectEntitiesCommandInput, DetectEntitiesCommandOutput> {
|
|
72
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
73
|
-
|
|
74
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
75
|
-
|
|
76
|
-
const { logger } = configuration;
|
|
77
|
-
const clientName = "ComprehendMedicalClient";
|
|
78
|
-
const commandName = "DetectEntitiesCommand";
|
|
79
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
80
|
-
logger,
|
|
81
|
-
clientName,
|
|
82
|
-
commandName,
|
|
83
|
-
inputFilterSensitiveLog: DetectEntitiesRequest.filterSensitiveLog,
|
|
84
|
-
outputFilterSensitiveLog: DetectEntitiesResponse.filterSensitiveLog,
|
|
85
|
-
};
|
|
86
|
-
const { requestHandler } = configuration;
|
|
87
|
-
return stack.resolve(
|
|
88
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
89
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
90
|
-
handlerExecutionContext
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
private serialize(input: DetectEntitiesCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
95
|
-
return serializeAws_json1_1DetectEntitiesCommand(input, context);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DetectEntitiesCommandOutput> {
|
|
99
|
-
return deserializeAws_json1_1DetectEntitiesCommand(output, context);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
// Start section: command_body_extra
|
|
103
|
-
// End section: command_body_extra
|
|
104
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
ComprehendMedicalClientResolvedConfig,
|
|
16
|
-
ServiceInputTypes,
|
|
17
|
-
ServiceOutputTypes,
|
|
18
|
-
} from "../ComprehendMedicalClient";
|
|
19
|
-
import { DetectEntitiesV2Request, DetectEntitiesV2Response } from "../models/models_0";
|
|
20
|
-
import {
|
|
21
|
-
deserializeAws_json1_1DetectEntitiesV2Command,
|
|
22
|
-
serializeAws_json1_1DetectEntitiesV2Command,
|
|
23
|
-
} from "../protocols/Aws_json1_1";
|
|
24
|
-
|
|
25
|
-
export interface DetectEntitiesV2CommandInput extends DetectEntitiesV2Request {}
|
|
26
|
-
export interface DetectEntitiesV2CommandOutput extends DetectEntitiesV2Response, __MetadataBearer {}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* <p>Inspects the clinical text for a variety of medical entities and returns specific
|
|
30
|
-
* information about them such as entity category, location, and confidence score on that
|
|
31
|
-
* information. Amazon Comprehend Medical only detects medical entities in English language
|
|
32
|
-
* texts.</p>
|
|
33
|
-
* <p>The <code>DetectEntitiesV2</code> operation replaces the <a>DetectEntities</a>
|
|
34
|
-
* operation. This new action uses a different model for determining the entities in your medical
|
|
35
|
-
* text and changes the way that some entities are returned in the output. You should use the
|
|
36
|
-
* <code>DetectEntitiesV2</code> operation in all new applications.</p>
|
|
37
|
-
* <p>The <code>DetectEntitiesV2</code> operation returns the <code>Acuity</code> and
|
|
38
|
-
* <code>Direction</code> entities as attributes instead of types. </p>
|
|
39
|
-
* @example
|
|
40
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
-
* ```javascript
|
|
42
|
-
* import { ComprehendMedicalClient, DetectEntitiesV2Command } from "@aws-sdk/client-comprehendmedical"; // ES Modules import
|
|
43
|
-
* // const { ComprehendMedicalClient, DetectEntitiesV2Command } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import
|
|
44
|
-
* const client = new ComprehendMedicalClient(config);
|
|
45
|
-
* const command = new DetectEntitiesV2Command(input);
|
|
46
|
-
* const response = await client.send(command);
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @see {@link DetectEntitiesV2CommandInput} for command's `input` shape.
|
|
50
|
-
* @see {@link DetectEntitiesV2CommandOutput} for command's `response` shape.
|
|
51
|
-
* @see {@link ComprehendMedicalClientResolvedConfig | config} for command's `input` shape.
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
export class DetectEntitiesV2Command extends $Command<
|
|
55
|
-
DetectEntitiesV2CommandInput,
|
|
56
|
-
DetectEntitiesV2CommandOutput,
|
|
57
|
-
ComprehendMedicalClientResolvedConfig
|
|
58
|
-
> {
|
|
59
|
-
// Start section: command_properties
|
|
60
|
-
// End section: command_properties
|
|
61
|
-
|
|
62
|
-
constructor(readonly input: DetectEntitiesV2CommandInput) {
|
|
63
|
-
// Start section: command_constructor
|
|
64
|
-
super();
|
|
65
|
-
// End section: command_constructor
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
resolveMiddleware(
|
|
72
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
73
|
-
configuration: ComprehendMedicalClientResolvedConfig,
|
|
74
|
-
options?: __HttpHandlerOptions
|
|
75
|
-
): Handler<DetectEntitiesV2CommandInput, DetectEntitiesV2CommandOutput> {
|
|
76
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
77
|
-
|
|
78
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
79
|
-
|
|
80
|
-
const { logger } = configuration;
|
|
81
|
-
const clientName = "ComprehendMedicalClient";
|
|
82
|
-
const commandName = "DetectEntitiesV2Command";
|
|
83
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
84
|
-
logger,
|
|
85
|
-
clientName,
|
|
86
|
-
commandName,
|
|
87
|
-
inputFilterSensitiveLog: DetectEntitiesV2Request.filterSensitiveLog,
|
|
88
|
-
outputFilterSensitiveLog: DetectEntitiesV2Response.filterSensitiveLog,
|
|
89
|
-
};
|
|
90
|
-
const { requestHandler } = configuration;
|
|
91
|
-
return stack.resolve(
|
|
92
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
93
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
94
|
-
handlerExecutionContext
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
private serialize(input: DetectEntitiesV2CommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
99
|
-
return serializeAws_json1_1DetectEntitiesV2Command(input, context);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DetectEntitiesV2CommandOutput> {
|
|
103
|
-
return deserializeAws_json1_1DetectEntitiesV2Command(output, context);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// Start section: command_body_extra
|
|
107
|
-
// End section: command_body_extra
|
|
108
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
ComprehendMedicalClientResolvedConfig,
|
|
16
|
-
ServiceInputTypes,
|
|
17
|
-
ServiceOutputTypes,
|
|
18
|
-
} from "../ComprehendMedicalClient";
|
|
19
|
-
import { DetectPHIRequest, DetectPHIResponse } from "../models/models_0";
|
|
20
|
-
import { deserializeAws_json1_1DetectPHICommand, serializeAws_json1_1DetectPHICommand } from "../protocols/Aws_json1_1";
|
|
21
|
-
|
|
22
|
-
export interface DetectPHICommandInput extends DetectPHIRequest {}
|
|
23
|
-
export interface DetectPHICommandOutput extends DetectPHIResponse, __MetadataBearer {}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* <p> Inspects the clinical text for protected health information (PHI) entities and returns
|
|
27
|
-
* the entity category, location, and confidence score for each entity. Amazon Comprehend Medical
|
|
28
|
-
* only detects entities in English language texts.</p>
|
|
29
|
-
* @example
|
|
30
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
31
|
-
* ```javascript
|
|
32
|
-
* import { ComprehendMedicalClient, DetectPHICommand } from "@aws-sdk/client-comprehendmedical"; // ES Modules import
|
|
33
|
-
* // const { ComprehendMedicalClient, DetectPHICommand } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import
|
|
34
|
-
* const client = new ComprehendMedicalClient(config);
|
|
35
|
-
* const command = new DetectPHICommand(input);
|
|
36
|
-
* const response = await client.send(command);
|
|
37
|
-
* ```
|
|
38
|
-
*
|
|
39
|
-
* @see {@link DetectPHICommandInput} for command's `input` shape.
|
|
40
|
-
* @see {@link DetectPHICommandOutput} for command's `response` shape.
|
|
41
|
-
* @see {@link ComprehendMedicalClientResolvedConfig | config} for command's `input` shape.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
export class DetectPHICommand extends $Command<
|
|
45
|
-
DetectPHICommandInput,
|
|
46
|
-
DetectPHICommandOutput,
|
|
47
|
-
ComprehendMedicalClientResolvedConfig
|
|
48
|
-
> {
|
|
49
|
-
// Start section: command_properties
|
|
50
|
-
// End section: command_properties
|
|
51
|
-
|
|
52
|
-
constructor(readonly input: DetectPHICommandInput) {
|
|
53
|
-
// Start section: command_constructor
|
|
54
|
-
super();
|
|
55
|
-
// End section: command_constructor
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* @internal
|
|
60
|
-
*/
|
|
61
|
-
resolveMiddleware(
|
|
62
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
63
|
-
configuration: ComprehendMedicalClientResolvedConfig,
|
|
64
|
-
options?: __HttpHandlerOptions
|
|
65
|
-
): Handler<DetectPHICommandInput, DetectPHICommandOutput> {
|
|
66
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
|
|
70
|
-
const { logger } = configuration;
|
|
71
|
-
const clientName = "ComprehendMedicalClient";
|
|
72
|
-
const commandName = "DetectPHICommand";
|
|
73
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
74
|
-
logger,
|
|
75
|
-
clientName,
|
|
76
|
-
commandName,
|
|
77
|
-
inputFilterSensitiveLog: DetectPHIRequest.filterSensitiveLog,
|
|
78
|
-
outputFilterSensitiveLog: DetectPHIResponse.filterSensitiveLog,
|
|
79
|
-
};
|
|
80
|
-
const { requestHandler } = configuration;
|
|
81
|
-
return stack.resolve(
|
|
82
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
83
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
84
|
-
handlerExecutionContext
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private serialize(input: DetectPHICommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
89
|
-
return serializeAws_json1_1DetectPHICommand(input, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DetectPHICommandOutput> {
|
|
93
|
-
return deserializeAws_json1_1DetectPHICommand(output, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
// Start section: command_body_extra
|
|
97
|
-
// End section: command_body_extra
|
|
98
|
-
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
ComprehendMedicalClientResolvedConfig,
|
|
16
|
-
ServiceInputTypes,
|
|
17
|
-
ServiceOutputTypes,
|
|
18
|
-
} from "../ComprehendMedicalClient";
|
|
19
|
-
import { InferICD10CMRequest, InferICD10CMResponse } from "../models/models_0";
|
|
20
|
-
import {
|
|
21
|
-
deserializeAws_json1_1InferICD10CMCommand,
|
|
22
|
-
serializeAws_json1_1InferICD10CMCommand,
|
|
23
|
-
} from "../protocols/Aws_json1_1";
|
|
24
|
-
|
|
25
|
-
export interface InferICD10CMCommandInput extends InferICD10CMRequest {}
|
|
26
|
-
export interface InferICD10CMCommandOutput extends InferICD10CMResponse, __MetadataBearer {}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* <p>InferICD10CM detects medical conditions as entities listed in a patient record and links
|
|
30
|
-
* those entities to normalized concept identifiers in the ICD-10-CM knowledge base from the
|
|
31
|
-
* Centers for Disease Control. Amazon Comprehend Medical only detects medical entities in
|
|
32
|
-
* English language texts. </p>
|
|
33
|
-
* @example
|
|
34
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
-
* ```javascript
|
|
36
|
-
* import { ComprehendMedicalClient, InferICD10CMCommand } from "@aws-sdk/client-comprehendmedical"; // ES Modules import
|
|
37
|
-
* // const { ComprehendMedicalClient, InferICD10CMCommand } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import
|
|
38
|
-
* const client = new ComprehendMedicalClient(config);
|
|
39
|
-
* const command = new InferICD10CMCommand(input);
|
|
40
|
-
* const response = await client.send(command);
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @see {@link InferICD10CMCommandInput} for command's `input` shape.
|
|
44
|
-
* @see {@link InferICD10CMCommandOutput} for command's `response` shape.
|
|
45
|
-
* @see {@link ComprehendMedicalClientResolvedConfig | config} for command's `input` shape.
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
-
export class InferICD10CMCommand extends $Command<
|
|
49
|
-
InferICD10CMCommandInput,
|
|
50
|
-
InferICD10CMCommandOutput,
|
|
51
|
-
ComprehendMedicalClientResolvedConfig
|
|
52
|
-
> {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
|
-
|
|
56
|
-
constructor(readonly input: InferICD10CMCommandInput) {
|
|
57
|
-
// Start section: command_constructor
|
|
58
|
-
super();
|
|
59
|
-
// End section: command_constructor
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
resolveMiddleware(
|
|
66
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
67
|
-
configuration: ComprehendMedicalClientResolvedConfig,
|
|
68
|
-
options?: __HttpHandlerOptions
|
|
69
|
-
): Handler<InferICD10CMCommandInput, InferICD10CMCommandOutput> {
|
|
70
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
71
|
-
|
|
72
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
73
|
-
|
|
74
|
-
const { logger } = configuration;
|
|
75
|
-
const clientName = "ComprehendMedicalClient";
|
|
76
|
-
const commandName = "InferICD10CMCommand";
|
|
77
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
78
|
-
logger,
|
|
79
|
-
clientName,
|
|
80
|
-
commandName,
|
|
81
|
-
inputFilterSensitiveLog: InferICD10CMRequest.filterSensitiveLog,
|
|
82
|
-
outputFilterSensitiveLog: InferICD10CMResponse.filterSensitiveLog,
|
|
83
|
-
};
|
|
84
|
-
const { requestHandler } = configuration;
|
|
85
|
-
return stack.resolve(
|
|
86
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
87
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
88
|
-
handlerExecutionContext
|
|
89
|
-
);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
private serialize(input: InferICD10CMCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
93
|
-
return serializeAws_json1_1InferICD10CMCommand(input, context);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<InferICD10CMCommandOutput> {
|
|
97
|
-
return deserializeAws_json1_1InferICD10CMCommand(output, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// Start section: command_body_extra
|
|
101
|
-
// End section: command_body_extra
|
|
102
|
-
}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
2
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
-
import {
|
|
5
|
-
FinalizeHandlerArguments,
|
|
6
|
-
Handler,
|
|
7
|
-
HandlerExecutionContext,
|
|
8
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
9
|
-
MetadataBearer as __MetadataBearer,
|
|
10
|
-
MiddlewareStack,
|
|
11
|
-
SerdeContext as __SerdeContext,
|
|
12
|
-
} from "@aws-sdk/types";
|
|
13
|
-
|
|
14
|
-
import {
|
|
15
|
-
ComprehendMedicalClientResolvedConfig,
|
|
16
|
-
ServiceInputTypes,
|
|
17
|
-
ServiceOutputTypes,
|
|
18
|
-
} from "../ComprehendMedicalClient";
|
|
19
|
-
import { InferRxNormRequest, InferRxNormResponse } from "../models/models_0";
|
|
20
|
-
import {
|
|
21
|
-
deserializeAws_json1_1InferRxNormCommand,
|
|
22
|
-
serializeAws_json1_1InferRxNormCommand,
|
|
23
|
-
} from "../protocols/Aws_json1_1";
|
|
24
|
-
|
|
25
|
-
export interface InferRxNormCommandInput extends InferRxNormRequest {}
|
|
26
|
-
export interface InferRxNormCommandOutput extends InferRxNormResponse, __MetadataBearer {}
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* <p>InferRxNorm detects medications as entities listed in a patient record and links to the
|
|
30
|
-
* normalized concept identifiers in the RxNorm database from the National Library of Medicine.
|
|
31
|
-
* Amazon Comprehend Medical only detects medical entities in English language texts. </p>
|
|
32
|
-
* @example
|
|
33
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
-
* ```javascript
|
|
35
|
-
* import { ComprehendMedicalClient, InferRxNormCommand } from "@aws-sdk/client-comprehendmedical"; // ES Modules import
|
|
36
|
-
* // const { ComprehendMedicalClient, InferRxNormCommand } = require("@aws-sdk/client-comprehendmedical"); // CommonJS import
|
|
37
|
-
* const client = new ComprehendMedicalClient(config);
|
|
38
|
-
* const command = new InferRxNormCommand(input);
|
|
39
|
-
* const response = await client.send(command);
|
|
40
|
-
* ```
|
|
41
|
-
*
|
|
42
|
-
* @see {@link InferRxNormCommandInput} for command's `input` shape.
|
|
43
|
-
* @see {@link InferRxNormCommandOutput} for command's `response` shape.
|
|
44
|
-
* @see {@link ComprehendMedicalClientResolvedConfig | config} for command's `input` shape.
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
export class InferRxNormCommand extends $Command<
|
|
48
|
-
InferRxNormCommandInput,
|
|
49
|
-
InferRxNormCommandOutput,
|
|
50
|
-
ComprehendMedicalClientResolvedConfig
|
|
51
|
-
> {
|
|
52
|
-
// Start section: command_properties
|
|
53
|
-
// End section: command_properties
|
|
54
|
-
|
|
55
|
-
constructor(readonly input: InferRxNormCommandInput) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
|
-
super();
|
|
58
|
-
// End section: command_constructor
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
resolveMiddleware(
|
|
65
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
66
|
-
configuration: ComprehendMedicalClientResolvedConfig,
|
|
67
|
-
options?: __HttpHandlerOptions
|
|
68
|
-
): Handler<InferRxNormCommandInput, InferRxNormCommandOutput> {
|
|
69
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
70
|
-
|
|
71
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
72
|
-
|
|
73
|
-
const { logger } = configuration;
|
|
74
|
-
const clientName = "ComprehendMedicalClient";
|
|
75
|
-
const commandName = "InferRxNormCommand";
|
|
76
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
77
|
-
logger,
|
|
78
|
-
clientName,
|
|
79
|
-
commandName,
|
|
80
|
-
inputFilterSensitiveLog: InferRxNormRequest.filterSensitiveLog,
|
|
81
|
-
outputFilterSensitiveLog: InferRxNormResponse.filterSensitiveLog,
|
|
82
|
-
};
|
|
83
|
-
const { requestHandler } = configuration;
|
|
84
|
-
return stack.resolve(
|
|
85
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
86
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
87
|
-
handlerExecutionContext
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
private serialize(input: InferRxNormCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
92
|
-
return serializeAws_json1_1InferRxNormCommand(input, context);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<InferRxNormCommandOutput> {
|
|
96
|
-
return deserializeAws_json1_1InferRxNormCommand(output, context);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Start section: command_body_extra
|
|
100
|
-
// End section: command_body_extra
|
|
101
|
-
}
|