@aws-sdk/client-comprehendmedical 3.180.0 → 3.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist-cjs/protocols/Aws_json1_1.js +32 -26
- package/dist-es/ComprehendMedical.js +106 -113
- package/dist-es/ComprehendMedicalClient.js +22 -28
- package/dist-es/commands/DescribeEntitiesDetectionV2JobCommand.js +21 -28
- package/dist-es/commands/DescribeICD10CMInferenceJobCommand.js +21 -28
- package/dist-es/commands/DescribePHIDetectionJobCommand.js +21 -28
- package/dist-es/commands/DescribeRxNormInferenceJobCommand.js +21 -28
- package/dist-es/commands/DescribeSNOMEDCTInferenceJobCommand.js +21 -28
- package/dist-es/commands/DetectEntitiesCommand.js +21 -28
- package/dist-es/commands/DetectEntitiesV2Command.js +21 -28
- package/dist-es/commands/DetectPHICommand.js +21 -28
- package/dist-es/commands/InferICD10CMCommand.js +21 -28
- package/dist-es/commands/InferRxNormCommand.js +21 -28
- package/dist-es/commands/InferSNOMEDCTCommand.js +21 -28
- package/dist-es/commands/ListEntitiesDetectionV2JobsCommand.js +21 -28
- package/dist-es/commands/ListICD10CMInferenceJobsCommand.js +21 -28
- package/dist-es/commands/ListPHIDetectionJobsCommand.js +21 -28
- package/dist-es/commands/ListRxNormInferenceJobsCommand.js +21 -28
- package/dist-es/commands/ListSNOMEDCTInferenceJobsCommand.js +21 -28
- package/dist-es/commands/StartEntitiesDetectionV2JobCommand.js +21 -28
- package/dist-es/commands/StartICD10CMInferenceJobCommand.js +21 -28
- package/dist-es/commands/StartPHIDetectionJobCommand.js +21 -28
- package/dist-es/commands/StartRxNormInferenceJobCommand.js +21 -28
- package/dist-es/commands/StartSNOMEDCTInferenceJobCommand.js +21 -28
- package/dist-es/commands/StopEntitiesDetectionV2JobCommand.js +21 -28
- package/dist-es/commands/StopICD10CMInferenceJobCommand.js +21 -28
- package/dist-es/commands/StopPHIDetectionJobCommand.js +21 -28
- package/dist-es/commands/StopRxNormInferenceJobCommand.js +21 -28
- package/dist-es/commands/StopSNOMEDCTInferenceJobCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/ComprehendMedicalServiceException.js +5 -10
- package/dist-es/models/models_0.js +318 -171
- package/dist-es/protocols/Aws_json1_1.js +1767 -2286
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +33 -33
|
@@ -1,2150 +1,1641 @@
|
|
|
1
|
-
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
1
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
2
|
import { decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseEpochTimestamp as __parseEpochTimestamp, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
5
4
|
import { ComprehendMedicalServiceException as __BaseException } from "../models/ComprehendMedicalServiceException";
|
|
6
5
|
import { InternalServerException, InvalidEncodingException, InvalidRequestException, ResourceNotFoundException, ServiceUnavailableException, TextSizeLimitExceededException, TooManyRequestsException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
return
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
export
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
return
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
export
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
return __generator(this, function (_a) {
|
|
241
|
-
headers = {
|
|
242
|
-
"content-type": "application/x-amz-json-1.1",
|
|
243
|
-
"x-amz-target": "ComprehendMedical_20181030.StopEntitiesDetectionV2Job",
|
|
244
|
-
};
|
|
245
|
-
body = JSON.stringify(serializeAws_json1_1StopEntitiesDetectionV2JobRequest(input, context));
|
|
246
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
247
|
-
});
|
|
248
|
-
}); };
|
|
249
|
-
export var serializeAws_json1_1StopICD10CMInferenceJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
250
|
-
var headers, body;
|
|
251
|
-
return __generator(this, function (_a) {
|
|
252
|
-
headers = {
|
|
253
|
-
"content-type": "application/x-amz-json-1.1",
|
|
254
|
-
"x-amz-target": "ComprehendMedical_20181030.StopICD10CMInferenceJob",
|
|
255
|
-
};
|
|
256
|
-
body = JSON.stringify(serializeAws_json1_1StopICD10CMInferenceJobRequest(input, context));
|
|
257
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
258
|
-
});
|
|
259
|
-
}); };
|
|
260
|
-
export var serializeAws_json1_1StopPHIDetectionJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
261
|
-
var headers, body;
|
|
262
|
-
return __generator(this, function (_a) {
|
|
263
|
-
headers = {
|
|
264
|
-
"content-type": "application/x-amz-json-1.1",
|
|
265
|
-
"x-amz-target": "ComprehendMedical_20181030.StopPHIDetectionJob",
|
|
266
|
-
};
|
|
267
|
-
body = JSON.stringify(serializeAws_json1_1StopPHIDetectionJobRequest(input, context));
|
|
268
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
269
|
-
});
|
|
270
|
-
}); };
|
|
271
|
-
export var serializeAws_json1_1StopRxNormInferenceJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
272
|
-
var headers, body;
|
|
273
|
-
return __generator(this, function (_a) {
|
|
274
|
-
headers = {
|
|
275
|
-
"content-type": "application/x-amz-json-1.1",
|
|
276
|
-
"x-amz-target": "ComprehendMedical_20181030.StopRxNormInferenceJob",
|
|
277
|
-
};
|
|
278
|
-
body = JSON.stringify(serializeAws_json1_1StopRxNormInferenceJobRequest(input, context));
|
|
279
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
280
|
-
});
|
|
281
|
-
}); };
|
|
282
|
-
export var serializeAws_json1_1StopSNOMEDCTInferenceJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
283
|
-
var headers, body;
|
|
284
|
-
return __generator(this, function (_a) {
|
|
285
|
-
headers = {
|
|
286
|
-
"content-type": "application/x-amz-json-1.1",
|
|
287
|
-
"x-amz-target": "ComprehendMedical_20181030.StopSNOMEDCTInferenceJob",
|
|
288
|
-
};
|
|
289
|
-
body = JSON.stringify(serializeAws_json1_1StopSNOMEDCTInferenceJobRequest(input, context));
|
|
290
|
-
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
291
|
-
});
|
|
292
|
-
}); };
|
|
293
|
-
export var deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
294
|
-
var data, contents, response;
|
|
295
|
-
return __generator(this, function (_a) {
|
|
296
|
-
switch (_a.label) {
|
|
297
|
-
case 0:
|
|
298
|
-
if (output.statusCode >= 300) {
|
|
299
|
-
return [2, deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommandError(output, context)];
|
|
300
|
-
}
|
|
301
|
-
return [4, parseBody(output.body, context)];
|
|
302
|
-
case 1:
|
|
303
|
-
data = _a.sent();
|
|
304
|
-
contents = {};
|
|
305
|
-
contents = deserializeAws_json1_1DescribeEntitiesDetectionV2JobResponse(data, context);
|
|
306
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
307
|
-
return [2, Promise.resolve(response)];
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
}); };
|
|
311
|
-
var deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
312
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
313
|
-
var _c;
|
|
314
|
-
return __generator(this, function (_d) {
|
|
315
|
-
switch (_d.label) {
|
|
316
|
-
case 0:
|
|
317
|
-
_a = [__assign({}, output)];
|
|
318
|
-
_c = {};
|
|
319
|
-
return [4, parseBody(output.body, context)];
|
|
320
|
-
case 1:
|
|
321
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
322
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
323
|
-
_b = errorCode;
|
|
324
|
-
switch (_b) {
|
|
325
|
-
case "InternalServerException": return [3, 2];
|
|
326
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
327
|
-
case "InvalidRequestException": return [3, 4];
|
|
328
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
329
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
330
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
331
|
-
case "TooManyRequestsException": return [3, 8];
|
|
332
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
333
|
-
}
|
|
334
|
-
return [3, 10];
|
|
335
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
336
|
-
case 3: throw _d.sent();
|
|
337
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
338
|
-
case 5: throw _d.sent();
|
|
339
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
340
|
-
case 7: throw _d.sent();
|
|
341
|
-
case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
342
|
-
case 9: throw _d.sent();
|
|
343
|
-
case 10:
|
|
344
|
-
parsedBody = parsedOutput.body;
|
|
345
|
-
throwDefaultError({
|
|
346
|
-
output: output,
|
|
347
|
-
parsedBody: parsedBody,
|
|
348
|
-
exceptionCtor: __BaseException,
|
|
349
|
-
errorCode: errorCode,
|
|
350
|
-
});
|
|
351
|
-
_d.label = 11;
|
|
352
|
-
case 11: return [2];
|
|
353
|
-
}
|
|
354
|
-
});
|
|
355
|
-
}); };
|
|
356
|
-
export var deserializeAws_json1_1DescribeICD10CMInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
357
|
-
var data, contents, response;
|
|
358
|
-
return __generator(this, function (_a) {
|
|
359
|
-
switch (_a.label) {
|
|
360
|
-
case 0:
|
|
361
|
-
if (output.statusCode >= 300) {
|
|
362
|
-
return [2, deserializeAws_json1_1DescribeICD10CMInferenceJobCommandError(output, context)];
|
|
363
|
-
}
|
|
364
|
-
return [4, parseBody(output.body, context)];
|
|
365
|
-
case 1:
|
|
366
|
-
data = _a.sent();
|
|
367
|
-
contents = {};
|
|
368
|
-
contents = deserializeAws_json1_1DescribeICD10CMInferenceJobResponse(data, context);
|
|
369
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
370
|
-
return [2, Promise.resolve(response)];
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
}); };
|
|
374
|
-
var deserializeAws_json1_1DescribeICD10CMInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
375
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
376
|
-
var _c;
|
|
377
|
-
return __generator(this, function (_d) {
|
|
378
|
-
switch (_d.label) {
|
|
379
|
-
case 0:
|
|
380
|
-
_a = [__assign({}, output)];
|
|
381
|
-
_c = {};
|
|
382
|
-
return [4, parseBody(output.body, context)];
|
|
383
|
-
case 1:
|
|
384
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
385
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
386
|
-
_b = errorCode;
|
|
387
|
-
switch (_b) {
|
|
388
|
-
case "InternalServerException": return [3, 2];
|
|
389
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
390
|
-
case "InvalidRequestException": return [3, 4];
|
|
391
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
392
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
393
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
394
|
-
case "TooManyRequestsException": return [3, 8];
|
|
395
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
396
|
-
}
|
|
397
|
-
return [3, 10];
|
|
398
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
399
|
-
case 3: throw _d.sent();
|
|
400
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
401
|
-
case 5: throw _d.sent();
|
|
402
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
403
|
-
case 7: throw _d.sent();
|
|
404
|
-
case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
405
|
-
case 9: throw _d.sent();
|
|
406
|
-
case 10:
|
|
407
|
-
parsedBody = parsedOutput.body;
|
|
408
|
-
throwDefaultError({
|
|
409
|
-
output: output,
|
|
410
|
-
parsedBody: parsedBody,
|
|
411
|
-
exceptionCtor: __BaseException,
|
|
412
|
-
errorCode: errorCode,
|
|
413
|
-
});
|
|
414
|
-
_d.label = 11;
|
|
415
|
-
case 11: return [2];
|
|
416
|
-
}
|
|
417
|
-
});
|
|
418
|
-
}); };
|
|
419
|
-
export var deserializeAws_json1_1DescribePHIDetectionJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
420
|
-
var data, contents, response;
|
|
421
|
-
return __generator(this, function (_a) {
|
|
422
|
-
switch (_a.label) {
|
|
423
|
-
case 0:
|
|
424
|
-
if (output.statusCode >= 300) {
|
|
425
|
-
return [2, deserializeAws_json1_1DescribePHIDetectionJobCommandError(output, context)];
|
|
426
|
-
}
|
|
427
|
-
return [4, parseBody(output.body, context)];
|
|
428
|
-
case 1:
|
|
429
|
-
data = _a.sent();
|
|
430
|
-
contents = {};
|
|
431
|
-
contents = deserializeAws_json1_1DescribePHIDetectionJobResponse(data, context);
|
|
432
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
433
|
-
return [2, Promise.resolve(response)];
|
|
434
|
-
}
|
|
435
|
-
});
|
|
436
|
-
}); };
|
|
437
|
-
var deserializeAws_json1_1DescribePHIDetectionJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
438
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
439
|
-
var _c;
|
|
440
|
-
return __generator(this, function (_d) {
|
|
441
|
-
switch (_d.label) {
|
|
442
|
-
case 0:
|
|
443
|
-
_a = [__assign({}, output)];
|
|
444
|
-
_c = {};
|
|
445
|
-
return [4, parseBody(output.body, context)];
|
|
446
|
-
case 1:
|
|
447
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
448
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
449
|
-
_b = errorCode;
|
|
450
|
-
switch (_b) {
|
|
451
|
-
case "InternalServerException": return [3, 2];
|
|
452
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
453
|
-
case "InvalidRequestException": return [3, 4];
|
|
454
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
455
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
456
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
457
|
-
case "TooManyRequestsException": return [3, 8];
|
|
458
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
459
|
-
}
|
|
460
|
-
return [3, 10];
|
|
461
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
462
|
-
case 3: throw _d.sent();
|
|
463
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
464
|
-
case 5: throw _d.sent();
|
|
465
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
466
|
-
case 7: throw _d.sent();
|
|
467
|
-
case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
468
|
-
case 9: throw _d.sent();
|
|
469
|
-
case 10:
|
|
470
|
-
parsedBody = parsedOutput.body;
|
|
471
|
-
throwDefaultError({
|
|
472
|
-
output: output,
|
|
473
|
-
parsedBody: parsedBody,
|
|
474
|
-
exceptionCtor: __BaseException,
|
|
475
|
-
errorCode: errorCode,
|
|
476
|
-
});
|
|
477
|
-
_d.label = 11;
|
|
478
|
-
case 11: return [2];
|
|
479
|
-
}
|
|
480
|
-
});
|
|
481
|
-
}); };
|
|
482
|
-
export var deserializeAws_json1_1DescribeRxNormInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
483
|
-
var data, contents, response;
|
|
484
|
-
return __generator(this, function (_a) {
|
|
485
|
-
switch (_a.label) {
|
|
486
|
-
case 0:
|
|
487
|
-
if (output.statusCode >= 300) {
|
|
488
|
-
return [2, deserializeAws_json1_1DescribeRxNormInferenceJobCommandError(output, context)];
|
|
489
|
-
}
|
|
490
|
-
return [4, parseBody(output.body, context)];
|
|
491
|
-
case 1:
|
|
492
|
-
data = _a.sent();
|
|
493
|
-
contents = {};
|
|
494
|
-
contents = deserializeAws_json1_1DescribeRxNormInferenceJobResponse(data, context);
|
|
495
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
496
|
-
return [2, Promise.resolve(response)];
|
|
497
|
-
}
|
|
498
|
-
});
|
|
499
|
-
}); };
|
|
500
|
-
var deserializeAws_json1_1DescribeRxNormInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
501
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
502
|
-
var _c;
|
|
503
|
-
return __generator(this, function (_d) {
|
|
504
|
-
switch (_d.label) {
|
|
505
|
-
case 0:
|
|
506
|
-
_a = [__assign({}, output)];
|
|
507
|
-
_c = {};
|
|
508
|
-
return [4, parseBody(output.body, context)];
|
|
509
|
-
case 1:
|
|
510
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
511
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
512
|
-
_b = errorCode;
|
|
513
|
-
switch (_b) {
|
|
514
|
-
case "InternalServerException": return [3, 2];
|
|
515
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
516
|
-
case "InvalidRequestException": return [3, 4];
|
|
517
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
518
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
519
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
520
|
-
case "TooManyRequestsException": return [3, 8];
|
|
521
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
522
|
-
}
|
|
523
|
-
return [3, 10];
|
|
524
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
525
|
-
case 3: throw _d.sent();
|
|
526
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
527
|
-
case 5: throw _d.sent();
|
|
528
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
529
|
-
case 7: throw _d.sent();
|
|
530
|
-
case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
531
|
-
case 9: throw _d.sent();
|
|
532
|
-
case 10:
|
|
533
|
-
parsedBody = parsedOutput.body;
|
|
534
|
-
throwDefaultError({
|
|
535
|
-
output: output,
|
|
536
|
-
parsedBody: parsedBody,
|
|
537
|
-
exceptionCtor: __BaseException,
|
|
538
|
-
errorCode: errorCode,
|
|
539
|
-
});
|
|
540
|
-
_d.label = 11;
|
|
541
|
-
case 11: return [2];
|
|
542
|
-
}
|
|
543
|
-
});
|
|
544
|
-
}); };
|
|
545
|
-
export var deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
546
|
-
var data, contents, response;
|
|
547
|
-
return __generator(this, function (_a) {
|
|
548
|
-
switch (_a.label) {
|
|
549
|
-
case 0:
|
|
550
|
-
if (output.statusCode >= 300) {
|
|
551
|
-
return [2, deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommandError(output, context)];
|
|
552
|
-
}
|
|
553
|
-
return [4, parseBody(output.body, context)];
|
|
554
|
-
case 1:
|
|
555
|
-
data = _a.sent();
|
|
556
|
-
contents = {};
|
|
557
|
-
contents = deserializeAws_json1_1DescribeSNOMEDCTInferenceJobResponse(data, context);
|
|
558
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
559
|
-
return [2, Promise.resolve(response)];
|
|
560
|
-
}
|
|
561
|
-
});
|
|
562
|
-
}); };
|
|
563
|
-
var deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
564
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
565
|
-
var _c;
|
|
566
|
-
return __generator(this, function (_d) {
|
|
567
|
-
switch (_d.label) {
|
|
568
|
-
case 0:
|
|
569
|
-
_a = [__assign({}, output)];
|
|
570
|
-
_c = {};
|
|
571
|
-
return [4, parseBody(output.body, context)];
|
|
572
|
-
case 1:
|
|
573
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
574
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
575
|
-
_b = errorCode;
|
|
576
|
-
switch (_b) {
|
|
577
|
-
case "InternalServerException": return [3, 2];
|
|
578
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
579
|
-
case "InvalidRequestException": return [3, 4];
|
|
580
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
581
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
582
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
583
|
-
case "TooManyRequestsException": return [3, 8];
|
|
584
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
585
|
-
}
|
|
586
|
-
return [3, 10];
|
|
587
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
588
|
-
case 3: throw _d.sent();
|
|
589
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
590
|
-
case 5: throw _d.sent();
|
|
591
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
592
|
-
case 7: throw _d.sent();
|
|
593
|
-
case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
594
|
-
case 9: throw _d.sent();
|
|
595
|
-
case 10:
|
|
596
|
-
parsedBody = parsedOutput.body;
|
|
597
|
-
throwDefaultError({
|
|
598
|
-
output: output,
|
|
599
|
-
parsedBody: parsedBody,
|
|
600
|
-
exceptionCtor: __BaseException,
|
|
601
|
-
errorCode: errorCode,
|
|
602
|
-
});
|
|
603
|
-
_d.label = 11;
|
|
604
|
-
case 11: return [2];
|
|
605
|
-
}
|
|
606
|
-
});
|
|
607
|
-
}); };
|
|
608
|
-
export var deserializeAws_json1_1DetectEntitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
609
|
-
var data, contents, response;
|
|
610
|
-
return __generator(this, function (_a) {
|
|
611
|
-
switch (_a.label) {
|
|
612
|
-
case 0:
|
|
613
|
-
if (output.statusCode >= 300) {
|
|
614
|
-
return [2, deserializeAws_json1_1DetectEntitiesCommandError(output, context)];
|
|
615
|
-
}
|
|
616
|
-
return [4, parseBody(output.body, context)];
|
|
617
|
-
case 1:
|
|
618
|
-
data = _a.sent();
|
|
619
|
-
contents = {};
|
|
620
|
-
contents = deserializeAws_json1_1DetectEntitiesResponse(data, context);
|
|
621
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
622
|
-
return [2, Promise.resolve(response)];
|
|
623
|
-
}
|
|
624
|
-
});
|
|
625
|
-
}); };
|
|
626
|
-
var deserializeAws_json1_1DetectEntitiesCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
627
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
628
|
-
var _c;
|
|
629
|
-
return __generator(this, function (_d) {
|
|
630
|
-
switch (_d.label) {
|
|
631
|
-
case 0:
|
|
632
|
-
_a = [__assign({}, output)];
|
|
633
|
-
_c = {};
|
|
634
|
-
return [4, parseBody(output.body, context)];
|
|
635
|
-
case 1:
|
|
636
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
637
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
638
|
-
_b = errorCode;
|
|
639
|
-
switch (_b) {
|
|
640
|
-
case "InternalServerException": return [3, 2];
|
|
641
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
642
|
-
case "InvalidEncodingException": return [3, 4];
|
|
643
|
-
case "com.amazonaws.comprehendmedical#InvalidEncodingException": return [3, 4];
|
|
644
|
-
case "InvalidRequestException": return [3, 6];
|
|
645
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 6];
|
|
646
|
-
case "ServiceUnavailableException": return [3, 8];
|
|
647
|
-
case "com.amazonaws.comprehendmedical#ServiceUnavailableException": return [3, 8];
|
|
648
|
-
case "TextSizeLimitExceededException": return [3, 10];
|
|
649
|
-
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException": return [3, 10];
|
|
650
|
-
case "TooManyRequestsException": return [3, 12];
|
|
651
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 12];
|
|
652
|
-
}
|
|
653
|
-
return [3, 14];
|
|
654
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
655
|
-
case 3: throw _d.sent();
|
|
656
|
-
case 4: return [4, deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)];
|
|
657
|
-
case 5: throw _d.sent();
|
|
658
|
-
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
659
|
-
case 7: throw _d.sent();
|
|
660
|
-
case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
661
|
-
case 9: throw _d.sent();
|
|
662
|
-
case 10: return [4, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)];
|
|
663
|
-
case 11: throw _d.sent();
|
|
664
|
-
case 12: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
665
|
-
case 13: throw _d.sent();
|
|
666
|
-
case 14:
|
|
667
|
-
parsedBody = parsedOutput.body;
|
|
668
|
-
throwDefaultError({
|
|
669
|
-
output: output,
|
|
670
|
-
parsedBody: parsedBody,
|
|
671
|
-
exceptionCtor: __BaseException,
|
|
672
|
-
errorCode: errorCode,
|
|
673
|
-
});
|
|
674
|
-
_d.label = 15;
|
|
675
|
-
case 15: return [2];
|
|
676
|
-
}
|
|
677
|
-
});
|
|
678
|
-
}); };
|
|
679
|
-
export var deserializeAws_json1_1DetectEntitiesV2Command = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
680
|
-
var data, contents, response;
|
|
681
|
-
return __generator(this, function (_a) {
|
|
682
|
-
switch (_a.label) {
|
|
683
|
-
case 0:
|
|
684
|
-
if (output.statusCode >= 300) {
|
|
685
|
-
return [2, deserializeAws_json1_1DetectEntitiesV2CommandError(output, context)];
|
|
686
|
-
}
|
|
687
|
-
return [4, parseBody(output.body, context)];
|
|
688
|
-
case 1:
|
|
689
|
-
data = _a.sent();
|
|
690
|
-
contents = {};
|
|
691
|
-
contents = deserializeAws_json1_1DetectEntitiesV2Response(data, context);
|
|
692
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
693
|
-
return [2, Promise.resolve(response)];
|
|
694
|
-
}
|
|
695
|
-
});
|
|
696
|
-
}); };
|
|
697
|
-
var deserializeAws_json1_1DetectEntitiesV2CommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
698
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
699
|
-
var _c;
|
|
700
|
-
return __generator(this, function (_d) {
|
|
701
|
-
switch (_d.label) {
|
|
702
|
-
case 0:
|
|
703
|
-
_a = [__assign({}, output)];
|
|
704
|
-
_c = {};
|
|
705
|
-
return [4, parseBody(output.body, context)];
|
|
706
|
-
case 1:
|
|
707
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
708
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
|
-
_b = errorCode;
|
|
710
|
-
switch (_b) {
|
|
711
|
-
case "InternalServerException": return [3, 2];
|
|
712
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
713
|
-
case "InvalidEncodingException": return [3, 4];
|
|
714
|
-
case "com.amazonaws.comprehendmedical#InvalidEncodingException": return [3, 4];
|
|
715
|
-
case "InvalidRequestException": return [3, 6];
|
|
716
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 6];
|
|
717
|
-
case "ServiceUnavailableException": return [3, 8];
|
|
718
|
-
case "com.amazonaws.comprehendmedical#ServiceUnavailableException": return [3, 8];
|
|
719
|
-
case "TextSizeLimitExceededException": return [3, 10];
|
|
720
|
-
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException": return [3, 10];
|
|
721
|
-
case "TooManyRequestsException": return [3, 12];
|
|
722
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 12];
|
|
723
|
-
}
|
|
724
|
-
return [3, 14];
|
|
725
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
726
|
-
case 3: throw _d.sent();
|
|
727
|
-
case 4: return [4, deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)];
|
|
728
|
-
case 5: throw _d.sent();
|
|
729
|
-
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
730
|
-
case 7: throw _d.sent();
|
|
731
|
-
case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
732
|
-
case 9: throw _d.sent();
|
|
733
|
-
case 10: return [4, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)];
|
|
734
|
-
case 11: throw _d.sent();
|
|
735
|
-
case 12: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
736
|
-
case 13: throw _d.sent();
|
|
737
|
-
case 14:
|
|
738
|
-
parsedBody = parsedOutput.body;
|
|
739
|
-
throwDefaultError({
|
|
740
|
-
output: output,
|
|
741
|
-
parsedBody: parsedBody,
|
|
742
|
-
exceptionCtor: __BaseException,
|
|
743
|
-
errorCode: errorCode,
|
|
744
|
-
});
|
|
745
|
-
_d.label = 15;
|
|
746
|
-
case 15: return [2];
|
|
747
|
-
}
|
|
748
|
-
});
|
|
749
|
-
}); };
|
|
750
|
-
export var deserializeAws_json1_1DetectPHICommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
751
|
-
var data, contents, response;
|
|
752
|
-
return __generator(this, function (_a) {
|
|
753
|
-
switch (_a.label) {
|
|
754
|
-
case 0:
|
|
755
|
-
if (output.statusCode >= 300) {
|
|
756
|
-
return [2, deserializeAws_json1_1DetectPHICommandError(output, context)];
|
|
757
|
-
}
|
|
758
|
-
return [4, parseBody(output.body, context)];
|
|
759
|
-
case 1:
|
|
760
|
-
data = _a.sent();
|
|
761
|
-
contents = {};
|
|
762
|
-
contents = deserializeAws_json1_1DetectPHIResponse(data, context);
|
|
763
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
764
|
-
return [2, Promise.resolve(response)];
|
|
765
|
-
}
|
|
766
|
-
});
|
|
767
|
-
}); };
|
|
768
|
-
var deserializeAws_json1_1DetectPHICommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
769
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
770
|
-
var _c;
|
|
771
|
-
return __generator(this, function (_d) {
|
|
772
|
-
switch (_d.label) {
|
|
773
|
-
case 0:
|
|
774
|
-
_a = [__assign({}, output)];
|
|
775
|
-
_c = {};
|
|
776
|
-
return [4, parseBody(output.body, context)];
|
|
777
|
-
case 1:
|
|
778
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
779
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
780
|
-
_b = errorCode;
|
|
781
|
-
switch (_b) {
|
|
782
|
-
case "InternalServerException": return [3, 2];
|
|
783
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
784
|
-
case "InvalidEncodingException": return [3, 4];
|
|
785
|
-
case "com.amazonaws.comprehendmedical#InvalidEncodingException": return [3, 4];
|
|
786
|
-
case "InvalidRequestException": return [3, 6];
|
|
787
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 6];
|
|
788
|
-
case "ServiceUnavailableException": return [3, 8];
|
|
789
|
-
case "com.amazonaws.comprehendmedical#ServiceUnavailableException": return [3, 8];
|
|
790
|
-
case "TextSizeLimitExceededException": return [3, 10];
|
|
791
|
-
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException": return [3, 10];
|
|
792
|
-
case "TooManyRequestsException": return [3, 12];
|
|
793
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 12];
|
|
794
|
-
}
|
|
795
|
-
return [3, 14];
|
|
796
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
797
|
-
case 3: throw _d.sent();
|
|
798
|
-
case 4: return [4, deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)];
|
|
799
|
-
case 5: throw _d.sent();
|
|
800
|
-
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
801
|
-
case 7: throw _d.sent();
|
|
802
|
-
case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
803
|
-
case 9: throw _d.sent();
|
|
804
|
-
case 10: return [4, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)];
|
|
805
|
-
case 11: throw _d.sent();
|
|
806
|
-
case 12: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
807
|
-
case 13: throw _d.sent();
|
|
808
|
-
case 14:
|
|
809
|
-
parsedBody = parsedOutput.body;
|
|
810
|
-
throwDefaultError({
|
|
811
|
-
output: output,
|
|
812
|
-
parsedBody: parsedBody,
|
|
813
|
-
exceptionCtor: __BaseException,
|
|
814
|
-
errorCode: errorCode,
|
|
815
|
-
});
|
|
816
|
-
_d.label = 15;
|
|
817
|
-
case 15: return [2];
|
|
818
|
-
}
|
|
819
|
-
});
|
|
820
|
-
}); };
|
|
821
|
-
export var deserializeAws_json1_1InferICD10CMCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
822
|
-
var data, contents, response;
|
|
823
|
-
return __generator(this, function (_a) {
|
|
824
|
-
switch (_a.label) {
|
|
825
|
-
case 0:
|
|
826
|
-
if (output.statusCode >= 300) {
|
|
827
|
-
return [2, deserializeAws_json1_1InferICD10CMCommandError(output, context)];
|
|
828
|
-
}
|
|
829
|
-
return [4, parseBody(output.body, context)];
|
|
830
|
-
case 1:
|
|
831
|
-
data = _a.sent();
|
|
832
|
-
contents = {};
|
|
833
|
-
contents = deserializeAws_json1_1InferICD10CMResponse(data, context);
|
|
834
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
835
|
-
return [2, Promise.resolve(response)];
|
|
836
|
-
}
|
|
837
|
-
});
|
|
838
|
-
}); };
|
|
839
|
-
var deserializeAws_json1_1InferICD10CMCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
840
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
841
|
-
var _c;
|
|
842
|
-
return __generator(this, function (_d) {
|
|
843
|
-
switch (_d.label) {
|
|
844
|
-
case 0:
|
|
845
|
-
_a = [__assign({}, output)];
|
|
846
|
-
_c = {};
|
|
847
|
-
return [4, parseBody(output.body, context)];
|
|
848
|
-
case 1:
|
|
849
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
850
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
851
|
-
_b = errorCode;
|
|
852
|
-
switch (_b) {
|
|
853
|
-
case "InternalServerException": return [3, 2];
|
|
854
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
855
|
-
case "InvalidEncodingException": return [3, 4];
|
|
856
|
-
case "com.amazonaws.comprehendmedical#InvalidEncodingException": return [3, 4];
|
|
857
|
-
case "InvalidRequestException": return [3, 6];
|
|
858
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 6];
|
|
859
|
-
case "ServiceUnavailableException": return [3, 8];
|
|
860
|
-
case "com.amazonaws.comprehendmedical#ServiceUnavailableException": return [3, 8];
|
|
861
|
-
case "TextSizeLimitExceededException": return [3, 10];
|
|
862
|
-
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException": return [3, 10];
|
|
863
|
-
case "TooManyRequestsException": return [3, 12];
|
|
864
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 12];
|
|
865
|
-
}
|
|
866
|
-
return [3, 14];
|
|
867
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
868
|
-
case 3: throw _d.sent();
|
|
869
|
-
case 4: return [4, deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)];
|
|
870
|
-
case 5: throw _d.sent();
|
|
871
|
-
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
872
|
-
case 7: throw _d.sent();
|
|
873
|
-
case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
874
|
-
case 9: throw _d.sent();
|
|
875
|
-
case 10: return [4, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)];
|
|
876
|
-
case 11: throw _d.sent();
|
|
877
|
-
case 12: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
878
|
-
case 13: throw _d.sent();
|
|
879
|
-
case 14:
|
|
880
|
-
parsedBody = parsedOutput.body;
|
|
881
|
-
throwDefaultError({
|
|
882
|
-
output: output,
|
|
883
|
-
parsedBody: parsedBody,
|
|
884
|
-
exceptionCtor: __BaseException,
|
|
885
|
-
errorCode: errorCode,
|
|
886
|
-
});
|
|
887
|
-
_d.label = 15;
|
|
888
|
-
case 15: return [2];
|
|
889
|
-
}
|
|
890
|
-
});
|
|
891
|
-
}); };
|
|
892
|
-
export var deserializeAws_json1_1InferRxNormCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
893
|
-
var data, contents, response;
|
|
894
|
-
return __generator(this, function (_a) {
|
|
895
|
-
switch (_a.label) {
|
|
896
|
-
case 0:
|
|
897
|
-
if (output.statusCode >= 300) {
|
|
898
|
-
return [2, deserializeAws_json1_1InferRxNormCommandError(output, context)];
|
|
899
|
-
}
|
|
900
|
-
return [4, parseBody(output.body, context)];
|
|
901
|
-
case 1:
|
|
902
|
-
data = _a.sent();
|
|
903
|
-
contents = {};
|
|
904
|
-
contents = deserializeAws_json1_1InferRxNormResponse(data, context);
|
|
905
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
906
|
-
return [2, Promise.resolve(response)];
|
|
907
|
-
}
|
|
908
|
-
});
|
|
909
|
-
}); };
|
|
910
|
-
var deserializeAws_json1_1InferRxNormCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
911
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
912
|
-
var _c;
|
|
913
|
-
return __generator(this, function (_d) {
|
|
914
|
-
switch (_d.label) {
|
|
915
|
-
case 0:
|
|
916
|
-
_a = [__assign({}, output)];
|
|
917
|
-
_c = {};
|
|
918
|
-
return [4, parseBody(output.body, context)];
|
|
919
|
-
case 1:
|
|
920
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
921
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
922
|
-
_b = errorCode;
|
|
923
|
-
switch (_b) {
|
|
924
|
-
case "InternalServerException": return [3, 2];
|
|
925
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
926
|
-
case "InvalidEncodingException": return [3, 4];
|
|
927
|
-
case "com.amazonaws.comprehendmedical#InvalidEncodingException": return [3, 4];
|
|
928
|
-
case "InvalidRequestException": return [3, 6];
|
|
929
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 6];
|
|
930
|
-
case "ServiceUnavailableException": return [3, 8];
|
|
931
|
-
case "com.amazonaws.comprehendmedical#ServiceUnavailableException": return [3, 8];
|
|
932
|
-
case "TextSizeLimitExceededException": return [3, 10];
|
|
933
|
-
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException": return [3, 10];
|
|
934
|
-
case "TooManyRequestsException": return [3, 12];
|
|
935
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 12];
|
|
936
|
-
}
|
|
937
|
-
return [3, 14];
|
|
938
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
939
|
-
case 3: throw _d.sent();
|
|
940
|
-
case 4: return [4, deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)];
|
|
941
|
-
case 5: throw _d.sent();
|
|
942
|
-
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
943
|
-
case 7: throw _d.sent();
|
|
944
|
-
case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
945
|
-
case 9: throw _d.sent();
|
|
946
|
-
case 10: return [4, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)];
|
|
947
|
-
case 11: throw _d.sent();
|
|
948
|
-
case 12: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
949
|
-
case 13: throw _d.sent();
|
|
950
|
-
case 14:
|
|
951
|
-
parsedBody = parsedOutput.body;
|
|
952
|
-
throwDefaultError({
|
|
953
|
-
output: output,
|
|
954
|
-
parsedBody: parsedBody,
|
|
955
|
-
exceptionCtor: __BaseException,
|
|
956
|
-
errorCode: errorCode,
|
|
957
|
-
});
|
|
958
|
-
_d.label = 15;
|
|
959
|
-
case 15: return [2];
|
|
960
|
-
}
|
|
961
|
-
});
|
|
962
|
-
}); };
|
|
963
|
-
export var deserializeAws_json1_1InferSNOMEDCTCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
964
|
-
var data, contents, response;
|
|
965
|
-
return __generator(this, function (_a) {
|
|
966
|
-
switch (_a.label) {
|
|
967
|
-
case 0:
|
|
968
|
-
if (output.statusCode >= 300) {
|
|
969
|
-
return [2, deserializeAws_json1_1InferSNOMEDCTCommandError(output, context)];
|
|
970
|
-
}
|
|
971
|
-
return [4, parseBody(output.body, context)];
|
|
972
|
-
case 1:
|
|
973
|
-
data = _a.sent();
|
|
974
|
-
contents = {};
|
|
975
|
-
contents = deserializeAws_json1_1InferSNOMEDCTResponse(data, context);
|
|
976
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
977
|
-
return [2, Promise.resolve(response)];
|
|
978
|
-
}
|
|
979
|
-
});
|
|
980
|
-
}); };
|
|
981
|
-
var deserializeAws_json1_1InferSNOMEDCTCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
982
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
983
|
-
var _c;
|
|
984
|
-
return __generator(this, function (_d) {
|
|
985
|
-
switch (_d.label) {
|
|
986
|
-
case 0:
|
|
987
|
-
_a = [__assign({}, output)];
|
|
988
|
-
_c = {};
|
|
989
|
-
return [4, parseBody(output.body, context)];
|
|
990
|
-
case 1:
|
|
991
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
992
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
993
|
-
_b = errorCode;
|
|
994
|
-
switch (_b) {
|
|
995
|
-
case "InternalServerException": return [3, 2];
|
|
996
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
997
|
-
case "InvalidEncodingException": return [3, 4];
|
|
998
|
-
case "com.amazonaws.comprehendmedical#InvalidEncodingException": return [3, 4];
|
|
999
|
-
case "InvalidRequestException": return [3, 6];
|
|
1000
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 6];
|
|
1001
|
-
case "ServiceUnavailableException": return [3, 8];
|
|
1002
|
-
case "com.amazonaws.comprehendmedical#ServiceUnavailableException": return [3, 8];
|
|
1003
|
-
case "TextSizeLimitExceededException": return [3, 10];
|
|
1004
|
-
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException": return [3, 10];
|
|
1005
|
-
case "TooManyRequestsException": return [3, 12];
|
|
1006
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 12];
|
|
1007
|
-
}
|
|
1008
|
-
return [3, 14];
|
|
1009
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1010
|
-
case 3: throw _d.sent();
|
|
1011
|
-
case 4: return [4, deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)];
|
|
1012
|
-
case 5: throw _d.sent();
|
|
1013
|
-
case 6: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1014
|
-
case 7: throw _d.sent();
|
|
1015
|
-
case 8: return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1016
|
-
case 9: throw _d.sent();
|
|
1017
|
-
case 10: return [4, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1018
|
-
case 11: throw _d.sent();
|
|
1019
|
-
case 12: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1020
|
-
case 13: throw _d.sent();
|
|
1021
|
-
case 14:
|
|
1022
|
-
parsedBody = parsedOutput.body;
|
|
1023
|
-
throwDefaultError({
|
|
1024
|
-
output: output,
|
|
1025
|
-
parsedBody: parsedBody,
|
|
1026
|
-
exceptionCtor: __BaseException,
|
|
1027
|
-
errorCode: errorCode,
|
|
1028
|
-
});
|
|
1029
|
-
_d.label = 15;
|
|
1030
|
-
case 15: return [2];
|
|
1031
|
-
}
|
|
1032
|
-
});
|
|
1033
|
-
}); };
|
|
1034
|
-
export var deserializeAws_json1_1ListEntitiesDetectionV2JobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1035
|
-
var data, contents, response;
|
|
1036
|
-
return __generator(this, function (_a) {
|
|
1037
|
-
switch (_a.label) {
|
|
1038
|
-
case 0:
|
|
1039
|
-
if (output.statusCode >= 300) {
|
|
1040
|
-
return [2, deserializeAws_json1_1ListEntitiesDetectionV2JobsCommandError(output, context)];
|
|
1041
|
-
}
|
|
1042
|
-
return [4, parseBody(output.body, context)];
|
|
1043
|
-
case 1:
|
|
1044
|
-
data = _a.sent();
|
|
1045
|
-
contents = {};
|
|
1046
|
-
contents = deserializeAws_json1_1ListEntitiesDetectionV2JobsResponse(data, context);
|
|
1047
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1048
|
-
return [2, Promise.resolve(response)];
|
|
1049
|
-
}
|
|
1050
|
-
});
|
|
1051
|
-
}); };
|
|
1052
|
-
var deserializeAws_json1_1ListEntitiesDetectionV2JobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1053
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1054
|
-
var _c;
|
|
1055
|
-
return __generator(this, function (_d) {
|
|
1056
|
-
switch (_d.label) {
|
|
1057
|
-
case 0:
|
|
1058
|
-
_a = [__assign({}, output)];
|
|
1059
|
-
_c = {};
|
|
1060
|
-
return [4, parseBody(output.body, context)];
|
|
1061
|
-
case 1:
|
|
1062
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1063
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1064
|
-
_b = errorCode;
|
|
1065
|
-
switch (_b) {
|
|
1066
|
-
case "InternalServerException": return [3, 2];
|
|
1067
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1068
|
-
case "InvalidRequestException": return [3, 4];
|
|
1069
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1070
|
-
case "TooManyRequestsException": return [3, 6];
|
|
1071
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 6];
|
|
1072
|
-
case "ValidationException": return [3, 8];
|
|
1073
|
-
case "com.amazonaws.comprehendmedical#ValidationException": return [3, 8];
|
|
1074
|
-
}
|
|
1075
|
-
return [3, 10];
|
|
1076
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1077
|
-
case 3: throw _d.sent();
|
|
1078
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1079
|
-
case 5: throw _d.sent();
|
|
1080
|
-
case 6: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1081
|
-
case 7: throw _d.sent();
|
|
1082
|
-
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1083
|
-
case 9: throw _d.sent();
|
|
1084
|
-
case 10:
|
|
1085
|
-
parsedBody = parsedOutput.body;
|
|
1086
|
-
throwDefaultError({
|
|
1087
|
-
output: output,
|
|
1088
|
-
parsedBody: parsedBody,
|
|
1089
|
-
exceptionCtor: __BaseException,
|
|
1090
|
-
errorCode: errorCode,
|
|
1091
|
-
});
|
|
1092
|
-
_d.label = 11;
|
|
1093
|
-
case 11: return [2];
|
|
1094
|
-
}
|
|
1095
|
-
});
|
|
1096
|
-
}); };
|
|
1097
|
-
export var deserializeAws_json1_1ListICD10CMInferenceJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1098
|
-
var data, contents, response;
|
|
1099
|
-
return __generator(this, function (_a) {
|
|
1100
|
-
switch (_a.label) {
|
|
1101
|
-
case 0:
|
|
1102
|
-
if (output.statusCode >= 300) {
|
|
1103
|
-
return [2, deserializeAws_json1_1ListICD10CMInferenceJobsCommandError(output, context)];
|
|
1104
|
-
}
|
|
1105
|
-
return [4, parseBody(output.body, context)];
|
|
1106
|
-
case 1:
|
|
1107
|
-
data = _a.sent();
|
|
1108
|
-
contents = {};
|
|
1109
|
-
contents = deserializeAws_json1_1ListICD10CMInferenceJobsResponse(data, context);
|
|
1110
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1111
|
-
return [2, Promise.resolve(response)];
|
|
1112
|
-
}
|
|
1113
|
-
});
|
|
1114
|
-
}); };
|
|
1115
|
-
var deserializeAws_json1_1ListICD10CMInferenceJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1116
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1117
|
-
var _c;
|
|
1118
|
-
return __generator(this, function (_d) {
|
|
1119
|
-
switch (_d.label) {
|
|
1120
|
-
case 0:
|
|
1121
|
-
_a = [__assign({}, output)];
|
|
1122
|
-
_c = {};
|
|
1123
|
-
return [4, parseBody(output.body, context)];
|
|
1124
|
-
case 1:
|
|
1125
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1126
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1127
|
-
_b = errorCode;
|
|
1128
|
-
switch (_b) {
|
|
1129
|
-
case "InternalServerException": return [3, 2];
|
|
1130
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1131
|
-
case "InvalidRequestException": return [3, 4];
|
|
1132
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1133
|
-
case "TooManyRequestsException": return [3, 6];
|
|
1134
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 6];
|
|
1135
|
-
case "ValidationException": return [3, 8];
|
|
1136
|
-
case "com.amazonaws.comprehendmedical#ValidationException": return [3, 8];
|
|
1137
|
-
}
|
|
1138
|
-
return [3, 10];
|
|
1139
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1140
|
-
case 3: throw _d.sent();
|
|
1141
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1142
|
-
case 5: throw _d.sent();
|
|
1143
|
-
case 6: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1144
|
-
case 7: throw _d.sent();
|
|
1145
|
-
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1146
|
-
case 9: throw _d.sent();
|
|
1147
|
-
case 10:
|
|
1148
|
-
parsedBody = parsedOutput.body;
|
|
1149
|
-
throwDefaultError({
|
|
1150
|
-
output: output,
|
|
1151
|
-
parsedBody: parsedBody,
|
|
1152
|
-
exceptionCtor: __BaseException,
|
|
1153
|
-
errorCode: errorCode,
|
|
1154
|
-
});
|
|
1155
|
-
_d.label = 11;
|
|
1156
|
-
case 11: return [2];
|
|
1157
|
-
}
|
|
1158
|
-
});
|
|
1159
|
-
}); };
|
|
1160
|
-
export var deserializeAws_json1_1ListPHIDetectionJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1161
|
-
var data, contents, response;
|
|
1162
|
-
return __generator(this, function (_a) {
|
|
1163
|
-
switch (_a.label) {
|
|
1164
|
-
case 0:
|
|
1165
|
-
if (output.statusCode >= 300) {
|
|
1166
|
-
return [2, deserializeAws_json1_1ListPHIDetectionJobsCommandError(output, context)];
|
|
1167
|
-
}
|
|
1168
|
-
return [4, parseBody(output.body, context)];
|
|
1169
|
-
case 1:
|
|
1170
|
-
data = _a.sent();
|
|
1171
|
-
contents = {};
|
|
1172
|
-
contents = deserializeAws_json1_1ListPHIDetectionJobsResponse(data, context);
|
|
1173
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1174
|
-
return [2, Promise.resolve(response)];
|
|
1175
|
-
}
|
|
1176
|
-
});
|
|
1177
|
-
}); };
|
|
1178
|
-
var deserializeAws_json1_1ListPHIDetectionJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1179
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1180
|
-
var _c;
|
|
1181
|
-
return __generator(this, function (_d) {
|
|
1182
|
-
switch (_d.label) {
|
|
1183
|
-
case 0:
|
|
1184
|
-
_a = [__assign({}, output)];
|
|
1185
|
-
_c = {};
|
|
1186
|
-
return [4, parseBody(output.body, context)];
|
|
1187
|
-
case 1:
|
|
1188
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1189
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1190
|
-
_b = errorCode;
|
|
1191
|
-
switch (_b) {
|
|
1192
|
-
case "InternalServerException": return [3, 2];
|
|
1193
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1194
|
-
case "InvalidRequestException": return [3, 4];
|
|
1195
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1196
|
-
case "TooManyRequestsException": return [3, 6];
|
|
1197
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 6];
|
|
1198
|
-
case "ValidationException": return [3, 8];
|
|
1199
|
-
case "com.amazonaws.comprehendmedical#ValidationException": return [3, 8];
|
|
1200
|
-
}
|
|
1201
|
-
return [3, 10];
|
|
1202
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1203
|
-
case 3: throw _d.sent();
|
|
1204
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1205
|
-
case 5: throw _d.sent();
|
|
1206
|
-
case 6: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1207
|
-
case 7: throw _d.sent();
|
|
1208
|
-
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1209
|
-
case 9: throw _d.sent();
|
|
1210
|
-
case 10:
|
|
1211
|
-
parsedBody = parsedOutput.body;
|
|
1212
|
-
throwDefaultError({
|
|
1213
|
-
output: output,
|
|
1214
|
-
parsedBody: parsedBody,
|
|
1215
|
-
exceptionCtor: __BaseException,
|
|
1216
|
-
errorCode: errorCode,
|
|
1217
|
-
});
|
|
1218
|
-
_d.label = 11;
|
|
1219
|
-
case 11: return [2];
|
|
1220
|
-
}
|
|
1221
|
-
});
|
|
1222
|
-
}); };
|
|
1223
|
-
export var deserializeAws_json1_1ListRxNormInferenceJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1224
|
-
var data, contents, response;
|
|
1225
|
-
return __generator(this, function (_a) {
|
|
1226
|
-
switch (_a.label) {
|
|
1227
|
-
case 0:
|
|
1228
|
-
if (output.statusCode >= 300) {
|
|
1229
|
-
return [2, deserializeAws_json1_1ListRxNormInferenceJobsCommandError(output, context)];
|
|
1230
|
-
}
|
|
1231
|
-
return [4, parseBody(output.body, context)];
|
|
1232
|
-
case 1:
|
|
1233
|
-
data = _a.sent();
|
|
1234
|
-
contents = {};
|
|
1235
|
-
contents = deserializeAws_json1_1ListRxNormInferenceJobsResponse(data, context);
|
|
1236
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1237
|
-
return [2, Promise.resolve(response)];
|
|
1238
|
-
}
|
|
1239
|
-
});
|
|
1240
|
-
}); };
|
|
1241
|
-
var deserializeAws_json1_1ListRxNormInferenceJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1242
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1243
|
-
var _c;
|
|
1244
|
-
return __generator(this, function (_d) {
|
|
1245
|
-
switch (_d.label) {
|
|
1246
|
-
case 0:
|
|
1247
|
-
_a = [__assign({}, output)];
|
|
1248
|
-
_c = {};
|
|
1249
|
-
return [4, parseBody(output.body, context)];
|
|
1250
|
-
case 1:
|
|
1251
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1252
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1253
|
-
_b = errorCode;
|
|
1254
|
-
switch (_b) {
|
|
1255
|
-
case "InternalServerException": return [3, 2];
|
|
1256
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1257
|
-
case "InvalidRequestException": return [3, 4];
|
|
1258
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1259
|
-
case "TooManyRequestsException": return [3, 6];
|
|
1260
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 6];
|
|
1261
|
-
case "ValidationException": return [3, 8];
|
|
1262
|
-
case "com.amazonaws.comprehendmedical#ValidationException": return [3, 8];
|
|
1263
|
-
}
|
|
1264
|
-
return [3, 10];
|
|
1265
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1266
|
-
case 3: throw _d.sent();
|
|
1267
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1268
|
-
case 5: throw _d.sent();
|
|
1269
|
-
case 6: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1270
|
-
case 7: throw _d.sent();
|
|
1271
|
-
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1272
|
-
case 9: throw _d.sent();
|
|
1273
|
-
case 10:
|
|
1274
|
-
parsedBody = parsedOutput.body;
|
|
1275
|
-
throwDefaultError({
|
|
1276
|
-
output: output,
|
|
1277
|
-
parsedBody: parsedBody,
|
|
1278
|
-
exceptionCtor: __BaseException,
|
|
1279
|
-
errorCode: errorCode,
|
|
1280
|
-
});
|
|
1281
|
-
_d.label = 11;
|
|
1282
|
-
case 11: return [2];
|
|
1283
|
-
}
|
|
1284
|
-
});
|
|
1285
|
-
}); };
|
|
1286
|
-
export var deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1287
|
-
var data, contents, response;
|
|
1288
|
-
return __generator(this, function (_a) {
|
|
1289
|
-
switch (_a.label) {
|
|
1290
|
-
case 0:
|
|
1291
|
-
if (output.statusCode >= 300) {
|
|
1292
|
-
return [2, deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommandError(output, context)];
|
|
1293
|
-
}
|
|
1294
|
-
return [4, parseBody(output.body, context)];
|
|
1295
|
-
case 1:
|
|
1296
|
-
data = _a.sent();
|
|
1297
|
-
contents = {};
|
|
1298
|
-
contents = deserializeAws_json1_1ListSNOMEDCTInferenceJobsResponse(data, context);
|
|
1299
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1300
|
-
return [2, Promise.resolve(response)];
|
|
1301
|
-
}
|
|
1302
|
-
});
|
|
1303
|
-
}); };
|
|
1304
|
-
var deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1305
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1306
|
-
var _c;
|
|
1307
|
-
return __generator(this, function (_d) {
|
|
1308
|
-
switch (_d.label) {
|
|
1309
|
-
case 0:
|
|
1310
|
-
_a = [__assign({}, output)];
|
|
1311
|
-
_c = {};
|
|
1312
|
-
return [4, parseBody(output.body, context)];
|
|
1313
|
-
case 1:
|
|
1314
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1315
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1316
|
-
_b = errorCode;
|
|
1317
|
-
switch (_b) {
|
|
1318
|
-
case "InternalServerException": return [3, 2];
|
|
1319
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1320
|
-
case "InvalidRequestException": return [3, 4];
|
|
1321
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1322
|
-
case "TooManyRequestsException": return [3, 6];
|
|
1323
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 6];
|
|
1324
|
-
case "ValidationException": return [3, 8];
|
|
1325
|
-
case "com.amazonaws.comprehendmedical#ValidationException": return [3, 8];
|
|
1326
|
-
}
|
|
1327
|
-
return [3, 10];
|
|
1328
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1329
|
-
case 3: throw _d.sent();
|
|
1330
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1331
|
-
case 5: throw _d.sent();
|
|
1332
|
-
case 6: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1333
|
-
case 7: throw _d.sent();
|
|
1334
|
-
case 8: return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1335
|
-
case 9: throw _d.sent();
|
|
1336
|
-
case 10:
|
|
1337
|
-
parsedBody = parsedOutput.body;
|
|
1338
|
-
throwDefaultError({
|
|
1339
|
-
output: output,
|
|
1340
|
-
parsedBody: parsedBody,
|
|
1341
|
-
exceptionCtor: __BaseException,
|
|
1342
|
-
errorCode: errorCode,
|
|
1343
|
-
});
|
|
1344
|
-
_d.label = 11;
|
|
1345
|
-
case 11: return [2];
|
|
1346
|
-
}
|
|
1347
|
-
});
|
|
1348
|
-
}); };
|
|
1349
|
-
export var deserializeAws_json1_1StartEntitiesDetectionV2JobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1350
|
-
var data, contents, response;
|
|
1351
|
-
return __generator(this, function (_a) {
|
|
1352
|
-
switch (_a.label) {
|
|
1353
|
-
case 0:
|
|
1354
|
-
if (output.statusCode >= 300) {
|
|
1355
|
-
return [2, deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError(output, context)];
|
|
1356
|
-
}
|
|
1357
|
-
return [4, parseBody(output.body, context)];
|
|
1358
|
-
case 1:
|
|
1359
|
-
data = _a.sent();
|
|
1360
|
-
contents = {};
|
|
1361
|
-
contents = deserializeAws_json1_1StartEntitiesDetectionV2JobResponse(data, context);
|
|
1362
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1363
|
-
return [2, Promise.resolve(response)];
|
|
1364
|
-
}
|
|
1365
|
-
});
|
|
1366
|
-
}); };
|
|
1367
|
-
var deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1368
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1369
|
-
var _c;
|
|
1370
|
-
return __generator(this, function (_d) {
|
|
1371
|
-
switch (_d.label) {
|
|
1372
|
-
case 0:
|
|
1373
|
-
_a = [__assign({}, output)];
|
|
1374
|
-
_c = {};
|
|
1375
|
-
return [4, parseBody(output.body, context)];
|
|
1376
|
-
case 1:
|
|
1377
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1378
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1379
|
-
_b = errorCode;
|
|
1380
|
-
switch (_b) {
|
|
1381
|
-
case "InternalServerException": return [3, 2];
|
|
1382
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1383
|
-
case "InvalidRequestException": return [3, 4];
|
|
1384
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1385
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1386
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
1387
|
-
case "TooManyRequestsException": return [3, 8];
|
|
1388
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
1389
|
-
}
|
|
1390
|
-
return [3, 10];
|
|
1391
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1392
|
-
case 3: throw _d.sent();
|
|
1393
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1394
|
-
case 5: throw _d.sent();
|
|
1395
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1396
|
-
case 7: throw _d.sent();
|
|
1397
|
-
case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1398
|
-
case 9: throw _d.sent();
|
|
1399
|
-
case 10:
|
|
1400
|
-
parsedBody = parsedOutput.body;
|
|
1401
|
-
throwDefaultError({
|
|
1402
|
-
output: output,
|
|
1403
|
-
parsedBody: parsedBody,
|
|
1404
|
-
exceptionCtor: __BaseException,
|
|
1405
|
-
errorCode: errorCode,
|
|
1406
|
-
});
|
|
1407
|
-
_d.label = 11;
|
|
1408
|
-
case 11: return [2];
|
|
1409
|
-
}
|
|
1410
|
-
});
|
|
1411
|
-
}); };
|
|
1412
|
-
export var deserializeAws_json1_1StartICD10CMInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1413
|
-
var data, contents, response;
|
|
1414
|
-
return __generator(this, function (_a) {
|
|
1415
|
-
switch (_a.label) {
|
|
1416
|
-
case 0:
|
|
1417
|
-
if (output.statusCode >= 300) {
|
|
1418
|
-
return [2, deserializeAws_json1_1StartICD10CMInferenceJobCommandError(output, context)];
|
|
1419
|
-
}
|
|
1420
|
-
return [4, parseBody(output.body, context)];
|
|
1421
|
-
case 1:
|
|
1422
|
-
data = _a.sent();
|
|
1423
|
-
contents = {};
|
|
1424
|
-
contents = deserializeAws_json1_1StartICD10CMInferenceJobResponse(data, context);
|
|
1425
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1426
|
-
return [2, Promise.resolve(response)];
|
|
1427
|
-
}
|
|
1428
|
-
});
|
|
1429
|
-
}); };
|
|
1430
|
-
var deserializeAws_json1_1StartICD10CMInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1431
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1432
|
-
var _c;
|
|
1433
|
-
return __generator(this, function (_d) {
|
|
1434
|
-
switch (_d.label) {
|
|
1435
|
-
case 0:
|
|
1436
|
-
_a = [__assign({}, output)];
|
|
1437
|
-
_c = {};
|
|
1438
|
-
return [4, parseBody(output.body, context)];
|
|
1439
|
-
case 1:
|
|
1440
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1441
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1442
|
-
_b = errorCode;
|
|
1443
|
-
switch (_b) {
|
|
1444
|
-
case "InternalServerException": return [3, 2];
|
|
1445
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1446
|
-
case "InvalidRequestException": return [3, 4];
|
|
1447
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1448
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1449
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
1450
|
-
case "TooManyRequestsException": return [3, 8];
|
|
1451
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
1452
|
-
}
|
|
1453
|
-
return [3, 10];
|
|
1454
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1455
|
-
case 3: throw _d.sent();
|
|
1456
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1457
|
-
case 5: throw _d.sent();
|
|
1458
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1459
|
-
case 7: throw _d.sent();
|
|
1460
|
-
case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1461
|
-
case 9: throw _d.sent();
|
|
1462
|
-
case 10:
|
|
1463
|
-
parsedBody = parsedOutput.body;
|
|
1464
|
-
throwDefaultError({
|
|
1465
|
-
output: output,
|
|
1466
|
-
parsedBody: parsedBody,
|
|
1467
|
-
exceptionCtor: __BaseException,
|
|
1468
|
-
errorCode: errorCode,
|
|
1469
|
-
});
|
|
1470
|
-
_d.label = 11;
|
|
1471
|
-
case 11: return [2];
|
|
1472
|
-
}
|
|
1473
|
-
});
|
|
1474
|
-
}); };
|
|
1475
|
-
export var deserializeAws_json1_1StartPHIDetectionJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1476
|
-
var data, contents, response;
|
|
1477
|
-
return __generator(this, function (_a) {
|
|
1478
|
-
switch (_a.label) {
|
|
1479
|
-
case 0:
|
|
1480
|
-
if (output.statusCode >= 300) {
|
|
1481
|
-
return [2, deserializeAws_json1_1StartPHIDetectionJobCommandError(output, context)];
|
|
1482
|
-
}
|
|
1483
|
-
return [4, parseBody(output.body, context)];
|
|
1484
|
-
case 1:
|
|
1485
|
-
data = _a.sent();
|
|
1486
|
-
contents = {};
|
|
1487
|
-
contents = deserializeAws_json1_1StartPHIDetectionJobResponse(data, context);
|
|
1488
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1489
|
-
return [2, Promise.resolve(response)];
|
|
1490
|
-
}
|
|
1491
|
-
});
|
|
1492
|
-
}); };
|
|
1493
|
-
var deserializeAws_json1_1StartPHIDetectionJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1494
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1495
|
-
var _c;
|
|
1496
|
-
return __generator(this, function (_d) {
|
|
1497
|
-
switch (_d.label) {
|
|
1498
|
-
case 0:
|
|
1499
|
-
_a = [__assign({}, output)];
|
|
1500
|
-
_c = {};
|
|
1501
|
-
return [4, parseBody(output.body, context)];
|
|
1502
|
-
case 1:
|
|
1503
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1504
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
|
-
_b = errorCode;
|
|
1506
|
-
switch (_b) {
|
|
1507
|
-
case "InternalServerException": return [3, 2];
|
|
1508
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1509
|
-
case "InvalidRequestException": return [3, 4];
|
|
1510
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1511
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1512
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
1513
|
-
case "TooManyRequestsException": return [3, 8];
|
|
1514
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
1515
|
-
}
|
|
1516
|
-
return [3, 10];
|
|
1517
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1518
|
-
case 3: throw _d.sent();
|
|
1519
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1520
|
-
case 5: throw _d.sent();
|
|
1521
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1522
|
-
case 7: throw _d.sent();
|
|
1523
|
-
case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1524
|
-
case 9: throw _d.sent();
|
|
1525
|
-
case 10:
|
|
1526
|
-
parsedBody = parsedOutput.body;
|
|
1527
|
-
throwDefaultError({
|
|
1528
|
-
output: output,
|
|
1529
|
-
parsedBody: parsedBody,
|
|
1530
|
-
exceptionCtor: __BaseException,
|
|
1531
|
-
errorCode: errorCode,
|
|
1532
|
-
});
|
|
1533
|
-
_d.label = 11;
|
|
1534
|
-
case 11: return [2];
|
|
1535
|
-
}
|
|
1536
|
-
});
|
|
1537
|
-
}); };
|
|
1538
|
-
export var deserializeAws_json1_1StartRxNormInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1539
|
-
var data, contents, response;
|
|
1540
|
-
return __generator(this, function (_a) {
|
|
1541
|
-
switch (_a.label) {
|
|
1542
|
-
case 0:
|
|
1543
|
-
if (output.statusCode >= 300) {
|
|
1544
|
-
return [2, deserializeAws_json1_1StartRxNormInferenceJobCommandError(output, context)];
|
|
1545
|
-
}
|
|
1546
|
-
return [4, parseBody(output.body, context)];
|
|
1547
|
-
case 1:
|
|
1548
|
-
data = _a.sent();
|
|
1549
|
-
contents = {};
|
|
1550
|
-
contents = deserializeAws_json1_1StartRxNormInferenceJobResponse(data, context);
|
|
1551
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1552
|
-
return [2, Promise.resolve(response)];
|
|
1553
|
-
}
|
|
1554
|
-
});
|
|
1555
|
-
}); };
|
|
1556
|
-
var deserializeAws_json1_1StartRxNormInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1557
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1558
|
-
var _c;
|
|
1559
|
-
return __generator(this, function (_d) {
|
|
1560
|
-
switch (_d.label) {
|
|
1561
|
-
case 0:
|
|
1562
|
-
_a = [__assign({}, output)];
|
|
1563
|
-
_c = {};
|
|
1564
|
-
return [4, parseBody(output.body, context)];
|
|
1565
|
-
case 1:
|
|
1566
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1567
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1568
|
-
_b = errorCode;
|
|
1569
|
-
switch (_b) {
|
|
1570
|
-
case "InternalServerException": return [3, 2];
|
|
1571
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1572
|
-
case "InvalidRequestException": return [3, 4];
|
|
1573
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1574
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1575
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
1576
|
-
case "TooManyRequestsException": return [3, 8];
|
|
1577
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
1578
|
-
}
|
|
1579
|
-
return [3, 10];
|
|
1580
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1581
|
-
case 3: throw _d.sent();
|
|
1582
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1583
|
-
case 5: throw _d.sent();
|
|
1584
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1585
|
-
case 7: throw _d.sent();
|
|
1586
|
-
case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1587
|
-
case 9: throw _d.sent();
|
|
1588
|
-
case 10:
|
|
1589
|
-
parsedBody = parsedOutput.body;
|
|
1590
|
-
throwDefaultError({
|
|
1591
|
-
output: output,
|
|
1592
|
-
parsedBody: parsedBody,
|
|
1593
|
-
exceptionCtor: __BaseException,
|
|
1594
|
-
errorCode: errorCode,
|
|
1595
|
-
});
|
|
1596
|
-
_d.label = 11;
|
|
1597
|
-
case 11: return [2];
|
|
1598
|
-
}
|
|
1599
|
-
});
|
|
1600
|
-
}); };
|
|
1601
|
-
export var deserializeAws_json1_1StartSNOMEDCTInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1602
|
-
var data, contents, response;
|
|
1603
|
-
return __generator(this, function (_a) {
|
|
1604
|
-
switch (_a.label) {
|
|
1605
|
-
case 0:
|
|
1606
|
-
if (output.statusCode >= 300) {
|
|
1607
|
-
return [2, deserializeAws_json1_1StartSNOMEDCTInferenceJobCommandError(output, context)];
|
|
1608
|
-
}
|
|
1609
|
-
return [4, parseBody(output.body, context)];
|
|
1610
|
-
case 1:
|
|
1611
|
-
data = _a.sent();
|
|
1612
|
-
contents = {};
|
|
1613
|
-
contents = deserializeAws_json1_1StartSNOMEDCTInferenceJobResponse(data, context);
|
|
1614
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1615
|
-
return [2, Promise.resolve(response)];
|
|
1616
|
-
}
|
|
1617
|
-
});
|
|
1618
|
-
}); };
|
|
1619
|
-
var deserializeAws_json1_1StartSNOMEDCTInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1620
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1621
|
-
var _c;
|
|
1622
|
-
return __generator(this, function (_d) {
|
|
1623
|
-
switch (_d.label) {
|
|
1624
|
-
case 0:
|
|
1625
|
-
_a = [__assign({}, output)];
|
|
1626
|
-
_c = {};
|
|
1627
|
-
return [4, parseBody(output.body, context)];
|
|
1628
|
-
case 1:
|
|
1629
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1630
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
|
-
_b = errorCode;
|
|
1632
|
-
switch (_b) {
|
|
1633
|
-
case "InternalServerException": return [3, 2];
|
|
1634
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1635
|
-
case "InvalidRequestException": return [3, 4];
|
|
1636
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1637
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1638
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
1639
|
-
case "TooManyRequestsException": return [3, 8];
|
|
1640
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
1641
|
-
}
|
|
1642
|
-
return [3, 10];
|
|
1643
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1644
|
-
case 3: throw _d.sent();
|
|
1645
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1646
|
-
case 5: throw _d.sent();
|
|
1647
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1648
|
-
case 7: throw _d.sent();
|
|
1649
|
-
case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1650
|
-
case 9: throw _d.sent();
|
|
1651
|
-
case 10:
|
|
1652
|
-
parsedBody = parsedOutput.body;
|
|
1653
|
-
throwDefaultError({
|
|
1654
|
-
output: output,
|
|
1655
|
-
parsedBody: parsedBody,
|
|
1656
|
-
exceptionCtor: __BaseException,
|
|
1657
|
-
errorCode: errorCode,
|
|
1658
|
-
});
|
|
1659
|
-
_d.label = 11;
|
|
1660
|
-
case 11: return [2];
|
|
1661
|
-
}
|
|
1662
|
-
});
|
|
1663
|
-
}); };
|
|
1664
|
-
export var deserializeAws_json1_1StopEntitiesDetectionV2JobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1665
|
-
var data, contents, response;
|
|
1666
|
-
return __generator(this, function (_a) {
|
|
1667
|
-
switch (_a.label) {
|
|
1668
|
-
case 0:
|
|
1669
|
-
if (output.statusCode >= 300) {
|
|
1670
|
-
return [2, deserializeAws_json1_1StopEntitiesDetectionV2JobCommandError(output, context)];
|
|
1671
|
-
}
|
|
1672
|
-
return [4, parseBody(output.body, context)];
|
|
1673
|
-
case 1:
|
|
1674
|
-
data = _a.sent();
|
|
1675
|
-
contents = {};
|
|
1676
|
-
contents = deserializeAws_json1_1StopEntitiesDetectionV2JobResponse(data, context);
|
|
1677
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1678
|
-
return [2, Promise.resolve(response)];
|
|
1679
|
-
}
|
|
1680
|
-
});
|
|
1681
|
-
}); };
|
|
1682
|
-
var deserializeAws_json1_1StopEntitiesDetectionV2JobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1683
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1684
|
-
var _c;
|
|
1685
|
-
return __generator(this, function (_d) {
|
|
1686
|
-
switch (_d.label) {
|
|
1687
|
-
case 0:
|
|
1688
|
-
_a = [__assign({}, output)];
|
|
1689
|
-
_c = {};
|
|
1690
|
-
return [4, parseBody(output.body, context)];
|
|
1691
|
-
case 1:
|
|
1692
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1693
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1694
|
-
_b = errorCode;
|
|
1695
|
-
switch (_b) {
|
|
1696
|
-
case "InternalServerException": return [3, 2];
|
|
1697
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1698
|
-
case "InvalidRequestException": return [3, 4];
|
|
1699
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1700
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1701
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
1702
|
-
}
|
|
1703
|
-
return [3, 8];
|
|
1704
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1705
|
-
case 3: throw _d.sent();
|
|
1706
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1707
|
-
case 5: throw _d.sent();
|
|
1708
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1709
|
-
case 7: throw _d.sent();
|
|
1710
|
-
case 8:
|
|
1711
|
-
parsedBody = parsedOutput.body;
|
|
1712
|
-
throwDefaultError({
|
|
1713
|
-
output: output,
|
|
1714
|
-
parsedBody: parsedBody,
|
|
1715
|
-
exceptionCtor: __BaseException,
|
|
1716
|
-
errorCode: errorCode,
|
|
1717
|
-
});
|
|
1718
|
-
_d.label = 9;
|
|
1719
|
-
case 9: return [2];
|
|
1720
|
-
}
|
|
1721
|
-
});
|
|
1722
|
-
}); };
|
|
1723
|
-
export var deserializeAws_json1_1StopICD10CMInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1724
|
-
var data, contents, response;
|
|
1725
|
-
return __generator(this, function (_a) {
|
|
1726
|
-
switch (_a.label) {
|
|
1727
|
-
case 0:
|
|
1728
|
-
if (output.statusCode >= 300) {
|
|
1729
|
-
return [2, deserializeAws_json1_1StopICD10CMInferenceJobCommandError(output, context)];
|
|
1730
|
-
}
|
|
1731
|
-
return [4, parseBody(output.body, context)];
|
|
1732
|
-
case 1:
|
|
1733
|
-
data = _a.sent();
|
|
1734
|
-
contents = {};
|
|
1735
|
-
contents = deserializeAws_json1_1StopICD10CMInferenceJobResponse(data, context);
|
|
1736
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1737
|
-
return [2, Promise.resolve(response)];
|
|
1738
|
-
}
|
|
1739
|
-
});
|
|
1740
|
-
}); };
|
|
1741
|
-
var deserializeAws_json1_1StopICD10CMInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1742
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1743
|
-
var _c;
|
|
1744
|
-
return __generator(this, function (_d) {
|
|
1745
|
-
switch (_d.label) {
|
|
1746
|
-
case 0:
|
|
1747
|
-
_a = [__assign({}, output)];
|
|
1748
|
-
_c = {};
|
|
1749
|
-
return [4, parseBody(output.body, context)];
|
|
1750
|
-
case 1:
|
|
1751
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1752
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1753
|
-
_b = errorCode;
|
|
1754
|
-
switch (_b) {
|
|
1755
|
-
case "InternalServerException": return [3, 2];
|
|
1756
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1757
|
-
case "InvalidRequestException": return [3, 4];
|
|
1758
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1759
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1760
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
1761
|
-
}
|
|
1762
|
-
return [3, 8];
|
|
1763
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1764
|
-
case 3: throw _d.sent();
|
|
1765
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1766
|
-
case 5: throw _d.sent();
|
|
1767
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1768
|
-
case 7: throw _d.sent();
|
|
1769
|
-
case 8:
|
|
1770
|
-
parsedBody = parsedOutput.body;
|
|
1771
|
-
throwDefaultError({
|
|
1772
|
-
output: output,
|
|
1773
|
-
parsedBody: parsedBody,
|
|
1774
|
-
exceptionCtor: __BaseException,
|
|
1775
|
-
errorCode: errorCode,
|
|
1776
|
-
});
|
|
1777
|
-
_d.label = 9;
|
|
1778
|
-
case 9: return [2];
|
|
1779
|
-
}
|
|
1780
|
-
});
|
|
1781
|
-
}); };
|
|
1782
|
-
export var deserializeAws_json1_1StopPHIDetectionJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1783
|
-
var data, contents, response;
|
|
1784
|
-
return __generator(this, function (_a) {
|
|
1785
|
-
switch (_a.label) {
|
|
1786
|
-
case 0:
|
|
1787
|
-
if (output.statusCode >= 300) {
|
|
1788
|
-
return [2, deserializeAws_json1_1StopPHIDetectionJobCommandError(output, context)];
|
|
1789
|
-
}
|
|
1790
|
-
return [4, parseBody(output.body, context)];
|
|
1791
|
-
case 1:
|
|
1792
|
-
data = _a.sent();
|
|
1793
|
-
contents = {};
|
|
1794
|
-
contents = deserializeAws_json1_1StopPHIDetectionJobResponse(data, context);
|
|
1795
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1796
|
-
return [2, Promise.resolve(response)];
|
|
1797
|
-
}
|
|
1798
|
-
});
|
|
1799
|
-
}); };
|
|
1800
|
-
var deserializeAws_json1_1StopPHIDetectionJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1801
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1802
|
-
var _c;
|
|
1803
|
-
return __generator(this, function (_d) {
|
|
1804
|
-
switch (_d.label) {
|
|
1805
|
-
case 0:
|
|
1806
|
-
_a = [__assign({}, output)];
|
|
1807
|
-
_c = {};
|
|
1808
|
-
return [4, parseBody(output.body, context)];
|
|
1809
|
-
case 1:
|
|
1810
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1811
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1812
|
-
_b = errorCode;
|
|
1813
|
-
switch (_b) {
|
|
1814
|
-
case "InternalServerException": return [3, 2];
|
|
1815
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1816
|
-
case "InvalidRequestException": return [3, 4];
|
|
1817
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1818
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1819
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
1820
|
-
}
|
|
1821
|
-
return [3, 8];
|
|
1822
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1823
|
-
case 3: throw _d.sent();
|
|
1824
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1825
|
-
case 5: throw _d.sent();
|
|
1826
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1827
|
-
case 7: throw _d.sent();
|
|
1828
|
-
case 8:
|
|
1829
|
-
parsedBody = parsedOutput.body;
|
|
1830
|
-
throwDefaultError({
|
|
1831
|
-
output: output,
|
|
1832
|
-
parsedBody: parsedBody,
|
|
1833
|
-
exceptionCtor: __BaseException,
|
|
1834
|
-
errorCode: errorCode,
|
|
1835
|
-
});
|
|
1836
|
-
_d.label = 9;
|
|
1837
|
-
case 9: return [2];
|
|
1838
|
-
}
|
|
1839
|
-
});
|
|
1840
|
-
}); };
|
|
1841
|
-
export var deserializeAws_json1_1StopRxNormInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1842
|
-
var data, contents, response;
|
|
1843
|
-
return __generator(this, function (_a) {
|
|
1844
|
-
switch (_a.label) {
|
|
1845
|
-
case 0:
|
|
1846
|
-
if (output.statusCode >= 300) {
|
|
1847
|
-
return [2, deserializeAws_json1_1StopRxNormInferenceJobCommandError(output, context)];
|
|
1848
|
-
}
|
|
1849
|
-
return [4, parseBody(output.body, context)];
|
|
1850
|
-
case 1:
|
|
1851
|
-
data = _a.sent();
|
|
1852
|
-
contents = {};
|
|
1853
|
-
contents = deserializeAws_json1_1StopRxNormInferenceJobResponse(data, context);
|
|
1854
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1855
|
-
return [2, Promise.resolve(response)];
|
|
1856
|
-
}
|
|
1857
|
-
});
|
|
1858
|
-
}); };
|
|
1859
|
-
var deserializeAws_json1_1StopRxNormInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1860
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1861
|
-
var _c;
|
|
1862
|
-
return __generator(this, function (_d) {
|
|
1863
|
-
switch (_d.label) {
|
|
1864
|
-
case 0:
|
|
1865
|
-
_a = [__assign({}, output)];
|
|
1866
|
-
_c = {};
|
|
1867
|
-
return [4, parseBody(output.body, context)];
|
|
1868
|
-
case 1:
|
|
1869
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1870
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
-
_b = errorCode;
|
|
1872
|
-
switch (_b) {
|
|
1873
|
-
case "InternalServerException": return [3, 2];
|
|
1874
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1875
|
-
case "InvalidRequestException": return [3, 4];
|
|
1876
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1877
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1878
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
1879
|
-
}
|
|
1880
|
-
return [3, 8];
|
|
1881
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1882
|
-
case 3: throw _d.sent();
|
|
1883
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1884
|
-
case 5: throw _d.sent();
|
|
1885
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1886
|
-
case 7: throw _d.sent();
|
|
1887
|
-
case 8:
|
|
1888
|
-
parsedBody = parsedOutput.body;
|
|
1889
|
-
throwDefaultError({
|
|
1890
|
-
output: output,
|
|
1891
|
-
parsedBody: parsedBody,
|
|
1892
|
-
exceptionCtor: __BaseException,
|
|
1893
|
-
errorCode: errorCode,
|
|
1894
|
-
});
|
|
1895
|
-
_d.label = 9;
|
|
1896
|
-
case 9: return [2];
|
|
1897
|
-
}
|
|
1898
|
-
});
|
|
1899
|
-
}); };
|
|
1900
|
-
export var deserializeAws_json1_1StopSNOMEDCTInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1901
|
-
var data, contents, response;
|
|
1902
|
-
return __generator(this, function (_a) {
|
|
1903
|
-
switch (_a.label) {
|
|
1904
|
-
case 0:
|
|
1905
|
-
if (output.statusCode >= 300) {
|
|
1906
|
-
return [2, deserializeAws_json1_1StopSNOMEDCTInferenceJobCommandError(output, context)];
|
|
1907
|
-
}
|
|
1908
|
-
return [4, parseBody(output.body, context)];
|
|
1909
|
-
case 1:
|
|
1910
|
-
data = _a.sent();
|
|
1911
|
-
contents = {};
|
|
1912
|
-
contents = deserializeAws_json1_1StopSNOMEDCTInferenceJobResponse(data, context);
|
|
1913
|
-
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1914
|
-
return [2, Promise.resolve(response)];
|
|
1915
|
-
}
|
|
1916
|
-
});
|
|
1917
|
-
}); };
|
|
1918
|
-
var deserializeAws_json1_1StopSNOMEDCTInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1919
|
-
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
1920
|
-
var _c;
|
|
1921
|
-
return __generator(this, function (_d) {
|
|
1922
|
-
switch (_d.label) {
|
|
1923
|
-
case 0:
|
|
1924
|
-
_a = [__assign({}, output)];
|
|
1925
|
-
_c = {};
|
|
1926
|
-
return [4, parseBody(output.body, context)];
|
|
1927
|
-
case 1:
|
|
1928
|
-
parsedOutput = __assign.apply(void 0, _a.concat([(_c.body = _d.sent(), _c)]));
|
|
1929
|
-
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1930
|
-
_b = errorCode;
|
|
1931
|
-
switch (_b) {
|
|
1932
|
-
case "InternalServerException": return [3, 2];
|
|
1933
|
-
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1934
|
-
case "InvalidRequestException": return [3, 4];
|
|
1935
|
-
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1936
|
-
case "ResourceNotFoundException": return [3, 6];
|
|
1937
|
-
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
1938
|
-
case "TooManyRequestsException": return [3, 8];
|
|
1939
|
-
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
1940
|
-
}
|
|
1941
|
-
return [3, 10];
|
|
1942
|
-
case 2: return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1943
|
-
case 3: throw _d.sent();
|
|
1944
|
-
case 4: return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1945
|
-
case 5: throw _d.sent();
|
|
1946
|
-
case 6: return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1947
|
-
case 7: throw _d.sent();
|
|
1948
|
-
case 8: return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1949
|
-
case 9: throw _d.sent();
|
|
1950
|
-
case 10:
|
|
1951
|
-
parsedBody = parsedOutput.body;
|
|
1952
|
-
throwDefaultError({
|
|
1953
|
-
output: output,
|
|
1954
|
-
parsedBody: parsedBody,
|
|
1955
|
-
exceptionCtor: __BaseException,
|
|
1956
|
-
errorCode: errorCode,
|
|
1957
|
-
});
|
|
1958
|
-
_d.label = 11;
|
|
1959
|
-
case 11: return [2];
|
|
1960
|
-
}
|
|
1961
|
-
});
|
|
1962
|
-
}); };
|
|
1963
|
-
var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1964
|
-
var body, deserialized, exception;
|
|
1965
|
-
return __generator(this, function (_a) {
|
|
1966
|
-
body = parsedOutput.body;
|
|
1967
|
-
deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
1968
|
-
exception = new InternalServerException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1969
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1970
|
-
});
|
|
1971
|
-
}); };
|
|
1972
|
-
var deserializeAws_json1_1InvalidEncodingExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1973
|
-
var body, deserialized, exception;
|
|
1974
|
-
return __generator(this, function (_a) {
|
|
1975
|
-
body = parsedOutput.body;
|
|
1976
|
-
deserialized = deserializeAws_json1_1InvalidEncodingException(body, context);
|
|
1977
|
-
exception = new InvalidEncodingException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1978
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1979
|
-
});
|
|
1980
|
-
}); };
|
|
1981
|
-
var deserializeAws_json1_1InvalidRequestExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1982
|
-
var body, deserialized, exception;
|
|
1983
|
-
return __generator(this, function (_a) {
|
|
1984
|
-
body = parsedOutput.body;
|
|
1985
|
-
deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
1986
|
-
exception = new InvalidRequestException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1987
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1988
|
-
});
|
|
1989
|
-
}); };
|
|
1990
|
-
var deserializeAws_json1_1ResourceNotFoundExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1991
|
-
var body, deserialized, exception;
|
|
1992
|
-
return __generator(this, function (_a) {
|
|
1993
|
-
body = parsedOutput.body;
|
|
1994
|
-
deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1995
|
-
exception = new ResourceNotFoundException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
1996
|
-
return [2, __decorateServiceException(exception, body)];
|
|
1997
|
-
});
|
|
1998
|
-
}); };
|
|
1999
|
-
var deserializeAws_json1_1ServiceUnavailableExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2000
|
-
var body, deserialized, exception;
|
|
2001
|
-
return __generator(this, function (_a) {
|
|
2002
|
-
body = parsedOutput.body;
|
|
2003
|
-
deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
2004
|
-
exception = new ServiceUnavailableException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2005
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2006
|
-
});
|
|
2007
|
-
}); };
|
|
2008
|
-
var deserializeAws_json1_1TextSizeLimitExceededExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2009
|
-
var body, deserialized, exception;
|
|
2010
|
-
return __generator(this, function (_a) {
|
|
2011
|
-
body = parsedOutput.body;
|
|
2012
|
-
deserialized = deserializeAws_json1_1TextSizeLimitExceededException(body, context);
|
|
2013
|
-
exception = new TextSizeLimitExceededException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2014
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2015
|
-
});
|
|
2016
|
-
}); };
|
|
2017
|
-
var deserializeAws_json1_1TooManyRequestsExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2018
|
-
var body, deserialized, exception;
|
|
2019
|
-
return __generator(this, function (_a) {
|
|
2020
|
-
body = parsedOutput.body;
|
|
2021
|
-
deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
2022
|
-
exception = new TooManyRequestsException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2023
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2024
|
-
});
|
|
2025
|
-
}); };
|
|
2026
|
-
var deserializeAws_json1_1ValidationExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2027
|
-
var body, deserialized, exception;
|
|
2028
|
-
return __generator(this, function (_a) {
|
|
2029
|
-
body = parsedOutput.body;
|
|
2030
|
-
deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
2031
|
-
exception = new ValidationException(__assign({ $metadata: deserializeMetadata(parsedOutput) }, deserialized));
|
|
2032
|
-
return [2, __decorateServiceException(exception, body)];
|
|
2033
|
-
});
|
|
2034
|
-
}); };
|
|
2035
|
-
var serializeAws_json1_1ComprehendMedicalAsyncJobFilter = function (input, context) {
|
|
2036
|
-
return __assign(__assign(__assign(__assign({}, (input.JobName != null && { JobName: input.JobName })), (input.JobStatus != null && { JobStatus: input.JobStatus })), (input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) })), (input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }));
|
|
6
|
+
export const serializeAws_json1_1DescribeEntitiesDetectionV2JobCommand = async (input, context) => {
|
|
7
|
+
const headers = {
|
|
8
|
+
"content-type": "application/x-amz-json-1.1",
|
|
9
|
+
"x-amz-target": "ComprehendMedical_20181030.DescribeEntitiesDetectionV2Job",
|
|
10
|
+
};
|
|
11
|
+
let body;
|
|
12
|
+
body = JSON.stringify(serializeAws_json1_1DescribeEntitiesDetectionV2JobRequest(input, context));
|
|
13
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
14
|
+
};
|
|
15
|
+
export const serializeAws_json1_1DescribeICD10CMInferenceJobCommand = async (input, context) => {
|
|
16
|
+
const headers = {
|
|
17
|
+
"content-type": "application/x-amz-json-1.1",
|
|
18
|
+
"x-amz-target": "ComprehendMedical_20181030.DescribeICD10CMInferenceJob",
|
|
19
|
+
};
|
|
20
|
+
let body;
|
|
21
|
+
body = JSON.stringify(serializeAws_json1_1DescribeICD10CMInferenceJobRequest(input, context));
|
|
22
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
+
};
|
|
24
|
+
export const serializeAws_json1_1DescribePHIDetectionJobCommand = async (input, context) => {
|
|
25
|
+
const headers = {
|
|
26
|
+
"content-type": "application/x-amz-json-1.1",
|
|
27
|
+
"x-amz-target": "ComprehendMedical_20181030.DescribePHIDetectionJob",
|
|
28
|
+
};
|
|
29
|
+
let body;
|
|
30
|
+
body = JSON.stringify(serializeAws_json1_1DescribePHIDetectionJobRequest(input, context));
|
|
31
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
32
|
+
};
|
|
33
|
+
export const serializeAws_json1_1DescribeRxNormInferenceJobCommand = async (input, context) => {
|
|
34
|
+
const headers = {
|
|
35
|
+
"content-type": "application/x-amz-json-1.1",
|
|
36
|
+
"x-amz-target": "ComprehendMedical_20181030.DescribeRxNormInferenceJob",
|
|
37
|
+
};
|
|
38
|
+
let body;
|
|
39
|
+
body = JSON.stringify(serializeAws_json1_1DescribeRxNormInferenceJobRequest(input, context));
|
|
40
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
+
};
|
|
42
|
+
export const serializeAws_json1_1DescribeSNOMEDCTInferenceJobCommand = async (input, context) => {
|
|
43
|
+
const headers = {
|
|
44
|
+
"content-type": "application/x-amz-json-1.1",
|
|
45
|
+
"x-amz-target": "ComprehendMedical_20181030.DescribeSNOMEDCTInferenceJob",
|
|
46
|
+
};
|
|
47
|
+
let body;
|
|
48
|
+
body = JSON.stringify(serializeAws_json1_1DescribeSNOMEDCTInferenceJobRequest(input, context));
|
|
49
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
50
|
+
};
|
|
51
|
+
export const serializeAws_json1_1DetectEntitiesCommand = async (input, context) => {
|
|
52
|
+
const headers = {
|
|
53
|
+
"content-type": "application/x-amz-json-1.1",
|
|
54
|
+
"x-amz-target": "ComprehendMedical_20181030.DetectEntities",
|
|
55
|
+
};
|
|
56
|
+
let body;
|
|
57
|
+
body = JSON.stringify(serializeAws_json1_1DetectEntitiesRequest(input, context));
|
|
58
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
+
};
|
|
60
|
+
export const serializeAws_json1_1DetectEntitiesV2Command = async (input, context) => {
|
|
61
|
+
const headers = {
|
|
62
|
+
"content-type": "application/x-amz-json-1.1",
|
|
63
|
+
"x-amz-target": "ComprehendMedical_20181030.DetectEntitiesV2",
|
|
64
|
+
};
|
|
65
|
+
let body;
|
|
66
|
+
body = JSON.stringify(serializeAws_json1_1DetectEntitiesV2Request(input, context));
|
|
67
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
|
+
};
|
|
69
|
+
export const serializeAws_json1_1DetectPHICommand = async (input, context) => {
|
|
70
|
+
const headers = {
|
|
71
|
+
"content-type": "application/x-amz-json-1.1",
|
|
72
|
+
"x-amz-target": "ComprehendMedical_20181030.DetectPHI",
|
|
73
|
+
};
|
|
74
|
+
let body;
|
|
75
|
+
body = JSON.stringify(serializeAws_json1_1DetectPHIRequest(input, context));
|
|
76
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
+
};
|
|
78
|
+
export const serializeAws_json1_1InferICD10CMCommand = async (input, context) => {
|
|
79
|
+
const headers = {
|
|
80
|
+
"content-type": "application/x-amz-json-1.1",
|
|
81
|
+
"x-amz-target": "ComprehendMedical_20181030.InferICD10CM",
|
|
82
|
+
};
|
|
83
|
+
let body;
|
|
84
|
+
body = JSON.stringify(serializeAws_json1_1InferICD10CMRequest(input, context));
|
|
85
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
86
|
+
};
|
|
87
|
+
export const serializeAws_json1_1InferRxNormCommand = async (input, context) => {
|
|
88
|
+
const headers = {
|
|
89
|
+
"content-type": "application/x-amz-json-1.1",
|
|
90
|
+
"x-amz-target": "ComprehendMedical_20181030.InferRxNorm",
|
|
91
|
+
};
|
|
92
|
+
let body;
|
|
93
|
+
body = JSON.stringify(serializeAws_json1_1InferRxNormRequest(input, context));
|
|
94
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
+
};
|
|
96
|
+
export const serializeAws_json1_1InferSNOMEDCTCommand = async (input, context) => {
|
|
97
|
+
const headers = {
|
|
98
|
+
"content-type": "application/x-amz-json-1.1",
|
|
99
|
+
"x-amz-target": "ComprehendMedical_20181030.InferSNOMEDCT",
|
|
100
|
+
};
|
|
101
|
+
let body;
|
|
102
|
+
body = JSON.stringify(serializeAws_json1_1InferSNOMEDCTRequest(input, context));
|
|
103
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
104
|
+
};
|
|
105
|
+
export const serializeAws_json1_1ListEntitiesDetectionV2JobsCommand = async (input, context) => {
|
|
106
|
+
const headers = {
|
|
107
|
+
"content-type": "application/x-amz-json-1.1",
|
|
108
|
+
"x-amz-target": "ComprehendMedical_20181030.ListEntitiesDetectionV2Jobs",
|
|
109
|
+
};
|
|
110
|
+
let body;
|
|
111
|
+
body = JSON.stringify(serializeAws_json1_1ListEntitiesDetectionV2JobsRequest(input, context));
|
|
112
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
+
};
|
|
114
|
+
export const serializeAws_json1_1ListICD10CMInferenceJobsCommand = async (input, context) => {
|
|
115
|
+
const headers = {
|
|
116
|
+
"content-type": "application/x-amz-json-1.1",
|
|
117
|
+
"x-amz-target": "ComprehendMedical_20181030.ListICD10CMInferenceJobs",
|
|
118
|
+
};
|
|
119
|
+
let body;
|
|
120
|
+
body = JSON.stringify(serializeAws_json1_1ListICD10CMInferenceJobsRequest(input, context));
|
|
121
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
122
|
+
};
|
|
123
|
+
export const serializeAws_json1_1ListPHIDetectionJobsCommand = async (input, context) => {
|
|
124
|
+
const headers = {
|
|
125
|
+
"content-type": "application/x-amz-json-1.1",
|
|
126
|
+
"x-amz-target": "ComprehendMedical_20181030.ListPHIDetectionJobs",
|
|
127
|
+
};
|
|
128
|
+
let body;
|
|
129
|
+
body = JSON.stringify(serializeAws_json1_1ListPHIDetectionJobsRequest(input, context));
|
|
130
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
+
};
|
|
132
|
+
export const serializeAws_json1_1ListRxNormInferenceJobsCommand = async (input, context) => {
|
|
133
|
+
const headers = {
|
|
134
|
+
"content-type": "application/x-amz-json-1.1",
|
|
135
|
+
"x-amz-target": "ComprehendMedical_20181030.ListRxNormInferenceJobs",
|
|
136
|
+
};
|
|
137
|
+
let body;
|
|
138
|
+
body = JSON.stringify(serializeAws_json1_1ListRxNormInferenceJobsRequest(input, context));
|
|
139
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
140
|
+
};
|
|
141
|
+
export const serializeAws_json1_1ListSNOMEDCTInferenceJobsCommand = async (input, context) => {
|
|
142
|
+
const headers = {
|
|
143
|
+
"content-type": "application/x-amz-json-1.1",
|
|
144
|
+
"x-amz-target": "ComprehendMedical_20181030.ListSNOMEDCTInferenceJobs",
|
|
145
|
+
};
|
|
146
|
+
let body;
|
|
147
|
+
body = JSON.stringify(serializeAws_json1_1ListSNOMEDCTInferenceJobsRequest(input, context));
|
|
148
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
+
};
|
|
150
|
+
export const serializeAws_json1_1StartEntitiesDetectionV2JobCommand = async (input, context) => {
|
|
151
|
+
const headers = {
|
|
152
|
+
"content-type": "application/x-amz-json-1.1",
|
|
153
|
+
"x-amz-target": "ComprehendMedical_20181030.StartEntitiesDetectionV2Job",
|
|
154
|
+
};
|
|
155
|
+
let body;
|
|
156
|
+
body = JSON.stringify(serializeAws_json1_1StartEntitiesDetectionV2JobRequest(input, context));
|
|
157
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
|
+
};
|
|
159
|
+
export const serializeAws_json1_1StartICD10CMInferenceJobCommand = async (input, context) => {
|
|
160
|
+
const headers = {
|
|
161
|
+
"content-type": "application/x-amz-json-1.1",
|
|
162
|
+
"x-amz-target": "ComprehendMedical_20181030.StartICD10CMInferenceJob",
|
|
163
|
+
};
|
|
164
|
+
let body;
|
|
165
|
+
body = JSON.stringify(serializeAws_json1_1StartICD10CMInferenceJobRequest(input, context));
|
|
166
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
+
};
|
|
168
|
+
export const serializeAws_json1_1StartPHIDetectionJobCommand = async (input, context) => {
|
|
169
|
+
const headers = {
|
|
170
|
+
"content-type": "application/x-amz-json-1.1",
|
|
171
|
+
"x-amz-target": "ComprehendMedical_20181030.StartPHIDetectionJob",
|
|
172
|
+
};
|
|
173
|
+
let body;
|
|
174
|
+
body = JSON.stringify(serializeAws_json1_1StartPHIDetectionJobRequest(input, context));
|
|
175
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
176
|
+
};
|
|
177
|
+
export const serializeAws_json1_1StartRxNormInferenceJobCommand = async (input, context) => {
|
|
178
|
+
const headers = {
|
|
179
|
+
"content-type": "application/x-amz-json-1.1",
|
|
180
|
+
"x-amz-target": "ComprehendMedical_20181030.StartRxNormInferenceJob",
|
|
181
|
+
};
|
|
182
|
+
let body;
|
|
183
|
+
body = JSON.stringify(serializeAws_json1_1StartRxNormInferenceJobRequest(input, context));
|
|
184
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
185
|
+
};
|
|
186
|
+
export const serializeAws_json1_1StartSNOMEDCTInferenceJobCommand = async (input, context) => {
|
|
187
|
+
const headers = {
|
|
188
|
+
"content-type": "application/x-amz-json-1.1",
|
|
189
|
+
"x-amz-target": "ComprehendMedical_20181030.StartSNOMEDCTInferenceJob",
|
|
190
|
+
};
|
|
191
|
+
let body;
|
|
192
|
+
body = JSON.stringify(serializeAws_json1_1StartSNOMEDCTInferenceJobRequest(input, context));
|
|
193
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
194
|
+
};
|
|
195
|
+
export const serializeAws_json1_1StopEntitiesDetectionV2JobCommand = async (input, context) => {
|
|
196
|
+
const headers = {
|
|
197
|
+
"content-type": "application/x-amz-json-1.1",
|
|
198
|
+
"x-amz-target": "ComprehendMedical_20181030.StopEntitiesDetectionV2Job",
|
|
199
|
+
};
|
|
200
|
+
let body;
|
|
201
|
+
body = JSON.stringify(serializeAws_json1_1StopEntitiesDetectionV2JobRequest(input, context));
|
|
202
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
203
|
+
};
|
|
204
|
+
export const serializeAws_json1_1StopICD10CMInferenceJobCommand = async (input, context) => {
|
|
205
|
+
const headers = {
|
|
206
|
+
"content-type": "application/x-amz-json-1.1",
|
|
207
|
+
"x-amz-target": "ComprehendMedical_20181030.StopICD10CMInferenceJob",
|
|
208
|
+
};
|
|
209
|
+
let body;
|
|
210
|
+
body = JSON.stringify(serializeAws_json1_1StopICD10CMInferenceJobRequest(input, context));
|
|
211
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
212
|
+
};
|
|
213
|
+
export const serializeAws_json1_1StopPHIDetectionJobCommand = async (input, context) => {
|
|
214
|
+
const headers = {
|
|
215
|
+
"content-type": "application/x-amz-json-1.1",
|
|
216
|
+
"x-amz-target": "ComprehendMedical_20181030.StopPHIDetectionJob",
|
|
217
|
+
};
|
|
218
|
+
let body;
|
|
219
|
+
body = JSON.stringify(serializeAws_json1_1StopPHIDetectionJobRequest(input, context));
|
|
220
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
221
|
+
};
|
|
222
|
+
export const serializeAws_json1_1StopRxNormInferenceJobCommand = async (input, context) => {
|
|
223
|
+
const headers = {
|
|
224
|
+
"content-type": "application/x-amz-json-1.1",
|
|
225
|
+
"x-amz-target": "ComprehendMedical_20181030.StopRxNormInferenceJob",
|
|
226
|
+
};
|
|
227
|
+
let body;
|
|
228
|
+
body = JSON.stringify(serializeAws_json1_1StopRxNormInferenceJobRequest(input, context));
|
|
229
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
230
|
+
};
|
|
231
|
+
export const serializeAws_json1_1StopSNOMEDCTInferenceJobCommand = async (input, context) => {
|
|
232
|
+
const headers = {
|
|
233
|
+
"content-type": "application/x-amz-json-1.1",
|
|
234
|
+
"x-amz-target": "ComprehendMedical_20181030.StopSNOMEDCTInferenceJob",
|
|
235
|
+
};
|
|
236
|
+
let body;
|
|
237
|
+
body = JSON.stringify(serializeAws_json1_1StopSNOMEDCTInferenceJobRequest(input, context));
|
|
238
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
2037
239
|
};
|
|
2038
|
-
|
|
2039
|
-
|
|
240
|
+
export const deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommand = async (output, context) => {
|
|
241
|
+
if (output.statusCode >= 300) {
|
|
242
|
+
return deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommandError(output, context);
|
|
243
|
+
}
|
|
244
|
+
const data = await parseBody(output.body, context);
|
|
245
|
+
let contents = {};
|
|
246
|
+
contents = deserializeAws_json1_1DescribeEntitiesDetectionV2JobResponse(data, context);
|
|
247
|
+
const response = {
|
|
248
|
+
$metadata: deserializeMetadata(output),
|
|
249
|
+
...contents,
|
|
250
|
+
};
|
|
251
|
+
return Promise.resolve(response);
|
|
2040
252
|
};
|
|
2041
|
-
|
|
2042
|
-
|
|
253
|
+
const deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommandError = async (output, context) => {
|
|
254
|
+
const parsedOutput = {
|
|
255
|
+
...output,
|
|
256
|
+
body: await parseErrorBody(output.body, context),
|
|
257
|
+
};
|
|
258
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
259
|
+
switch (errorCode) {
|
|
260
|
+
case "InternalServerException":
|
|
261
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
262
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
263
|
+
case "InvalidRequestException":
|
|
264
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
265
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
266
|
+
case "ResourceNotFoundException":
|
|
267
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
268
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
269
|
+
case "TooManyRequestsException":
|
|
270
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
271
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
272
|
+
default:
|
|
273
|
+
const parsedBody = parsedOutput.body;
|
|
274
|
+
throwDefaultError({
|
|
275
|
+
output,
|
|
276
|
+
parsedBody,
|
|
277
|
+
exceptionCtor: __BaseException,
|
|
278
|
+
errorCode,
|
|
279
|
+
});
|
|
280
|
+
}
|
|
2043
281
|
};
|
|
2044
|
-
|
|
2045
|
-
|
|
282
|
+
export const deserializeAws_json1_1DescribeICD10CMInferenceJobCommand = async (output, context) => {
|
|
283
|
+
if (output.statusCode >= 300) {
|
|
284
|
+
return deserializeAws_json1_1DescribeICD10CMInferenceJobCommandError(output, context);
|
|
285
|
+
}
|
|
286
|
+
const data = await parseBody(output.body, context);
|
|
287
|
+
let contents = {};
|
|
288
|
+
contents = deserializeAws_json1_1DescribeICD10CMInferenceJobResponse(data, context);
|
|
289
|
+
const response = {
|
|
290
|
+
$metadata: deserializeMetadata(output),
|
|
291
|
+
...contents,
|
|
292
|
+
};
|
|
293
|
+
return Promise.resolve(response);
|
|
2046
294
|
};
|
|
2047
|
-
|
|
2048
|
-
|
|
295
|
+
const deserializeAws_json1_1DescribeICD10CMInferenceJobCommandError = async (output, context) => {
|
|
296
|
+
const parsedOutput = {
|
|
297
|
+
...output,
|
|
298
|
+
body: await parseErrorBody(output.body, context),
|
|
299
|
+
};
|
|
300
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
301
|
+
switch (errorCode) {
|
|
302
|
+
case "InternalServerException":
|
|
303
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
304
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
305
|
+
case "InvalidRequestException":
|
|
306
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
307
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
308
|
+
case "ResourceNotFoundException":
|
|
309
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
310
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
311
|
+
case "TooManyRequestsException":
|
|
312
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
313
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
314
|
+
default:
|
|
315
|
+
const parsedBody = parsedOutput.body;
|
|
316
|
+
throwDefaultError({
|
|
317
|
+
output,
|
|
318
|
+
parsedBody,
|
|
319
|
+
exceptionCtor: __BaseException,
|
|
320
|
+
errorCode,
|
|
321
|
+
});
|
|
322
|
+
}
|
|
2049
323
|
};
|
|
2050
|
-
|
|
2051
|
-
|
|
324
|
+
export const deserializeAws_json1_1DescribePHIDetectionJobCommand = async (output, context) => {
|
|
325
|
+
if (output.statusCode >= 300) {
|
|
326
|
+
return deserializeAws_json1_1DescribePHIDetectionJobCommandError(output, context);
|
|
327
|
+
}
|
|
328
|
+
const data = await parseBody(output.body, context);
|
|
329
|
+
let contents = {};
|
|
330
|
+
contents = deserializeAws_json1_1DescribePHIDetectionJobResponse(data, context);
|
|
331
|
+
const response = {
|
|
332
|
+
$metadata: deserializeMetadata(output),
|
|
333
|
+
...contents,
|
|
334
|
+
};
|
|
335
|
+
return Promise.resolve(response);
|
|
2052
336
|
};
|
|
2053
|
-
|
|
2054
|
-
|
|
337
|
+
const deserializeAws_json1_1DescribePHIDetectionJobCommandError = async (output, context) => {
|
|
338
|
+
const parsedOutput = {
|
|
339
|
+
...output,
|
|
340
|
+
body: await parseErrorBody(output.body, context),
|
|
341
|
+
};
|
|
342
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
343
|
+
switch (errorCode) {
|
|
344
|
+
case "InternalServerException":
|
|
345
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
346
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
347
|
+
case "InvalidRequestException":
|
|
348
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
349
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
350
|
+
case "ResourceNotFoundException":
|
|
351
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
352
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
353
|
+
case "TooManyRequestsException":
|
|
354
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
355
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
356
|
+
default:
|
|
357
|
+
const parsedBody = parsedOutput.body;
|
|
358
|
+
throwDefaultError({
|
|
359
|
+
output,
|
|
360
|
+
parsedBody,
|
|
361
|
+
exceptionCtor: __BaseException,
|
|
362
|
+
errorCode,
|
|
363
|
+
});
|
|
364
|
+
}
|
|
2055
365
|
};
|
|
2056
|
-
|
|
2057
|
-
|
|
366
|
+
export const deserializeAws_json1_1DescribeRxNormInferenceJobCommand = async (output, context) => {
|
|
367
|
+
if (output.statusCode >= 300) {
|
|
368
|
+
return deserializeAws_json1_1DescribeRxNormInferenceJobCommandError(output, context);
|
|
369
|
+
}
|
|
370
|
+
const data = await parseBody(output.body, context);
|
|
371
|
+
let contents = {};
|
|
372
|
+
contents = deserializeAws_json1_1DescribeRxNormInferenceJobResponse(data, context);
|
|
373
|
+
const response = {
|
|
374
|
+
$metadata: deserializeMetadata(output),
|
|
375
|
+
...contents,
|
|
376
|
+
};
|
|
377
|
+
return Promise.resolve(response);
|
|
2058
378
|
};
|
|
2059
|
-
|
|
2060
|
-
|
|
379
|
+
const deserializeAws_json1_1DescribeRxNormInferenceJobCommandError = async (output, context) => {
|
|
380
|
+
const parsedOutput = {
|
|
381
|
+
...output,
|
|
382
|
+
body: await parseErrorBody(output.body, context),
|
|
383
|
+
};
|
|
384
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
385
|
+
switch (errorCode) {
|
|
386
|
+
case "InternalServerException":
|
|
387
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
388
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
389
|
+
case "InvalidRequestException":
|
|
390
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
391
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
392
|
+
case "ResourceNotFoundException":
|
|
393
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
394
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
395
|
+
case "TooManyRequestsException":
|
|
396
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
397
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
398
|
+
default:
|
|
399
|
+
const parsedBody = parsedOutput.body;
|
|
400
|
+
throwDefaultError({
|
|
401
|
+
output,
|
|
402
|
+
parsedBody,
|
|
403
|
+
exceptionCtor: __BaseException,
|
|
404
|
+
errorCode,
|
|
405
|
+
});
|
|
406
|
+
}
|
|
2061
407
|
};
|
|
2062
|
-
|
|
2063
|
-
|
|
408
|
+
export const deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommand = async (output, context) => {
|
|
409
|
+
if (output.statusCode >= 300) {
|
|
410
|
+
return deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommandError(output, context);
|
|
411
|
+
}
|
|
412
|
+
const data = await parseBody(output.body, context);
|
|
413
|
+
let contents = {};
|
|
414
|
+
contents = deserializeAws_json1_1DescribeSNOMEDCTInferenceJobResponse(data, context);
|
|
415
|
+
const response = {
|
|
416
|
+
$metadata: deserializeMetadata(output),
|
|
417
|
+
...contents,
|
|
418
|
+
};
|
|
419
|
+
return Promise.resolve(response);
|
|
2064
420
|
};
|
|
2065
|
-
|
|
2066
|
-
|
|
421
|
+
const deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommandError = async (output, context) => {
|
|
422
|
+
const parsedOutput = {
|
|
423
|
+
...output,
|
|
424
|
+
body: await parseErrorBody(output.body, context),
|
|
425
|
+
};
|
|
426
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
427
|
+
switch (errorCode) {
|
|
428
|
+
case "InternalServerException":
|
|
429
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
430
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
431
|
+
case "InvalidRequestException":
|
|
432
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
433
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
434
|
+
case "ResourceNotFoundException":
|
|
435
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
436
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
437
|
+
case "TooManyRequestsException":
|
|
438
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
439
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
440
|
+
default:
|
|
441
|
+
const parsedBody = parsedOutput.body;
|
|
442
|
+
throwDefaultError({
|
|
443
|
+
output,
|
|
444
|
+
parsedBody,
|
|
445
|
+
exceptionCtor: __BaseException,
|
|
446
|
+
errorCode,
|
|
447
|
+
});
|
|
448
|
+
}
|
|
2067
449
|
};
|
|
2068
|
-
|
|
2069
|
-
|
|
450
|
+
export const deserializeAws_json1_1DetectEntitiesCommand = async (output, context) => {
|
|
451
|
+
if (output.statusCode >= 300) {
|
|
452
|
+
return deserializeAws_json1_1DetectEntitiesCommandError(output, context);
|
|
453
|
+
}
|
|
454
|
+
const data = await parseBody(output.body, context);
|
|
455
|
+
let contents = {};
|
|
456
|
+
contents = deserializeAws_json1_1DetectEntitiesResponse(data, context);
|
|
457
|
+
const response = {
|
|
458
|
+
$metadata: deserializeMetadata(output),
|
|
459
|
+
...contents,
|
|
460
|
+
};
|
|
461
|
+
return Promise.resolve(response);
|
|
2070
462
|
};
|
|
2071
|
-
|
|
2072
|
-
|
|
463
|
+
const deserializeAws_json1_1DetectEntitiesCommandError = async (output, context) => {
|
|
464
|
+
const parsedOutput = {
|
|
465
|
+
...output,
|
|
466
|
+
body: await parseErrorBody(output.body, context),
|
|
467
|
+
};
|
|
468
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
469
|
+
switch (errorCode) {
|
|
470
|
+
case "InternalServerException":
|
|
471
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
472
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
473
|
+
case "InvalidEncodingException":
|
|
474
|
+
case "com.amazonaws.comprehendmedical#InvalidEncodingException":
|
|
475
|
+
throw await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context);
|
|
476
|
+
case "InvalidRequestException":
|
|
477
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
478
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
479
|
+
case "ServiceUnavailableException":
|
|
480
|
+
case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
|
|
481
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
482
|
+
case "TextSizeLimitExceededException":
|
|
483
|
+
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
|
|
484
|
+
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
485
|
+
case "TooManyRequestsException":
|
|
486
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
487
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
488
|
+
default:
|
|
489
|
+
const parsedBody = parsedOutput.body;
|
|
490
|
+
throwDefaultError({
|
|
491
|
+
output,
|
|
492
|
+
parsedBody,
|
|
493
|
+
exceptionCtor: __BaseException,
|
|
494
|
+
errorCode,
|
|
495
|
+
});
|
|
496
|
+
}
|
|
2073
497
|
};
|
|
2074
|
-
|
|
2075
|
-
|
|
498
|
+
export const deserializeAws_json1_1DetectEntitiesV2Command = async (output, context) => {
|
|
499
|
+
if (output.statusCode >= 300) {
|
|
500
|
+
return deserializeAws_json1_1DetectEntitiesV2CommandError(output, context);
|
|
501
|
+
}
|
|
502
|
+
const data = await parseBody(output.body, context);
|
|
503
|
+
let contents = {};
|
|
504
|
+
contents = deserializeAws_json1_1DetectEntitiesV2Response(data, context);
|
|
505
|
+
const response = {
|
|
506
|
+
$metadata: deserializeMetadata(output),
|
|
507
|
+
...contents,
|
|
508
|
+
};
|
|
509
|
+
return Promise.resolve(response);
|
|
2076
510
|
};
|
|
2077
|
-
|
|
2078
|
-
|
|
511
|
+
const deserializeAws_json1_1DetectEntitiesV2CommandError = async (output, context) => {
|
|
512
|
+
const parsedOutput = {
|
|
513
|
+
...output,
|
|
514
|
+
body: await parseErrorBody(output.body, context),
|
|
515
|
+
};
|
|
516
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
517
|
+
switch (errorCode) {
|
|
518
|
+
case "InternalServerException":
|
|
519
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
520
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
521
|
+
case "InvalidEncodingException":
|
|
522
|
+
case "com.amazonaws.comprehendmedical#InvalidEncodingException":
|
|
523
|
+
throw await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context);
|
|
524
|
+
case "InvalidRequestException":
|
|
525
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
526
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
527
|
+
case "ServiceUnavailableException":
|
|
528
|
+
case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
|
|
529
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
530
|
+
case "TextSizeLimitExceededException":
|
|
531
|
+
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
|
|
532
|
+
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
533
|
+
case "TooManyRequestsException":
|
|
534
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
535
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
536
|
+
default:
|
|
537
|
+
const parsedBody = parsedOutput.body;
|
|
538
|
+
throwDefaultError({
|
|
539
|
+
output,
|
|
540
|
+
parsedBody,
|
|
541
|
+
exceptionCtor: __BaseException,
|
|
542
|
+
errorCode,
|
|
543
|
+
});
|
|
544
|
+
}
|
|
2079
545
|
};
|
|
2080
|
-
|
|
2081
|
-
|
|
546
|
+
export const deserializeAws_json1_1DetectPHICommand = async (output, context) => {
|
|
547
|
+
if (output.statusCode >= 300) {
|
|
548
|
+
return deserializeAws_json1_1DetectPHICommandError(output, context);
|
|
549
|
+
}
|
|
550
|
+
const data = await parseBody(output.body, context);
|
|
551
|
+
let contents = {};
|
|
552
|
+
contents = deserializeAws_json1_1DetectPHIResponse(data, context);
|
|
553
|
+
const response = {
|
|
554
|
+
$metadata: deserializeMetadata(output),
|
|
555
|
+
...contents,
|
|
556
|
+
};
|
|
557
|
+
return Promise.resolve(response);
|
|
2082
558
|
};
|
|
2083
|
-
|
|
2084
|
-
|
|
559
|
+
const deserializeAws_json1_1DetectPHICommandError = async (output, context) => {
|
|
560
|
+
const parsedOutput = {
|
|
561
|
+
...output,
|
|
562
|
+
body: await parseErrorBody(output.body, context),
|
|
563
|
+
};
|
|
564
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
+
switch (errorCode) {
|
|
566
|
+
case "InternalServerException":
|
|
567
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
568
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
569
|
+
case "InvalidEncodingException":
|
|
570
|
+
case "com.amazonaws.comprehendmedical#InvalidEncodingException":
|
|
571
|
+
throw await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context);
|
|
572
|
+
case "InvalidRequestException":
|
|
573
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
574
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
575
|
+
case "ServiceUnavailableException":
|
|
576
|
+
case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
|
|
577
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
578
|
+
case "TextSizeLimitExceededException":
|
|
579
|
+
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
|
|
580
|
+
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
581
|
+
case "TooManyRequestsException":
|
|
582
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
583
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
584
|
+
default:
|
|
585
|
+
const parsedBody = parsedOutput.body;
|
|
586
|
+
throwDefaultError({
|
|
587
|
+
output,
|
|
588
|
+
parsedBody,
|
|
589
|
+
exceptionCtor: __BaseException,
|
|
590
|
+
errorCode,
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
export const deserializeAws_json1_1InferICD10CMCommand = async (output, context) => {
|
|
595
|
+
if (output.statusCode >= 300) {
|
|
596
|
+
return deserializeAws_json1_1InferICD10CMCommandError(output, context);
|
|
597
|
+
}
|
|
598
|
+
const data = await parseBody(output.body, context);
|
|
599
|
+
let contents = {};
|
|
600
|
+
contents = deserializeAws_json1_1InferICD10CMResponse(data, context);
|
|
601
|
+
const response = {
|
|
602
|
+
$metadata: deserializeMetadata(output),
|
|
603
|
+
...contents,
|
|
604
|
+
};
|
|
605
|
+
return Promise.resolve(response);
|
|
606
|
+
};
|
|
607
|
+
const deserializeAws_json1_1InferICD10CMCommandError = async (output, context) => {
|
|
608
|
+
const parsedOutput = {
|
|
609
|
+
...output,
|
|
610
|
+
body: await parseErrorBody(output.body, context),
|
|
611
|
+
};
|
|
612
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
613
|
+
switch (errorCode) {
|
|
614
|
+
case "InternalServerException":
|
|
615
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
616
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
617
|
+
case "InvalidEncodingException":
|
|
618
|
+
case "com.amazonaws.comprehendmedical#InvalidEncodingException":
|
|
619
|
+
throw await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context);
|
|
620
|
+
case "InvalidRequestException":
|
|
621
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
622
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
623
|
+
case "ServiceUnavailableException":
|
|
624
|
+
case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
|
|
625
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
626
|
+
case "TextSizeLimitExceededException":
|
|
627
|
+
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
|
|
628
|
+
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
629
|
+
case "TooManyRequestsException":
|
|
630
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
631
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
632
|
+
default:
|
|
633
|
+
const parsedBody = parsedOutput.body;
|
|
634
|
+
throwDefaultError({
|
|
635
|
+
output,
|
|
636
|
+
parsedBody,
|
|
637
|
+
exceptionCtor: __BaseException,
|
|
638
|
+
errorCode,
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
};
|
|
642
|
+
export const deserializeAws_json1_1InferRxNormCommand = async (output, context) => {
|
|
643
|
+
if (output.statusCode >= 300) {
|
|
644
|
+
return deserializeAws_json1_1InferRxNormCommandError(output, context);
|
|
645
|
+
}
|
|
646
|
+
const data = await parseBody(output.body, context);
|
|
647
|
+
let contents = {};
|
|
648
|
+
contents = deserializeAws_json1_1InferRxNormResponse(data, context);
|
|
649
|
+
const response = {
|
|
650
|
+
$metadata: deserializeMetadata(output),
|
|
651
|
+
...contents,
|
|
652
|
+
};
|
|
653
|
+
return Promise.resolve(response);
|
|
654
|
+
};
|
|
655
|
+
const deserializeAws_json1_1InferRxNormCommandError = async (output, context) => {
|
|
656
|
+
const parsedOutput = {
|
|
657
|
+
...output,
|
|
658
|
+
body: await parseErrorBody(output.body, context),
|
|
659
|
+
};
|
|
660
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
661
|
+
switch (errorCode) {
|
|
662
|
+
case "InternalServerException":
|
|
663
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
664
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
665
|
+
case "InvalidEncodingException":
|
|
666
|
+
case "com.amazonaws.comprehendmedical#InvalidEncodingException":
|
|
667
|
+
throw await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context);
|
|
668
|
+
case "InvalidRequestException":
|
|
669
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
670
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
671
|
+
case "ServiceUnavailableException":
|
|
672
|
+
case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
|
|
673
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
674
|
+
case "TextSizeLimitExceededException":
|
|
675
|
+
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
|
|
676
|
+
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
677
|
+
case "TooManyRequestsException":
|
|
678
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
679
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
680
|
+
default:
|
|
681
|
+
const parsedBody = parsedOutput.body;
|
|
682
|
+
throwDefaultError({
|
|
683
|
+
output,
|
|
684
|
+
parsedBody,
|
|
685
|
+
exceptionCtor: __BaseException,
|
|
686
|
+
errorCode,
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
};
|
|
690
|
+
export const deserializeAws_json1_1InferSNOMEDCTCommand = async (output, context) => {
|
|
691
|
+
if (output.statusCode >= 300) {
|
|
692
|
+
return deserializeAws_json1_1InferSNOMEDCTCommandError(output, context);
|
|
693
|
+
}
|
|
694
|
+
const data = await parseBody(output.body, context);
|
|
695
|
+
let contents = {};
|
|
696
|
+
contents = deserializeAws_json1_1InferSNOMEDCTResponse(data, context);
|
|
697
|
+
const response = {
|
|
698
|
+
$metadata: deserializeMetadata(output),
|
|
699
|
+
...contents,
|
|
700
|
+
};
|
|
701
|
+
return Promise.resolve(response);
|
|
702
|
+
};
|
|
703
|
+
const deserializeAws_json1_1InferSNOMEDCTCommandError = async (output, context) => {
|
|
704
|
+
const parsedOutput = {
|
|
705
|
+
...output,
|
|
706
|
+
body: await parseErrorBody(output.body, context),
|
|
707
|
+
};
|
|
708
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
709
|
+
switch (errorCode) {
|
|
710
|
+
case "InternalServerException":
|
|
711
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
712
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
713
|
+
case "InvalidEncodingException":
|
|
714
|
+
case "com.amazonaws.comprehendmedical#InvalidEncodingException":
|
|
715
|
+
throw await deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context);
|
|
716
|
+
case "InvalidRequestException":
|
|
717
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
718
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
719
|
+
case "ServiceUnavailableException":
|
|
720
|
+
case "com.amazonaws.comprehendmedical#ServiceUnavailableException":
|
|
721
|
+
throw await deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
722
|
+
case "TextSizeLimitExceededException":
|
|
723
|
+
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException":
|
|
724
|
+
throw await deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context);
|
|
725
|
+
case "TooManyRequestsException":
|
|
726
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
727
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
728
|
+
default:
|
|
729
|
+
const parsedBody = parsedOutput.body;
|
|
730
|
+
throwDefaultError({
|
|
731
|
+
output,
|
|
732
|
+
parsedBody,
|
|
733
|
+
exceptionCtor: __BaseException,
|
|
734
|
+
errorCode,
|
|
735
|
+
});
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
export const deserializeAws_json1_1ListEntitiesDetectionV2JobsCommand = async (output, context) => {
|
|
739
|
+
if (output.statusCode >= 300) {
|
|
740
|
+
return deserializeAws_json1_1ListEntitiesDetectionV2JobsCommandError(output, context);
|
|
741
|
+
}
|
|
742
|
+
const data = await parseBody(output.body, context);
|
|
743
|
+
let contents = {};
|
|
744
|
+
contents = deserializeAws_json1_1ListEntitiesDetectionV2JobsResponse(data, context);
|
|
745
|
+
const response = {
|
|
746
|
+
$metadata: deserializeMetadata(output),
|
|
747
|
+
...contents,
|
|
748
|
+
};
|
|
749
|
+
return Promise.resolve(response);
|
|
750
|
+
};
|
|
751
|
+
const deserializeAws_json1_1ListEntitiesDetectionV2JobsCommandError = async (output, context) => {
|
|
752
|
+
const parsedOutput = {
|
|
753
|
+
...output,
|
|
754
|
+
body: await parseErrorBody(output.body, context),
|
|
755
|
+
};
|
|
756
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
757
|
+
switch (errorCode) {
|
|
758
|
+
case "InternalServerException":
|
|
759
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
760
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
761
|
+
case "InvalidRequestException":
|
|
762
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
763
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
764
|
+
case "TooManyRequestsException":
|
|
765
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
766
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
767
|
+
case "ValidationException":
|
|
768
|
+
case "com.amazonaws.comprehendmedical#ValidationException":
|
|
769
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
770
|
+
default:
|
|
771
|
+
const parsedBody = parsedOutput.body;
|
|
772
|
+
throwDefaultError({
|
|
773
|
+
output,
|
|
774
|
+
parsedBody,
|
|
775
|
+
exceptionCtor: __BaseException,
|
|
776
|
+
errorCode,
|
|
777
|
+
});
|
|
778
|
+
}
|
|
779
|
+
};
|
|
780
|
+
export const deserializeAws_json1_1ListICD10CMInferenceJobsCommand = async (output, context) => {
|
|
781
|
+
if (output.statusCode >= 300) {
|
|
782
|
+
return deserializeAws_json1_1ListICD10CMInferenceJobsCommandError(output, context);
|
|
783
|
+
}
|
|
784
|
+
const data = await parseBody(output.body, context);
|
|
785
|
+
let contents = {};
|
|
786
|
+
contents = deserializeAws_json1_1ListICD10CMInferenceJobsResponse(data, context);
|
|
787
|
+
const response = {
|
|
788
|
+
$metadata: deserializeMetadata(output),
|
|
789
|
+
...contents,
|
|
790
|
+
};
|
|
791
|
+
return Promise.resolve(response);
|
|
792
|
+
};
|
|
793
|
+
const deserializeAws_json1_1ListICD10CMInferenceJobsCommandError = async (output, context) => {
|
|
794
|
+
const parsedOutput = {
|
|
795
|
+
...output,
|
|
796
|
+
body: await parseErrorBody(output.body, context),
|
|
797
|
+
};
|
|
798
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
799
|
+
switch (errorCode) {
|
|
800
|
+
case "InternalServerException":
|
|
801
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
802
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
803
|
+
case "InvalidRequestException":
|
|
804
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
805
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
806
|
+
case "TooManyRequestsException":
|
|
807
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
808
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
809
|
+
case "ValidationException":
|
|
810
|
+
case "com.amazonaws.comprehendmedical#ValidationException":
|
|
811
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
812
|
+
default:
|
|
813
|
+
const parsedBody = parsedOutput.body;
|
|
814
|
+
throwDefaultError({
|
|
815
|
+
output,
|
|
816
|
+
parsedBody,
|
|
817
|
+
exceptionCtor: __BaseException,
|
|
818
|
+
errorCode,
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
};
|
|
822
|
+
export const deserializeAws_json1_1ListPHIDetectionJobsCommand = async (output, context) => {
|
|
823
|
+
if (output.statusCode >= 300) {
|
|
824
|
+
return deserializeAws_json1_1ListPHIDetectionJobsCommandError(output, context);
|
|
825
|
+
}
|
|
826
|
+
const data = await parseBody(output.body, context);
|
|
827
|
+
let contents = {};
|
|
828
|
+
contents = deserializeAws_json1_1ListPHIDetectionJobsResponse(data, context);
|
|
829
|
+
const response = {
|
|
830
|
+
$metadata: deserializeMetadata(output),
|
|
831
|
+
...contents,
|
|
832
|
+
};
|
|
833
|
+
return Promise.resolve(response);
|
|
834
|
+
};
|
|
835
|
+
const deserializeAws_json1_1ListPHIDetectionJobsCommandError = async (output, context) => {
|
|
836
|
+
const parsedOutput = {
|
|
837
|
+
...output,
|
|
838
|
+
body: await parseErrorBody(output.body, context),
|
|
839
|
+
};
|
|
840
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
841
|
+
switch (errorCode) {
|
|
842
|
+
case "InternalServerException":
|
|
843
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
844
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
845
|
+
case "InvalidRequestException":
|
|
846
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
847
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
848
|
+
case "TooManyRequestsException":
|
|
849
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
850
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
851
|
+
case "ValidationException":
|
|
852
|
+
case "com.amazonaws.comprehendmedical#ValidationException":
|
|
853
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
854
|
+
default:
|
|
855
|
+
const parsedBody = parsedOutput.body;
|
|
856
|
+
throwDefaultError({
|
|
857
|
+
output,
|
|
858
|
+
parsedBody,
|
|
859
|
+
exceptionCtor: __BaseException,
|
|
860
|
+
errorCode,
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
};
|
|
864
|
+
export const deserializeAws_json1_1ListRxNormInferenceJobsCommand = async (output, context) => {
|
|
865
|
+
if (output.statusCode >= 300) {
|
|
866
|
+
return deserializeAws_json1_1ListRxNormInferenceJobsCommandError(output, context);
|
|
867
|
+
}
|
|
868
|
+
const data = await parseBody(output.body, context);
|
|
869
|
+
let contents = {};
|
|
870
|
+
contents = deserializeAws_json1_1ListRxNormInferenceJobsResponse(data, context);
|
|
871
|
+
const response = {
|
|
872
|
+
$metadata: deserializeMetadata(output),
|
|
873
|
+
...contents,
|
|
874
|
+
};
|
|
875
|
+
return Promise.resolve(response);
|
|
876
|
+
};
|
|
877
|
+
const deserializeAws_json1_1ListRxNormInferenceJobsCommandError = async (output, context) => {
|
|
878
|
+
const parsedOutput = {
|
|
879
|
+
...output,
|
|
880
|
+
body: await parseErrorBody(output.body, context),
|
|
881
|
+
};
|
|
882
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
883
|
+
switch (errorCode) {
|
|
884
|
+
case "InternalServerException":
|
|
885
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
886
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
887
|
+
case "InvalidRequestException":
|
|
888
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
889
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
890
|
+
case "TooManyRequestsException":
|
|
891
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
892
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
893
|
+
case "ValidationException":
|
|
894
|
+
case "com.amazonaws.comprehendmedical#ValidationException":
|
|
895
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
896
|
+
default:
|
|
897
|
+
const parsedBody = parsedOutput.body;
|
|
898
|
+
throwDefaultError({
|
|
899
|
+
output,
|
|
900
|
+
parsedBody,
|
|
901
|
+
exceptionCtor: __BaseException,
|
|
902
|
+
errorCode,
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
export const deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommand = async (output, context) => {
|
|
907
|
+
if (output.statusCode >= 300) {
|
|
908
|
+
return deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommandError(output, context);
|
|
909
|
+
}
|
|
910
|
+
const data = await parseBody(output.body, context);
|
|
911
|
+
let contents = {};
|
|
912
|
+
contents = deserializeAws_json1_1ListSNOMEDCTInferenceJobsResponse(data, context);
|
|
913
|
+
const response = {
|
|
914
|
+
$metadata: deserializeMetadata(output),
|
|
915
|
+
...contents,
|
|
916
|
+
};
|
|
917
|
+
return Promise.resolve(response);
|
|
918
|
+
};
|
|
919
|
+
const deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommandError = async (output, context) => {
|
|
920
|
+
const parsedOutput = {
|
|
921
|
+
...output,
|
|
922
|
+
body: await parseErrorBody(output.body, context),
|
|
923
|
+
};
|
|
924
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
925
|
+
switch (errorCode) {
|
|
926
|
+
case "InternalServerException":
|
|
927
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
928
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
929
|
+
case "InvalidRequestException":
|
|
930
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
931
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
932
|
+
case "TooManyRequestsException":
|
|
933
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
934
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
935
|
+
case "ValidationException":
|
|
936
|
+
case "com.amazonaws.comprehendmedical#ValidationException":
|
|
937
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
938
|
+
default:
|
|
939
|
+
const parsedBody = parsedOutput.body;
|
|
940
|
+
throwDefaultError({
|
|
941
|
+
output,
|
|
942
|
+
parsedBody,
|
|
943
|
+
exceptionCtor: __BaseException,
|
|
944
|
+
errorCode,
|
|
945
|
+
});
|
|
946
|
+
}
|
|
947
|
+
};
|
|
948
|
+
export const deserializeAws_json1_1StartEntitiesDetectionV2JobCommand = async (output, context) => {
|
|
949
|
+
if (output.statusCode >= 300) {
|
|
950
|
+
return deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError(output, context);
|
|
951
|
+
}
|
|
952
|
+
const data = await parseBody(output.body, context);
|
|
953
|
+
let contents = {};
|
|
954
|
+
contents = deserializeAws_json1_1StartEntitiesDetectionV2JobResponse(data, context);
|
|
955
|
+
const response = {
|
|
956
|
+
$metadata: deserializeMetadata(output),
|
|
957
|
+
...contents,
|
|
958
|
+
};
|
|
959
|
+
return Promise.resolve(response);
|
|
960
|
+
};
|
|
961
|
+
const deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError = async (output, context) => {
|
|
962
|
+
const parsedOutput = {
|
|
963
|
+
...output,
|
|
964
|
+
body: await parseErrorBody(output.body, context),
|
|
965
|
+
};
|
|
966
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
967
|
+
switch (errorCode) {
|
|
968
|
+
case "InternalServerException":
|
|
969
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
970
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
971
|
+
case "InvalidRequestException":
|
|
972
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
973
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
974
|
+
case "ResourceNotFoundException":
|
|
975
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
976
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
977
|
+
case "TooManyRequestsException":
|
|
978
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
979
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
980
|
+
default:
|
|
981
|
+
const parsedBody = parsedOutput.body;
|
|
982
|
+
throwDefaultError({
|
|
983
|
+
output,
|
|
984
|
+
parsedBody,
|
|
985
|
+
exceptionCtor: __BaseException,
|
|
986
|
+
errorCode,
|
|
987
|
+
});
|
|
988
|
+
}
|
|
989
|
+
};
|
|
990
|
+
export const deserializeAws_json1_1StartICD10CMInferenceJobCommand = async (output, context) => {
|
|
991
|
+
if (output.statusCode >= 300) {
|
|
992
|
+
return deserializeAws_json1_1StartICD10CMInferenceJobCommandError(output, context);
|
|
993
|
+
}
|
|
994
|
+
const data = await parseBody(output.body, context);
|
|
995
|
+
let contents = {};
|
|
996
|
+
contents = deserializeAws_json1_1StartICD10CMInferenceJobResponse(data, context);
|
|
997
|
+
const response = {
|
|
998
|
+
$metadata: deserializeMetadata(output),
|
|
999
|
+
...contents,
|
|
1000
|
+
};
|
|
1001
|
+
return Promise.resolve(response);
|
|
1002
|
+
};
|
|
1003
|
+
const deserializeAws_json1_1StartICD10CMInferenceJobCommandError = async (output, context) => {
|
|
1004
|
+
const parsedOutput = {
|
|
1005
|
+
...output,
|
|
1006
|
+
body: await parseErrorBody(output.body, context),
|
|
1007
|
+
};
|
|
1008
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
+
switch (errorCode) {
|
|
1010
|
+
case "InternalServerException":
|
|
1011
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1012
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1013
|
+
case "InvalidRequestException":
|
|
1014
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1015
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1016
|
+
case "ResourceNotFoundException":
|
|
1017
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1018
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1019
|
+
case "TooManyRequestsException":
|
|
1020
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1021
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1022
|
+
default:
|
|
1023
|
+
const parsedBody = parsedOutput.body;
|
|
1024
|
+
throwDefaultError({
|
|
1025
|
+
output,
|
|
1026
|
+
parsedBody,
|
|
1027
|
+
exceptionCtor: __BaseException,
|
|
1028
|
+
errorCode,
|
|
1029
|
+
});
|
|
1030
|
+
}
|
|
1031
|
+
};
|
|
1032
|
+
export const deserializeAws_json1_1StartPHIDetectionJobCommand = async (output, context) => {
|
|
1033
|
+
if (output.statusCode >= 300) {
|
|
1034
|
+
return deserializeAws_json1_1StartPHIDetectionJobCommandError(output, context);
|
|
1035
|
+
}
|
|
1036
|
+
const data = await parseBody(output.body, context);
|
|
1037
|
+
let contents = {};
|
|
1038
|
+
contents = deserializeAws_json1_1StartPHIDetectionJobResponse(data, context);
|
|
1039
|
+
const response = {
|
|
1040
|
+
$metadata: deserializeMetadata(output),
|
|
1041
|
+
...contents,
|
|
1042
|
+
};
|
|
1043
|
+
return Promise.resolve(response);
|
|
1044
|
+
};
|
|
1045
|
+
const deserializeAws_json1_1StartPHIDetectionJobCommandError = async (output, context) => {
|
|
1046
|
+
const parsedOutput = {
|
|
1047
|
+
...output,
|
|
1048
|
+
body: await parseErrorBody(output.body, context),
|
|
1049
|
+
};
|
|
1050
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1051
|
+
switch (errorCode) {
|
|
1052
|
+
case "InternalServerException":
|
|
1053
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1054
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1055
|
+
case "InvalidRequestException":
|
|
1056
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1057
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1058
|
+
case "ResourceNotFoundException":
|
|
1059
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1060
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1061
|
+
case "TooManyRequestsException":
|
|
1062
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1063
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1064
|
+
default:
|
|
1065
|
+
const parsedBody = parsedOutput.body;
|
|
1066
|
+
throwDefaultError({
|
|
1067
|
+
output,
|
|
1068
|
+
parsedBody,
|
|
1069
|
+
exceptionCtor: __BaseException,
|
|
1070
|
+
errorCode,
|
|
1071
|
+
});
|
|
1072
|
+
}
|
|
1073
|
+
};
|
|
1074
|
+
export const deserializeAws_json1_1StartRxNormInferenceJobCommand = async (output, context) => {
|
|
1075
|
+
if (output.statusCode >= 300) {
|
|
1076
|
+
return deserializeAws_json1_1StartRxNormInferenceJobCommandError(output, context);
|
|
1077
|
+
}
|
|
1078
|
+
const data = await parseBody(output.body, context);
|
|
1079
|
+
let contents = {};
|
|
1080
|
+
contents = deserializeAws_json1_1StartRxNormInferenceJobResponse(data, context);
|
|
1081
|
+
const response = {
|
|
1082
|
+
$metadata: deserializeMetadata(output),
|
|
1083
|
+
...contents,
|
|
1084
|
+
};
|
|
1085
|
+
return Promise.resolve(response);
|
|
1086
|
+
};
|
|
1087
|
+
const deserializeAws_json1_1StartRxNormInferenceJobCommandError = async (output, context) => {
|
|
1088
|
+
const parsedOutput = {
|
|
1089
|
+
...output,
|
|
1090
|
+
body: await parseErrorBody(output.body, context),
|
|
1091
|
+
};
|
|
1092
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1093
|
+
switch (errorCode) {
|
|
1094
|
+
case "InternalServerException":
|
|
1095
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1096
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1097
|
+
case "InvalidRequestException":
|
|
1098
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1099
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1100
|
+
case "ResourceNotFoundException":
|
|
1101
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1102
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1103
|
+
case "TooManyRequestsException":
|
|
1104
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1105
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1106
|
+
default:
|
|
1107
|
+
const parsedBody = parsedOutput.body;
|
|
1108
|
+
throwDefaultError({
|
|
1109
|
+
output,
|
|
1110
|
+
parsedBody,
|
|
1111
|
+
exceptionCtor: __BaseException,
|
|
1112
|
+
errorCode,
|
|
1113
|
+
});
|
|
1114
|
+
}
|
|
1115
|
+
};
|
|
1116
|
+
export const deserializeAws_json1_1StartSNOMEDCTInferenceJobCommand = async (output, context) => {
|
|
1117
|
+
if (output.statusCode >= 300) {
|
|
1118
|
+
return deserializeAws_json1_1StartSNOMEDCTInferenceJobCommandError(output, context);
|
|
1119
|
+
}
|
|
1120
|
+
const data = await parseBody(output.body, context);
|
|
1121
|
+
let contents = {};
|
|
1122
|
+
contents = deserializeAws_json1_1StartSNOMEDCTInferenceJobResponse(data, context);
|
|
1123
|
+
const response = {
|
|
1124
|
+
$metadata: deserializeMetadata(output),
|
|
1125
|
+
...contents,
|
|
1126
|
+
};
|
|
1127
|
+
return Promise.resolve(response);
|
|
1128
|
+
};
|
|
1129
|
+
const deserializeAws_json1_1StartSNOMEDCTInferenceJobCommandError = async (output, context) => {
|
|
1130
|
+
const parsedOutput = {
|
|
1131
|
+
...output,
|
|
1132
|
+
body: await parseErrorBody(output.body, context),
|
|
1133
|
+
};
|
|
1134
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1135
|
+
switch (errorCode) {
|
|
1136
|
+
case "InternalServerException":
|
|
1137
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1138
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1139
|
+
case "InvalidRequestException":
|
|
1140
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1141
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1142
|
+
case "ResourceNotFoundException":
|
|
1143
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1144
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1145
|
+
case "TooManyRequestsException":
|
|
1146
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1147
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1148
|
+
default:
|
|
1149
|
+
const parsedBody = parsedOutput.body;
|
|
1150
|
+
throwDefaultError({
|
|
1151
|
+
output,
|
|
1152
|
+
parsedBody,
|
|
1153
|
+
exceptionCtor: __BaseException,
|
|
1154
|
+
errorCode,
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
export const deserializeAws_json1_1StopEntitiesDetectionV2JobCommand = async (output, context) => {
|
|
1159
|
+
if (output.statusCode >= 300) {
|
|
1160
|
+
return deserializeAws_json1_1StopEntitiesDetectionV2JobCommandError(output, context);
|
|
1161
|
+
}
|
|
1162
|
+
const data = await parseBody(output.body, context);
|
|
1163
|
+
let contents = {};
|
|
1164
|
+
contents = deserializeAws_json1_1StopEntitiesDetectionV2JobResponse(data, context);
|
|
1165
|
+
const response = {
|
|
1166
|
+
$metadata: deserializeMetadata(output),
|
|
1167
|
+
...contents,
|
|
1168
|
+
};
|
|
1169
|
+
return Promise.resolve(response);
|
|
1170
|
+
};
|
|
1171
|
+
const deserializeAws_json1_1StopEntitiesDetectionV2JobCommandError = async (output, context) => {
|
|
1172
|
+
const parsedOutput = {
|
|
1173
|
+
...output,
|
|
1174
|
+
body: await parseErrorBody(output.body, context),
|
|
1175
|
+
};
|
|
1176
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
|
+
switch (errorCode) {
|
|
1178
|
+
case "InternalServerException":
|
|
1179
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1180
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1181
|
+
case "InvalidRequestException":
|
|
1182
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1183
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1184
|
+
case "ResourceNotFoundException":
|
|
1185
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1186
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1187
|
+
default:
|
|
1188
|
+
const parsedBody = parsedOutput.body;
|
|
1189
|
+
throwDefaultError({
|
|
1190
|
+
output,
|
|
1191
|
+
parsedBody,
|
|
1192
|
+
exceptionCtor: __BaseException,
|
|
1193
|
+
errorCode,
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
};
|
|
1197
|
+
export const deserializeAws_json1_1StopICD10CMInferenceJobCommand = async (output, context) => {
|
|
1198
|
+
if (output.statusCode >= 300) {
|
|
1199
|
+
return deserializeAws_json1_1StopICD10CMInferenceJobCommandError(output, context);
|
|
1200
|
+
}
|
|
1201
|
+
const data = await parseBody(output.body, context);
|
|
1202
|
+
let contents = {};
|
|
1203
|
+
contents = deserializeAws_json1_1StopICD10CMInferenceJobResponse(data, context);
|
|
1204
|
+
const response = {
|
|
1205
|
+
$metadata: deserializeMetadata(output),
|
|
1206
|
+
...contents,
|
|
1207
|
+
};
|
|
1208
|
+
return Promise.resolve(response);
|
|
1209
|
+
};
|
|
1210
|
+
const deserializeAws_json1_1StopICD10CMInferenceJobCommandError = async (output, context) => {
|
|
1211
|
+
const parsedOutput = {
|
|
1212
|
+
...output,
|
|
1213
|
+
body: await parseErrorBody(output.body, context),
|
|
1214
|
+
};
|
|
1215
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1216
|
+
switch (errorCode) {
|
|
1217
|
+
case "InternalServerException":
|
|
1218
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1219
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1220
|
+
case "InvalidRequestException":
|
|
1221
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1222
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1223
|
+
case "ResourceNotFoundException":
|
|
1224
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1225
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1226
|
+
default:
|
|
1227
|
+
const parsedBody = parsedOutput.body;
|
|
1228
|
+
throwDefaultError({
|
|
1229
|
+
output,
|
|
1230
|
+
parsedBody,
|
|
1231
|
+
exceptionCtor: __BaseException,
|
|
1232
|
+
errorCode,
|
|
1233
|
+
});
|
|
1234
|
+
}
|
|
1235
|
+
};
|
|
1236
|
+
export const deserializeAws_json1_1StopPHIDetectionJobCommand = async (output, context) => {
|
|
1237
|
+
if (output.statusCode >= 300) {
|
|
1238
|
+
return deserializeAws_json1_1StopPHIDetectionJobCommandError(output, context);
|
|
1239
|
+
}
|
|
1240
|
+
const data = await parseBody(output.body, context);
|
|
1241
|
+
let contents = {};
|
|
1242
|
+
contents = deserializeAws_json1_1StopPHIDetectionJobResponse(data, context);
|
|
1243
|
+
const response = {
|
|
1244
|
+
$metadata: deserializeMetadata(output),
|
|
1245
|
+
...contents,
|
|
1246
|
+
};
|
|
1247
|
+
return Promise.resolve(response);
|
|
1248
|
+
};
|
|
1249
|
+
const deserializeAws_json1_1StopPHIDetectionJobCommandError = async (output, context) => {
|
|
1250
|
+
const parsedOutput = {
|
|
1251
|
+
...output,
|
|
1252
|
+
body: await parseErrorBody(output.body, context),
|
|
1253
|
+
};
|
|
1254
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1255
|
+
switch (errorCode) {
|
|
1256
|
+
case "InternalServerException":
|
|
1257
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1258
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1259
|
+
case "InvalidRequestException":
|
|
1260
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1261
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1262
|
+
case "ResourceNotFoundException":
|
|
1263
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1264
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1265
|
+
default:
|
|
1266
|
+
const parsedBody = parsedOutput.body;
|
|
1267
|
+
throwDefaultError({
|
|
1268
|
+
output,
|
|
1269
|
+
parsedBody,
|
|
1270
|
+
exceptionCtor: __BaseException,
|
|
1271
|
+
errorCode,
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
2085
1274
|
};
|
|
2086
|
-
|
|
2087
|
-
|
|
1275
|
+
export const deserializeAws_json1_1StopRxNormInferenceJobCommand = async (output, context) => {
|
|
1276
|
+
if (output.statusCode >= 300) {
|
|
1277
|
+
return deserializeAws_json1_1StopRxNormInferenceJobCommandError(output, context);
|
|
1278
|
+
}
|
|
1279
|
+
const data = await parseBody(output.body, context);
|
|
1280
|
+
let contents = {};
|
|
1281
|
+
contents = deserializeAws_json1_1StopRxNormInferenceJobResponse(data, context);
|
|
1282
|
+
const response = {
|
|
1283
|
+
$metadata: deserializeMetadata(output),
|
|
1284
|
+
...contents,
|
|
1285
|
+
};
|
|
1286
|
+
return Promise.resolve(response);
|
|
2088
1287
|
};
|
|
2089
|
-
|
|
2090
|
-
|
|
1288
|
+
const deserializeAws_json1_1StopRxNormInferenceJobCommandError = async (output, context) => {
|
|
1289
|
+
const parsedOutput = {
|
|
1290
|
+
...output,
|
|
1291
|
+
body: await parseErrorBody(output.body, context),
|
|
1292
|
+
};
|
|
1293
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1294
|
+
switch (errorCode) {
|
|
1295
|
+
case "InternalServerException":
|
|
1296
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1297
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1298
|
+
case "InvalidRequestException":
|
|
1299
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1300
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1301
|
+
case "ResourceNotFoundException":
|
|
1302
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1303
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1304
|
+
default:
|
|
1305
|
+
const parsedBody = parsedOutput.body;
|
|
1306
|
+
throwDefaultError({
|
|
1307
|
+
output,
|
|
1308
|
+
parsedBody,
|
|
1309
|
+
exceptionCtor: __BaseException,
|
|
1310
|
+
errorCode,
|
|
1311
|
+
});
|
|
1312
|
+
}
|
|
2091
1313
|
};
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
1314
|
+
export const deserializeAws_json1_1StopSNOMEDCTInferenceJobCommand = async (output, context) => {
|
|
1315
|
+
if (output.statusCode >= 300) {
|
|
1316
|
+
return deserializeAws_json1_1StopSNOMEDCTInferenceJobCommandError(output, context);
|
|
1317
|
+
}
|
|
1318
|
+
const data = await parseBody(output.body, context);
|
|
1319
|
+
let contents = {};
|
|
1320
|
+
contents = deserializeAws_json1_1StopSNOMEDCTInferenceJobResponse(data, context);
|
|
1321
|
+
const response = {
|
|
1322
|
+
$metadata: deserializeMetadata(output),
|
|
1323
|
+
...contents,
|
|
1324
|
+
};
|
|
1325
|
+
return Promise.resolve(response);
|
|
2099
1326
|
};
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
}
|
|
2105
|
-
|
|
2106
|
-
|
|
1327
|
+
const deserializeAws_json1_1StopSNOMEDCTInferenceJobCommandError = async (output, context) => {
|
|
1328
|
+
const parsedOutput = {
|
|
1329
|
+
...output,
|
|
1330
|
+
body: await parseErrorBody(output.body, context),
|
|
1331
|
+
};
|
|
1332
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1333
|
+
switch (errorCode) {
|
|
1334
|
+
case "InternalServerException":
|
|
1335
|
+
case "com.amazonaws.comprehendmedical#InternalServerException":
|
|
1336
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1337
|
+
case "InvalidRequestException":
|
|
1338
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException":
|
|
1339
|
+
throw await deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
1340
|
+
case "ResourceNotFoundException":
|
|
1341
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException":
|
|
1342
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1343
|
+
case "TooManyRequestsException":
|
|
1344
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException":
|
|
1345
|
+
throw await deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context);
|
|
1346
|
+
default:
|
|
1347
|
+
const parsedBody = parsedOutput.body;
|
|
1348
|
+
throwDefaultError({
|
|
1349
|
+
output,
|
|
1350
|
+
parsedBody,
|
|
1351
|
+
exceptionCtor: __BaseException,
|
|
1352
|
+
errorCode,
|
|
1353
|
+
});
|
|
1354
|
+
}
|
|
2107
1355
|
};
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
})
|
|
1356
|
+
const deserializeAws_json1_1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
1357
|
+
const body = parsedOutput.body;
|
|
1358
|
+
const deserialized = deserializeAws_json1_1InternalServerException(body, context);
|
|
1359
|
+
const exception = new InternalServerException({
|
|
1360
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1361
|
+
...deserialized,
|
|
1362
|
+
});
|
|
1363
|
+
return __decorateServiceException(exception, body);
|
|
1364
|
+
};
|
|
1365
|
+
const deserializeAws_json1_1InvalidEncodingExceptionResponse = async (parsedOutput, context) => {
|
|
1366
|
+
const body = parsedOutput.body;
|
|
1367
|
+
const deserialized = deserializeAws_json1_1InvalidEncodingException(body, context);
|
|
1368
|
+
const exception = new InvalidEncodingException({
|
|
1369
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1370
|
+
...deserialized,
|
|
1371
|
+
});
|
|
1372
|
+
return __decorateServiceException(exception, body);
|
|
1373
|
+
};
|
|
1374
|
+
const deserializeAws_json1_1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
1375
|
+
const body = parsedOutput.body;
|
|
1376
|
+
const deserialized = deserializeAws_json1_1InvalidRequestException(body, context);
|
|
1377
|
+
const exception = new InvalidRequestException({
|
|
1378
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1379
|
+
...deserialized,
|
|
1380
|
+
});
|
|
1381
|
+
return __decorateServiceException(exception, body);
|
|
1382
|
+
};
|
|
1383
|
+
const deserializeAws_json1_1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
1384
|
+
const body = parsedOutput.body;
|
|
1385
|
+
const deserialized = deserializeAws_json1_1ResourceNotFoundException(body, context);
|
|
1386
|
+
const exception = new ResourceNotFoundException({
|
|
1387
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1388
|
+
...deserialized,
|
|
1389
|
+
});
|
|
1390
|
+
return __decorateServiceException(exception, body);
|
|
1391
|
+
};
|
|
1392
|
+
const deserializeAws_json1_1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
1393
|
+
const body = parsedOutput.body;
|
|
1394
|
+
const deserialized = deserializeAws_json1_1ServiceUnavailableException(body, context);
|
|
1395
|
+
const exception = new ServiceUnavailableException({
|
|
1396
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1397
|
+
...deserialized,
|
|
1398
|
+
});
|
|
1399
|
+
return __decorateServiceException(exception, body);
|
|
1400
|
+
};
|
|
1401
|
+
const deserializeAws_json1_1TextSizeLimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
1402
|
+
const body = parsedOutput.body;
|
|
1403
|
+
const deserialized = deserializeAws_json1_1TextSizeLimitExceededException(body, context);
|
|
1404
|
+
const exception = new TextSizeLimitExceededException({
|
|
1405
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1406
|
+
...deserialized,
|
|
1407
|
+
});
|
|
1408
|
+
return __decorateServiceException(exception, body);
|
|
1409
|
+
};
|
|
1410
|
+
const deserializeAws_json1_1TooManyRequestsExceptionResponse = async (parsedOutput, context) => {
|
|
1411
|
+
const body = parsedOutput.body;
|
|
1412
|
+
const deserialized = deserializeAws_json1_1TooManyRequestsException(body, context);
|
|
1413
|
+
const exception = new TooManyRequestsException({
|
|
1414
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1415
|
+
...deserialized,
|
|
1416
|
+
});
|
|
1417
|
+
return __decorateServiceException(exception, body);
|
|
1418
|
+
};
|
|
1419
|
+
const deserializeAws_json1_1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
1420
|
+
const body = parsedOutput.body;
|
|
1421
|
+
const deserialized = deserializeAws_json1_1ValidationException(body, context);
|
|
1422
|
+
const exception = new ValidationException({
|
|
1423
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1424
|
+
...deserialized,
|
|
1425
|
+
});
|
|
1426
|
+
return __decorateServiceException(exception, body);
|
|
1427
|
+
};
|
|
1428
|
+
const serializeAws_json1_1ComprehendMedicalAsyncJobFilter = (input, context) => {
|
|
1429
|
+
return {
|
|
1430
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
1431
|
+
...(input.JobStatus != null && { JobStatus: input.JobStatus }),
|
|
1432
|
+
...(input.SubmitTimeAfter != null && { SubmitTimeAfter: Math.round(input.SubmitTimeAfter.getTime() / 1000) }),
|
|
1433
|
+
...(input.SubmitTimeBefore != null && { SubmitTimeBefore: Math.round(input.SubmitTimeBefore.getTime() / 1000) }),
|
|
1434
|
+
};
|
|
2115
1435
|
};
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
})), (input.JobName != null && { JobName: input.JobName })), (input.KMSKey != null && { KMSKey: input.KMSKey })), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.OutputDataConfig != null && {
|
|
2121
|
-
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
2122
|
-
}));
|
|
1436
|
+
const serializeAws_json1_1DescribeEntitiesDetectionV2JobRequest = (input, context) => {
|
|
1437
|
+
return {
|
|
1438
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
1439
|
+
};
|
|
2123
1440
|
};
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
})), (input.JobName != null && { JobName: input.JobName })), (input.KMSKey != null && { KMSKey: input.KMSKey })), (input.LanguageCode != null && { LanguageCode: input.LanguageCode })), (input.OutputDataConfig != null && {
|
|
2129
|
-
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
2130
|
-
}));
|
|
1441
|
+
const serializeAws_json1_1DescribeICD10CMInferenceJobRequest = (input, context) => {
|
|
1442
|
+
return {
|
|
1443
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
1444
|
+
};
|
|
2131
1445
|
};
|
|
2132
|
-
|
|
2133
|
-
return
|
|
1446
|
+
const serializeAws_json1_1DescribePHIDetectionJobRequest = (input, context) => {
|
|
1447
|
+
return {
|
|
1448
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
1449
|
+
};
|
|
2134
1450
|
};
|
|
2135
|
-
|
|
2136
|
-
return
|
|
1451
|
+
const serializeAws_json1_1DescribeRxNormInferenceJobRequest = (input, context) => {
|
|
1452
|
+
return {
|
|
1453
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
1454
|
+
};
|
|
2137
1455
|
};
|
|
2138
|
-
|
|
2139
|
-
return
|
|
1456
|
+
const serializeAws_json1_1DescribeSNOMEDCTInferenceJobRequest = (input, context) => {
|
|
1457
|
+
return {
|
|
1458
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
1459
|
+
};
|
|
2140
1460
|
};
|
|
2141
|
-
|
|
2142
|
-
return
|
|
1461
|
+
const serializeAws_json1_1DetectEntitiesRequest = (input, context) => {
|
|
1462
|
+
return {
|
|
1463
|
+
...(input.Text != null && { Text: input.Text }),
|
|
1464
|
+
};
|
|
2143
1465
|
};
|
|
2144
|
-
|
|
2145
|
-
return
|
|
1466
|
+
const serializeAws_json1_1DetectEntitiesV2Request = (input, context) => {
|
|
1467
|
+
return {
|
|
1468
|
+
...(input.Text != null && { Text: input.Text }),
|
|
1469
|
+
};
|
|
2146
1470
|
};
|
|
2147
|
-
|
|
1471
|
+
const serializeAws_json1_1DetectPHIRequest = (input, context) => {
|
|
1472
|
+
return {
|
|
1473
|
+
...(input.Text != null && { Text: input.Text }),
|
|
1474
|
+
};
|
|
1475
|
+
};
|
|
1476
|
+
const serializeAws_json1_1InferICD10CMRequest = (input, context) => {
|
|
1477
|
+
return {
|
|
1478
|
+
...(input.Text != null && { Text: input.Text }),
|
|
1479
|
+
};
|
|
1480
|
+
};
|
|
1481
|
+
const serializeAws_json1_1InferRxNormRequest = (input, context) => {
|
|
1482
|
+
return {
|
|
1483
|
+
...(input.Text != null && { Text: input.Text }),
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
const serializeAws_json1_1InferSNOMEDCTRequest = (input, context) => {
|
|
1487
|
+
return {
|
|
1488
|
+
...(input.Text != null && { Text: input.Text }),
|
|
1489
|
+
};
|
|
1490
|
+
};
|
|
1491
|
+
const serializeAws_json1_1InputDataConfig = (input, context) => {
|
|
1492
|
+
return {
|
|
1493
|
+
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
1494
|
+
...(input.S3Key != null && { S3Key: input.S3Key }),
|
|
1495
|
+
};
|
|
1496
|
+
};
|
|
1497
|
+
const serializeAws_json1_1ListEntitiesDetectionV2JobsRequest = (input, context) => {
|
|
1498
|
+
return {
|
|
1499
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1ComprehendMedicalAsyncJobFilter(input.Filter, context) }),
|
|
1500
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1501
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1502
|
+
};
|
|
1503
|
+
};
|
|
1504
|
+
const serializeAws_json1_1ListICD10CMInferenceJobsRequest = (input, context) => {
|
|
1505
|
+
return {
|
|
1506
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1ComprehendMedicalAsyncJobFilter(input.Filter, context) }),
|
|
1507
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1508
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
const serializeAws_json1_1ListPHIDetectionJobsRequest = (input, context) => {
|
|
1512
|
+
return {
|
|
1513
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1ComprehendMedicalAsyncJobFilter(input.Filter, context) }),
|
|
1514
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1515
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1516
|
+
};
|
|
1517
|
+
};
|
|
1518
|
+
const serializeAws_json1_1ListRxNormInferenceJobsRequest = (input, context) => {
|
|
1519
|
+
return {
|
|
1520
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1ComprehendMedicalAsyncJobFilter(input.Filter, context) }),
|
|
1521
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1522
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1523
|
+
};
|
|
1524
|
+
};
|
|
1525
|
+
const serializeAws_json1_1ListSNOMEDCTInferenceJobsRequest = (input, context) => {
|
|
1526
|
+
return {
|
|
1527
|
+
...(input.Filter != null && { Filter: serializeAws_json1_1ComprehendMedicalAsyncJobFilter(input.Filter, context) }),
|
|
1528
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
1529
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
1530
|
+
};
|
|
1531
|
+
};
|
|
1532
|
+
const serializeAws_json1_1OutputDataConfig = (input, context) => {
|
|
1533
|
+
return {
|
|
1534
|
+
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
1535
|
+
...(input.S3Key != null && { S3Key: input.S3Key }),
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1538
|
+
const serializeAws_json1_1StartEntitiesDetectionV2JobRequest = (input, context) => {
|
|
1539
|
+
return {
|
|
1540
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1541
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1542
|
+
...(input.InputDataConfig != null && {
|
|
1543
|
+
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
1544
|
+
}),
|
|
1545
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
1546
|
+
...(input.KMSKey != null && { KMSKey: input.KMSKey }),
|
|
1547
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
1548
|
+
...(input.OutputDataConfig != null && {
|
|
1549
|
+
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
1550
|
+
}),
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1553
|
+
const serializeAws_json1_1StartICD10CMInferenceJobRequest = (input, context) => {
|
|
1554
|
+
return {
|
|
1555
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1556
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1557
|
+
...(input.InputDataConfig != null && {
|
|
1558
|
+
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
1559
|
+
}),
|
|
1560
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
1561
|
+
...(input.KMSKey != null && { KMSKey: input.KMSKey }),
|
|
1562
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
1563
|
+
...(input.OutputDataConfig != null && {
|
|
1564
|
+
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
1565
|
+
}),
|
|
1566
|
+
};
|
|
1567
|
+
};
|
|
1568
|
+
const serializeAws_json1_1StartPHIDetectionJobRequest = (input, context) => {
|
|
1569
|
+
return {
|
|
1570
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1571
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1572
|
+
...(input.InputDataConfig != null && {
|
|
1573
|
+
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
1574
|
+
}),
|
|
1575
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
1576
|
+
...(input.KMSKey != null && { KMSKey: input.KMSKey }),
|
|
1577
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
1578
|
+
...(input.OutputDataConfig != null && {
|
|
1579
|
+
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
1580
|
+
}),
|
|
1581
|
+
};
|
|
1582
|
+
};
|
|
1583
|
+
const serializeAws_json1_1StartRxNormInferenceJobRequest = (input, context) => {
|
|
1584
|
+
return {
|
|
1585
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1586
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1587
|
+
...(input.InputDataConfig != null && {
|
|
1588
|
+
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
1589
|
+
}),
|
|
1590
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
1591
|
+
...(input.KMSKey != null && { KMSKey: input.KMSKey }),
|
|
1592
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
1593
|
+
...(input.OutputDataConfig != null && {
|
|
1594
|
+
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
1595
|
+
}),
|
|
1596
|
+
};
|
|
1597
|
+
};
|
|
1598
|
+
const serializeAws_json1_1StartSNOMEDCTInferenceJobRequest = (input, context) => {
|
|
1599
|
+
return {
|
|
1600
|
+
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
1601
|
+
...(input.DataAccessRoleArn != null && { DataAccessRoleArn: input.DataAccessRoleArn }),
|
|
1602
|
+
...(input.InputDataConfig != null && {
|
|
1603
|
+
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
1604
|
+
}),
|
|
1605
|
+
...(input.JobName != null && { JobName: input.JobName }),
|
|
1606
|
+
...(input.KMSKey != null && { KMSKey: input.KMSKey }),
|
|
1607
|
+
...(input.LanguageCode != null && { LanguageCode: input.LanguageCode }),
|
|
1608
|
+
...(input.OutputDataConfig != null && {
|
|
1609
|
+
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
1610
|
+
}),
|
|
1611
|
+
};
|
|
1612
|
+
};
|
|
1613
|
+
const serializeAws_json1_1StopEntitiesDetectionV2JobRequest = (input, context) => {
|
|
1614
|
+
return {
|
|
1615
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
1616
|
+
};
|
|
1617
|
+
};
|
|
1618
|
+
const serializeAws_json1_1StopICD10CMInferenceJobRequest = (input, context) => {
|
|
1619
|
+
return {
|
|
1620
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
1621
|
+
};
|
|
1622
|
+
};
|
|
1623
|
+
const serializeAws_json1_1StopPHIDetectionJobRequest = (input, context) => {
|
|
1624
|
+
return {
|
|
1625
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
1626
|
+
};
|
|
1627
|
+
};
|
|
1628
|
+
const serializeAws_json1_1StopRxNormInferenceJobRequest = (input, context) => {
|
|
1629
|
+
return {
|
|
1630
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1633
|
+
const serializeAws_json1_1StopSNOMEDCTInferenceJobRequest = (input, context) => {
|
|
1634
|
+
return {
|
|
1635
|
+
...(input.JobId != null && { JobId: input.JobId }),
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
const deserializeAws_json1_1Attribute = (output, context) => {
|
|
2148
1639
|
return {
|
|
2149
1640
|
BeginOffset: __expectInt32(output.BeginOffset),
|
|
2150
1641
|
Category: __expectString(output.Category),
|
|
@@ -2158,10 +1649,10 @@ var deserializeAws_json1_1Attribute = function (output, context) {
|
|
|
2158
1649
|
Type: __expectString(output.Type),
|
|
2159
1650
|
};
|
|
2160
1651
|
};
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
.filter(
|
|
2164
|
-
.map(
|
|
1652
|
+
const deserializeAws_json1_1AttributeList = (output, context) => {
|
|
1653
|
+
const retVal = (output || [])
|
|
1654
|
+
.filter((e) => e != null)
|
|
1655
|
+
.map((entry) => {
|
|
2165
1656
|
if (entry === null) {
|
|
2166
1657
|
return null;
|
|
2167
1658
|
}
|
|
@@ -2169,12 +1660,12 @@ var deserializeAws_json1_1AttributeList = function (output, context) {
|
|
|
2169
1660
|
});
|
|
2170
1661
|
return retVal;
|
|
2171
1662
|
};
|
|
2172
|
-
|
|
1663
|
+
const deserializeAws_json1_1Characters = (output, context) => {
|
|
2173
1664
|
return {
|
|
2174
1665
|
OriginalTextCharacters: __expectInt32(output.OriginalTextCharacters),
|
|
2175
1666
|
};
|
|
2176
1667
|
};
|
|
2177
|
-
|
|
1668
|
+
const deserializeAws_json1_1ComprehendMedicalAsyncJobProperties = (output, context) => {
|
|
2178
1669
|
return {
|
|
2179
1670
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
2180
1671
|
EndTime: output.EndTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime))) : undefined,
|
|
@@ -2198,10 +1689,10 @@ var deserializeAws_json1_1ComprehendMedicalAsyncJobProperties = function (output
|
|
|
2198
1689
|
SubmitTime: output.SubmitTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.SubmitTime))) : undefined,
|
|
2199
1690
|
};
|
|
2200
1691
|
};
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
.filter(
|
|
2204
|
-
.map(
|
|
1692
|
+
const deserializeAws_json1_1ComprehendMedicalAsyncJobPropertiesList = (output, context) => {
|
|
1693
|
+
const retVal = (output || [])
|
|
1694
|
+
.filter((e) => e != null)
|
|
1695
|
+
.map((entry) => {
|
|
2205
1696
|
if (entry === null) {
|
|
2206
1697
|
return null;
|
|
2207
1698
|
}
|
|
@@ -2209,42 +1700,42 @@ var deserializeAws_json1_1ComprehendMedicalAsyncJobPropertiesList = function (ou
|
|
|
2209
1700
|
});
|
|
2210
1701
|
return retVal;
|
|
2211
1702
|
};
|
|
2212
|
-
|
|
1703
|
+
const deserializeAws_json1_1DescribeEntitiesDetectionV2JobResponse = (output, context) => {
|
|
2213
1704
|
return {
|
|
2214
1705
|
ComprehendMedicalAsyncJobProperties: output.ComprehendMedicalAsyncJobProperties != null
|
|
2215
1706
|
? deserializeAws_json1_1ComprehendMedicalAsyncJobProperties(output.ComprehendMedicalAsyncJobProperties, context)
|
|
2216
1707
|
: undefined,
|
|
2217
1708
|
};
|
|
2218
1709
|
};
|
|
2219
|
-
|
|
1710
|
+
const deserializeAws_json1_1DescribeICD10CMInferenceJobResponse = (output, context) => {
|
|
2220
1711
|
return {
|
|
2221
1712
|
ComprehendMedicalAsyncJobProperties: output.ComprehendMedicalAsyncJobProperties != null
|
|
2222
1713
|
? deserializeAws_json1_1ComprehendMedicalAsyncJobProperties(output.ComprehendMedicalAsyncJobProperties, context)
|
|
2223
1714
|
: undefined,
|
|
2224
1715
|
};
|
|
2225
1716
|
};
|
|
2226
|
-
|
|
1717
|
+
const deserializeAws_json1_1DescribePHIDetectionJobResponse = (output, context) => {
|
|
2227
1718
|
return {
|
|
2228
1719
|
ComprehendMedicalAsyncJobProperties: output.ComprehendMedicalAsyncJobProperties != null
|
|
2229
1720
|
? deserializeAws_json1_1ComprehendMedicalAsyncJobProperties(output.ComprehendMedicalAsyncJobProperties, context)
|
|
2230
1721
|
: undefined,
|
|
2231
1722
|
};
|
|
2232
1723
|
};
|
|
2233
|
-
|
|
1724
|
+
const deserializeAws_json1_1DescribeRxNormInferenceJobResponse = (output, context) => {
|
|
2234
1725
|
return {
|
|
2235
1726
|
ComprehendMedicalAsyncJobProperties: output.ComprehendMedicalAsyncJobProperties != null
|
|
2236
1727
|
? deserializeAws_json1_1ComprehendMedicalAsyncJobProperties(output.ComprehendMedicalAsyncJobProperties, context)
|
|
2237
1728
|
: undefined,
|
|
2238
1729
|
};
|
|
2239
1730
|
};
|
|
2240
|
-
|
|
1731
|
+
const deserializeAws_json1_1DescribeSNOMEDCTInferenceJobResponse = (output, context) => {
|
|
2241
1732
|
return {
|
|
2242
1733
|
ComprehendMedicalAsyncJobProperties: output.ComprehendMedicalAsyncJobProperties != null
|
|
2243
1734
|
? deserializeAws_json1_1ComprehendMedicalAsyncJobProperties(output.ComprehendMedicalAsyncJobProperties, context)
|
|
2244
1735
|
: undefined,
|
|
2245
1736
|
};
|
|
2246
1737
|
};
|
|
2247
|
-
|
|
1738
|
+
const deserializeAws_json1_1DetectEntitiesResponse = (output, context) => {
|
|
2248
1739
|
return {
|
|
2249
1740
|
Entities: output.Entities != null ? deserializeAws_json1_1EntityList(output.Entities, context) : undefined,
|
|
2250
1741
|
ModelVersion: __expectString(output.ModelVersion),
|
|
@@ -2254,7 +1745,7 @@ var deserializeAws_json1_1DetectEntitiesResponse = function (output, context) {
|
|
|
2254
1745
|
: undefined,
|
|
2255
1746
|
};
|
|
2256
1747
|
};
|
|
2257
|
-
|
|
1748
|
+
const deserializeAws_json1_1DetectEntitiesV2Response = (output, context) => {
|
|
2258
1749
|
return {
|
|
2259
1750
|
Entities: output.Entities != null ? deserializeAws_json1_1EntityList(output.Entities, context) : undefined,
|
|
2260
1751
|
ModelVersion: __expectString(output.ModelVersion),
|
|
@@ -2264,14 +1755,14 @@ var deserializeAws_json1_1DetectEntitiesV2Response = function (output, context)
|
|
|
2264
1755
|
: undefined,
|
|
2265
1756
|
};
|
|
2266
1757
|
};
|
|
2267
|
-
|
|
1758
|
+
const deserializeAws_json1_1DetectPHIResponse = (output, context) => {
|
|
2268
1759
|
return {
|
|
2269
1760
|
Entities: output.Entities != null ? deserializeAws_json1_1EntityList(output.Entities, context) : undefined,
|
|
2270
1761
|
ModelVersion: __expectString(output.ModelVersion),
|
|
2271
1762
|
PaginationToken: __expectString(output.PaginationToken),
|
|
2272
1763
|
};
|
|
2273
1764
|
};
|
|
2274
|
-
|
|
1765
|
+
const deserializeAws_json1_1Entity = (output, context) => {
|
|
2275
1766
|
return {
|
|
2276
1767
|
Attributes: output.Attributes != null ? deserializeAws_json1_1AttributeList(output.Attributes, context) : undefined,
|
|
2277
1768
|
BeginOffset: __expectInt32(output.BeginOffset),
|
|
@@ -2284,10 +1775,10 @@ var deserializeAws_json1_1Entity = function (output, context) {
|
|
|
2284
1775
|
Type: __expectString(output.Type),
|
|
2285
1776
|
};
|
|
2286
1777
|
};
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
.filter(
|
|
2290
|
-
.map(
|
|
1778
|
+
const deserializeAws_json1_1EntityList = (output, context) => {
|
|
1779
|
+
const retVal = (output || [])
|
|
1780
|
+
.filter((e) => e != null)
|
|
1781
|
+
.map((entry) => {
|
|
2291
1782
|
if (entry === null) {
|
|
2292
1783
|
return null;
|
|
2293
1784
|
}
|
|
@@ -2295,7 +1786,7 @@ var deserializeAws_json1_1EntityList = function (output, context) {
|
|
|
2295
1786
|
});
|
|
2296
1787
|
return retVal;
|
|
2297
1788
|
};
|
|
2298
|
-
|
|
1789
|
+
const deserializeAws_json1_1ICD10CMAttribute = (output, context) => {
|
|
2299
1790
|
return {
|
|
2300
1791
|
BeginOffset: __expectInt32(output.BeginOffset),
|
|
2301
1792
|
Category: __expectString(output.Category),
|
|
@@ -2309,10 +1800,10 @@ var deserializeAws_json1_1ICD10CMAttribute = function (output, context) {
|
|
|
2309
1800
|
Type: __expectString(output.Type),
|
|
2310
1801
|
};
|
|
2311
1802
|
};
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
.filter(
|
|
2315
|
-
.map(
|
|
1803
|
+
const deserializeAws_json1_1ICD10CMAttributeList = (output, context) => {
|
|
1804
|
+
const retVal = (output || [])
|
|
1805
|
+
.filter((e) => e != null)
|
|
1806
|
+
.map((entry) => {
|
|
2316
1807
|
if (entry === null) {
|
|
2317
1808
|
return null;
|
|
2318
1809
|
}
|
|
@@ -2320,17 +1811,17 @@ var deserializeAws_json1_1ICD10CMAttributeList = function (output, context) {
|
|
|
2320
1811
|
});
|
|
2321
1812
|
return retVal;
|
|
2322
1813
|
};
|
|
2323
|
-
|
|
1814
|
+
const deserializeAws_json1_1ICD10CMConcept = (output, context) => {
|
|
2324
1815
|
return {
|
|
2325
1816
|
Code: __expectString(output.Code),
|
|
2326
1817
|
Description: __expectString(output.Description),
|
|
2327
1818
|
Score: __limitedParseFloat32(output.Score),
|
|
2328
1819
|
};
|
|
2329
1820
|
};
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
.filter(
|
|
2333
|
-
.map(
|
|
1821
|
+
const deserializeAws_json1_1ICD10CMConceptList = (output, context) => {
|
|
1822
|
+
const retVal = (output || [])
|
|
1823
|
+
.filter((e) => e != null)
|
|
1824
|
+
.map((entry) => {
|
|
2334
1825
|
if (entry === null) {
|
|
2335
1826
|
return null;
|
|
2336
1827
|
}
|
|
@@ -2338,7 +1829,7 @@ var deserializeAws_json1_1ICD10CMConceptList = function (output, context) {
|
|
|
2338
1829
|
});
|
|
2339
1830
|
return retVal;
|
|
2340
1831
|
};
|
|
2341
|
-
|
|
1832
|
+
const deserializeAws_json1_1ICD10CMEntity = (output, context) => {
|
|
2342
1833
|
return {
|
|
2343
1834
|
Attributes: output.Attributes != null ? deserializeAws_json1_1ICD10CMAttributeList(output.Attributes, context) : undefined,
|
|
2344
1835
|
BeginOffset: __expectInt32(output.BeginOffset),
|
|
@@ -2354,10 +1845,10 @@ var deserializeAws_json1_1ICD10CMEntity = function (output, context) {
|
|
|
2354
1845
|
Type: __expectString(output.Type),
|
|
2355
1846
|
};
|
|
2356
1847
|
};
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
.filter(
|
|
2360
|
-
.map(
|
|
1848
|
+
const deserializeAws_json1_1ICD10CMEntityList = (output, context) => {
|
|
1849
|
+
const retVal = (output || [])
|
|
1850
|
+
.filter((e) => e != null)
|
|
1851
|
+
.map((entry) => {
|
|
2361
1852
|
if (entry === null) {
|
|
2362
1853
|
return null;
|
|
2363
1854
|
}
|
|
@@ -2365,16 +1856,16 @@ var deserializeAws_json1_1ICD10CMEntityList = function (output, context) {
|
|
|
2365
1856
|
});
|
|
2366
1857
|
return retVal;
|
|
2367
1858
|
};
|
|
2368
|
-
|
|
1859
|
+
const deserializeAws_json1_1ICD10CMTrait = (output, context) => {
|
|
2369
1860
|
return {
|
|
2370
1861
|
Name: __expectString(output.Name),
|
|
2371
1862
|
Score: __limitedParseFloat32(output.Score),
|
|
2372
1863
|
};
|
|
2373
1864
|
};
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
.filter(
|
|
2377
|
-
.map(
|
|
1865
|
+
const deserializeAws_json1_1ICD10CMTraitList = (output, context) => {
|
|
1866
|
+
const retVal = (output || [])
|
|
1867
|
+
.filter((e) => e != null)
|
|
1868
|
+
.map((entry) => {
|
|
2378
1869
|
if (entry === null) {
|
|
2379
1870
|
return null;
|
|
2380
1871
|
}
|
|
@@ -2382,21 +1873,21 @@ var deserializeAws_json1_1ICD10CMTraitList = function (output, context) {
|
|
|
2382
1873
|
});
|
|
2383
1874
|
return retVal;
|
|
2384
1875
|
};
|
|
2385
|
-
|
|
1876
|
+
const deserializeAws_json1_1InferICD10CMResponse = (output, context) => {
|
|
2386
1877
|
return {
|
|
2387
1878
|
Entities: output.Entities != null ? deserializeAws_json1_1ICD10CMEntityList(output.Entities, context) : undefined,
|
|
2388
1879
|
ModelVersion: __expectString(output.ModelVersion),
|
|
2389
1880
|
PaginationToken: __expectString(output.PaginationToken),
|
|
2390
1881
|
};
|
|
2391
1882
|
};
|
|
2392
|
-
|
|
1883
|
+
const deserializeAws_json1_1InferRxNormResponse = (output, context) => {
|
|
2393
1884
|
return {
|
|
2394
1885
|
Entities: output.Entities != null ? deserializeAws_json1_1RxNormEntityList(output.Entities, context) : undefined,
|
|
2395
1886
|
ModelVersion: __expectString(output.ModelVersion),
|
|
2396
1887
|
PaginationToken: __expectString(output.PaginationToken),
|
|
2397
1888
|
};
|
|
2398
1889
|
};
|
|
2399
|
-
|
|
1890
|
+
const deserializeAws_json1_1InferSNOMEDCTResponse = (output, context) => {
|
|
2400
1891
|
return {
|
|
2401
1892
|
Characters: output.Characters != null ? deserializeAws_json1_1Characters(output.Characters, context) : undefined,
|
|
2402
1893
|
Entities: output.Entities != null ? deserializeAws_json1_1SNOMEDCTEntityList(output.Entities, context) : undefined,
|
|
@@ -2407,28 +1898,28 @@ var deserializeAws_json1_1InferSNOMEDCTResponse = function (output, context) {
|
|
|
2407
1898
|
: undefined,
|
|
2408
1899
|
};
|
|
2409
1900
|
};
|
|
2410
|
-
|
|
1901
|
+
const deserializeAws_json1_1InputDataConfig = (output, context) => {
|
|
2411
1902
|
return {
|
|
2412
1903
|
S3Bucket: __expectString(output.S3Bucket),
|
|
2413
1904
|
S3Key: __expectString(output.S3Key),
|
|
2414
1905
|
};
|
|
2415
1906
|
};
|
|
2416
|
-
|
|
1907
|
+
const deserializeAws_json1_1InternalServerException = (output, context) => {
|
|
2417
1908
|
return {
|
|
2418
1909
|
Message: __expectString(output.Message),
|
|
2419
1910
|
};
|
|
2420
1911
|
};
|
|
2421
|
-
|
|
1912
|
+
const deserializeAws_json1_1InvalidEncodingException = (output, context) => {
|
|
2422
1913
|
return {
|
|
2423
1914
|
Message: __expectString(output.Message),
|
|
2424
1915
|
};
|
|
2425
1916
|
};
|
|
2426
|
-
|
|
1917
|
+
const deserializeAws_json1_1InvalidRequestException = (output, context) => {
|
|
2427
1918
|
return {
|
|
2428
1919
|
Message: __expectString(output.Message),
|
|
2429
1920
|
};
|
|
2430
1921
|
};
|
|
2431
|
-
|
|
1922
|
+
const deserializeAws_json1_1ListEntitiesDetectionV2JobsResponse = (output, context) => {
|
|
2432
1923
|
return {
|
|
2433
1924
|
ComprehendMedicalAsyncJobPropertiesList: output.ComprehendMedicalAsyncJobPropertiesList != null
|
|
2434
1925
|
? deserializeAws_json1_1ComprehendMedicalAsyncJobPropertiesList(output.ComprehendMedicalAsyncJobPropertiesList, context)
|
|
@@ -2436,7 +1927,7 @@ var deserializeAws_json1_1ListEntitiesDetectionV2JobsResponse = function (output
|
|
|
2436
1927
|
NextToken: __expectString(output.NextToken),
|
|
2437
1928
|
};
|
|
2438
1929
|
};
|
|
2439
|
-
|
|
1930
|
+
const deserializeAws_json1_1ListICD10CMInferenceJobsResponse = (output, context) => {
|
|
2440
1931
|
return {
|
|
2441
1932
|
ComprehendMedicalAsyncJobPropertiesList: output.ComprehendMedicalAsyncJobPropertiesList != null
|
|
2442
1933
|
? deserializeAws_json1_1ComprehendMedicalAsyncJobPropertiesList(output.ComprehendMedicalAsyncJobPropertiesList, context)
|
|
@@ -2444,7 +1935,7 @@ var deserializeAws_json1_1ListICD10CMInferenceJobsResponse = function (output, c
|
|
|
2444
1935
|
NextToken: __expectString(output.NextToken),
|
|
2445
1936
|
};
|
|
2446
1937
|
};
|
|
2447
|
-
|
|
1938
|
+
const deserializeAws_json1_1ListPHIDetectionJobsResponse = (output, context) => {
|
|
2448
1939
|
return {
|
|
2449
1940
|
ComprehendMedicalAsyncJobPropertiesList: output.ComprehendMedicalAsyncJobPropertiesList != null
|
|
2450
1941
|
? deserializeAws_json1_1ComprehendMedicalAsyncJobPropertiesList(output.ComprehendMedicalAsyncJobPropertiesList, context)
|
|
@@ -2452,7 +1943,7 @@ var deserializeAws_json1_1ListPHIDetectionJobsResponse = function (output, conte
|
|
|
2452
1943
|
NextToken: __expectString(output.NextToken),
|
|
2453
1944
|
};
|
|
2454
1945
|
};
|
|
2455
|
-
|
|
1946
|
+
const deserializeAws_json1_1ListRxNormInferenceJobsResponse = (output, context) => {
|
|
2456
1947
|
return {
|
|
2457
1948
|
ComprehendMedicalAsyncJobPropertiesList: output.ComprehendMedicalAsyncJobPropertiesList != null
|
|
2458
1949
|
? deserializeAws_json1_1ComprehendMedicalAsyncJobPropertiesList(output.ComprehendMedicalAsyncJobPropertiesList, context)
|
|
@@ -2460,7 +1951,7 @@ var deserializeAws_json1_1ListRxNormInferenceJobsResponse = function (output, co
|
|
|
2460
1951
|
NextToken: __expectString(output.NextToken),
|
|
2461
1952
|
};
|
|
2462
1953
|
};
|
|
2463
|
-
|
|
1954
|
+
const deserializeAws_json1_1ListSNOMEDCTInferenceJobsResponse = (output, context) => {
|
|
2464
1955
|
return {
|
|
2465
1956
|
ComprehendMedicalAsyncJobPropertiesList: output.ComprehendMedicalAsyncJobPropertiesList != null
|
|
2466
1957
|
? deserializeAws_json1_1ComprehendMedicalAsyncJobPropertiesList(output.ComprehendMedicalAsyncJobPropertiesList, context)
|
|
@@ -2468,18 +1959,18 @@ var deserializeAws_json1_1ListSNOMEDCTInferenceJobsResponse = function (output,
|
|
|
2468
1959
|
NextToken: __expectString(output.NextToken),
|
|
2469
1960
|
};
|
|
2470
1961
|
};
|
|
2471
|
-
|
|
1962
|
+
const deserializeAws_json1_1OutputDataConfig = (output, context) => {
|
|
2472
1963
|
return {
|
|
2473
1964
|
S3Bucket: __expectString(output.S3Bucket),
|
|
2474
1965
|
S3Key: __expectString(output.S3Key),
|
|
2475
1966
|
};
|
|
2476
1967
|
};
|
|
2477
|
-
|
|
1968
|
+
const deserializeAws_json1_1ResourceNotFoundException = (output, context) => {
|
|
2478
1969
|
return {
|
|
2479
1970
|
Message: __expectString(output.Message),
|
|
2480
1971
|
};
|
|
2481
1972
|
};
|
|
2482
|
-
|
|
1973
|
+
const deserializeAws_json1_1RxNormAttribute = (output, context) => {
|
|
2483
1974
|
return {
|
|
2484
1975
|
BeginOffset: __expectInt32(output.BeginOffset),
|
|
2485
1976
|
EndOffset: __expectInt32(output.EndOffset),
|
|
@@ -2491,10 +1982,10 @@ var deserializeAws_json1_1RxNormAttribute = function (output, context) {
|
|
|
2491
1982
|
Type: __expectString(output.Type),
|
|
2492
1983
|
};
|
|
2493
1984
|
};
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
.filter(
|
|
2497
|
-
.map(
|
|
1985
|
+
const deserializeAws_json1_1RxNormAttributeList = (output, context) => {
|
|
1986
|
+
const retVal = (output || [])
|
|
1987
|
+
.filter((e) => e != null)
|
|
1988
|
+
.map((entry) => {
|
|
2498
1989
|
if (entry === null) {
|
|
2499
1990
|
return null;
|
|
2500
1991
|
}
|
|
@@ -2502,17 +1993,17 @@ var deserializeAws_json1_1RxNormAttributeList = function (output, context) {
|
|
|
2502
1993
|
});
|
|
2503
1994
|
return retVal;
|
|
2504
1995
|
};
|
|
2505
|
-
|
|
1996
|
+
const deserializeAws_json1_1RxNormConcept = (output, context) => {
|
|
2506
1997
|
return {
|
|
2507
1998
|
Code: __expectString(output.Code),
|
|
2508
1999
|
Description: __expectString(output.Description),
|
|
2509
2000
|
Score: __limitedParseFloat32(output.Score),
|
|
2510
2001
|
};
|
|
2511
2002
|
};
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
.filter(
|
|
2515
|
-
.map(
|
|
2003
|
+
const deserializeAws_json1_1RxNormConceptList = (output, context) => {
|
|
2004
|
+
const retVal = (output || [])
|
|
2005
|
+
.filter((e) => e != null)
|
|
2006
|
+
.map((entry) => {
|
|
2516
2007
|
if (entry === null) {
|
|
2517
2008
|
return null;
|
|
2518
2009
|
}
|
|
@@ -2520,7 +2011,7 @@ var deserializeAws_json1_1RxNormConceptList = function (output, context) {
|
|
|
2520
2011
|
});
|
|
2521
2012
|
return retVal;
|
|
2522
2013
|
};
|
|
2523
|
-
|
|
2014
|
+
const deserializeAws_json1_1RxNormEntity = (output, context) => {
|
|
2524
2015
|
return {
|
|
2525
2016
|
Attributes: output.Attributes != null ? deserializeAws_json1_1RxNormAttributeList(output.Attributes, context) : undefined,
|
|
2526
2017
|
BeginOffset: __expectInt32(output.BeginOffset),
|
|
@@ -2536,10 +2027,10 @@ var deserializeAws_json1_1RxNormEntity = function (output, context) {
|
|
|
2536
2027
|
Type: __expectString(output.Type),
|
|
2537
2028
|
};
|
|
2538
2029
|
};
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
.filter(
|
|
2542
|
-
.map(
|
|
2030
|
+
const deserializeAws_json1_1RxNormEntityList = (output, context) => {
|
|
2031
|
+
const retVal = (output || [])
|
|
2032
|
+
.filter((e) => e != null)
|
|
2033
|
+
.map((entry) => {
|
|
2543
2034
|
if (entry === null) {
|
|
2544
2035
|
return null;
|
|
2545
2036
|
}
|
|
@@ -2547,16 +2038,16 @@ var deserializeAws_json1_1RxNormEntityList = function (output, context) {
|
|
|
2547
2038
|
});
|
|
2548
2039
|
return retVal;
|
|
2549
2040
|
};
|
|
2550
|
-
|
|
2041
|
+
const deserializeAws_json1_1RxNormTrait = (output, context) => {
|
|
2551
2042
|
return {
|
|
2552
2043
|
Name: __expectString(output.Name),
|
|
2553
2044
|
Score: __limitedParseFloat32(output.Score),
|
|
2554
2045
|
};
|
|
2555
2046
|
};
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
.filter(
|
|
2559
|
-
.map(
|
|
2047
|
+
const deserializeAws_json1_1RxNormTraitList = (output, context) => {
|
|
2048
|
+
const retVal = (output || [])
|
|
2049
|
+
.filter((e) => e != null)
|
|
2050
|
+
.map((entry) => {
|
|
2560
2051
|
if (entry === null) {
|
|
2561
2052
|
return null;
|
|
2562
2053
|
}
|
|
@@ -2564,12 +2055,12 @@ var deserializeAws_json1_1RxNormTraitList = function (output, context) {
|
|
|
2564
2055
|
});
|
|
2565
2056
|
return retVal;
|
|
2566
2057
|
};
|
|
2567
|
-
|
|
2058
|
+
const deserializeAws_json1_1ServiceUnavailableException = (output, context) => {
|
|
2568
2059
|
return {
|
|
2569
2060
|
Message: __expectString(output.Message),
|
|
2570
2061
|
};
|
|
2571
2062
|
};
|
|
2572
|
-
|
|
2063
|
+
const deserializeAws_json1_1SNOMEDCTAttribute = (output, context) => {
|
|
2573
2064
|
return {
|
|
2574
2065
|
BeginOffset: __expectInt32(output.BeginOffset),
|
|
2575
2066
|
Category: __expectString(output.Category),
|
|
@@ -2586,10 +2077,10 @@ var deserializeAws_json1_1SNOMEDCTAttribute = function (output, context) {
|
|
|
2586
2077
|
Type: __expectString(output.Type),
|
|
2587
2078
|
};
|
|
2588
2079
|
};
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
.filter(
|
|
2592
|
-
.map(
|
|
2080
|
+
const deserializeAws_json1_1SNOMEDCTAttributeList = (output, context) => {
|
|
2081
|
+
const retVal = (output || [])
|
|
2082
|
+
.filter((e) => e != null)
|
|
2083
|
+
.map((entry) => {
|
|
2593
2084
|
if (entry === null) {
|
|
2594
2085
|
return null;
|
|
2595
2086
|
}
|
|
@@ -2597,17 +2088,17 @@ var deserializeAws_json1_1SNOMEDCTAttributeList = function (output, context) {
|
|
|
2597
2088
|
});
|
|
2598
2089
|
return retVal;
|
|
2599
2090
|
};
|
|
2600
|
-
|
|
2091
|
+
const deserializeAws_json1_1SNOMEDCTConcept = (output, context) => {
|
|
2601
2092
|
return {
|
|
2602
2093
|
Code: __expectString(output.Code),
|
|
2603
2094
|
Description: __expectString(output.Description),
|
|
2604
2095
|
Score: __limitedParseFloat32(output.Score),
|
|
2605
2096
|
};
|
|
2606
2097
|
};
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
.filter(
|
|
2610
|
-
.map(
|
|
2098
|
+
const deserializeAws_json1_1SNOMEDCTConceptList = (output, context) => {
|
|
2099
|
+
const retVal = (output || [])
|
|
2100
|
+
.filter((e) => e != null)
|
|
2101
|
+
.map((entry) => {
|
|
2611
2102
|
if (entry === null) {
|
|
2612
2103
|
return null;
|
|
2613
2104
|
}
|
|
@@ -2615,14 +2106,14 @@ var deserializeAws_json1_1SNOMEDCTConceptList = function (output, context) {
|
|
|
2615
2106
|
});
|
|
2616
2107
|
return retVal;
|
|
2617
2108
|
};
|
|
2618
|
-
|
|
2109
|
+
const deserializeAws_json1_1SNOMEDCTDetails = (output, context) => {
|
|
2619
2110
|
return {
|
|
2620
2111
|
Edition: __expectString(output.Edition),
|
|
2621
2112
|
Language: __expectString(output.Language),
|
|
2622
2113
|
VersionDate: __expectString(output.VersionDate),
|
|
2623
2114
|
};
|
|
2624
2115
|
};
|
|
2625
|
-
|
|
2116
|
+
const deserializeAws_json1_1SNOMEDCTEntity = (output, context) => {
|
|
2626
2117
|
return {
|
|
2627
2118
|
Attributes: output.Attributes != null ? deserializeAws_json1_1SNOMEDCTAttributeList(output.Attributes, context) : undefined,
|
|
2628
2119
|
BeginOffset: __expectInt32(output.BeginOffset),
|
|
@@ -2638,10 +2129,10 @@ var deserializeAws_json1_1SNOMEDCTEntity = function (output, context) {
|
|
|
2638
2129
|
Type: __expectString(output.Type),
|
|
2639
2130
|
};
|
|
2640
2131
|
};
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
.filter(
|
|
2644
|
-
.map(
|
|
2132
|
+
const deserializeAws_json1_1SNOMEDCTEntityList = (output, context) => {
|
|
2133
|
+
const retVal = (output || [])
|
|
2134
|
+
.filter((e) => e != null)
|
|
2135
|
+
.map((entry) => {
|
|
2645
2136
|
if (entry === null) {
|
|
2646
2137
|
return null;
|
|
2647
2138
|
}
|
|
@@ -2649,16 +2140,16 @@ var deserializeAws_json1_1SNOMEDCTEntityList = function (output, context) {
|
|
|
2649
2140
|
});
|
|
2650
2141
|
return retVal;
|
|
2651
2142
|
};
|
|
2652
|
-
|
|
2143
|
+
const deserializeAws_json1_1SNOMEDCTTrait = (output, context) => {
|
|
2653
2144
|
return {
|
|
2654
2145
|
Name: __expectString(output.Name),
|
|
2655
2146
|
Score: __limitedParseFloat32(output.Score),
|
|
2656
2147
|
};
|
|
2657
2148
|
};
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
.filter(
|
|
2661
|
-
.map(
|
|
2149
|
+
const deserializeAws_json1_1SNOMEDCTTraitList = (output, context) => {
|
|
2150
|
+
const retVal = (output || [])
|
|
2151
|
+
.filter((e) => e != null)
|
|
2152
|
+
.map((entry) => {
|
|
2662
2153
|
if (entry === null) {
|
|
2663
2154
|
return null;
|
|
2664
2155
|
}
|
|
@@ -2666,76 +2157,76 @@ var deserializeAws_json1_1SNOMEDCTTraitList = function (output, context) {
|
|
|
2666
2157
|
});
|
|
2667
2158
|
return retVal;
|
|
2668
2159
|
};
|
|
2669
|
-
|
|
2160
|
+
const deserializeAws_json1_1StartEntitiesDetectionV2JobResponse = (output, context) => {
|
|
2670
2161
|
return {
|
|
2671
2162
|
JobId: __expectString(output.JobId),
|
|
2672
2163
|
};
|
|
2673
2164
|
};
|
|
2674
|
-
|
|
2165
|
+
const deserializeAws_json1_1StartICD10CMInferenceJobResponse = (output, context) => {
|
|
2675
2166
|
return {
|
|
2676
2167
|
JobId: __expectString(output.JobId),
|
|
2677
2168
|
};
|
|
2678
2169
|
};
|
|
2679
|
-
|
|
2170
|
+
const deserializeAws_json1_1StartPHIDetectionJobResponse = (output, context) => {
|
|
2680
2171
|
return {
|
|
2681
2172
|
JobId: __expectString(output.JobId),
|
|
2682
2173
|
};
|
|
2683
2174
|
};
|
|
2684
|
-
|
|
2175
|
+
const deserializeAws_json1_1StartRxNormInferenceJobResponse = (output, context) => {
|
|
2685
2176
|
return {
|
|
2686
2177
|
JobId: __expectString(output.JobId),
|
|
2687
2178
|
};
|
|
2688
2179
|
};
|
|
2689
|
-
|
|
2180
|
+
const deserializeAws_json1_1StartSNOMEDCTInferenceJobResponse = (output, context) => {
|
|
2690
2181
|
return {
|
|
2691
2182
|
JobId: __expectString(output.JobId),
|
|
2692
2183
|
};
|
|
2693
2184
|
};
|
|
2694
|
-
|
|
2185
|
+
const deserializeAws_json1_1StopEntitiesDetectionV2JobResponse = (output, context) => {
|
|
2695
2186
|
return {
|
|
2696
2187
|
JobId: __expectString(output.JobId),
|
|
2697
2188
|
};
|
|
2698
2189
|
};
|
|
2699
|
-
|
|
2190
|
+
const deserializeAws_json1_1StopICD10CMInferenceJobResponse = (output, context) => {
|
|
2700
2191
|
return {
|
|
2701
2192
|
JobId: __expectString(output.JobId),
|
|
2702
2193
|
};
|
|
2703
2194
|
};
|
|
2704
|
-
|
|
2195
|
+
const deserializeAws_json1_1StopPHIDetectionJobResponse = (output, context) => {
|
|
2705
2196
|
return {
|
|
2706
2197
|
JobId: __expectString(output.JobId),
|
|
2707
2198
|
};
|
|
2708
2199
|
};
|
|
2709
|
-
|
|
2200
|
+
const deserializeAws_json1_1StopRxNormInferenceJobResponse = (output, context) => {
|
|
2710
2201
|
return {
|
|
2711
2202
|
JobId: __expectString(output.JobId),
|
|
2712
2203
|
};
|
|
2713
2204
|
};
|
|
2714
|
-
|
|
2205
|
+
const deserializeAws_json1_1StopSNOMEDCTInferenceJobResponse = (output, context) => {
|
|
2715
2206
|
return {
|
|
2716
2207
|
JobId: __expectString(output.JobId),
|
|
2717
2208
|
};
|
|
2718
2209
|
};
|
|
2719
|
-
|
|
2210
|
+
const deserializeAws_json1_1TextSizeLimitExceededException = (output, context) => {
|
|
2720
2211
|
return {
|
|
2721
2212
|
Message: __expectString(output.Message),
|
|
2722
2213
|
};
|
|
2723
2214
|
};
|
|
2724
|
-
|
|
2215
|
+
const deserializeAws_json1_1TooManyRequestsException = (output, context) => {
|
|
2725
2216
|
return {
|
|
2726
2217
|
Message: __expectString(output.Message),
|
|
2727
2218
|
};
|
|
2728
2219
|
};
|
|
2729
|
-
|
|
2220
|
+
const deserializeAws_json1_1Trait = (output, context) => {
|
|
2730
2221
|
return {
|
|
2731
2222
|
Name: __expectString(output.Name),
|
|
2732
2223
|
Score: __limitedParseFloat32(output.Score),
|
|
2733
2224
|
};
|
|
2734
2225
|
};
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
.filter(
|
|
2738
|
-
.map(
|
|
2226
|
+
const deserializeAws_json1_1TraitList = (output, context) => {
|
|
2227
|
+
const retVal = (output || [])
|
|
2228
|
+
.filter((e) => e != null)
|
|
2229
|
+
.map((entry) => {
|
|
2739
2230
|
if (entry === null) {
|
|
2740
2231
|
return null;
|
|
2741
2232
|
}
|
|
@@ -2743,16 +2234,16 @@ var deserializeAws_json1_1TraitList = function (output, context) {
|
|
|
2743
2234
|
});
|
|
2744
2235
|
return retVal;
|
|
2745
2236
|
};
|
|
2746
|
-
|
|
2237
|
+
const deserializeAws_json1_1UnmappedAttribute = (output, context) => {
|
|
2747
2238
|
return {
|
|
2748
2239
|
Attribute: output.Attribute != null ? deserializeAws_json1_1Attribute(output.Attribute, context) : undefined,
|
|
2749
2240
|
Type: __expectString(output.Type),
|
|
2750
2241
|
};
|
|
2751
2242
|
};
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
.filter(
|
|
2755
|
-
.map(
|
|
2243
|
+
const deserializeAws_json1_1UnmappedAttributeList = (output, context) => {
|
|
2244
|
+
const retVal = (output || [])
|
|
2245
|
+
.filter((e) => e != null)
|
|
2246
|
+
.map((entry) => {
|
|
2756
2247
|
if (entry === null) {
|
|
2757
2248
|
return null;
|
|
2758
2249
|
}
|
|
@@ -2760,67 +2251,57 @@ var deserializeAws_json1_1UnmappedAttributeList = function (output, context) {
|
|
|
2760
2251
|
});
|
|
2761
2252
|
return retVal;
|
|
2762
2253
|
};
|
|
2763
|
-
|
|
2254
|
+
const deserializeAws_json1_1ValidationException = (output, context) => {
|
|
2764
2255
|
return {
|
|
2765
2256
|
Message: __expectString(output.Message),
|
|
2766
2257
|
};
|
|
2767
2258
|
};
|
|
2768
|
-
|
|
2769
|
-
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
});
|
|
2776
|
-
};
|
|
2777
|
-
var collectBody = function (streamBody, context) {
|
|
2778
|
-
if (streamBody === void 0) { streamBody = new Uint8Array(); }
|
|
2259
|
+
const deserializeMetadata = (output) => ({
|
|
2260
|
+
httpStatusCode: output.statusCode,
|
|
2261
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"],
|
|
2262
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2263
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
2264
|
+
});
|
|
2265
|
+
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2779
2266
|
if (streamBody instanceof Uint8Array) {
|
|
2780
2267
|
return Promise.resolve(streamBody);
|
|
2781
2268
|
}
|
|
2782
2269
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2783
2270
|
};
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
};
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
if (resolvedHostname !== undefined) {
|
|
2803
|
-
contents.hostname = resolvedHostname;
|
|
2804
|
-
}
|
|
2805
|
-
if (body !== undefined) {
|
|
2806
|
-
contents.body = body;
|
|
2807
|
-
}
|
|
2808
|
-
return [2, new __HttpRequest(contents)];
|
|
2809
|
-
}
|
|
2810
|
-
});
|
|
2811
|
-
}); };
|
|
2812
|
-
var parseBody = function (streamBody, context) {
|
|
2813
|
-
return collectBodyString(streamBody, context).then(function (encoded) {
|
|
2814
|
-
if (encoded.length) {
|
|
2815
|
-
return JSON.parse(encoded);
|
|
2816
|
-
}
|
|
2817
|
-
return {};
|
|
2818
|
-
});
|
|
2271
|
+
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2272
|
+
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2273
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2274
|
+
const contents = {
|
|
2275
|
+
protocol,
|
|
2276
|
+
hostname,
|
|
2277
|
+
port,
|
|
2278
|
+
method: "POST",
|
|
2279
|
+
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
2280
|
+
headers,
|
|
2281
|
+
};
|
|
2282
|
+
if (resolvedHostname !== undefined) {
|
|
2283
|
+
contents.hostname = resolvedHostname;
|
|
2284
|
+
}
|
|
2285
|
+
if (body !== undefined) {
|
|
2286
|
+
contents.body = body;
|
|
2287
|
+
}
|
|
2288
|
+
return new __HttpRequest(contents);
|
|
2819
2289
|
};
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2290
|
+
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2291
|
+
if (encoded.length) {
|
|
2292
|
+
return JSON.parse(encoded);
|
|
2293
|
+
}
|
|
2294
|
+
return {};
|
|
2295
|
+
});
|
|
2296
|
+
const parseErrorBody = async (errorBody, context) => {
|
|
2297
|
+
const value = await parseBody(errorBody, context);
|
|
2298
|
+
value.message = value.message ?? value.Message;
|
|
2299
|
+
return value;
|
|
2300
|
+
};
|
|
2301
|
+
const loadRestJsonErrorCode = (output, data) => {
|
|
2302
|
+
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2303
|
+
const sanitizeErrorCode = (rawValue) => {
|
|
2304
|
+
let cleanValue = rawValue;
|
|
2824
2305
|
if (typeof cleanValue === "number") {
|
|
2825
2306
|
cleanValue = cleanValue.toString();
|
|
2826
2307
|
}
|
|
@@ -2835,7 +2316,7 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
2835
2316
|
}
|
|
2836
2317
|
return cleanValue;
|
|
2837
2318
|
};
|
|
2838
|
-
|
|
2319
|
+
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2839
2320
|
if (headerKey !== undefined) {
|
|
2840
2321
|
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2841
2322
|
}
|