@aws-sdk/client-comprehendmedical 3.490.0 → 3.496.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.
Files changed (38) hide show
  1. package/dist-cjs/ComprehendMedical.js +1 -63
  2. package/dist-cjs/ComprehendMedicalClient.js +1 -43
  3. package/dist-cjs/commands/DescribeEntitiesDetectionV2JobCommand.js +1 -28
  4. package/dist-cjs/commands/DescribeICD10CMInferenceJobCommand.js +1 -28
  5. package/dist-cjs/commands/DescribePHIDetectionJobCommand.js +1 -28
  6. package/dist-cjs/commands/DescribeRxNormInferenceJobCommand.js +1 -28
  7. package/dist-cjs/commands/DescribeSNOMEDCTInferenceJobCommand.js +1 -28
  8. package/dist-cjs/commands/DetectEntitiesCommand.js +1 -28
  9. package/dist-cjs/commands/DetectEntitiesV2Command.js +1 -28
  10. package/dist-cjs/commands/DetectPHICommand.js +1 -28
  11. package/dist-cjs/commands/InferICD10CMCommand.js +1 -28
  12. package/dist-cjs/commands/InferRxNormCommand.js +1 -28
  13. package/dist-cjs/commands/InferSNOMEDCTCommand.js +1 -28
  14. package/dist-cjs/commands/ListEntitiesDetectionV2JobsCommand.js +1 -28
  15. package/dist-cjs/commands/ListICD10CMInferenceJobsCommand.js +1 -28
  16. package/dist-cjs/commands/ListPHIDetectionJobsCommand.js +1 -28
  17. package/dist-cjs/commands/ListRxNormInferenceJobsCommand.js +1 -28
  18. package/dist-cjs/commands/ListSNOMEDCTInferenceJobsCommand.js +1 -28
  19. package/dist-cjs/commands/StartEntitiesDetectionV2JobCommand.js +1 -28
  20. package/dist-cjs/commands/StartICD10CMInferenceJobCommand.js +1 -28
  21. package/dist-cjs/commands/StartPHIDetectionJobCommand.js +1 -28
  22. package/dist-cjs/commands/StartRxNormInferenceJobCommand.js +1 -28
  23. package/dist-cjs/commands/StartSNOMEDCTInferenceJobCommand.js +1 -28
  24. package/dist-cjs/commands/StopEntitiesDetectionV2JobCommand.js +1 -28
  25. package/dist-cjs/commands/StopICD10CMInferenceJobCommand.js +1 -28
  26. package/dist-cjs/commands/StopPHIDetectionJobCommand.js +1 -28
  27. package/dist-cjs/commands/StopRxNormInferenceJobCommand.js +1 -28
  28. package/dist-cjs/commands/StopSNOMEDCTInferenceJobCommand.js +1 -28
  29. package/dist-cjs/commands/index.js +1 -29
  30. package/dist-cjs/endpoint/EndpointParameters.js +1 -18
  31. package/dist-cjs/extensionConfiguration.js +1 -2
  32. package/dist-cjs/index.js +2945 -10
  33. package/dist-cjs/models/ComprehendMedicalServiceException.js +1 -12
  34. package/dist-cjs/models/index.js +1 -4
  35. package/dist-cjs/models/models_0.js +1 -308
  36. package/dist-cjs/protocols/Aws_json1_1.js +1 -1965
  37. package/dist-cjs/runtimeExtensions.js +1 -22
  38. package/package.json +39 -39
