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