package/dist-cjs/index.js CHANGED
@@ -1,11 +1,2946 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ComprehendMedicalServiceException = void 0;
4
- const tslib_1 = require("tslib");
5
- tslib_1.__exportStar(require("./ComprehendMedicalClient"), exports);
6
- tslib_1.__exportStar(require("./ComprehendMedical"), exports);
7
- tslib_1.__exportStar(require("./commands"), exports);
8
- tslib_1.__exportStar(require("./models"), exports);
9
- require("@aws-sdk/util-endpoints");
10
- var ComprehendMedicalServiceException_1 = require("./models/ComprehendMedicalServiceException");
11
- Object.defineProperty(exports, "ComprehendMedicalServiceException", { enumerable: true, get: function () { return ComprehendMedicalServiceException_1.ComprehendMedicalServiceException; } });
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/index.ts
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ AttributeName: () => AttributeName,
25
+ ComprehendMedical: () => ComprehendMedical,
26
+ ComprehendMedicalClient: () => ComprehendMedicalClient,
27
+ ComprehendMedicalServiceException: () => ComprehendMedicalServiceException,
28
+ DescribeEntitiesDetectionV2JobCommand: () => DescribeEntitiesDetectionV2JobCommand,
29
+ DescribeICD10CMInferenceJobCommand: () => DescribeICD10CMInferenceJobCommand,
30
+ DescribePHIDetectionJobCommand: () => DescribePHIDetectionJobCommand,
31
+ DescribeRxNormInferenceJobCommand: () => DescribeRxNormInferenceJobCommand,
32
+ DescribeSNOMEDCTInferenceJobCommand: () => DescribeSNOMEDCTInferenceJobCommand,
33
+ DetectEntitiesCommand: () => DetectEntitiesCommand,
34
+ DetectEntitiesV2Command: () => DetectEntitiesV2Command,
35
+ DetectPHICommand: () => DetectPHICommand,
36
+ EntitySubType: () => EntitySubType,
37
+ EntityType: () => EntityType,
38
+ ICD10CMAttributeType: () => ICD10CMAttributeType,
39
+ ICD10CMEntityCategory: () => ICD10CMEntityCategory,
40
+ ICD10CMEntityType: () => ICD10CMEntityType,
41
+ ICD10CMRelationshipType: () => ICD10CMRelationshipType,
42
+ ICD10CMTraitName: () => ICD10CMTraitName,
43
+ InferICD10CMCommand: () => InferICD10CMCommand,
44
+ InferRxNormCommand: () => InferRxNormCommand,
45
+ InferSNOMEDCTCommand: () => InferSNOMEDCTCommand,
46
+ InternalServerException: () => InternalServerException,
47
+ InvalidEncodingException: () => InvalidEncodingException,
48
+ InvalidRequestException: () => InvalidRequestException,
49
+ JobStatus: () => JobStatus,
50
+ LanguageCode: () => LanguageCode,
51
+ ListEntitiesDetectionV2JobsCommand: () => ListEntitiesDetectionV2JobsCommand,
52
+ ListICD10CMInferenceJobsCommand: () => ListICD10CMInferenceJobsCommand,
53
+ ListPHIDetectionJobsCommand: () => ListPHIDetectionJobsCommand,
54
+ ListRxNormInferenceJobsCommand: () => ListRxNormInferenceJobsCommand,
55
+ ListSNOMEDCTInferenceJobsCommand: () => ListSNOMEDCTInferenceJobsCommand,
56
+ RelationshipType: () => RelationshipType,
57
+ ResourceNotFoundException: () => ResourceNotFoundException,
58
+ RxNormAttributeType: () => RxNormAttributeType,
59
+ RxNormEntityCategory: () => RxNormEntityCategory,
60
+ RxNormEntityType: () => RxNormEntityType,
61
+ RxNormTraitName: () => RxNormTraitName,
62
+ SNOMEDCTAttributeType: () => SNOMEDCTAttributeType,
63
+ SNOMEDCTEntityCategory: () => SNOMEDCTEntityCategory,
64
+ SNOMEDCTEntityType: () => SNOMEDCTEntityType,
65
+ SNOMEDCTRelationshipType: () => SNOMEDCTRelationshipType,
66
+ SNOMEDCTTraitName: () => SNOMEDCTTraitName,
67
+ ServiceUnavailableException: () => ServiceUnavailableException,
68
+ StartEntitiesDetectionV2JobCommand: () => StartEntitiesDetectionV2JobCommand,
69
+ StartICD10CMInferenceJobCommand: () => StartICD10CMInferenceJobCommand,
70
+ StartPHIDetectionJobCommand: () => StartPHIDetectionJobCommand,
71
+ StartRxNormInferenceJobCommand: () => StartRxNormInferenceJobCommand,
72
+ StartSNOMEDCTInferenceJobCommand: () => StartSNOMEDCTInferenceJobCommand,
73
+ StopEntitiesDetectionV2JobCommand: () => StopEntitiesDetectionV2JobCommand,
74
+ StopICD10CMInferenceJobCommand: () => StopICD10CMInferenceJobCommand,
75
+ StopPHIDetectionJobCommand: () => StopPHIDetectionJobCommand,
76
+ StopRxNormInferenceJobCommand: () => StopRxNormInferenceJobCommand,
77
+ StopSNOMEDCTInferenceJobCommand: () => StopSNOMEDCTInferenceJobCommand,
78
+ TextSizeLimitExceededException: () => TextSizeLimitExceededException,
79
+ TooManyRequestsException: () => TooManyRequestsException,
80
+ ValidationException: () => ValidationException,
81
+ __Client: () => import_smithy_client.Client
82
+ });
83
+ module.exports = __toCommonJS(src_exports);
84
+
85
+ // src/ComprehendMedicalClient.ts
86
+ var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
87
+ var import_middleware_logger = require("@aws-sdk/middleware-logger");
88
+ var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
89
+ var import_middleware_signing = require("@aws-sdk/middleware-signing");
90
+ var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
91
+ var import_config_resolver = require("@smithy/config-resolver");
92
+ var import_middleware_content_length = require("@smithy/middleware-content-length");
93
+ var import_middleware_endpoint = require("@smithy/middleware-endpoint");
94
+ var import_middleware_retry = require("@smithy/middleware-retry");
95
+
96
+
97
+ // src/endpoint/EndpointParameters.ts
98
+ var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
99
+ return {
100
+ ...options,
101
+ useDualstackEndpoint: options.useDualstackEndpoint ?? false,
102
+ useFipsEndpoint: options.useFipsEndpoint ?? false,
103
+ defaultSigningName: "comprehendmedical"
104
+ };
105
+ }, "resolveClientEndpointParameters");
106
+ var commonParams = {
107
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
108
+ Endpoint: { type: "builtInParams", name: "endpoint" },
109
+ Region: { type: "builtInParams", name: "region" },
110
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
111
+ };
112
+
113
+ // src/ComprehendMedicalClient.ts
114
+ var import_runtimeConfig = require("././runtimeConfig");
115
+
116
+ // src/runtimeExtensions.ts
117
+ var import_region_config_resolver = require("@aws-sdk/region-config-resolver");
118
+ var import_protocol_http = require("@smithy/protocol-http");
119
+ var import_smithy_client = require("@smithy/smithy-client");
120
+ var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
121
+ var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
122
+ const extensionConfiguration = {
123
+ ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
124
+ ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
125
+ ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig))
126
+ };
127
+ extensions.forEach((extension) => extension.configure(extensionConfiguration));
128
+ return {
129
+ ...runtimeConfig,
130
+ ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
131
+ ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
132
+ ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration)
133
+ };
134
+ }, "resolveRuntimeExtensions");
135
+
136
+ // src/ComprehendMedicalClient.ts
137
+ var _ComprehendMedicalClient = class _ComprehendMedicalClient extends import_smithy_client.Client {
138
+ constructor(...[configuration]) {
139
+ const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
140
+ const _config_1 = resolveClientEndpointParameters(_config_0);
141
+ const _config_2 = (0, import_config_resolver.resolveRegionConfig)(_config_1);
142
+ const _config_3 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_2);
143
+ const _config_4 = (0, import_middleware_retry.resolveRetryConfig)(_config_3);
144
+ const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4);
145
+ const _config_6 = (0, import_middleware_signing.resolveAwsAuthConfig)(_config_5);
146
+ const _config_7 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_6);
147
+ const _config_8 = resolveRuntimeExtensions(_config_7, (configuration == null ? void 0 : configuration.extensions) || []);
148
+ super(_config_8);
149
+ this.config = _config_8;
150
+ this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
151
+ this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
152
+ this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
153
+ this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
154
+ this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
155
+ this.middlewareStack.use((0, import_middleware_signing.getAwsAuthPlugin)(this.config));
156
+ this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
157
+ }
158
+ /**
159
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
160
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
161
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
162
+ */
163
+ destroy() {
164
+ super.destroy();
165
+ }
166
+ };
167
+ __name(_ComprehendMedicalClient, "ComprehendMedicalClient");
168
+ var ComprehendMedicalClient = _ComprehendMedicalClient;
169
+
170
+ // src/ComprehendMedical.ts
171
+
172
+
173
+ // src/commands/DescribeEntitiesDetectionV2JobCommand.ts
174
+
175
+ var import_middleware_serde = require("@smithy/middleware-serde");
176
+
177
+ var import_types = require("@smithy/types");
178
+
179
+ // src/protocols/Aws_json1_1.ts
180
+
181
+
182
+ var import_uuid = require("uuid");
183
+
184
+ // src/models/ComprehendMedicalServiceException.ts
185
+
186
+ var _ComprehendMedicalServiceException = class _ComprehendMedicalServiceException extends import_smithy_client.ServiceException {
187
+ /**
188
+ * @internal
189
+ */
190
+ constructor(options) {
191
+ super(options);
192
+ Object.setPrototypeOf(this, _ComprehendMedicalServiceException.prototype);
193
+ }
194
+ };
195
+ __name(_ComprehendMedicalServiceException, "ComprehendMedicalServiceException");
196
+ var ComprehendMedicalServiceException = _ComprehendMedicalServiceException;
197
+
198
+ // src/models/models_0.ts
199
+ var EntityType = {
200
+ ANATOMY: "ANATOMY",
201
+ BEHAVIORAL_ENVIRONMENTAL_SOCIAL: "BEHAVIORAL_ENVIRONMENTAL_SOCIAL",
202
+ MEDICAL_CONDITION: "MEDICAL_CONDITION",
203
+ MEDICATION: "MEDICATION",
204
+ PROTECTED_HEALTH_INFORMATION: "PROTECTED_HEALTH_INFORMATION",
205
+ TEST_TREATMENT_PROCEDURE: "TEST_TREATMENT_PROCEDURE",
206
+ TIME_EXPRESSION: "TIME_EXPRESSION"
207
+ };
208
+ var RelationshipType = {
209
+ ACUITY: "ACUITY",
210
+ ADMINISTERED_VIA: "ADMINISTERED_VIA",
211
+ AMOUNT: "AMOUNT",
212
+ DIRECTION: "DIRECTION",
213
+ DOSAGE: "DOSAGE",
214
+ DURATION: "DURATION",
215
+ EVERY: "EVERY",
216
+ FOR: "FOR",
217
+ FORM: "FORM",
218
+ FREQUENCY: "FREQUENCY",
219
+ NEGATIVE: "NEGATIVE",
220
+ OVERLAP: "OVERLAP",
221
+ QUALITY: "QUALITY",
222
+ RATE: "RATE",
223
+ ROUTE_OR_MODE: "ROUTE_OR_MODE",
224
+ STRENGTH: "STRENGTH",
225
+ SYSTEM_ORGAN_SITE: "SYSTEM_ORGAN_SITE",
226
+ TEST_UNIT: "TEST_UNIT",
227
+ TEST_UNITS: "TEST_UNITS",
228
+ TEST_VALUE: "TEST_VALUE",
229
+ USAGE: "USAGE",
230
+ WITH_DOSAGE: "WITH_DOSAGE"
231
+ };
232
+ var AttributeName = {
233
+ DIAGNOSIS: "DIAGNOSIS",
234
+ FUTURE: "FUTURE",
235
+ HYPOTHETICAL: "HYPOTHETICAL",
236
+ LOW_CONFIDENCE: "LOW_CONFIDENCE",
237
+ NEGATION: "NEGATION",
238
+ PAST_HISTORY: "PAST_HISTORY",
239
+ PERTAINS_TO_FAMILY: "PERTAINS_TO_FAMILY",
240
+ SIGN: "SIGN",
241
+ SYMPTOM: "SYMPTOM"
242
+ };
243
+ var EntitySubType = {
244
+ ACUITY: "ACUITY",
245
+ ADDRESS: "ADDRESS",
246
+ AGE: "AGE",
247
+ ALCOHOL_CONSUMPTION: "ALCOHOL_CONSUMPTION",
248
+ ALLERGIES: "ALLERGIES",
249
+ AMOUNT: "AMOUNT",
250
+ BRAND_NAME: "BRAND_NAME",
251
+ CONTACT_POINT: "CONTACT_POINT",
252
+ DATE: "DATE",
253
+ DIRECTION: "DIRECTION",
254
+ DOSAGE: "DOSAGE",
255
+ DURATION: "DURATION",
256
+ DX_NAME: "DX_NAME",
257
+ EMAIL: "EMAIL",
258
+ FORM: "FORM",
259
+ FREQUENCY: "FREQUENCY",
260
+ GENDER: "GENDER",
261
+ GENERIC_NAME: "GENERIC_NAME",
262
+ ID: "ID",
263
+ IDENTIFIER: "IDENTIFIER",
264
+ NAME: "NAME",
265
+ PHONE_OR_FAX: "PHONE_OR_FAX",
266
+ PROCEDURE_NAME: "PROCEDURE_NAME",
267
+ PROFESSION: "PROFESSION",
268
+ QUALITY: "QUALITY",
269
+ QUANTITY: "QUANTITY",
270
+ RACE_ETHNICITY: "RACE_ETHNICITY",
271
+ RATE: "RATE",
272
+ REC_DRUG_USE: "REC_DRUG_USE",
273
+ ROUTE_OR_MODE: "ROUTE_OR_MODE",
274
+ STRENGTH: "STRENGTH",
275
+ SYSTEM_ORGAN_SITE: "SYSTEM_ORGAN_SITE",
276
+ TEST_NAME: "TEST_NAME",
277
+ TEST_UNIT: "TEST_UNIT",
278
+ TEST_UNITS: "TEST_UNITS",
279
+ TEST_VALUE: "TEST_VALUE",
280
+ TIME_EXPRESSION: "TIME_EXPRESSION",
281
+ TIME_TO_DX_NAME: "TIME_TO_DX_NAME",
282
+ TIME_TO_MEDICATION_NAME: "TIME_TO_MEDICATION_NAME",
283
+ TIME_TO_PROCEDURE_NAME: "TIME_TO_PROCEDURE_NAME",
284
+ TIME_TO_TEST_NAME: "TIME_TO_TEST_NAME",
285
+ TIME_TO_TREATMENT_NAME: "TIME_TO_TREATMENT_NAME",
286
+ TOBACCO_USE: "TOBACCO_USE",
287
+ TREATMENT_NAME: "TREATMENT_NAME",
288
+ URL: "URL"
289
+ };
290
+ var JobStatus = {
291
+ COMPLETED: "COMPLETED",
292
+ FAILED: "FAILED",
293
+ IN_PROGRESS: "IN_PROGRESS",
294
+ PARTIAL_SUCCESS: "PARTIAL_SUCCESS",
295
+ STOPPED: "STOPPED",
296
+ STOP_REQUESTED: "STOP_REQUESTED",
297
+ SUBMITTED: "SUBMITTED"
298
+ };
299
+ var LanguageCode = {
300
+ EN: "en"
301
+ };
302
+ var _InternalServerException = class _InternalServerException extends ComprehendMedicalServiceException {
303
+ /**
304
+ * @internal
305
+ */
306
+ constructor(opts) {
307
+ super({
308
+ name: "InternalServerException",
309
+ $fault: "server",
310
+ ...opts
311
+ });
312
+ this.name = "InternalServerException";
313
+ this.$fault = "server";
314
+ Object.setPrototypeOf(this, _InternalServerException.prototype);
315
+ this.Message = opts.Message;
316
+ }
317
+ };
318
+ __name(_InternalServerException, "InternalServerException");
319
+ var InternalServerException = _InternalServerException;
320
+ var _InvalidRequestException = class _InvalidRequestException extends ComprehendMedicalServiceException {
321
+ /**
322
+ * @internal
323
+ */
324
+ constructor(opts) {
325
+ super({
326
+ name: "InvalidRequestException",
327
+ $fault: "client",
328
+ ...opts
329
+ });
330
+ this.name = "InvalidRequestException";
331
+ this.$fault = "client";
332
+ Object.setPrototypeOf(this, _InvalidRequestException.prototype);
333
+ this.Message = opts.Message;
334
+ }
335
+ };
336
+ __name(_InvalidRequestException, "InvalidRequestException");
337
+ var InvalidRequestException = _InvalidRequestException;
338
+ var _ResourceNotFoundException = class _ResourceNotFoundException extends ComprehendMedicalServiceException {
339
+ /**
340
+ * @internal
341
+ */
342
+ constructor(opts) {
343
+ super({
344
+ name: "ResourceNotFoundException",
345
+ $fault: "client",
346
+ ...opts
347
+ });
348
+ this.name = "ResourceNotFoundException";
349
+ this.$fault = "client";
350
+ Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
351
+ this.Message = opts.Message;
352
+ }
353
+ };
354
+ __name(_ResourceNotFoundException, "ResourceNotFoundException");
355
+ var ResourceNotFoundException = _ResourceNotFoundException;
356
+ var _TooManyRequestsException = class _TooManyRequestsException extends ComprehendMedicalServiceException {
357
+ /**
358
+ * @internal
359
+ */
360
+ constructor(opts) {
361
+ super({
362
+ name: "TooManyRequestsException",
363
+ $fault: "client",
364
+ ...opts
365
+ });
366
+ this.name = "TooManyRequestsException";
367
+ this.$fault = "client";
368
+ Object.setPrototypeOf(this, _TooManyRequestsException.prototype);
369
+ this.Message = opts.Message;
370
+ }
371
+ };
372
+ __name(_TooManyRequestsException, "TooManyRequestsException");
373
+ var TooManyRequestsException = _TooManyRequestsException;
374
+ var _InvalidEncodingException = class _InvalidEncodingException extends ComprehendMedicalServiceException {
375
+ /**
376
+ * @internal
377
+ */
378
+ constructor(opts) {
379
+ super({
380
+ name: "InvalidEncodingException",
381
+ $fault: "client",
382
+ ...opts
383
+ });
384
+ this.name = "InvalidEncodingException";
385
+ this.$fault = "client";
386
+ Object.setPrototypeOf(this, _InvalidEncodingException.prototype);
387
+ this.Message = opts.Message;
388
+ }
389
+ };
390
+ __name(_InvalidEncodingException, "InvalidEncodingException");
391
+ var InvalidEncodingException = _InvalidEncodingException;
392
+ var _ServiceUnavailableException = class _ServiceUnavailableException extends ComprehendMedicalServiceException {
393
+ /**
394
+ * @internal
395
+ */
396
+ constructor(opts) {
397
+ super({
398
+ name: "ServiceUnavailableException",
399
+ $fault: "server",
400
+ ...opts
401
+ });
402
+ this.name = "ServiceUnavailableException";
403
+ this.$fault = "server";
404
+ Object.setPrototypeOf(this, _ServiceUnavailableException.prototype);
405
+ this.Message = opts.Message;
406
+ }
407
+ };
408
+ __name(_ServiceUnavailableException, "ServiceUnavailableException");
409
+ var ServiceUnavailableException = _ServiceUnavailableException;
410
+ var _TextSizeLimitExceededException = class _TextSizeLimitExceededException extends ComprehendMedicalServiceException {
411
+ /**
412
+ * @internal
413
+ */
414
+ constructor(opts) {
415
+ super({
416
+ name: "TextSizeLimitExceededException",
417
+ $fault: "client",
418
+ ...opts
419
+ });
420
+ this.name = "TextSizeLimitExceededException";
421
+ this.$fault = "client";
422
+ Object.setPrototypeOf(this, _TextSizeLimitExceededException.prototype);
423
+ this.Message = opts.Message;
424
+ }
425
+ };
426
+ __name(_TextSizeLimitExceededException, "TextSizeLimitExceededException");
427
+ var TextSizeLimitExceededException = _TextSizeLimitExceededException;
428
+ var ICD10CMEntityType = {
429
+ DX_NAME: "DX_NAME",
430
+ TIME_EXPRESSION: "TIME_EXPRESSION"
431
+ };
432
+ var ICD10CMRelationshipType = {
433
+ OVERLAP: "OVERLAP",
434
+ QUALITY: "QUALITY",
435
+ SYSTEM_ORGAN_SITE: "SYSTEM_ORGAN_SITE"
436
+ };
437
+ var ICD10CMTraitName = {
438
+ DIAGNOSIS: "DIAGNOSIS",
439
+ HYPOTHETICAL: "HYPOTHETICAL",
440
+ LOW_CONFIDENCE: "LOW_CONFIDENCE",
441
+ NEGATION: "NEGATION",
442
+ PERTAINS_TO_FAMILY: "PERTAINS_TO_FAMILY",
443
+ SIGN: "SIGN",
444
+ SYMPTOM: "SYMPTOM"
445
+ };
446
+ var ICD10CMAttributeType = {
447
+ ACUITY: "ACUITY",
448
+ DIRECTION: "DIRECTION",
449
+ QUALITY: "QUALITY",
450
+ QUANTITY: "QUANTITY",
451
+ SYSTEM_ORGAN_SITE: "SYSTEM_ORGAN_SITE",
452
+ TIME_EXPRESSION: "TIME_EXPRESSION",
453
+ TIME_TO_DX_NAME: "TIME_TO_DX_NAME"
454
+ };
455
+ var ICD10CMEntityCategory = {
456
+ MEDICAL_CONDITION: "MEDICAL_CONDITION"
457
+ };
458
+ var RxNormTraitName = {
459
+ NEGATION: "NEGATION",
460
+ PAST_HISTORY: "PAST_HISTORY"
461
+ };
462
+ var RxNormAttributeType = {
463
+ DOSAGE: "DOSAGE",
464
+ DURATION: "DURATION",
465
+ FORM: "FORM",
466
+ FREQUENCY: "FREQUENCY",
467
+ RATE: "RATE",
468
+ ROUTE_OR_MODE: "ROUTE_OR_MODE",
469
+ STRENGTH: "STRENGTH"
470
+ };
471
+ var RxNormEntityCategory = {
472
+ MEDICATION: "MEDICATION"
473
+ };
474
+ var RxNormEntityType = {
475
+ BRAND_NAME: "BRAND_NAME",
476
+ GENERIC_NAME: "GENERIC_NAME"
477
+ };
478
+ var SNOMEDCTEntityCategory = {
479
+ ANATOMY: "ANATOMY",
480
+ MEDICAL_CONDITION: "MEDICAL_CONDITION",
481
+ TEST_TREATMENT_PROCEDURE: "TEST_TREATMENT_PROCEDURE"
482
+ };
483
+ var SNOMEDCTRelationshipType = {
484
+ ACUITY: "ACUITY",
485
+ DIRECTION: "DIRECTION",
486
+ QUALITY: "QUALITY",
487
+ SYSTEM_ORGAN_SITE: "SYSTEM_ORGAN_SITE",
488
+ TEST_UNIT: "TEST_UNIT",
489
+ TEST_UNITS: "TEST_UNITS",
490
+ TEST_VALUE: "TEST_VALUE"
491
+ };
492
+ var SNOMEDCTTraitName = {
493
+ DIAGNOSIS: "DIAGNOSIS",
494
+ FUTURE: "FUTURE",
495
+ HYPOTHETICAL: "HYPOTHETICAL",
496
+ LOW_CONFIDENCE: "LOW_CONFIDENCE",
497
+ NEGATION: "NEGATION",
498
+ PAST_HISTORY: "PAST_HISTORY",
499
+ PERTAINS_TO_FAMILY: "PERTAINS_TO_FAMILY",
500
+ SIGN: "SIGN",
501
+ SYMPTOM: "SYMPTOM"
502
+ };
503
+ var SNOMEDCTAttributeType = {
504
+ ACUITY: "ACUITY",
505
+ DIRECTION: "DIRECTION",
506
+ QUALITY: "QUALITY",
507
+ SYSTEM_ORGAN_SITE: "SYSTEM_ORGAN_SITE",
508
+ TEST_UNIT: "TEST_UNIT",
509
+ TEST_VALUE: "TEST_VALUE"
510
+ };
511
+ var SNOMEDCTEntityType = {
512
+ DX_NAME: "DX_NAME",
513
+ PROCEDURE_NAME: "PROCEDURE_NAME",
514
+ TEST_NAME: "TEST_NAME",
515
+ TREATMENT_NAME: "TREATMENT_NAME"
516
+ };
517
+ var _ValidationException = class _ValidationException extends ComprehendMedicalServiceException {
518
+ /**
519
+ * @internal
520
+ */
521
+ constructor(opts) {
522
+ super({
523
+ name: "ValidationException",
524
+ $fault: "client",
525
+ ...opts
526
+ });
527
+ this.name = "ValidationException";
528
+ this.$fault = "client";
529
+ Object.setPrototypeOf(this, _ValidationException.prototype);
530
+ this.Message = opts.Message;
531
+ }
532
+ };
533
+ __name(_ValidationException, "ValidationException");
534
+ var ValidationException = _ValidationException;
535
+
536
+ // src/protocols/Aws_json1_1.ts
537
+ var se_DescribeEntitiesDetectionV2JobCommand = /* @__PURE__ */ __name(async (input, context) => {
538
+ const headers = sharedHeaders("DescribeEntitiesDetectionV2Job");
539
+ let body;
540
+ body = JSON.stringify((0, import_smithy_client._json)(input));
541
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
542
+ }, "se_DescribeEntitiesDetectionV2JobCommand");
543
+ var se_DescribeICD10CMInferenceJobCommand = /* @__PURE__ */ __name(async (input, context) => {
544
+ const headers = sharedHeaders("DescribeICD10CMInferenceJob");
545
+ let body;
546
+ body = JSON.stringify((0, import_smithy_client._json)(input));
547
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
548
+ }, "se_DescribeICD10CMInferenceJobCommand");
549
+ var se_DescribePHIDetectionJobCommand = /* @__PURE__ */ __name(async (input, context) => {
550
+ const headers = sharedHeaders("DescribePHIDetectionJob");
551
+ let body;
552
+ body = JSON.stringify((0, import_smithy_client._json)(input));
553
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
554
+ }, "se_DescribePHIDetectionJobCommand");
555
+ var se_DescribeRxNormInferenceJobCommand = /* @__PURE__ */ __name(async (input, context) => {
556
+ const headers = sharedHeaders("DescribeRxNormInferenceJob");
557
+ let body;
558
+ body = JSON.stringify((0, import_smithy_client._json)(input));
559
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
560
+ }, "se_DescribeRxNormInferenceJobCommand");
561
+ var se_DescribeSNOMEDCTInferenceJobCommand = /* @__PURE__ */ __name(async (input, context) => {
562
+ const headers = sharedHeaders("DescribeSNOMEDCTInferenceJob");
563
+ let body;
564
+ body = JSON.stringify((0, import_smithy_client._json)(input));
565
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
566
+ }, "se_DescribeSNOMEDCTInferenceJobCommand");
567
+ var se_DetectEntitiesCommand = /* @__PURE__ */ __name(async (input, context) => {
568
+ const headers = sharedHeaders("DetectEntities");
569
+ let body;
570
+ body = JSON.stringify((0, import_smithy_client._json)(input));
571
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
572
+ }, "se_DetectEntitiesCommand");
573
+ var se_DetectEntitiesV2Command = /* @__PURE__ */ __name(async (input, context) => {
574
+ const headers = sharedHeaders("DetectEntitiesV2");
575
+ let body;
576
+ body = JSON.stringify((0, import_smithy_client._json)(input));
577
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
578
+ }, "se_DetectEntitiesV2Command");
579
+ var se_DetectPHICommand = /* @__PURE__ */ __name(async (input, context) => {
580
+ const headers = sharedHeaders("DetectPHI");
581
+ let body;
582
+ body = JSON.stringify((0, import_smithy_client._json)(input));
583
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
584
+ }, "se_DetectPHICommand");
585
+ var se_InferICD10CMCommand = /* @__PURE__ */ __name(async (input, context) => {
586
+ const headers = sharedHeaders("InferICD10CM");
587
+ let body;
588
+ body = JSON.stringify((0, import_smithy_client._json)(input));
589
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
590
+ }, "se_InferICD10CMCommand");
591
+ var se_InferRxNormCommand = /* @__PURE__ */ __name(async (input, context) => {
592
+ const headers = sharedHeaders("InferRxNorm");
593
+ let body;
594
+ body = JSON.stringify((0, import_smithy_client._json)(input));
595
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
596
+ }, "se_InferRxNormCommand");
597
+ var se_InferSNOMEDCTCommand = /* @__PURE__ */ __name(async (input, context) => {
598
+ const headers = sharedHeaders("InferSNOMEDCT");
599
+ let body;
600
+ body = JSON.stringify((0, import_smithy_client._json)(input));
601
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
602
+ }, "se_InferSNOMEDCTCommand");
603
+ var se_ListEntitiesDetectionV2JobsCommand = /* @__PURE__ */ __name(async (input, context) => {
604
+ const headers = sharedHeaders("ListEntitiesDetectionV2Jobs");
605
+ let body;
606
+ body = JSON.stringify(se_ListEntitiesDetectionV2JobsRequest(input, context));
607
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
608
+ }, "se_ListEntitiesDetectionV2JobsCommand");
609
+ var se_ListICD10CMInferenceJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
610
+ const headers = sharedHeaders("ListICD10CMInferenceJobs");
611
+ let body;
612
+ body = JSON.stringify(se_ListICD10CMInferenceJobsRequest(input, context));
613
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
614
+ }, "se_ListICD10CMInferenceJobsCommand");
615
+ var se_ListPHIDetectionJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
616
+ const headers = sharedHeaders("ListPHIDetectionJobs");
617
+ let body;
618
+ body = JSON.stringify(se_ListPHIDetectionJobsRequest(input, context));
619
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
620
+ }, "se_ListPHIDetectionJobsCommand");
621
+ var se_ListRxNormInferenceJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
622
+ const headers = sharedHeaders("ListRxNormInferenceJobs");
623
+ let body;
624
+ body = JSON.stringify(se_ListRxNormInferenceJobsRequest(input, context));
625
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
626
+ }, "se_ListRxNormInferenceJobsCommand");
627
+ var se_ListSNOMEDCTInferenceJobsCommand = /* @__PURE__ */ __name(async (input, context) => {
628
+ const headers = sharedHeaders("ListSNOMEDCTInferenceJobs");
629
+ let body;
630
+ body = JSON.stringify(se_ListSNOMEDCTInferenceJobsRequest(input, context));
631
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
632
+ }, "se_ListSNOMEDCTInferenceJobsCommand");
633
+ var se_StartEntitiesDetectionV2JobCommand = /* @__PURE__ */ __name(async (input, context) => {
634
+ const headers = sharedHeaders("StartEntitiesDetectionV2Job");
635
+ let body;
636
+ body = JSON.stringify(se_StartEntitiesDetectionV2JobRequest(input, context));
637
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
638
+ }, "se_StartEntitiesDetectionV2JobCommand");
639
+ var se_StartICD10CMInferenceJobCommand = /* @__PURE__ */ __name(async (input, context) => {
640
+ const headers = sharedHeaders("StartICD10CMInferenceJob");
641
+ let body;
642
+ body = JSON.stringify(se_StartICD10CMInferenceJobRequest(input, context));
643
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
644
+ }, "se_StartICD10CMInferenceJobCommand");
645
+ var se_StartPHIDetectionJobCommand = /* @__PURE__ */ __name(async (input, context) => {
646
+ const headers = sharedHeaders("StartPHIDetectionJob");
647
+ let body;
648
+ body = JSON.stringify(se_StartPHIDetectionJobRequest(input, context));
649
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
650
+ }, "se_StartPHIDetectionJobCommand");
651
+ var se_StartRxNormInferenceJobCommand = /* @__PURE__ */ __name(async (input, context) => {
652
+ const headers = sharedHeaders("StartRxNormInferenceJob");
653
+ let body;
654
+ body = JSON.stringify(se_StartRxNormInferenceJobRequest(input, context));
655
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
656
+ }, "se_StartRxNormInferenceJobCommand");
657
+ var se_StartSNOMEDCTInferenceJobCommand = /* @__PURE__ */ __name(async (input, context) => {
658
+ const headers = sharedHeaders("StartSNOMEDCTInferenceJob");
659
+ let body;
660
+ body = JSON.stringify(se_StartSNOMEDCTInferenceJobRequest(input, context));
661
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
662
+ }, "se_StartSNOMEDCTInferenceJobCommand");
663
+ var se_StopEntitiesDetectionV2JobCommand = /* @__PURE__ */ __name(async (input, context) => {
664
+ const headers = sharedHeaders("StopEntitiesDetectionV2Job");
665
+ let body;
666
+ body = JSON.stringify((0, import_smithy_client._json)(input));
667
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
668
+ }, "se_StopEntitiesDetectionV2JobCommand");
669
+ var se_StopICD10CMInferenceJobCommand = /* @__PURE__ */ __name(async (input, context) => {
670
+ const headers = sharedHeaders("StopICD10CMInferenceJob");
671
+ let body;
672
+ body = JSON.stringify((0, import_smithy_client._json)(input));
673
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
674
+ }, "se_StopICD10CMInferenceJobCommand");
675
+ var se_StopPHIDetectionJobCommand = /* @__PURE__ */ __name(async (input, context) => {
676
+ const headers = sharedHeaders("StopPHIDetectionJob");
677
+ let body;
678
+ body = JSON.stringify((0, import_smithy_client._json)(input));
679
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
680
+ }, "se_StopPHIDetectionJobCommand");
681
+ var se_StopRxNormInferenceJobCommand = /* @__PURE__ */ __name(async (input, context) => {
682
+ const headers = sharedHeaders("StopRxNormInferenceJob");
683
+ let body;
684
+ body = JSON.stringify((0, import_smithy_client._json)(input));
685
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
686
+ }, "se_StopRxNormInferenceJobCommand");
687
+ var se_StopSNOMEDCTInferenceJobCommand = /* @__PURE__ */ __name(async (input, context) => {
688
+ const headers = sharedHeaders("StopSNOMEDCTInferenceJob");
689
+ let body;
690
+ body = JSON.stringify((0, import_smithy_client._json)(input));
691
+ return buildHttpRpcRequest(context, headers, "/", void 0, body);
692
+ }, "se_StopSNOMEDCTInferenceJobCommand");
693
+ var de_DescribeEntitiesDetectionV2JobCommand = /* @__PURE__ */ __name(async (output, context) => {
694
+ if (output.statusCode >= 300) {
695
+ return de_DescribeEntitiesDetectionV2JobCommandError(output, context);
696
+ }
697
+ const data = await parseBody(output.body, context);
698
+ let contents = {};
699
+ contents = de_DescribeEntitiesDetectionV2JobResponse(data, context);
700
+ const response = {
701
+ $metadata: deserializeMetadata(output),
702
+ ...contents
703
+ };
704
+ return response;
705
+ }, "de_DescribeEntitiesDetectionV2JobCommand");
706
+ var de_DescribeEntitiesDetectionV2JobCommandError = /* @__PURE__ */ __name(async (output, context) => {
707
+ const parsedOutput = {
708
+ ...output,
709
+ body: await parseErrorBody(output.body, context)
710
+ };
711
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
712
+ switch (errorCode) {
713
+ case "InternalServerException":
714
+ case "com.amazonaws.comprehendmedical#InternalServerException":
715
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
716
+ case "InvalidRequestException":
717
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
718
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
719
+ case "ResourceNotFoundException":
720
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
721
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
722
+ case "TooManyRequestsException":
723
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
724
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
725
+ default:
726
+ const parsedBody = parsedOutput.body;
727
+ return throwDefaultError({
728
+ output,
729
+ parsedBody,
730
+ errorCode
731
+ });
732
+ }
733
+ }, "de_DescribeEntitiesDetectionV2JobCommandError");
734
+ var de_DescribeICD10CMInferenceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
735
+ if (output.statusCode >= 300) {
736
+ return de_DescribeICD10CMInferenceJobCommandError(output, context);
737
+ }
738
+ const data = await parseBody(output.body, context);
739
+ let contents = {};
740
+ contents = de_DescribeICD10CMInferenceJobResponse(data, context);
741
+ const response = {
742
+ $metadata: deserializeMetadata(output),
743
+ ...contents
744
+ };
745
+ return response;
746
+ }, "de_DescribeICD10CMInferenceJobCommand");
747
+ var de_DescribeICD10CMInferenceJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
748
+ const parsedOutput = {
749
+ ...output,
750
+ body: await parseErrorBody(output.body, context)
751
+ };
752
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
753
+ switch (errorCode) {
754
+ case "InternalServerException":
755
+ case "com.amazonaws.comprehendmedical#InternalServerException":
756
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
757
+ case "InvalidRequestException":
758
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
759
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
760
+ case "ResourceNotFoundException":
761
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
762
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
763
+ case "TooManyRequestsException":
764
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
765
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
766
+ default:
767
+ const parsedBody = parsedOutput.body;
768
+ return throwDefaultError({
769
+ output,
770
+ parsedBody,
771
+ errorCode
772
+ });
773
+ }
774
+ }, "de_DescribeICD10CMInferenceJobCommandError");
775
+ var de_DescribePHIDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
776
+ if (output.statusCode >= 300) {
777
+ return de_DescribePHIDetectionJobCommandError(output, context);
778
+ }
779
+ const data = await parseBody(output.body, context);
780
+ let contents = {};
781
+ contents = de_DescribePHIDetectionJobResponse(data, context);
782
+ const response = {
783
+ $metadata: deserializeMetadata(output),
784
+ ...contents
785
+ };
786
+ return response;
787
+ }, "de_DescribePHIDetectionJobCommand");
788
+ var de_DescribePHIDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
789
+ const parsedOutput = {
790
+ ...output,
791
+ body: await parseErrorBody(output.body, context)
792
+ };
793
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
794
+ switch (errorCode) {
795
+ case "InternalServerException":
796
+ case "com.amazonaws.comprehendmedical#InternalServerException":
797
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
798
+ case "InvalidRequestException":
799
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
800
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
801
+ case "ResourceNotFoundException":
802
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
803
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
804
+ case "TooManyRequestsException":
805
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
806
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
807
+ default:
808
+ const parsedBody = parsedOutput.body;
809
+ return throwDefaultError({
810
+ output,
811
+ parsedBody,
812
+ errorCode
813
+ });
814
+ }
815
+ }, "de_DescribePHIDetectionJobCommandError");
816
+ var de_DescribeRxNormInferenceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
817
+ if (output.statusCode >= 300) {
818
+ return de_DescribeRxNormInferenceJobCommandError(output, context);
819
+ }
820
+ const data = await parseBody(output.body, context);
821
+ let contents = {};
822
+ contents = de_DescribeRxNormInferenceJobResponse(data, context);
823
+ const response = {
824
+ $metadata: deserializeMetadata(output),
825
+ ...contents
826
+ };
827
+ return response;
828
+ }, "de_DescribeRxNormInferenceJobCommand");
829
+ var de_DescribeRxNormInferenceJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
830
+ const parsedOutput = {
831
+ ...output,
832
+ body: await parseErrorBody(output.body, context)
833
+ };
834
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
835
+ switch (errorCode) {
836
+ case "InternalServerException":
837
+ case "com.amazonaws.comprehendmedical#InternalServerException":
838
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
839
+ case "InvalidRequestException":
840
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
841
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
842
+ case "ResourceNotFoundException":
843
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
844
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
845
+ case "TooManyRequestsException":
846
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
847
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
848
+ default:
849
+ const parsedBody = parsedOutput.body;
850
+ return throwDefaultError({
851
+ output,
852
+ parsedBody,
853
+ errorCode
854
+ });
855
+ }
856
+ }, "de_DescribeRxNormInferenceJobCommandError");
857
+ var de_DescribeSNOMEDCTInferenceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
858
+ if (output.statusCode >= 300) {
859
+ return de_DescribeSNOMEDCTInferenceJobCommandError(output, context);
860
+ }
861
+ const data = await parseBody(output.body, context);
862
+ let contents = {};
863
+ contents = de_DescribeSNOMEDCTInferenceJobResponse(data, context);
864
+ const response = {
865
+ $metadata: deserializeMetadata(output),
866
+ ...contents
867
+ };
868
+ return response;
869
+ }, "de_DescribeSNOMEDCTInferenceJobCommand");
870
+ var de_DescribeSNOMEDCTInferenceJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
871
+ const parsedOutput = {
872
+ ...output,
873
+ body: await parseErrorBody(output.body, context)
874
+ };
875
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
876
+ switch (errorCode) {
877
+ case "InternalServerException":
878
+ case "com.amazonaws.comprehendmedical#InternalServerException":
879
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
880
+ case "InvalidRequestException":
881
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
882
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
883
+ case "ResourceNotFoundException":
884
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
885
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
886
+ case "TooManyRequestsException":
887
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
888
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
889
+ default:
890
+ const parsedBody = parsedOutput.body;
891
+ return throwDefaultError({
892
+ output,
893
+ parsedBody,
894
+ errorCode
895
+ });
896
+ }
897
+ }, "de_DescribeSNOMEDCTInferenceJobCommandError");
898
+ var de_DetectEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
899
+ if (output.statusCode >= 300) {
900
+ return de_DetectEntitiesCommandError(output, context);
901
+ }
902
+ const data = await parseBody(output.body, context);
903
+ let contents = {};
904
+ contents = de_DetectEntitiesResponse(data, context);
905
+ const response = {
906
+ $metadata: deserializeMetadata(output),
907
+ ...contents
908
+ };
909
+ return response;
910
+ }, "de_DetectEntitiesCommand");
911
+ var de_DetectEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
912
+ const parsedOutput = {
913
+ ...output,
914
+ body: await parseErrorBody(output.body, context)
915
+ };
916
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
917
+ switch (errorCode) {
918
+ case "InternalServerException":
919
+ case "com.amazonaws.comprehendmedical#InternalServerException":
920
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
921
+ case "InvalidEncodingException":
922
+ case "com.amazonaws.comprehendmedical#InvalidEncodingException":
923
+ throw await de_InvalidEncodingExceptionRes(parsedOutput, context);
924
+ case "InvalidRequestException":
925
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
926
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
927
+ case "ServiceUnavailableException":
928
+ case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
929
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
930
+ case "TextSizeLimitExceededException":
931
+ case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
932
+ throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
933
+ case "TooManyRequestsException":
934
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
935
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
936
+ default:
937
+ const parsedBody = parsedOutput.body;
938
+ return throwDefaultError({
939
+ output,
940
+ parsedBody,
941
+ errorCode
942
+ });
943
+ }
944
+ }, "de_DetectEntitiesCommandError");
945
+ var de_DetectEntitiesV2Command = /* @__PURE__ */ __name(async (output, context) => {
946
+ if (output.statusCode >= 300) {
947
+ return de_DetectEntitiesV2CommandError(output, context);
948
+ }
949
+ const data = await parseBody(output.body, context);
950
+ let contents = {};
951
+ contents = de_DetectEntitiesV2Response(data, context);
952
+ const response = {
953
+ $metadata: deserializeMetadata(output),
954
+ ...contents
955
+ };
956
+ return response;
957
+ }, "de_DetectEntitiesV2Command");
958
+ var de_DetectEntitiesV2CommandError = /* @__PURE__ */ __name(async (output, context) => {
959
+ const parsedOutput = {
960
+ ...output,
961
+ body: await parseErrorBody(output.body, context)
962
+ };
963
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
964
+ switch (errorCode) {
965
+ case "InternalServerException":
966
+ case "com.amazonaws.comprehendmedical#InternalServerException":
967
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
968
+ case "InvalidEncodingException":
969
+ case "com.amazonaws.comprehendmedical#InvalidEncodingException":
970
+ throw await de_InvalidEncodingExceptionRes(parsedOutput, context);
971
+ case "InvalidRequestException":
972
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
973
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
974
+ case "ServiceUnavailableException":
975
+ case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
976
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
977
+ case "TextSizeLimitExceededException":
978
+ case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
979
+ throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
980
+ case "TooManyRequestsException":
981
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
982
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
983
+ default:
984
+ const parsedBody = parsedOutput.body;
985
+ return throwDefaultError({
986
+ output,
987
+ parsedBody,
988
+ errorCode
989
+ });
990
+ }
991
+ }, "de_DetectEntitiesV2CommandError");
992
+ var de_DetectPHICommand = /* @__PURE__ */ __name(async (output, context) => {
993
+ if (output.statusCode >= 300) {
994
+ return de_DetectPHICommandError(output, context);
995
+ }
996
+ const data = await parseBody(output.body, context);
997
+ let contents = {};
998
+ contents = de_DetectPHIResponse(data, context);
999
+ const response = {
1000
+ $metadata: deserializeMetadata(output),
1001
+ ...contents
1002
+ };
1003
+ return response;
1004
+ }, "de_DetectPHICommand");
1005
+ var de_DetectPHICommandError = /* @__PURE__ */ __name(async (output, context) => {
1006
+ const parsedOutput = {
1007
+ ...output,
1008
+ body: await parseErrorBody(output.body, context)
1009
+ };
1010
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1011
+ switch (errorCode) {
1012
+ case "InternalServerException":
1013
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1014
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1015
+ case "InvalidEncodingException":
1016
+ case "com.amazonaws.comprehendmedical#InvalidEncodingException":
1017
+ throw await de_InvalidEncodingExceptionRes(parsedOutput, context);
1018
+ case "InvalidRequestException":
1019
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1020
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1021
+ case "ServiceUnavailableException":
1022
+ case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
1023
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1024
+ case "TextSizeLimitExceededException":
1025
+ case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
1026
+ throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
1027
+ case "TooManyRequestsException":
1028
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1029
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1030
+ default:
1031
+ const parsedBody = parsedOutput.body;
1032
+ return throwDefaultError({
1033
+ output,
1034
+ parsedBody,
1035
+ errorCode
1036
+ });
1037
+ }
1038
+ }, "de_DetectPHICommandError");
1039
+ var de_InferICD10CMCommand = /* @__PURE__ */ __name(async (output, context) => {
1040
+ if (output.statusCode >= 300) {
1041
+ return de_InferICD10CMCommandError(output, context);
1042
+ }
1043
+ const data = await parseBody(output.body, context);
1044
+ let contents = {};
1045
+ contents = de_InferICD10CMResponse(data, context);
1046
+ const response = {
1047
+ $metadata: deserializeMetadata(output),
1048
+ ...contents
1049
+ };
1050
+ return response;
1051
+ }, "de_InferICD10CMCommand");
1052
+ var de_InferICD10CMCommandError = /* @__PURE__ */ __name(async (output, context) => {
1053
+ const parsedOutput = {
1054
+ ...output,
1055
+ body: await parseErrorBody(output.body, context)
1056
+ };
1057
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1058
+ switch (errorCode) {
1059
+ case "InternalServerException":
1060
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1061
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1062
+ case "InvalidEncodingException":
1063
+ case "com.amazonaws.comprehendmedical#InvalidEncodingException":
1064
+ throw await de_InvalidEncodingExceptionRes(parsedOutput, context);
1065
+ case "InvalidRequestException":
1066
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1067
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1068
+ case "ServiceUnavailableException":
1069
+ case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
1070
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1071
+ case "TextSizeLimitExceededException":
1072
+ case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
1073
+ throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
1074
+ case "TooManyRequestsException":
1075
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1076
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1077
+ default:
1078
+ const parsedBody = parsedOutput.body;
1079
+ return throwDefaultError({
1080
+ output,
1081
+ parsedBody,
1082
+ errorCode
1083
+ });
1084
+ }
1085
+ }, "de_InferICD10CMCommandError");
1086
+ var de_InferRxNormCommand = /* @__PURE__ */ __name(async (output, context) => {
1087
+ if (output.statusCode >= 300) {
1088
+ return de_InferRxNormCommandError(output, context);
1089
+ }
1090
+ const data = await parseBody(output.body, context);
1091
+ let contents = {};
1092
+ contents = de_InferRxNormResponse(data, context);
1093
+ const response = {
1094
+ $metadata: deserializeMetadata(output),
1095
+ ...contents
1096
+ };
1097
+ return response;
1098
+ }, "de_InferRxNormCommand");
1099
+ var de_InferRxNormCommandError = /* @__PURE__ */ __name(async (output, context) => {
1100
+ const parsedOutput = {
1101
+ ...output,
1102
+ body: await parseErrorBody(output.body, context)
1103
+ };
1104
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1105
+ switch (errorCode) {
1106
+ case "InternalServerException":
1107
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1108
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1109
+ case "InvalidEncodingException":
1110
+ case "com.amazonaws.comprehendmedical#InvalidEncodingException":
1111
+ throw await de_InvalidEncodingExceptionRes(parsedOutput, context);
1112
+ case "InvalidRequestException":
1113
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1114
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1115
+ case "ServiceUnavailableException":
1116
+ case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
1117
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1118
+ case "TextSizeLimitExceededException":
1119
+ case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
1120
+ throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
1121
+ case "TooManyRequestsException":
1122
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1123
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1124
+ default:
1125
+ const parsedBody = parsedOutput.body;
1126
+ return throwDefaultError({
1127
+ output,
1128
+ parsedBody,
1129
+ errorCode
1130
+ });
1131
+ }
1132
+ }, "de_InferRxNormCommandError");
1133
+ var de_InferSNOMEDCTCommand = /* @__PURE__ */ __name(async (output, context) => {
1134
+ if (output.statusCode >= 300) {
1135
+ return de_InferSNOMEDCTCommandError(output, context);
1136
+ }
1137
+ const data = await parseBody(output.body, context);
1138
+ let contents = {};
1139
+ contents = de_InferSNOMEDCTResponse(data, context);
1140
+ const response = {
1141
+ $metadata: deserializeMetadata(output),
1142
+ ...contents
1143
+ };
1144
+ return response;
1145
+ }, "de_InferSNOMEDCTCommand");
1146
+ var de_InferSNOMEDCTCommandError = /* @__PURE__ */ __name(async (output, context) => {
1147
+ const parsedOutput = {
1148
+ ...output,
1149
+ body: await parseErrorBody(output.body, context)
1150
+ };
1151
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1152
+ switch (errorCode) {
1153
+ case "InternalServerException":
1154
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1155
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1156
+ case "InvalidEncodingException":
1157
+ case "com.amazonaws.comprehendmedical#InvalidEncodingException":
1158
+ throw await de_InvalidEncodingExceptionRes(parsedOutput, context);
1159
+ case "InvalidRequestException":
1160
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1161
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1162
+ case "ServiceUnavailableException":
1163
+ case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
1164
+ throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1165
+ case "TextSizeLimitExceededException":
1166
+ case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
1167
+ throw await de_TextSizeLimitExceededExceptionRes(parsedOutput, context);
1168
+ case "TooManyRequestsException":
1169
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1170
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1171
+ default:
1172
+ const parsedBody = parsedOutput.body;
1173
+ return throwDefaultError({
1174
+ output,
1175
+ parsedBody,
1176
+ errorCode
1177
+ });
1178
+ }
1179
+ }, "de_InferSNOMEDCTCommandError");
1180
+ var de_ListEntitiesDetectionV2JobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1181
+ if (output.statusCode >= 300) {
1182
+ return de_ListEntitiesDetectionV2JobsCommandError(output, context);
1183
+ }
1184
+ const data = await parseBody(output.body, context);
1185
+ let contents = {};
1186
+ contents = de_ListEntitiesDetectionV2JobsResponse(data, context);
1187
+ const response = {
1188
+ $metadata: deserializeMetadata(output),
1189
+ ...contents
1190
+ };
1191
+ return response;
1192
+ }, "de_ListEntitiesDetectionV2JobsCommand");
1193
+ var de_ListEntitiesDetectionV2JobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1194
+ const parsedOutput = {
1195
+ ...output,
1196
+ body: await parseErrorBody(output.body, context)
1197
+ };
1198
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1199
+ switch (errorCode) {
1200
+ case "InternalServerException":
1201
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1202
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1203
+ case "InvalidRequestException":
1204
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1205
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1206
+ case "TooManyRequestsException":
1207
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1208
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1209
+ case "ValidationException":
1210
+ case "com.amazonaws.comprehendmedical#ValidationException":
1211
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1212
+ default:
1213
+ const parsedBody = parsedOutput.body;
1214
+ return throwDefaultError({
1215
+ output,
1216
+ parsedBody,
1217
+ errorCode
1218
+ });
1219
+ }
1220
+ }, "de_ListEntitiesDetectionV2JobsCommandError");
1221
+ var de_ListICD10CMInferenceJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1222
+ if (output.statusCode >= 300) {
1223
+ return de_ListICD10CMInferenceJobsCommandError(output, context);
1224
+ }
1225
+ const data = await parseBody(output.body, context);
1226
+ let contents = {};
1227
+ contents = de_ListICD10CMInferenceJobsResponse(data, context);
1228
+ const response = {
1229
+ $metadata: deserializeMetadata(output),
1230
+ ...contents
1231
+ };
1232
+ return response;
1233
+ }, "de_ListICD10CMInferenceJobsCommand");
1234
+ var de_ListICD10CMInferenceJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1235
+ const parsedOutput = {
1236
+ ...output,
1237
+ body: await parseErrorBody(output.body, context)
1238
+ };
1239
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1240
+ switch (errorCode) {
1241
+ case "InternalServerException":
1242
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1243
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1244
+ case "InvalidRequestException":
1245
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1246
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1247
+ case "TooManyRequestsException":
1248
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1249
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1250
+ case "ValidationException":
1251
+ case "com.amazonaws.comprehendmedical#ValidationException":
1252
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1253
+ default:
1254
+ const parsedBody = parsedOutput.body;
1255
+ return throwDefaultError({
1256
+ output,
1257
+ parsedBody,
1258
+ errorCode
1259
+ });
1260
+ }
1261
+ }, "de_ListICD10CMInferenceJobsCommandError");
1262
+ var de_ListPHIDetectionJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1263
+ if (output.statusCode >= 300) {
1264
+ return de_ListPHIDetectionJobsCommandError(output, context);
1265
+ }
1266
+ const data = await parseBody(output.body, context);
1267
+ let contents = {};
1268
+ contents = de_ListPHIDetectionJobsResponse(data, context);
1269
+ const response = {
1270
+ $metadata: deserializeMetadata(output),
1271
+ ...contents
1272
+ };
1273
+ return response;
1274
+ }, "de_ListPHIDetectionJobsCommand");
1275
+ var de_ListPHIDetectionJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1276
+ const parsedOutput = {
1277
+ ...output,
1278
+ body: await parseErrorBody(output.body, context)
1279
+ };
1280
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1281
+ switch (errorCode) {
1282
+ case "InternalServerException":
1283
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1284
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1285
+ case "InvalidRequestException":
1286
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1287
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1288
+ case "TooManyRequestsException":
1289
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1290
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1291
+ case "ValidationException":
1292
+ case "com.amazonaws.comprehendmedical#ValidationException":
1293
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1294
+ default:
1295
+ const parsedBody = parsedOutput.body;
1296
+ return throwDefaultError({
1297
+ output,
1298
+ parsedBody,
1299
+ errorCode
1300
+ });
1301
+ }
1302
+ }, "de_ListPHIDetectionJobsCommandError");
1303
+ var de_ListRxNormInferenceJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1304
+ if (output.statusCode >= 300) {
1305
+ return de_ListRxNormInferenceJobsCommandError(output, context);
1306
+ }
1307
+ const data = await parseBody(output.body, context);
1308
+ let contents = {};
1309
+ contents = de_ListRxNormInferenceJobsResponse(data, context);
1310
+ const response = {
1311
+ $metadata: deserializeMetadata(output),
1312
+ ...contents
1313
+ };
1314
+ return response;
1315
+ }, "de_ListRxNormInferenceJobsCommand");
1316
+ var de_ListRxNormInferenceJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1317
+ const parsedOutput = {
1318
+ ...output,
1319
+ body: await parseErrorBody(output.body, context)
1320
+ };
1321
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1322
+ switch (errorCode) {
1323
+ case "InternalServerException":
1324
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1325
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1326
+ case "InvalidRequestException":
1327
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1328
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1329
+ case "TooManyRequestsException":
1330
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1331
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1332
+ case "ValidationException":
1333
+ case "com.amazonaws.comprehendmedical#ValidationException":
1334
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1335
+ default:
1336
+ const parsedBody = parsedOutput.body;
1337
+ return throwDefaultError({
1338
+ output,
1339
+ parsedBody,
1340
+ errorCode
1341
+ });
1342
+ }
1343
+ }, "de_ListRxNormInferenceJobsCommandError");
1344
+ var de_ListSNOMEDCTInferenceJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
1345
+ if (output.statusCode >= 300) {
1346
+ return de_ListSNOMEDCTInferenceJobsCommandError(output, context);
1347
+ }
1348
+ const data = await parseBody(output.body, context);
1349
+ let contents = {};
1350
+ contents = de_ListSNOMEDCTInferenceJobsResponse(data, context);
1351
+ const response = {
1352
+ $metadata: deserializeMetadata(output),
1353
+ ...contents
1354
+ };
1355
+ return response;
1356
+ }, "de_ListSNOMEDCTInferenceJobsCommand");
1357
+ var de_ListSNOMEDCTInferenceJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1358
+ const parsedOutput = {
1359
+ ...output,
1360
+ body: await parseErrorBody(output.body, context)
1361
+ };
1362
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1363
+ switch (errorCode) {
1364
+ case "InternalServerException":
1365
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1366
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1367
+ case "InvalidRequestException":
1368
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1369
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1370
+ case "TooManyRequestsException":
1371
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1372
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1373
+ case "ValidationException":
1374
+ case "com.amazonaws.comprehendmedical#ValidationException":
1375
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1376
+ default:
1377
+ const parsedBody = parsedOutput.body;
1378
+ return throwDefaultError({
1379
+ output,
1380
+ parsedBody,
1381
+ errorCode
1382
+ });
1383
+ }
1384
+ }, "de_ListSNOMEDCTInferenceJobsCommandError");
1385
+ var de_StartEntitiesDetectionV2JobCommand = /* @__PURE__ */ __name(async (output, context) => {
1386
+ if (output.statusCode >= 300) {
1387
+ return de_StartEntitiesDetectionV2JobCommandError(output, context);
1388
+ }
1389
+ const data = await parseBody(output.body, context);
1390
+ let contents = {};
1391
+ contents = (0, import_smithy_client._json)(data);
1392
+ const response = {
1393
+ $metadata: deserializeMetadata(output),
1394
+ ...contents
1395
+ };
1396
+ return response;
1397
+ }, "de_StartEntitiesDetectionV2JobCommand");
1398
+ var de_StartEntitiesDetectionV2JobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1399
+ const parsedOutput = {
1400
+ ...output,
1401
+ body: await parseErrorBody(output.body, context)
1402
+ };
1403
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1404
+ switch (errorCode) {
1405
+ case "InternalServerException":
1406
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1407
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1408
+ case "InvalidRequestException":
1409
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1410
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1411
+ case "ResourceNotFoundException":
1412
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
1413
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1414
+ case "TooManyRequestsException":
1415
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1416
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1417
+ default:
1418
+ const parsedBody = parsedOutput.body;
1419
+ return throwDefaultError({
1420
+ output,
1421
+ parsedBody,
1422
+ errorCode
1423
+ });
1424
+ }
1425
+ }, "de_StartEntitiesDetectionV2JobCommandError");
1426
+ var de_StartICD10CMInferenceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1427
+ if (output.statusCode >= 300) {
1428
+ return de_StartICD10CMInferenceJobCommandError(output, context);
1429
+ }
1430
+ const data = await parseBody(output.body, context);
1431
+ let contents = {};
1432
+ contents = (0, import_smithy_client._json)(data);
1433
+ const response = {
1434
+ $metadata: deserializeMetadata(output),
1435
+ ...contents
1436
+ };
1437
+ return response;
1438
+ }, "de_StartICD10CMInferenceJobCommand");
1439
+ var de_StartICD10CMInferenceJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1440
+ const parsedOutput = {
1441
+ ...output,
1442
+ body: await parseErrorBody(output.body, context)
1443
+ };
1444
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1445
+ switch (errorCode) {
1446
+ case "InternalServerException":
1447
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1448
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1449
+ case "InvalidRequestException":
1450
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1451
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1452
+ case "ResourceNotFoundException":
1453
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
1454
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1455
+ case "TooManyRequestsException":
1456
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1457
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1458
+ default:
1459
+ const parsedBody = parsedOutput.body;
1460
+ return throwDefaultError({
1461
+ output,
1462
+ parsedBody,
1463
+ errorCode
1464
+ });
1465
+ }
1466
+ }, "de_StartICD10CMInferenceJobCommandError");
1467
+ var de_StartPHIDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1468
+ if (output.statusCode >= 300) {
1469
+ return de_StartPHIDetectionJobCommandError(output, context);
1470
+ }
1471
+ const data = await parseBody(output.body, context);
1472
+ let contents = {};
1473
+ contents = (0, import_smithy_client._json)(data);
1474
+ const response = {
1475
+ $metadata: deserializeMetadata(output),
1476
+ ...contents
1477
+ };
1478
+ return response;
1479
+ }, "de_StartPHIDetectionJobCommand");
1480
+ var de_StartPHIDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1481
+ const parsedOutput = {
1482
+ ...output,
1483
+ body: await parseErrorBody(output.body, context)
1484
+ };
1485
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1486
+ switch (errorCode) {
1487
+ case "InternalServerException":
1488
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1489
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1490
+ case "InvalidRequestException":
1491
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1492
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1493
+ case "ResourceNotFoundException":
1494
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
1495
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1496
+ case "TooManyRequestsException":
1497
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1498
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1499
+ default:
1500
+ const parsedBody = parsedOutput.body;
1501
+ return throwDefaultError({
1502
+ output,
1503
+ parsedBody,
1504
+ errorCode
1505
+ });
1506
+ }
1507
+ }, "de_StartPHIDetectionJobCommandError");
1508
+ var de_StartRxNormInferenceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1509
+ if (output.statusCode >= 300) {
1510
+ return de_StartRxNormInferenceJobCommandError(output, context);
1511
+ }
1512
+ const data = await parseBody(output.body, context);
1513
+ let contents = {};
1514
+ contents = (0, import_smithy_client._json)(data);
1515
+ const response = {
1516
+ $metadata: deserializeMetadata(output),
1517
+ ...contents
1518
+ };
1519
+ return response;
1520
+ }, "de_StartRxNormInferenceJobCommand");
1521
+ var de_StartRxNormInferenceJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1522
+ const parsedOutput = {
1523
+ ...output,
1524
+ body: await parseErrorBody(output.body, context)
1525
+ };
1526
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1527
+ switch (errorCode) {
1528
+ case "InternalServerException":
1529
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1530
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1531
+ case "InvalidRequestException":
1532
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1533
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1534
+ case "ResourceNotFoundException":
1535
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
1536
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1537
+ case "TooManyRequestsException":
1538
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1539
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1540
+ default:
1541
+ const parsedBody = parsedOutput.body;
1542
+ return throwDefaultError({
1543
+ output,
1544
+ parsedBody,
1545
+ errorCode
1546
+ });
1547
+ }
1548
+ }, "de_StartRxNormInferenceJobCommandError");
1549
+ var de_StartSNOMEDCTInferenceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1550
+ if (output.statusCode >= 300) {
1551
+ return de_StartSNOMEDCTInferenceJobCommandError(output, context);
1552
+ }
1553
+ const data = await parseBody(output.body, context);
1554
+ let contents = {};
1555
+ contents = (0, import_smithy_client._json)(data);
1556
+ const response = {
1557
+ $metadata: deserializeMetadata(output),
1558
+ ...contents
1559
+ };
1560
+ return response;
1561
+ }, "de_StartSNOMEDCTInferenceJobCommand");
1562
+ var de_StartSNOMEDCTInferenceJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1563
+ const parsedOutput = {
1564
+ ...output,
1565
+ body: await parseErrorBody(output.body, context)
1566
+ };
1567
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1568
+ switch (errorCode) {
1569
+ case "InternalServerException":
1570
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1571
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1572
+ case "InvalidRequestException":
1573
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1574
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1575
+ case "ResourceNotFoundException":
1576
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
1577
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1578
+ case "TooManyRequestsException":
1579
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1580
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1581
+ default:
1582
+ const parsedBody = parsedOutput.body;
1583
+ return throwDefaultError({
1584
+ output,
1585
+ parsedBody,
1586
+ errorCode
1587
+ });
1588
+ }
1589
+ }, "de_StartSNOMEDCTInferenceJobCommandError");
1590
+ var de_StopEntitiesDetectionV2JobCommand = /* @__PURE__ */ __name(async (output, context) => {
1591
+ if (output.statusCode >= 300) {
1592
+ return de_StopEntitiesDetectionV2JobCommandError(output, context);
1593
+ }
1594
+ const data = await parseBody(output.body, context);
1595
+ let contents = {};
1596
+ contents = (0, import_smithy_client._json)(data);
1597
+ const response = {
1598
+ $metadata: deserializeMetadata(output),
1599
+ ...contents
1600
+ };
1601
+ return response;
1602
+ }, "de_StopEntitiesDetectionV2JobCommand");
1603
+ var de_StopEntitiesDetectionV2JobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1604
+ const parsedOutput = {
1605
+ ...output,
1606
+ body: await parseErrorBody(output.body, context)
1607
+ };
1608
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1609
+ switch (errorCode) {
1610
+ case "InternalServerException":
1611
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1612
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1613
+ case "InvalidRequestException":
1614
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1615
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1616
+ case "ResourceNotFoundException":
1617
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
1618
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1619
+ default:
1620
+ const parsedBody = parsedOutput.body;
1621
+ return throwDefaultError({
1622
+ output,
1623
+ parsedBody,
1624
+ errorCode
1625
+ });
1626
+ }
1627
+ }, "de_StopEntitiesDetectionV2JobCommandError");
1628
+ var de_StopICD10CMInferenceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1629
+ if (output.statusCode >= 300) {
1630
+ return de_StopICD10CMInferenceJobCommandError(output, context);
1631
+ }
1632
+ const data = await parseBody(output.body, context);
1633
+ let contents = {};
1634
+ contents = (0, import_smithy_client._json)(data);
1635
+ const response = {
1636
+ $metadata: deserializeMetadata(output),
1637
+ ...contents
1638
+ };
1639
+ return response;
1640
+ }, "de_StopICD10CMInferenceJobCommand");
1641
+ var de_StopICD10CMInferenceJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1642
+ const parsedOutput = {
1643
+ ...output,
1644
+ body: await parseErrorBody(output.body, context)
1645
+ };
1646
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1647
+ switch (errorCode) {
1648
+ case "InternalServerException":
1649
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1650
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1651
+ case "InvalidRequestException":
1652
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1653
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1654
+ case "ResourceNotFoundException":
1655
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
1656
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1657
+ default:
1658
+ const parsedBody = parsedOutput.body;
1659
+ return throwDefaultError({
1660
+ output,
1661
+ parsedBody,
1662
+ errorCode
1663
+ });
1664
+ }
1665
+ }, "de_StopICD10CMInferenceJobCommandError");
1666
+ var de_StopPHIDetectionJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1667
+ if (output.statusCode >= 300) {
1668
+ return de_StopPHIDetectionJobCommandError(output, context);
1669
+ }
1670
+ const data = await parseBody(output.body, context);
1671
+ let contents = {};
1672
+ contents = (0, import_smithy_client._json)(data);
1673
+ const response = {
1674
+ $metadata: deserializeMetadata(output),
1675
+ ...contents
1676
+ };
1677
+ return response;
1678
+ }, "de_StopPHIDetectionJobCommand");
1679
+ var de_StopPHIDetectionJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1680
+ const parsedOutput = {
1681
+ ...output,
1682
+ body: await parseErrorBody(output.body, context)
1683
+ };
1684
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1685
+ switch (errorCode) {
1686
+ case "InternalServerException":
1687
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1688
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1689
+ case "InvalidRequestException":
1690
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1691
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1692
+ case "ResourceNotFoundException":
1693
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
1694
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1695
+ default:
1696
+ const parsedBody = parsedOutput.body;
1697
+ return throwDefaultError({
1698
+ output,
1699
+ parsedBody,
1700
+ errorCode
1701
+ });
1702
+ }
1703
+ }, "de_StopPHIDetectionJobCommandError");
1704
+ var de_StopRxNormInferenceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1705
+ if (output.statusCode >= 300) {
1706
+ return de_StopRxNormInferenceJobCommandError(output, context);
1707
+ }
1708
+ const data = await parseBody(output.body, context);
1709
+ let contents = {};
1710
+ contents = (0, import_smithy_client._json)(data);
1711
+ const response = {
1712
+ $metadata: deserializeMetadata(output),
1713
+ ...contents
1714
+ };
1715
+ return response;
1716
+ }, "de_StopRxNormInferenceJobCommand");
1717
+ var de_StopRxNormInferenceJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1718
+ const parsedOutput = {
1719
+ ...output,
1720
+ body: await parseErrorBody(output.body, context)
1721
+ };
1722
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1723
+ switch (errorCode) {
1724
+ case "InternalServerException":
1725
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1726
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1727
+ case "InvalidRequestException":
1728
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1729
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1730
+ case "ResourceNotFoundException":
1731
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
1732
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1733
+ default:
1734
+ const parsedBody = parsedOutput.body;
1735
+ return throwDefaultError({
1736
+ output,
1737
+ parsedBody,
1738
+ errorCode
1739
+ });
1740
+ }
1741
+ }, "de_StopRxNormInferenceJobCommandError");
1742
+ var de_StopSNOMEDCTInferenceJobCommand = /* @__PURE__ */ __name(async (output, context) => {
1743
+ if (output.statusCode >= 300) {
1744
+ return de_StopSNOMEDCTInferenceJobCommandError(output, context);
1745
+ }
1746
+ const data = await parseBody(output.body, context);
1747
+ let contents = {};
1748
+ contents = (0, import_smithy_client._json)(data);
1749
+ const response = {
1750
+ $metadata: deserializeMetadata(output),
1751
+ ...contents
1752
+ };
1753
+ return response;
1754
+ }, "de_StopSNOMEDCTInferenceJobCommand");
1755
+ var de_StopSNOMEDCTInferenceJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
1756
+ const parsedOutput = {
1757
+ ...output,
1758
+ body: await parseErrorBody(output.body, context)
1759
+ };
1760
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1761
+ switch (errorCode) {
1762
+ case "InternalServerException":
1763
+ case "com.amazonaws.comprehendmedical#InternalServerException":
1764
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1765
+ case "InvalidRequestException":
1766
+ case "com.amazonaws.comprehendmedical#InvalidRequestException":
1767
+ throw await de_InvalidRequestExceptionRes(parsedOutput, context);
1768
+ case "ResourceNotFoundException":
1769
+ case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
1770
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1771
+ case "TooManyRequestsException":
1772
+ case "com.amazonaws.comprehendmedical#TooManyRequestsException":
1773
+ throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1774
+ default:
1775
+ const parsedBody = parsedOutput.body;
1776
+ return throwDefaultError({
1777
+ output,
1778
+ parsedBody,
1779
+ errorCode
1780
+ });
1781
+ }
1782
+ }, "de_StopSNOMEDCTInferenceJobCommandError");
1783
+ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1784
+ const body = parsedOutput.body;
1785
+ const deserialized = (0, import_smithy_client._json)(body);
1786
+ const exception = new InternalServerException({
1787
+ $metadata: deserializeMetadata(parsedOutput),
1788
+ ...deserialized
1789
+ });
1790
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1791
+ }, "de_InternalServerExceptionRes");
1792
+ var de_InvalidEncodingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1793
+ const body = parsedOutput.body;
1794
+ const deserialized = (0, import_smithy_client._json)(body);
1795
+ const exception = new InvalidEncodingException({
1796
+ $metadata: deserializeMetadata(parsedOutput),
1797
+ ...deserialized
1798
+ });
1799
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1800
+ }, "de_InvalidEncodingExceptionRes");
1801
+ var de_InvalidRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1802
+ const body = parsedOutput.body;
1803
+ const deserialized = (0, import_smithy_client._json)(body);
1804
+ const exception = new InvalidRequestException({
1805
+ $metadata: deserializeMetadata(parsedOutput),
1806
+ ...deserialized
1807
+ });
1808
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1809
+ }, "de_InvalidRequestExceptionRes");
1810
+ var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1811
+ const body = parsedOutput.body;
1812
+ const deserialized = (0, import_smithy_client._json)(body);
1813
+ const exception = new ResourceNotFoundException({
1814
+ $metadata: deserializeMetadata(parsedOutput),
1815
+ ...deserialized
1816
+ });
1817
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1818
+ }, "de_ResourceNotFoundExceptionRes");
1819
+ var de_ServiceUnavailableExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1820
+ const body = parsedOutput.body;
1821
+ const deserialized = (0, import_smithy_client._json)(body);
1822
+ const exception = new ServiceUnavailableException({
1823
+ $metadata: deserializeMetadata(parsedOutput),
1824
+ ...deserialized
1825
+ });
1826
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1827
+ }, "de_ServiceUnavailableExceptionRes");
1828
+ var de_TextSizeLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1829
+ const body = parsedOutput.body;
1830
+ const deserialized = (0, import_smithy_client._json)(body);
1831
+ const exception = new TextSizeLimitExceededException({
1832
+ $metadata: deserializeMetadata(parsedOutput),
1833
+ ...deserialized
1834
+ });
1835
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1836
+ }, "de_TextSizeLimitExceededExceptionRes");
1837
+ var de_TooManyRequestsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1838
+ const body = parsedOutput.body;
1839
+ const deserialized = (0, import_smithy_client._json)(body);
1840
+ const exception = new TooManyRequestsException({
1841
+ $metadata: deserializeMetadata(parsedOutput),
1842
+ ...deserialized
1843
+ });
1844
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1845
+ }, "de_TooManyRequestsExceptionRes");
1846
+ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1847
+ const body = parsedOutput.body;
1848
+ const deserialized = (0, import_smithy_client._json)(body);
1849
+ const exception = new ValidationException({
1850
+ $metadata: deserializeMetadata(parsedOutput),
1851
+ ...deserialized
1852
+ });
1853
+ return (0, import_smithy_client.decorateServiceException)(exception, body);
1854
+ }, "de_ValidationExceptionRes");
1855
+ var se_ComprehendMedicalAsyncJobFilter = /* @__PURE__ */ __name((input, context) => {
1856
+ return (0, import_smithy_client.take)(input, {
1857
+ JobName: [],
1858
+ JobStatus: [],
1859
+ SubmitTimeAfter: (_) => Math.round(_.getTime() / 1e3),
1860
+ SubmitTimeBefore: (_) => Math.round(_.getTime() / 1e3)
1861
+ });
1862
+ }, "se_ComprehendMedicalAsyncJobFilter");
1863
+ var se_ListEntitiesDetectionV2JobsRequest = /* @__PURE__ */ __name((input, context) => {
1864
+ return (0, import_smithy_client.take)(input, {
1865
+ Filter: (_) => se_ComprehendMedicalAsyncJobFilter(_, context),
1866
+ MaxResults: [],
1867
+ NextToken: []
1868
+ });
1869
+ }, "se_ListEntitiesDetectionV2JobsRequest");
1870
+ var se_ListICD10CMInferenceJobsRequest = /* @__PURE__ */ __name((input, context) => {
1871
+ return (0, import_smithy_client.take)(input, {
1872
+ Filter: (_) => se_ComprehendMedicalAsyncJobFilter(_, context),
1873
+ MaxResults: [],
1874
+ NextToken: []
1875
+ });
1876
+ }, "se_ListICD10CMInferenceJobsRequest");
1877
+ var se_ListPHIDetectionJobsRequest = /* @__PURE__ */ __name((input, context) => {
1878
+ return (0, import_smithy_client.take)(input, {
1879
+ Filter: (_) => se_ComprehendMedicalAsyncJobFilter(_, context),
1880
+ MaxResults: [],
1881
+ NextToken: []
1882
+ });
1883
+ }, "se_ListPHIDetectionJobsRequest");
1884
+ var se_ListRxNormInferenceJobsRequest = /* @__PURE__ */ __name((input, context) => {
1885
+ return (0, import_smithy_client.take)(input, {
1886
+ Filter: (_) => se_ComprehendMedicalAsyncJobFilter(_, context),
1887
+ MaxResults: [],
1888
+ NextToken: []
1889
+ });
1890
+ }, "se_ListRxNormInferenceJobsRequest");
1891
+ var se_ListSNOMEDCTInferenceJobsRequest = /* @__PURE__ */ __name((input, context) => {
1892
+ return (0, import_smithy_client.take)(input, {
1893
+ Filter: (_) => se_ComprehendMedicalAsyncJobFilter(_, context),
1894
+ MaxResults: [],
1895
+ NextToken: []
1896
+ });
1897
+ }, "se_ListSNOMEDCTInferenceJobsRequest");
1898
+ var se_StartEntitiesDetectionV2JobRequest = /* @__PURE__ */ __name((input, context) => {
1899
+ return (0, import_smithy_client.take)(input, {
1900
+ ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1901
+ DataAccessRoleArn: [],
1902
+ InputDataConfig: import_smithy_client._json,
1903
+ JobName: [],
1904
+ KMSKey: [],
1905
+ LanguageCode: [],
1906
+ OutputDataConfig: import_smithy_client._json
1907
+ });
1908
+ }, "se_StartEntitiesDetectionV2JobRequest");
1909
+ var se_StartICD10CMInferenceJobRequest = /* @__PURE__ */ __name((input, context) => {
1910
+ return (0, import_smithy_client.take)(input, {
1911
+ ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1912
+ DataAccessRoleArn: [],
1913
+ InputDataConfig: import_smithy_client._json,
1914
+ JobName: [],
1915
+ KMSKey: [],
1916
+ LanguageCode: [],
1917
+ OutputDataConfig: import_smithy_client._json
1918
+ });
1919
+ }, "se_StartICD10CMInferenceJobRequest");
1920
+ var se_StartPHIDetectionJobRequest = /* @__PURE__ */ __name((input, context) => {
1921
+ return (0, import_smithy_client.take)(input, {
1922
+ ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1923
+ DataAccessRoleArn: [],
1924
+ InputDataConfig: import_smithy_client._json,
1925
+ JobName: [],
1926
+ KMSKey: [],
1927
+ LanguageCode: [],
1928
+ OutputDataConfig: import_smithy_client._json
1929
+ });
1930
+ }, "se_StartPHIDetectionJobRequest");
1931
+ var se_StartRxNormInferenceJobRequest = /* @__PURE__ */ __name((input, context) => {
1932
+ return (0, import_smithy_client.take)(input, {
1933
+ ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1934
+ DataAccessRoleArn: [],
1935
+ InputDataConfig: import_smithy_client._json,
1936
+ JobName: [],
1937
+ KMSKey: [],
1938
+ LanguageCode: [],
1939
+ OutputDataConfig: import_smithy_client._json
1940
+ });
1941
+ }, "se_StartRxNormInferenceJobRequest");
1942
+ var se_StartSNOMEDCTInferenceJobRequest = /* @__PURE__ */ __name((input, context) => {
1943
+ return (0, import_smithy_client.take)(input, {
1944
+ ClientRequestToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
1945
+ DataAccessRoleArn: [],
1946
+ InputDataConfig: import_smithy_client._json,
1947
+ JobName: [],
1948
+ KMSKey: [],
1949
+ LanguageCode: [],
1950
+ OutputDataConfig: import_smithy_client._json
1951
+ });
1952
+ }, "se_StartSNOMEDCTInferenceJobRequest");
1953
+ var de_Attribute = /* @__PURE__ */ __name((output, context) => {
1954
+ return (0, import_smithy_client.take)(output, {
1955
+ BeginOffset: import_smithy_client.expectInt32,
1956
+ Category: import_smithy_client.expectString,
1957
+ EndOffset: import_smithy_client.expectInt32,
1958
+ Id: import_smithy_client.expectInt32,
1959
+ RelationshipScore: import_smithy_client.limitedParseFloat32,
1960
+ RelationshipType: import_smithy_client.expectString,
1961
+ Score: import_smithy_client.limitedParseFloat32,
1962
+ Text: import_smithy_client.expectString,
1963
+ Traits: (_) => de_TraitList(_, context),
1964
+ Type: import_smithy_client.expectString
1965
+ });
1966
+ }, "de_Attribute");
1967
+ var de_AttributeList = /* @__PURE__ */ __name((output, context) => {
1968
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1969
+ return de_Attribute(entry, context);
1970
+ });
1971
+ return retVal;
1972
+ }, "de_AttributeList");
1973
+ var de_ComprehendMedicalAsyncJobProperties = /* @__PURE__ */ __name((output, context) => {
1974
+ return (0, import_smithy_client.take)(output, {
1975
+ DataAccessRoleArn: import_smithy_client.expectString,
1976
+ EndTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1977
+ ExpirationTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
1978
+ InputDataConfig: import_smithy_client._json,
1979
+ JobId: import_smithy_client.expectString,
1980
+ JobName: import_smithy_client.expectString,
1981
+ JobStatus: import_smithy_client.expectString,
1982
+ KMSKey: import_smithy_client.expectString,
1983
+ LanguageCode: import_smithy_client.expectString,
1984
+ ManifestFilePath: import_smithy_client.expectString,
1985
+ Message: import_smithy_client.expectString,
1986
+ ModelVersion: import_smithy_client.expectString,
1987
+ OutputDataConfig: import_smithy_client._json,
1988
+ SubmitTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_)))
1989
+ });
1990
+ }, "de_ComprehendMedicalAsyncJobProperties");
1991
+ var de_ComprehendMedicalAsyncJobPropertiesList = /* @__PURE__ */ __name((output, context) => {
1992
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
1993
+ return de_ComprehendMedicalAsyncJobProperties(entry, context);
1994
+ });
1995
+ return retVal;
1996
+ }, "de_ComprehendMedicalAsyncJobPropertiesList");
1997
+ var de_DescribeEntitiesDetectionV2JobResponse = /* @__PURE__ */ __name((output, context) => {
1998
+ return (0, import_smithy_client.take)(output, {
1999
+ ComprehendMedicalAsyncJobProperties: (_) => de_ComprehendMedicalAsyncJobProperties(_, context)
2000
+ });
2001
+ }, "de_DescribeEntitiesDetectionV2JobResponse");
2002
+ var de_DescribeICD10CMInferenceJobResponse = /* @__PURE__ */ __name((output, context) => {
2003
+ return (0, import_smithy_client.take)(output, {
2004
+ ComprehendMedicalAsyncJobProperties: (_) => de_ComprehendMedicalAsyncJobProperties(_, context)
2005
+ });
2006
+ }, "de_DescribeICD10CMInferenceJobResponse");
2007
+ var de_DescribePHIDetectionJobResponse = /* @__PURE__ */ __name((output, context) => {
2008
+ return (0, import_smithy_client.take)(output, {
2009
+ ComprehendMedicalAsyncJobProperties: (_) => de_ComprehendMedicalAsyncJobProperties(_, context)
2010
+ });
2011
+ }, "de_DescribePHIDetectionJobResponse");
2012
+ var de_DescribeRxNormInferenceJobResponse = /* @__PURE__ */ __name((output, context) => {
2013
+ return (0, import_smithy_client.take)(output, {
2014
+ ComprehendMedicalAsyncJobProperties: (_) => de_ComprehendMedicalAsyncJobProperties(_, context)
2015
+ });
2016
+ }, "de_DescribeRxNormInferenceJobResponse");
2017
+ var de_DescribeSNOMEDCTInferenceJobResponse = /* @__PURE__ */ __name((output, context) => {
2018
+ return (0, import_smithy_client.take)(output, {
2019
+ ComprehendMedicalAsyncJobProperties: (_) => de_ComprehendMedicalAsyncJobProperties(_, context)
2020
+ });
2021
+ }, "de_DescribeSNOMEDCTInferenceJobResponse");
2022
+ var de_DetectEntitiesResponse = /* @__PURE__ */ __name((output, context) => {
2023
+ return (0, import_smithy_client.take)(output, {
2024
+ Entities: (_) => de_EntityList(_, context),
2025
+ ModelVersion: import_smithy_client.expectString,
2026
+ PaginationToken: import_smithy_client.expectString,
2027
+ UnmappedAttributes: (_) => de_UnmappedAttributeList(_, context)
2028
+ });
2029
+ }, "de_DetectEntitiesResponse");
2030
+ var de_DetectEntitiesV2Response = /* @__PURE__ */ __name((output, context) => {
2031
+ return (0, import_smithy_client.take)(output, {
2032
+ Entities: (_) => de_EntityList(_, context),
2033
+ ModelVersion: import_smithy_client.expectString,
2034
+ PaginationToken: import_smithy_client.expectString,
2035
+ UnmappedAttributes: (_) => de_UnmappedAttributeList(_, context)
2036
+ });
2037
+ }, "de_DetectEntitiesV2Response");
2038
+ var de_DetectPHIResponse = /* @__PURE__ */ __name((output, context) => {
2039
+ return (0, import_smithy_client.take)(output, {
2040
+ Entities: (_) => de_EntityList(_, context),
2041
+ ModelVersion: import_smithy_client.expectString,
2042
+ PaginationToken: import_smithy_client.expectString
2043
+ });
2044
+ }, "de_DetectPHIResponse");
2045
+ var de_Entity = /* @__PURE__ */ __name((output, context) => {
2046
+ return (0, import_smithy_client.take)(output, {
2047
+ Attributes: (_) => de_AttributeList(_, context),
2048
+ BeginOffset: import_smithy_client.expectInt32,
2049
+ Category: import_smithy_client.expectString,
2050
+ EndOffset: import_smithy_client.expectInt32,
2051
+ Id: import_smithy_client.expectInt32,
2052
+ Score: import_smithy_client.limitedParseFloat32,
2053
+ Text: import_smithy_client.expectString,
2054
+ Traits: (_) => de_TraitList(_, context),
2055
+ Type: import_smithy_client.expectString
2056
+ });
2057
+ }, "de_Entity");
2058
+ var de_EntityList = /* @__PURE__ */ __name((output, context) => {
2059
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2060
+ return de_Entity(entry, context);
2061
+ });
2062
+ return retVal;
2063
+ }, "de_EntityList");
2064
+ var de_ICD10CMAttribute = /* @__PURE__ */ __name((output, context) => {
2065
+ return (0, import_smithy_client.take)(output, {
2066
+ BeginOffset: import_smithy_client.expectInt32,
2067
+ Category: import_smithy_client.expectString,
2068
+ EndOffset: import_smithy_client.expectInt32,
2069
+ Id: import_smithy_client.expectInt32,
2070
+ RelationshipScore: import_smithy_client.limitedParseFloat32,
2071
+ RelationshipType: import_smithy_client.expectString,
2072
+ Score: import_smithy_client.limitedParseFloat32,
2073
+ Text: import_smithy_client.expectString,
2074
+ Traits: (_) => de_ICD10CMTraitList(_, context),
2075
+ Type: import_smithy_client.expectString
2076
+ });
2077
+ }, "de_ICD10CMAttribute");
2078
+ var de_ICD10CMAttributeList = /* @__PURE__ */ __name((output, context) => {
2079
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2080
+ return de_ICD10CMAttribute(entry, context);
2081
+ });
2082
+ return retVal;
2083
+ }, "de_ICD10CMAttributeList");
2084
+ var de_ICD10CMConcept = /* @__PURE__ */ __name((output, context) => {
2085
+ return (0, import_smithy_client.take)(output, {
2086
+ Code: import_smithy_client.expectString,
2087
+ Description: import_smithy_client.expectString,
2088
+ Score: import_smithy_client.limitedParseFloat32
2089
+ });
2090
+ }, "de_ICD10CMConcept");
2091
+ var de_ICD10CMConceptList = /* @__PURE__ */ __name((output, context) => {
2092
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2093
+ return de_ICD10CMConcept(entry, context);
2094
+ });
2095
+ return retVal;
2096
+ }, "de_ICD10CMConceptList");
2097
+ var de_ICD10CMEntity = /* @__PURE__ */ __name((output, context) => {
2098
+ return (0, import_smithy_client.take)(output, {
2099
+ Attributes: (_) => de_ICD10CMAttributeList(_, context),
2100
+ BeginOffset: import_smithy_client.expectInt32,
2101
+ Category: import_smithy_client.expectString,
2102
+ EndOffset: import_smithy_client.expectInt32,
2103
+ ICD10CMConcepts: (_) => de_ICD10CMConceptList(_, context),
2104
+ Id: import_smithy_client.expectInt32,
2105
+ Score: import_smithy_client.limitedParseFloat32,
2106
+ Text: import_smithy_client.expectString,
2107
+ Traits: (_) => de_ICD10CMTraitList(_, context),
2108
+ Type: import_smithy_client.expectString
2109
+ });
2110
+ }, "de_ICD10CMEntity");
2111
+ var de_ICD10CMEntityList = /* @__PURE__ */ __name((output, context) => {
2112
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2113
+ return de_ICD10CMEntity(entry, context);
2114
+ });
2115
+ return retVal;
2116
+ }, "de_ICD10CMEntityList");
2117
+ var de_ICD10CMTrait = /* @__PURE__ */ __name((output, context) => {
2118
+ return (0, import_smithy_client.take)(output, {
2119
+ Name: import_smithy_client.expectString,
2120
+ Score: import_smithy_client.limitedParseFloat32
2121
+ });
2122
+ }, "de_ICD10CMTrait");
2123
+ var de_ICD10CMTraitList = /* @__PURE__ */ __name((output, context) => {
2124
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2125
+ return de_ICD10CMTrait(entry, context);
2126
+ });
2127
+ return retVal;
2128
+ }, "de_ICD10CMTraitList");
2129
+ var de_InferICD10CMResponse = /* @__PURE__ */ __name((output, context) => {
2130
+ return (0, import_smithy_client.take)(output, {
2131
+ Entities: (_) => de_ICD10CMEntityList(_, context),
2132
+ ModelVersion: import_smithy_client.expectString,
2133
+ PaginationToken: import_smithy_client.expectString
2134
+ });
2135
+ }, "de_InferICD10CMResponse");
2136
+ var de_InferRxNormResponse = /* @__PURE__ */ __name((output, context) => {
2137
+ return (0, import_smithy_client.take)(output, {
2138
+ Entities: (_) => de_RxNormEntityList(_, context),
2139
+ ModelVersion: import_smithy_client.expectString,
2140
+ PaginationToken: import_smithy_client.expectString
2141
+ });
2142
+ }, "de_InferRxNormResponse");
2143
+ var de_InferSNOMEDCTResponse = /* @__PURE__ */ __name((output, context) => {
2144
+ return (0, import_smithy_client.take)(output, {
2145
+ Characters: import_smithy_client._json,
2146
+ Entities: (_) => de_SNOMEDCTEntityList(_, context),
2147
+ ModelVersion: import_smithy_client.expectString,
2148
+ PaginationToken: import_smithy_client.expectString,
2149
+ SNOMEDCTDetails: import_smithy_client._json
2150
+ });
2151
+ }, "de_InferSNOMEDCTResponse");
2152
+ var de_ListEntitiesDetectionV2JobsResponse = /* @__PURE__ */ __name((output, context) => {
2153
+ return (0, import_smithy_client.take)(output, {
2154
+ ComprehendMedicalAsyncJobPropertiesList: (_) => de_ComprehendMedicalAsyncJobPropertiesList(_, context),
2155
+ NextToken: import_smithy_client.expectString
2156
+ });
2157
+ }, "de_ListEntitiesDetectionV2JobsResponse");
2158
+ var de_ListICD10CMInferenceJobsResponse = /* @__PURE__ */ __name((output, context) => {
2159
+ return (0, import_smithy_client.take)(output, {
2160
+ ComprehendMedicalAsyncJobPropertiesList: (_) => de_ComprehendMedicalAsyncJobPropertiesList(_, context),
2161
+ NextToken: import_smithy_client.expectString
2162
+ });
2163
+ }, "de_ListICD10CMInferenceJobsResponse");
2164
+ var de_ListPHIDetectionJobsResponse = /* @__PURE__ */ __name((output, context) => {
2165
+ return (0, import_smithy_client.take)(output, {
2166
+ ComprehendMedicalAsyncJobPropertiesList: (_) => de_ComprehendMedicalAsyncJobPropertiesList(_, context),
2167
+ NextToken: import_smithy_client.expectString
2168
+ });
2169
+ }, "de_ListPHIDetectionJobsResponse");
2170
+ var de_ListRxNormInferenceJobsResponse = /* @__PURE__ */ __name((output, context) => {
2171
+ return (0, import_smithy_client.take)(output, {
2172
+ ComprehendMedicalAsyncJobPropertiesList: (_) => de_ComprehendMedicalAsyncJobPropertiesList(_, context),
2173
+ NextToken: import_smithy_client.expectString
2174
+ });
2175
+ }, "de_ListRxNormInferenceJobsResponse");
2176
+ var de_ListSNOMEDCTInferenceJobsResponse = /* @__PURE__ */ __name((output, context) => {
2177
+ return (0, import_smithy_client.take)(output, {
2178
+ ComprehendMedicalAsyncJobPropertiesList: (_) => de_ComprehendMedicalAsyncJobPropertiesList(_, context),
2179
+ NextToken: import_smithy_client.expectString
2180
+ });
2181
+ }, "de_ListSNOMEDCTInferenceJobsResponse");
2182
+ var de_RxNormAttribute = /* @__PURE__ */ __name((output, context) => {
2183
+ return (0, import_smithy_client.take)(output, {
2184
+ BeginOffset: import_smithy_client.expectInt32,
2185
+ EndOffset: import_smithy_client.expectInt32,
2186
+ Id: import_smithy_client.expectInt32,
2187
+ RelationshipScore: import_smithy_client.limitedParseFloat32,
2188
+ Score: import_smithy_client.limitedParseFloat32,
2189
+ Text: import_smithy_client.expectString,
2190
+ Traits: (_) => de_RxNormTraitList(_, context),
2191
+ Type: import_smithy_client.expectString
2192
+ });
2193
+ }, "de_RxNormAttribute");
2194
+ var de_RxNormAttributeList = /* @__PURE__ */ __name((output, context) => {
2195
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2196
+ return de_RxNormAttribute(entry, context);
2197
+ });
2198
+ return retVal;
2199
+ }, "de_RxNormAttributeList");
2200
+ var de_RxNormConcept = /* @__PURE__ */ __name((output, context) => {
2201
+ return (0, import_smithy_client.take)(output, {
2202
+ Code: import_smithy_client.expectString,
2203
+ Description: import_smithy_client.expectString,
2204
+ Score: import_smithy_client.limitedParseFloat32
2205
+ });
2206
+ }, "de_RxNormConcept");
2207
+ var de_RxNormConceptList = /* @__PURE__ */ __name((output, context) => {
2208
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2209
+ return de_RxNormConcept(entry, context);
2210
+ });
2211
+ return retVal;
2212
+ }, "de_RxNormConceptList");
2213
+ var de_RxNormEntity = /* @__PURE__ */ __name((output, context) => {
2214
+ return (0, import_smithy_client.take)(output, {
2215
+ Attributes: (_) => de_RxNormAttributeList(_, context),
2216
+ BeginOffset: import_smithy_client.expectInt32,
2217
+ Category: import_smithy_client.expectString,
2218
+ EndOffset: import_smithy_client.expectInt32,
2219
+ Id: import_smithy_client.expectInt32,
2220
+ RxNormConcepts: (_) => de_RxNormConceptList(_, context),
2221
+ Score: import_smithy_client.limitedParseFloat32,
2222
+ Text: import_smithy_client.expectString,
2223
+ Traits: (_) => de_RxNormTraitList(_, context),
2224
+ Type: import_smithy_client.expectString
2225
+ });
2226
+ }, "de_RxNormEntity");
2227
+ var de_RxNormEntityList = /* @__PURE__ */ __name((output, context) => {
2228
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2229
+ return de_RxNormEntity(entry, context);
2230
+ });
2231
+ return retVal;
2232
+ }, "de_RxNormEntityList");
2233
+ var de_RxNormTrait = /* @__PURE__ */ __name((output, context) => {
2234
+ return (0, import_smithy_client.take)(output, {
2235
+ Name: import_smithy_client.expectString,
2236
+ Score: import_smithy_client.limitedParseFloat32
2237
+ });
2238
+ }, "de_RxNormTrait");
2239
+ var de_RxNormTraitList = /* @__PURE__ */ __name((output, context) => {
2240
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2241
+ return de_RxNormTrait(entry, context);
2242
+ });
2243
+ return retVal;
2244
+ }, "de_RxNormTraitList");
2245
+ var de_SNOMEDCTAttribute = /* @__PURE__ */ __name((output, context) => {
2246
+ return (0, import_smithy_client.take)(output, {
2247
+ BeginOffset: import_smithy_client.expectInt32,
2248
+ Category: import_smithy_client.expectString,
2249
+ EndOffset: import_smithy_client.expectInt32,
2250
+ Id: import_smithy_client.expectInt32,
2251
+ RelationshipScore: import_smithy_client.limitedParseFloat32,
2252
+ RelationshipType: import_smithy_client.expectString,
2253
+ SNOMEDCTConcepts: (_) => de_SNOMEDCTConceptList(_, context),
2254
+ Score: import_smithy_client.limitedParseFloat32,
2255
+ Text: import_smithy_client.expectString,
2256
+ Traits: (_) => de_SNOMEDCTTraitList(_, context),
2257
+ Type: import_smithy_client.expectString
2258
+ });
2259
+ }, "de_SNOMEDCTAttribute");
2260
+ var de_SNOMEDCTAttributeList = /* @__PURE__ */ __name((output, context) => {
2261
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2262
+ return de_SNOMEDCTAttribute(entry, context);
2263
+ });
2264
+ return retVal;
2265
+ }, "de_SNOMEDCTAttributeList");
2266
+ var de_SNOMEDCTConcept = /* @__PURE__ */ __name((output, context) => {
2267
+ return (0, import_smithy_client.take)(output, {
2268
+ Code: import_smithy_client.expectString,
2269
+ Description: import_smithy_client.expectString,
2270
+ Score: import_smithy_client.limitedParseFloat32
2271
+ });
2272
+ }, "de_SNOMEDCTConcept");
2273
+ var de_SNOMEDCTConceptList = /* @__PURE__ */ __name((output, context) => {
2274
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2275
+ return de_SNOMEDCTConcept(entry, context);
2276
+ });
2277
+ return retVal;
2278
+ }, "de_SNOMEDCTConceptList");
2279
+ var de_SNOMEDCTEntity = /* @__PURE__ */ __name((output, context) => {
2280
+ return (0, import_smithy_client.take)(output, {
2281
+ Attributes: (_) => de_SNOMEDCTAttributeList(_, context),
2282
+ BeginOffset: import_smithy_client.expectInt32,
2283
+ Category: import_smithy_client.expectString,
2284
+ EndOffset: import_smithy_client.expectInt32,
2285
+ Id: import_smithy_client.expectInt32,
2286
+ SNOMEDCTConcepts: (_) => de_SNOMEDCTConceptList(_, context),
2287
+ Score: import_smithy_client.limitedParseFloat32,
2288
+ Text: import_smithy_client.expectString,
2289
+ Traits: (_) => de_SNOMEDCTTraitList(_, context),
2290
+ Type: import_smithy_client.expectString
2291
+ });
2292
+ }, "de_SNOMEDCTEntity");
2293
+ var de_SNOMEDCTEntityList = /* @__PURE__ */ __name((output, context) => {
2294
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2295
+ return de_SNOMEDCTEntity(entry, context);
2296
+ });
2297
+ return retVal;
2298
+ }, "de_SNOMEDCTEntityList");
2299
+ var de_SNOMEDCTTrait = /* @__PURE__ */ __name((output, context) => {
2300
+ return (0, import_smithy_client.take)(output, {
2301
+ Name: import_smithy_client.expectString,
2302
+ Score: import_smithy_client.limitedParseFloat32
2303
+ });
2304
+ }, "de_SNOMEDCTTrait");
2305
+ var de_SNOMEDCTTraitList = /* @__PURE__ */ __name((output, context) => {
2306
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2307
+ return de_SNOMEDCTTrait(entry, context);
2308
+ });
2309
+ return retVal;
2310
+ }, "de_SNOMEDCTTraitList");
2311
+ var de_Trait = /* @__PURE__ */ __name((output, context) => {
2312
+ return (0, import_smithy_client.take)(output, {
2313
+ Name: import_smithy_client.expectString,
2314
+ Score: import_smithy_client.limitedParseFloat32
2315
+ });
2316
+ }, "de_Trait");
2317
+ var de_TraitList = /* @__PURE__ */ __name((output, context) => {
2318
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2319
+ return de_Trait(entry, context);
2320
+ });
2321
+ return retVal;
2322
+ }, "de_TraitList");
2323
+ var de_UnmappedAttribute = /* @__PURE__ */ __name((output, context) => {
2324
+ return (0, import_smithy_client.take)(output, {
2325
+ Attribute: (_) => de_Attribute(_, context),
2326
+ Type: import_smithy_client.expectString
2327
+ });
2328
+ }, "de_UnmappedAttribute");
2329
+ var de_UnmappedAttributeList = /* @__PURE__ */ __name((output, context) => {
2330
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
2331
+ return de_UnmappedAttribute(entry, context);
2332
+ });
2333
+ return retVal;
2334
+ }, "de_UnmappedAttributeList");
2335
+ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
2336
+ httpStatusCode: output.statusCode,
2337
+ requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
2338
+ extendedRequestId: output.headers["x-amz-id-2"],
2339
+ cfId: output.headers["x-amz-cf-id"]
2340
+ }), "deserializeMetadata");
2341
+ var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
2342
+ var throwDefaultError = (0, import_smithy_client.withBaseException)(ComprehendMedicalServiceException);
2343
+ var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
2344
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
2345
+ const contents = {
2346
+ protocol,
2347
+ hostname,
2348
+ port,
2349
+ method: "POST",
2350
+ path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
2351
+ headers
2352
+ };
2353
+ if (resolvedHostname !== void 0) {
2354
+ contents.hostname = resolvedHostname;
2355
+ }
2356
+ if (body !== void 0) {
2357
+ contents.body = body;
2358
+ }
2359
+ return new import_protocol_http.HttpRequest(contents);
2360
+ }, "buildHttpRpcRequest");
2361
+ function sharedHeaders(operation) {
2362
+ return {
2363
+ "content-type": "application/x-amz-json-1.1",
2364
+ "x-amz-target": `ComprehendMedical_20181030.${operation}`
2365
+ };
2366
+ }
2367
+ __name(sharedHeaders, "sharedHeaders");
2368
+ var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
2369
+ if (encoded.length) {
2370
+ return JSON.parse(encoded);
2371
+ }
2372
+ return {};
2373
+ }), "parseBody");
2374
+ var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
2375
+ const value = await parseBody(errorBody, context);
2376
+ value.message = value.message ?? value.Message;
2377
+ return value;
2378
+ }, "parseErrorBody");
2379
+ var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
2380
+ const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
2381
+ const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
2382
+ let cleanValue = rawValue;
2383
+ if (typeof cleanValue === "number") {
2384
+ cleanValue = cleanValue.toString();
2385
+ }
2386
+ if (cleanValue.indexOf(",") >= 0) {
2387
+ cleanValue = cleanValue.split(",")[0];
2388
+ }
2389
+ if (cleanValue.indexOf(":") >= 0) {
2390
+ cleanValue = cleanValue.split(":")[0];
2391
+ }
2392
+ if (cleanValue.indexOf("#") >= 0) {
2393
+ cleanValue = cleanValue.split("#")[1];
2394
+ }
2395
+ return cleanValue;
2396
+ }, "sanitizeErrorCode");
2397
+ const headerKey = findKey(output.headers, "x-amzn-errortype");
2398
+ if (headerKey !== void 0) {
2399
+ return sanitizeErrorCode(output.headers[headerKey]);
2400
+ }
2401
+ if (data.code !== void 0) {
2402
+ return sanitizeErrorCode(data.code);
2403
+ }
2404
+ if (data["__type"] !== void 0) {
2405
+ return sanitizeErrorCode(data["__type"]);
2406
+ }
2407
+ }, "loadRestJsonErrorCode");
2408
+
2409
+ // src/commands/DescribeEntitiesDetectionV2JobCommand.ts
2410
+ var _DescribeEntitiesDetectionV2JobCommand = class _DescribeEntitiesDetectionV2JobCommand extends import_smithy_client.Command.classBuilder().ep({
2411
+ ...commonParams
2412
+ }).m(function(Command, cs, config, o) {
2413
+ return [
2414
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2415
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2416
+ ];
2417
+ }).s("ComprehendMedical_20181030", "DescribeEntitiesDetectionV2Job", {}).n("ComprehendMedicalClient", "DescribeEntitiesDetectionV2JobCommand").f(void 0, void 0).ser(se_DescribeEntitiesDetectionV2JobCommand).de(de_DescribeEntitiesDetectionV2JobCommand).build() {
2418
+ };
2419
+ __name(_DescribeEntitiesDetectionV2JobCommand, "DescribeEntitiesDetectionV2JobCommand");
2420
+ var DescribeEntitiesDetectionV2JobCommand = _DescribeEntitiesDetectionV2JobCommand;
2421
+
2422
+ // src/commands/DescribeICD10CMInferenceJobCommand.ts
2423
+
2424
+
2425
+
2426
+
2427
+ var _DescribeICD10CMInferenceJobCommand = class _DescribeICD10CMInferenceJobCommand extends import_smithy_client.Command.classBuilder().ep({
2428
+ ...commonParams
2429
+ }).m(function(Command, cs, config, o) {
2430
+ return [
2431
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2432
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2433
+ ];
2434
+ }).s("ComprehendMedical_20181030", "DescribeICD10CMInferenceJob", {}).n("ComprehendMedicalClient", "DescribeICD10CMInferenceJobCommand").f(void 0, void 0).ser(se_DescribeICD10CMInferenceJobCommand).de(de_DescribeICD10CMInferenceJobCommand).build() {
2435
+ };
2436
+ __name(_DescribeICD10CMInferenceJobCommand, "DescribeICD10CMInferenceJobCommand");
2437
+ var DescribeICD10CMInferenceJobCommand = _DescribeICD10CMInferenceJobCommand;
2438
+
2439
+ // src/commands/DescribePHIDetectionJobCommand.ts
2440
+
2441
+
2442
+
2443
+
2444
+ var _DescribePHIDetectionJobCommand = class _DescribePHIDetectionJobCommand extends import_smithy_client.Command.classBuilder().ep({
2445
+ ...commonParams
2446
+ }).m(function(Command, cs, config, o) {
2447
+ return [
2448
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2449
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2450
+ ];
2451
+ }).s("ComprehendMedical_20181030", "DescribePHIDetectionJob", {}).n("ComprehendMedicalClient", "DescribePHIDetectionJobCommand").f(void 0, void 0).ser(se_DescribePHIDetectionJobCommand).de(de_DescribePHIDetectionJobCommand).build() {
2452
+ };
2453
+ __name(_DescribePHIDetectionJobCommand, "DescribePHIDetectionJobCommand");
2454
+ var DescribePHIDetectionJobCommand = _DescribePHIDetectionJobCommand;
2455
+
2456
+ // src/commands/DescribeRxNormInferenceJobCommand.ts
2457
+
2458
+
2459
+
2460
+
2461
+ var _DescribeRxNormInferenceJobCommand = class _DescribeRxNormInferenceJobCommand extends import_smithy_client.Command.classBuilder().ep({
2462
+ ...commonParams
2463
+ }).m(function(Command, cs, config, o) {
2464
+ return [
2465
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2466
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2467
+ ];
2468
+ }).s("ComprehendMedical_20181030", "DescribeRxNormInferenceJob", {}).n("ComprehendMedicalClient", "DescribeRxNormInferenceJobCommand").f(void 0, void 0).ser(se_DescribeRxNormInferenceJobCommand).de(de_DescribeRxNormInferenceJobCommand).build() {
2469
+ };
2470
+ __name(_DescribeRxNormInferenceJobCommand, "DescribeRxNormInferenceJobCommand");
2471
+ var DescribeRxNormInferenceJobCommand = _DescribeRxNormInferenceJobCommand;
2472
+
2473
+ // src/commands/DescribeSNOMEDCTInferenceJobCommand.ts
2474
+
2475
+
2476
+
2477
+
2478
+ var _DescribeSNOMEDCTInferenceJobCommand = class _DescribeSNOMEDCTInferenceJobCommand extends import_smithy_client.Command.classBuilder().ep({
2479
+ ...commonParams
2480
+ }).m(function(Command, cs, config, o) {
2481
+ return [
2482
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2483
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2484
+ ];
2485
+ }).s("ComprehendMedical_20181030", "DescribeSNOMEDCTInferenceJob", {}).n("ComprehendMedicalClient", "DescribeSNOMEDCTInferenceJobCommand").f(void 0, void 0).ser(se_DescribeSNOMEDCTInferenceJobCommand).de(de_DescribeSNOMEDCTInferenceJobCommand).build() {
2486
+ };
2487
+ __name(_DescribeSNOMEDCTInferenceJobCommand, "DescribeSNOMEDCTInferenceJobCommand");
2488
+ var DescribeSNOMEDCTInferenceJobCommand = _DescribeSNOMEDCTInferenceJobCommand;
2489
+
2490
+ // src/commands/DetectEntitiesCommand.ts
2491
+
2492
+
2493
+
2494
+
2495
+ var _DetectEntitiesCommand = class _DetectEntitiesCommand extends import_smithy_client.Command.classBuilder().ep({
2496
+ ...commonParams
2497
+ }).m(function(Command, cs, config, o) {
2498
+ return [
2499
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2500
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2501
+ ];
2502
+ }).s("ComprehendMedical_20181030", "DetectEntities", {}).n("ComprehendMedicalClient", "DetectEntitiesCommand").f(void 0, void 0).ser(se_DetectEntitiesCommand).de(de_DetectEntitiesCommand).build() {
2503
+ };
2504
+ __name(_DetectEntitiesCommand, "DetectEntitiesCommand");
2505
+ var DetectEntitiesCommand = _DetectEntitiesCommand;
2506
+
2507
+ // src/commands/DetectEntitiesV2Command.ts
2508
+
2509
+
2510
+
2511
+
2512
+ var _DetectEntitiesV2Command = class _DetectEntitiesV2Command extends import_smithy_client.Command.classBuilder().ep({
2513
+ ...commonParams
2514
+ }).m(function(Command, cs, config, o) {
2515
+ return [
2516
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2517
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2518
+ ];
2519
+ }).s("ComprehendMedical_20181030", "DetectEntitiesV2", {}).n("ComprehendMedicalClient", "DetectEntitiesV2Command").f(void 0, void 0).ser(se_DetectEntitiesV2Command).de(de_DetectEntitiesV2Command).build() {
2520
+ };
2521
+ __name(_DetectEntitiesV2Command, "DetectEntitiesV2Command");
2522
+ var DetectEntitiesV2Command = _DetectEntitiesV2Command;
2523
+
2524
+ // src/commands/DetectPHICommand.ts
2525
+
2526
+
2527
+
2528
+
2529
+ var _DetectPHICommand = class _DetectPHICommand extends import_smithy_client.Command.classBuilder().ep({
2530
+ ...commonParams
2531
+ }).m(function(Command, cs, config, o) {
2532
+ return [
2533
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2534
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2535
+ ];
2536
+ }).s("ComprehendMedical_20181030", "DetectPHI", {}).n("ComprehendMedicalClient", "DetectPHICommand").f(void 0, void 0).ser(se_DetectPHICommand).de(de_DetectPHICommand).build() {
2537
+ };
2538
+ __name(_DetectPHICommand, "DetectPHICommand");
2539
+ var DetectPHICommand = _DetectPHICommand;
2540
+
2541
+ // src/commands/InferICD10CMCommand.ts
2542
+
2543
+
2544
+
2545
+
2546
+ var _InferICD10CMCommand = class _InferICD10CMCommand extends import_smithy_client.Command.classBuilder().ep({
2547
+ ...commonParams
2548
+ }).m(function(Command, cs, config, o) {
2549
+ return [
2550
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2551
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2552
+ ];
2553
+ }).s("ComprehendMedical_20181030", "InferICD10CM", {}).n("ComprehendMedicalClient", "InferICD10CMCommand").f(void 0, void 0).ser(se_InferICD10CMCommand).de(de_InferICD10CMCommand).build() {
2554
+ };
2555
+ __name(_InferICD10CMCommand, "InferICD10CMCommand");
2556
+ var InferICD10CMCommand = _InferICD10CMCommand;
2557
+
2558
+ // src/commands/InferRxNormCommand.ts
2559
+
2560
+
2561
+
2562
+
2563
+ var _InferRxNormCommand = class _InferRxNormCommand extends import_smithy_client.Command.classBuilder().ep({
2564
+ ...commonParams
2565
+ }).m(function(Command, cs, config, o) {
2566
+ return [
2567
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2568
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2569
+ ];
2570
+ }).s("ComprehendMedical_20181030", "InferRxNorm", {}).n("ComprehendMedicalClient", "InferRxNormCommand").f(void 0, void 0).ser(se_InferRxNormCommand).de(de_InferRxNormCommand).build() {
2571
+ };
2572
+ __name(_InferRxNormCommand, "InferRxNormCommand");
2573
+ var InferRxNormCommand = _InferRxNormCommand;
2574
+
2575
+ // src/commands/InferSNOMEDCTCommand.ts
2576
+
2577
+
2578
+
2579
+
2580
+ var _InferSNOMEDCTCommand = class _InferSNOMEDCTCommand extends import_smithy_client.Command.classBuilder().ep({
2581
+ ...commonParams
2582
+ }).m(function(Command, cs, config, o) {
2583
+ return [
2584
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2585
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2586
+ ];
2587
+ }).s("ComprehendMedical_20181030", "InferSNOMEDCT", {}).n("ComprehendMedicalClient", "InferSNOMEDCTCommand").f(void 0, void 0).ser(se_InferSNOMEDCTCommand).de(de_InferSNOMEDCTCommand).build() {
2588
+ };
2589
+ __name(_InferSNOMEDCTCommand, "InferSNOMEDCTCommand");
2590
+ var InferSNOMEDCTCommand = _InferSNOMEDCTCommand;
2591
+
2592
+ // src/commands/ListEntitiesDetectionV2JobsCommand.ts
2593
+
2594
+
2595
+
2596
+
2597
+ var _ListEntitiesDetectionV2JobsCommand = class _ListEntitiesDetectionV2JobsCommand extends import_smithy_client.Command.classBuilder().ep({
2598
+ ...commonParams
2599
+ }).m(function(Command, cs, config, o) {
2600
+ return [
2601
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2602
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2603
+ ];
2604
+ }).s("ComprehendMedical_20181030", "ListEntitiesDetectionV2Jobs", {}).n("ComprehendMedicalClient", "ListEntitiesDetectionV2JobsCommand").f(void 0, void 0).ser(se_ListEntitiesDetectionV2JobsCommand).de(de_ListEntitiesDetectionV2JobsCommand).build() {
2605
+ };
2606
+ __name(_ListEntitiesDetectionV2JobsCommand, "ListEntitiesDetectionV2JobsCommand");
2607
+ var ListEntitiesDetectionV2JobsCommand = _ListEntitiesDetectionV2JobsCommand;
2608
+
2609
+ // src/commands/ListICD10CMInferenceJobsCommand.ts
2610
+
2611
+
2612
+
2613
+
2614
+ var _ListICD10CMInferenceJobsCommand = class _ListICD10CMInferenceJobsCommand extends import_smithy_client.Command.classBuilder().ep({
2615
+ ...commonParams
2616
+ }).m(function(Command, cs, config, o) {
2617
+ return [
2618
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2619
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2620
+ ];
2621
+ }).s("ComprehendMedical_20181030", "ListICD10CMInferenceJobs", {}).n("ComprehendMedicalClient", "ListICD10CMInferenceJobsCommand").f(void 0, void 0).ser(se_ListICD10CMInferenceJobsCommand).de(de_ListICD10CMInferenceJobsCommand).build() {
2622
+ };
2623
+ __name(_ListICD10CMInferenceJobsCommand, "ListICD10CMInferenceJobsCommand");
2624
+ var ListICD10CMInferenceJobsCommand = _ListICD10CMInferenceJobsCommand;
2625
+
2626
+ // src/commands/ListPHIDetectionJobsCommand.ts
2627
+
2628
+
2629
+
2630
+
2631
+ var _ListPHIDetectionJobsCommand = class _ListPHIDetectionJobsCommand extends import_smithy_client.Command.classBuilder().ep({
2632
+ ...commonParams
2633
+ }).m(function(Command, cs, config, o) {
2634
+ return [
2635
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2636
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2637
+ ];
2638
+ }).s("ComprehendMedical_20181030", "ListPHIDetectionJobs", {}).n("ComprehendMedicalClient", "ListPHIDetectionJobsCommand").f(void 0, void 0).ser(se_ListPHIDetectionJobsCommand).de(de_ListPHIDetectionJobsCommand).build() {
2639
+ };
2640
+ __name(_ListPHIDetectionJobsCommand, "ListPHIDetectionJobsCommand");
2641
+ var ListPHIDetectionJobsCommand = _ListPHIDetectionJobsCommand;
2642
+
2643
+ // src/commands/ListRxNormInferenceJobsCommand.ts
2644
+
2645
+
2646
+
2647
+
2648
+ var _ListRxNormInferenceJobsCommand = class _ListRxNormInferenceJobsCommand extends import_smithy_client.Command.classBuilder().ep({
2649
+ ...commonParams
2650
+ }).m(function(Command, cs, config, o) {
2651
+ return [
2652
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2653
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2654
+ ];
2655
+ }).s("ComprehendMedical_20181030", "ListRxNormInferenceJobs", {}).n("ComprehendMedicalClient", "ListRxNormInferenceJobsCommand").f(void 0, void 0).ser(se_ListRxNormInferenceJobsCommand).de(de_ListRxNormInferenceJobsCommand).build() {
2656
+ };
2657
+ __name(_ListRxNormInferenceJobsCommand, "ListRxNormInferenceJobsCommand");
2658
+ var ListRxNormInferenceJobsCommand = _ListRxNormInferenceJobsCommand;
2659
+
2660
+ // src/commands/ListSNOMEDCTInferenceJobsCommand.ts
2661
+
2662
+
2663
+
2664
+
2665
+ var _ListSNOMEDCTInferenceJobsCommand = class _ListSNOMEDCTInferenceJobsCommand extends import_smithy_client.Command.classBuilder().ep({
2666
+ ...commonParams
2667
+ }).m(function(Command, cs, config, o) {
2668
+ return [
2669
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2670
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2671
+ ];
2672
+ }).s("ComprehendMedical_20181030", "ListSNOMEDCTInferenceJobs", {}).n("ComprehendMedicalClient", "ListSNOMEDCTInferenceJobsCommand").f(void 0, void 0).ser(se_ListSNOMEDCTInferenceJobsCommand).de(de_ListSNOMEDCTInferenceJobsCommand).build() {
2673
+ };
2674
+ __name(_ListSNOMEDCTInferenceJobsCommand, "ListSNOMEDCTInferenceJobsCommand");
2675
+ var ListSNOMEDCTInferenceJobsCommand = _ListSNOMEDCTInferenceJobsCommand;
2676
+
2677
+ // src/commands/StartEntitiesDetectionV2JobCommand.ts
2678
+
2679
+
2680
+
2681
+
2682
+ var _StartEntitiesDetectionV2JobCommand = class _StartEntitiesDetectionV2JobCommand extends import_smithy_client.Command.classBuilder().ep({
2683
+ ...commonParams
2684
+ }).m(function(Command, cs, config, o) {
2685
+ return [
2686
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2687
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2688
+ ];
2689
+ }).s("ComprehendMedical_20181030", "StartEntitiesDetectionV2Job", {}).n("ComprehendMedicalClient", "StartEntitiesDetectionV2JobCommand").f(void 0, void 0).ser(se_StartEntitiesDetectionV2JobCommand).de(de_StartEntitiesDetectionV2JobCommand).build() {
2690
+ };
2691
+ __name(_StartEntitiesDetectionV2JobCommand, "StartEntitiesDetectionV2JobCommand");
2692
+ var StartEntitiesDetectionV2JobCommand = _StartEntitiesDetectionV2JobCommand;
2693
+
2694
+ // src/commands/StartICD10CMInferenceJobCommand.ts
2695
+
2696
+
2697
+
2698
+
2699
+ var _StartICD10CMInferenceJobCommand = class _StartICD10CMInferenceJobCommand extends import_smithy_client.Command.classBuilder().ep({
2700
+ ...commonParams
2701
+ }).m(function(Command, cs, config, o) {
2702
+ return [
2703
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2704
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2705
+ ];
2706
+ }).s("ComprehendMedical_20181030", "StartICD10CMInferenceJob", {}).n("ComprehendMedicalClient", "StartICD10CMInferenceJobCommand").f(void 0, void 0).ser(se_StartICD10CMInferenceJobCommand).de(de_StartICD10CMInferenceJobCommand).build() {
2707
+ };
2708
+ __name(_StartICD10CMInferenceJobCommand, "StartICD10CMInferenceJobCommand");
2709
+ var StartICD10CMInferenceJobCommand = _StartICD10CMInferenceJobCommand;
2710
+
2711
+ // src/commands/StartPHIDetectionJobCommand.ts
2712
+
2713
+
2714
+
2715
+
2716
+ var _StartPHIDetectionJobCommand = class _StartPHIDetectionJobCommand extends import_smithy_client.Command.classBuilder().ep({
2717
+ ...commonParams
2718
+ }).m(function(Command, cs, config, o) {
2719
+ return [
2720
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2721
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2722
+ ];
2723
+ }).s("ComprehendMedical_20181030", "StartPHIDetectionJob", {}).n("ComprehendMedicalClient", "StartPHIDetectionJobCommand").f(void 0, void 0).ser(se_StartPHIDetectionJobCommand).de(de_StartPHIDetectionJobCommand).build() {
2724
+ };
2725
+ __name(_StartPHIDetectionJobCommand, "StartPHIDetectionJobCommand");
2726
+ var StartPHIDetectionJobCommand = _StartPHIDetectionJobCommand;
2727
+
2728
+ // src/commands/StartRxNormInferenceJobCommand.ts
2729
+
2730
+
2731
+
2732
+
2733
+ var _StartRxNormInferenceJobCommand = class _StartRxNormInferenceJobCommand extends import_smithy_client.Command.classBuilder().ep({
2734
+ ...commonParams
2735
+ }).m(function(Command, cs, config, o) {
2736
+ return [
2737
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2738
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2739
+ ];
2740
+ }).s("ComprehendMedical_20181030", "StartRxNormInferenceJob", {}).n("ComprehendMedicalClient", "StartRxNormInferenceJobCommand").f(void 0, void 0).ser(se_StartRxNormInferenceJobCommand).de(de_StartRxNormInferenceJobCommand).build() {
2741
+ };
2742
+ __name(_StartRxNormInferenceJobCommand, "StartRxNormInferenceJobCommand");
2743
+ var StartRxNormInferenceJobCommand = _StartRxNormInferenceJobCommand;
2744
+
2745
+ // src/commands/StartSNOMEDCTInferenceJobCommand.ts
2746
+
2747
+
2748
+
2749
+
2750
+ var _StartSNOMEDCTInferenceJobCommand = class _StartSNOMEDCTInferenceJobCommand extends import_smithy_client.Command.classBuilder().ep({
2751
+ ...commonParams
2752
+ }).m(function(Command, cs, config, o) {
2753
+ return [
2754
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2755
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2756
+ ];
2757
+ }).s("ComprehendMedical_20181030", "StartSNOMEDCTInferenceJob", {}).n("ComprehendMedicalClient", "StartSNOMEDCTInferenceJobCommand").f(void 0, void 0).ser(se_StartSNOMEDCTInferenceJobCommand).de(de_StartSNOMEDCTInferenceJobCommand).build() {
2758
+ };
2759
+ __name(_StartSNOMEDCTInferenceJobCommand, "StartSNOMEDCTInferenceJobCommand");
2760
+ var StartSNOMEDCTInferenceJobCommand = _StartSNOMEDCTInferenceJobCommand;
2761
+
2762
+ // src/commands/StopEntitiesDetectionV2JobCommand.ts
2763
+
2764
+
2765
+
2766
+
2767
+ var _StopEntitiesDetectionV2JobCommand = class _StopEntitiesDetectionV2JobCommand extends import_smithy_client.Command.classBuilder().ep({
2768
+ ...commonParams
2769
+ }).m(function(Command, cs, config, o) {
2770
+ return [
2771
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2772
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2773
+ ];
2774
+ }).s("ComprehendMedical_20181030", "StopEntitiesDetectionV2Job", {}).n("ComprehendMedicalClient", "StopEntitiesDetectionV2JobCommand").f(void 0, void 0).ser(se_StopEntitiesDetectionV2JobCommand).de(de_StopEntitiesDetectionV2JobCommand).build() {
2775
+ };
2776
+ __name(_StopEntitiesDetectionV2JobCommand, "StopEntitiesDetectionV2JobCommand");
2777
+ var StopEntitiesDetectionV2JobCommand = _StopEntitiesDetectionV2JobCommand;
2778
+
2779
+ // src/commands/StopICD10CMInferenceJobCommand.ts
2780
+
2781
+
2782
+
2783
+
2784
+ var _StopICD10CMInferenceJobCommand = class _StopICD10CMInferenceJobCommand extends import_smithy_client.Command.classBuilder().ep({
2785
+ ...commonParams
2786
+ }).m(function(Command, cs, config, o) {
2787
+ return [
2788
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2789
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2790
+ ];
2791
+ }).s("ComprehendMedical_20181030", "StopICD10CMInferenceJob", {}).n("ComprehendMedicalClient", "StopICD10CMInferenceJobCommand").f(void 0, void 0).ser(se_StopICD10CMInferenceJobCommand).de(de_StopICD10CMInferenceJobCommand).build() {
2792
+ };
2793
+ __name(_StopICD10CMInferenceJobCommand, "StopICD10CMInferenceJobCommand");
2794
+ var StopICD10CMInferenceJobCommand = _StopICD10CMInferenceJobCommand;
2795
+
2796
+ // src/commands/StopPHIDetectionJobCommand.ts
2797
+
2798
+
2799
+
2800
+
2801
+ var _StopPHIDetectionJobCommand = class _StopPHIDetectionJobCommand extends import_smithy_client.Command.classBuilder().ep({
2802
+ ...commonParams
2803
+ }).m(function(Command, cs, config, o) {
2804
+ return [
2805
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2806
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2807
+ ];
2808
+ }).s("ComprehendMedical_20181030", "StopPHIDetectionJob", {}).n("ComprehendMedicalClient", "StopPHIDetectionJobCommand").f(void 0, void 0).ser(se_StopPHIDetectionJobCommand).de(de_StopPHIDetectionJobCommand).build() {
2809
+ };
2810
+ __name(_StopPHIDetectionJobCommand, "StopPHIDetectionJobCommand");
2811
+ var StopPHIDetectionJobCommand = _StopPHIDetectionJobCommand;
2812
+
2813
+ // src/commands/StopRxNormInferenceJobCommand.ts
2814
+
2815
+
2816
+
2817
+
2818
+ var _StopRxNormInferenceJobCommand = class _StopRxNormInferenceJobCommand extends import_smithy_client.Command.classBuilder().ep({
2819
+ ...commonParams
2820
+ }).m(function(Command, cs, config, o) {
2821
+ return [
2822
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2823
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2824
+ ];
2825
+ }).s("ComprehendMedical_20181030", "StopRxNormInferenceJob", {}).n("ComprehendMedicalClient", "StopRxNormInferenceJobCommand").f(void 0, void 0).ser(se_StopRxNormInferenceJobCommand).de(de_StopRxNormInferenceJobCommand).build() {
2826
+ };
2827
+ __name(_StopRxNormInferenceJobCommand, "StopRxNormInferenceJobCommand");
2828
+ var StopRxNormInferenceJobCommand = _StopRxNormInferenceJobCommand;
2829
+
2830
+ // src/commands/StopSNOMEDCTInferenceJobCommand.ts
2831
+
2832
+
2833
+
2834
+
2835
+ var _StopSNOMEDCTInferenceJobCommand = class _StopSNOMEDCTInferenceJobCommand extends import_smithy_client.Command.classBuilder().ep({
2836
+ ...commonParams
2837
+ }).m(function(Command, cs, config, o) {
2838
+ return [
2839
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
2840
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
2841
+ ];
2842
+ }).s("ComprehendMedical_20181030", "StopSNOMEDCTInferenceJob", {}).n("ComprehendMedicalClient", "StopSNOMEDCTInferenceJobCommand").f(void 0, void 0).ser(se_StopSNOMEDCTInferenceJobCommand).de(de_StopSNOMEDCTInferenceJobCommand).build() {
2843
+ };
2844
+ __name(_StopSNOMEDCTInferenceJobCommand, "StopSNOMEDCTInferenceJobCommand");
2845
+ var StopSNOMEDCTInferenceJobCommand = _StopSNOMEDCTInferenceJobCommand;
2846
+
2847
+ // src/ComprehendMedical.ts
2848
+ var commands = {
2849
+ DescribeEntitiesDetectionV2JobCommand,
2850
+ DescribeICD10CMInferenceJobCommand,
2851
+ DescribePHIDetectionJobCommand,
2852
+ DescribeRxNormInferenceJobCommand,
2853
+ DescribeSNOMEDCTInferenceJobCommand,
2854
+ DetectEntitiesCommand,
2855
+ DetectEntitiesV2Command,
2856
+ DetectPHICommand,
2857
+ InferICD10CMCommand,
2858
+ InferRxNormCommand,
2859
+ InferSNOMEDCTCommand,
2860
+ ListEntitiesDetectionV2JobsCommand,
2861
+ ListICD10CMInferenceJobsCommand,
2862
+ ListPHIDetectionJobsCommand,
2863
+ ListRxNormInferenceJobsCommand,
2864
+ ListSNOMEDCTInferenceJobsCommand,
2865
+ StartEntitiesDetectionV2JobCommand,
2866
+ StartICD10CMInferenceJobCommand,
2867
+ StartPHIDetectionJobCommand,
2868
+ StartRxNormInferenceJobCommand,
2869
+ StartSNOMEDCTInferenceJobCommand,
2870
+ StopEntitiesDetectionV2JobCommand,
2871
+ StopICD10CMInferenceJobCommand,
2872
+ StopPHIDetectionJobCommand,
2873
+ StopRxNormInferenceJobCommand,
2874
+ StopSNOMEDCTInferenceJobCommand
2875
+ };
2876
+ var _ComprehendMedical = class _ComprehendMedical extends ComprehendMedicalClient {
2877
+ };
2878
+ __name(_ComprehendMedical, "ComprehendMedical");
2879
+ var ComprehendMedical = _ComprehendMedical;
2880
+ (0, import_smithy_client.createAggregatedClient)(commands, ComprehendMedical);
2881
+
2882
+ // src/index.ts
2883
+ var import_util_endpoints = require("@aws-sdk/util-endpoints");
2884
+ // Annotate the CommonJS export names for ESM import in node:
2885
+
2886
+ 0 && (module.exports = {
2887
+ AttributeName,
2888
+ ComprehendMedical,
2889
+ ComprehendMedicalClient,
2890
+ ComprehendMedicalServiceException,
2891
+ DescribeEntitiesDetectionV2JobCommand,
2892
+ DescribeICD10CMInferenceJobCommand,
2893
+ DescribePHIDetectionJobCommand,
2894
+ DescribeRxNormInferenceJobCommand,
2895
+ DescribeSNOMEDCTInferenceJobCommand,
2896
+ DetectEntitiesCommand,
2897
+ DetectEntitiesV2Command,
2898
+ DetectPHICommand,
2899
+ EntitySubType,
2900
+ EntityType,
2901
+ ICD10CMAttributeType,
2902
+ ICD10CMEntityCategory,
2903
+ ICD10CMEntityType,
2904
+ ICD10CMRelationshipType,
2905
+ ICD10CMTraitName,
2906
+ InferICD10CMCommand,
2907
+ InferRxNormCommand,
2908
+ InferSNOMEDCTCommand,
2909
+ InternalServerException,
2910
+ InvalidEncodingException,
2911
+ InvalidRequestException,
2912
+ JobStatus,
2913
+ LanguageCode,
2914
+ ListEntitiesDetectionV2JobsCommand,
2915
+ ListICD10CMInferenceJobsCommand,
2916
+ ListPHIDetectionJobsCommand,
2917
+ ListRxNormInferenceJobsCommand,
2918
+ ListSNOMEDCTInferenceJobsCommand,
2919
+ RelationshipType,
2920
+ ResourceNotFoundException,
2921
+ RxNormAttributeType,
2922
+ RxNormEntityCategory,
2923
+ RxNormEntityType,
2924
+ RxNormTraitName,
2925
+ SNOMEDCTAttributeType,
2926
+ SNOMEDCTEntityCategory,
2927
+ SNOMEDCTEntityType,
2928
+ SNOMEDCTRelationshipType,
2929
+ SNOMEDCTTraitName,
2930
+ ServiceUnavailableException,
2931
+ StartEntitiesDetectionV2JobCommand,
2932
+ StartICD10CMInferenceJobCommand,
2933
+ StartPHIDetectionJobCommand,
2934
+ StartRxNormInferenceJobCommand,
2935
+ StartSNOMEDCTInferenceJobCommand,
2936
+ StopEntitiesDetectionV2JobCommand,
2937
+ StopICD10CMInferenceJobCommand,
2938
+ StopPHIDetectionJobCommand,
2939
+ StopRxNormInferenceJobCommand,
2940
+ StopSNOMEDCTInferenceJobCommand,
2941
+ TextSizeLimitExceededException,
2942
+ TooManyRequestsException,
2943
+ ValidationException,
2944
+ __Client
2945
+ });
2946
+