@aws-sdk/client-comprehendmedical 3.40.0 → 3.45.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 +38 -0
- package/README.md +1 -1
- package/dist-cjs/ComprehendMedical.js +75 -0
- package/dist-cjs/commands/DescribeSNOMEDCTInferenceJobCommand.js +36 -0
- package/dist-cjs/commands/InferSNOMEDCTCommand.js +36 -0
- package/dist-cjs/commands/ListSNOMEDCTInferenceJobsCommand.js +36 -0
- package/dist-cjs/commands/StartSNOMEDCTInferenceJobCommand.js +36 -0
- package/dist-cjs/commands/StopSNOMEDCTInferenceJobCommand.js +36 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/endpoints.js +9 -0
- package/dist-cjs/models/models_0.js +142 -2
- package/dist-cjs/protocols/Aws_json1_1.js +646 -37
- package/dist-es/ComprehendMedical.js +75 -0
- package/dist-es/commands/DescribeSNOMEDCTInferenceJobCommand.js +39 -0
- package/dist-es/commands/InferSNOMEDCTCommand.js +39 -0
- package/dist-es/commands/ListSNOMEDCTInferenceJobsCommand.js +39 -0
- package/dist-es/commands/StartSNOMEDCTInferenceJobCommand.js +39 -0
- package/dist-es/commands/StopSNOMEDCTInferenceJobCommand.js +39 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/endpoints.js +9 -0
- package/dist-es/models/models_0.js +107 -0
- package/dist-es/protocols/Aws_json1_1.js +667 -27
- package/dist-types/ComprehendMedical.d.ts +45 -1
- package/dist-types/ComprehendMedicalClient.d.ts +8 -3
- package/dist-types/commands/DescribeEntitiesDetectionV2JobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeICD10CMInferenceJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribePHIDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeRxNormInferenceJobCommand.d.ts +1 -1
- package/dist-types/commands/DescribeSNOMEDCTInferenceJobCommand.d.ts +37 -0
- package/dist-types/commands/DetectEntitiesCommand.d.ts +1 -1
- package/dist-types/commands/DetectEntitiesV2Command.d.ts +1 -1
- package/dist-types/commands/DetectPHICommand.d.ts +1 -1
- package/dist-types/commands/InferICD10CMCommand.d.ts +1 -1
- package/dist-types/commands/InferRxNormCommand.d.ts +1 -1
- package/dist-types/commands/InferSNOMEDCTCommand.d.ts +36 -0
- package/dist-types/commands/ListEntitiesDetectionV2JobsCommand.d.ts +1 -1
- package/dist-types/commands/ListICD10CMInferenceJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListPHIDetectionJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListRxNormInferenceJobsCommand.d.ts +1 -1
- package/dist-types/commands/ListSNOMEDCTInferenceJobsCommand.d.ts +37 -0
- package/dist-types/commands/StartEntitiesDetectionV2JobCommand.d.ts +1 -1
- package/dist-types/commands/StartICD10CMInferenceJobCommand.d.ts +1 -1
- package/dist-types/commands/StartPHIDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StartRxNormInferenceJobCommand.d.ts +1 -1
- package/dist-types/commands/StartSNOMEDCTInferenceJobCommand.d.ts +37 -0
- package/dist-types/commands/StopEntitiesDetectionV2JobCommand.d.ts +1 -1
- package/dist-types/commands/StopICD10CMInferenceJobCommand.d.ts +1 -1
- package/dist-types/commands/StopPHIDetectionJobCommand.d.ts +1 -1
- package/dist-types/commands/StopRxNormInferenceJobCommand.d.ts +1 -1
- package/dist-types/commands/StopSNOMEDCTInferenceJobCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +533 -26
- package/dist-types/protocols/Aws_json1_1.d.ts +15 -0
- package/dist-types/ts3.4/ComprehendMedical.d.ts +25 -0
- package/dist-types/ts3.4/ComprehendMedicalClient.d.ts +7 -2
- package/dist-types/ts3.4/commands/DescribeSNOMEDCTInferenceJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/InferSNOMEDCTCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListSNOMEDCTInferenceJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartSNOMEDCTInferenceJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopSNOMEDCTInferenceJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +246 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +15 -0
- package/package.json +6 -6
|
@@ -46,6 +46,17 @@ export var serializeAws_json1_1DescribeRxNormInferenceJobCommand = function (inp
|
|
|
46
46
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
47
47
|
});
|
|
48
48
|
}); };
|
|
49
|
+
export var serializeAws_json1_1DescribeSNOMEDCTInferenceJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
50
|
+
var headers, body;
|
|
51
|
+
return __generator(this, function (_a) {
|
|
52
|
+
headers = {
|
|
53
|
+
"content-type": "application/x-amz-json-1.1",
|
|
54
|
+
"x-amz-target": "ComprehendMedical_20181030.DescribeSNOMEDCTInferenceJob",
|
|
55
|
+
};
|
|
56
|
+
body = JSON.stringify(serializeAws_json1_1DescribeSNOMEDCTInferenceJobRequest(input, context));
|
|
57
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
58
|
+
});
|
|
59
|
+
}); };
|
|
49
60
|
export var serializeAws_json1_1DetectEntitiesCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
50
61
|
var headers, body;
|
|
51
62
|
return __generator(this, function (_a) {
|
|
@@ -101,6 +112,17 @@ export var serializeAws_json1_1InferRxNormCommand = function (input, context) {
|
|
|
101
112
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
102
113
|
});
|
|
103
114
|
}); };
|
|
115
|
+
export var serializeAws_json1_1InferSNOMEDCTCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
116
|
+
var headers, body;
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
headers = {
|
|
119
|
+
"content-type": "application/x-amz-json-1.1",
|
|
120
|
+
"x-amz-target": "ComprehendMedical_20181030.InferSNOMEDCT",
|
|
121
|
+
};
|
|
122
|
+
body = JSON.stringify(serializeAws_json1_1InferSNOMEDCTRequest(input, context));
|
|
123
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
124
|
+
});
|
|
125
|
+
}); };
|
|
104
126
|
export var serializeAws_json1_1ListEntitiesDetectionV2JobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
105
127
|
var headers, body;
|
|
106
128
|
return __generator(this, function (_a) {
|
|
@@ -145,6 +167,17 @@ export var serializeAws_json1_1ListRxNormInferenceJobsCommand = function (input,
|
|
|
145
167
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
146
168
|
});
|
|
147
169
|
}); };
|
|
170
|
+
export var serializeAws_json1_1ListSNOMEDCTInferenceJobsCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
171
|
+
var headers, body;
|
|
172
|
+
return __generator(this, function (_a) {
|
|
173
|
+
headers = {
|
|
174
|
+
"content-type": "application/x-amz-json-1.1",
|
|
175
|
+
"x-amz-target": "ComprehendMedical_20181030.ListSNOMEDCTInferenceJobs",
|
|
176
|
+
};
|
|
177
|
+
body = JSON.stringify(serializeAws_json1_1ListSNOMEDCTInferenceJobsRequest(input, context));
|
|
178
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
179
|
+
});
|
|
180
|
+
}); };
|
|
148
181
|
export var serializeAws_json1_1StartEntitiesDetectionV2JobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
149
182
|
var headers, body;
|
|
150
183
|
return __generator(this, function (_a) {
|
|
@@ -189,6 +222,17 @@ export var serializeAws_json1_1StartRxNormInferenceJobCommand = function (input,
|
|
|
189
222
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
190
223
|
});
|
|
191
224
|
}); };
|
|
225
|
+
export var serializeAws_json1_1StartSNOMEDCTInferenceJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
226
|
+
var headers, body;
|
|
227
|
+
return __generator(this, function (_a) {
|
|
228
|
+
headers = {
|
|
229
|
+
"content-type": "application/x-amz-json-1.1",
|
|
230
|
+
"x-amz-target": "ComprehendMedical_20181030.StartSNOMEDCTInferenceJob",
|
|
231
|
+
};
|
|
232
|
+
body = JSON.stringify(serializeAws_json1_1StartSNOMEDCTInferenceJobRequest(input, context));
|
|
233
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
234
|
+
});
|
|
235
|
+
}); };
|
|
192
236
|
export var serializeAws_json1_1StopEntitiesDetectionV2JobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
193
237
|
var headers, body;
|
|
194
238
|
return __generator(this, function (_a) {
|
|
@@ -233,6 +277,17 @@ export var serializeAws_json1_1StopRxNormInferenceJobCommand = function (input,
|
|
|
233
277
|
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
234
278
|
});
|
|
235
279
|
}); };
|
|
280
|
+
export var serializeAws_json1_1StopSNOMEDCTInferenceJobCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
281
|
+
var headers, body;
|
|
282
|
+
return __generator(this, function (_a) {
|
|
283
|
+
headers = {
|
|
284
|
+
"content-type": "application/x-amz-json-1.1",
|
|
285
|
+
"x-amz-target": "ComprehendMedical_20181030.StopSNOMEDCTInferenceJob",
|
|
286
|
+
};
|
|
287
|
+
body = JSON.stringify(serializeAws_json1_1StopSNOMEDCTInferenceJobRequest(input, context));
|
|
288
|
+
return [2, buildHttpRpcRequest(context, headers, "/", undefined, body)];
|
|
289
|
+
});
|
|
290
|
+
}); };
|
|
236
291
|
export var deserializeAws_json1_1DescribeEntitiesDetectionV2JobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
237
292
|
var data, contents, response;
|
|
238
293
|
return __generator(this, function (_a) {
|
|
@@ -553,6 +608,86 @@ var deserializeAws_json1_1DescribeRxNormInferenceJobCommandError = function (out
|
|
|
553
608
|
}
|
|
554
609
|
});
|
|
555
610
|
}); };
|
|
611
|
+
export var deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
612
|
+
var data, contents, response;
|
|
613
|
+
return __generator(this, function (_a) {
|
|
614
|
+
switch (_a.label) {
|
|
615
|
+
case 0:
|
|
616
|
+
if (output.statusCode >= 300) {
|
|
617
|
+
return [2, deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommandError(output, context)];
|
|
618
|
+
}
|
|
619
|
+
return [4, parseBody(output.body, context)];
|
|
620
|
+
case 1:
|
|
621
|
+
data = _a.sent();
|
|
622
|
+
contents = {};
|
|
623
|
+
contents = deserializeAws_json1_1DescribeSNOMEDCTInferenceJobResponse(data, context);
|
|
624
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
625
|
+
return [2, Promise.resolve(response)];
|
|
626
|
+
}
|
|
627
|
+
});
|
|
628
|
+
}); };
|
|
629
|
+
var deserializeAws_json1_1DescribeSNOMEDCTInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
630
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
631
|
+
var _g;
|
|
632
|
+
return __generator(this, function (_h) {
|
|
633
|
+
switch (_h.label) {
|
|
634
|
+
case 0:
|
|
635
|
+
_a = [__assign({}, output)];
|
|
636
|
+
_g = {};
|
|
637
|
+
return [4, parseBody(output.body, context)];
|
|
638
|
+
case 1:
|
|
639
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
640
|
+
errorCode = "UnknownError";
|
|
641
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
642
|
+
_b = errorCode;
|
|
643
|
+
switch (_b) {
|
|
644
|
+
case "InternalServerException": return [3, 2];
|
|
645
|
+
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
646
|
+
case "InvalidRequestException": return [3, 4];
|
|
647
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
648
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
649
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
650
|
+
case "TooManyRequestsException": return [3, 8];
|
|
651
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
652
|
+
}
|
|
653
|
+
return [3, 10];
|
|
654
|
+
case 2:
|
|
655
|
+
_c = [{}];
|
|
656
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
657
|
+
case 3:
|
|
658
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
659
|
+
return [3, 11];
|
|
660
|
+
case 4:
|
|
661
|
+
_d = [{}];
|
|
662
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
663
|
+
case 5:
|
|
664
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
665
|
+
return [3, 11];
|
|
666
|
+
case 6:
|
|
667
|
+
_e = [{}];
|
|
668
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
669
|
+
case 7:
|
|
670
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
671
|
+
return [3, 11];
|
|
672
|
+
case 8:
|
|
673
|
+
_f = [{}];
|
|
674
|
+
return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
675
|
+
case 9:
|
|
676
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
677
|
+
return [3, 11];
|
|
678
|
+
case 10:
|
|
679
|
+
parsedBody = parsedOutput.body;
|
|
680
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
681
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
682
|
+
_h.label = 11;
|
|
683
|
+
case 11:
|
|
684
|
+
message = response.message || response.Message || errorCode;
|
|
685
|
+
response.message = message;
|
|
686
|
+
delete response.Message;
|
|
687
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
688
|
+
}
|
|
689
|
+
});
|
|
690
|
+
}); };
|
|
556
691
|
export var deserializeAws_json1_1DetectEntitiesCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
557
692
|
var data, contents, response;
|
|
558
693
|
return __generator(this, function (_a) {
|
|
@@ -1033,6 +1168,102 @@ var deserializeAws_json1_1InferRxNormCommandError = function (output, context) {
|
|
|
1033
1168
|
}
|
|
1034
1169
|
});
|
|
1035
1170
|
}); };
|
|
1171
|
+
export var deserializeAws_json1_1InferSNOMEDCTCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1172
|
+
var data, contents, response;
|
|
1173
|
+
return __generator(this, function (_a) {
|
|
1174
|
+
switch (_a.label) {
|
|
1175
|
+
case 0:
|
|
1176
|
+
if (output.statusCode >= 300) {
|
|
1177
|
+
return [2, deserializeAws_json1_1InferSNOMEDCTCommandError(output, context)];
|
|
1178
|
+
}
|
|
1179
|
+
return [4, parseBody(output.body, context)];
|
|
1180
|
+
case 1:
|
|
1181
|
+
data = _a.sent();
|
|
1182
|
+
contents = {};
|
|
1183
|
+
contents = deserializeAws_json1_1InferSNOMEDCTResponse(data, context);
|
|
1184
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1185
|
+
return [2, Promise.resolve(response)];
|
|
1186
|
+
}
|
|
1187
|
+
});
|
|
1188
|
+
}); };
|
|
1189
|
+
var deserializeAws_json1_1InferSNOMEDCTCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1190
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, _g, _h, parsedBody, message;
|
|
1191
|
+
var _j;
|
|
1192
|
+
return __generator(this, function (_k) {
|
|
1193
|
+
switch (_k.label) {
|
|
1194
|
+
case 0:
|
|
1195
|
+
_a = [__assign({}, output)];
|
|
1196
|
+
_j = {};
|
|
1197
|
+
return [4, parseBody(output.body, context)];
|
|
1198
|
+
case 1:
|
|
1199
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_j.body = _k.sent(), _j)]));
|
|
1200
|
+
errorCode = "UnknownError";
|
|
1201
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1202
|
+
_b = errorCode;
|
|
1203
|
+
switch (_b) {
|
|
1204
|
+
case "InternalServerException": return [3, 2];
|
|
1205
|
+
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1206
|
+
case "InvalidEncodingException": return [3, 4];
|
|
1207
|
+
case "com.amazonaws.comprehendmedical#InvalidEncodingException": return [3, 4];
|
|
1208
|
+
case "InvalidRequestException": return [3, 6];
|
|
1209
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 6];
|
|
1210
|
+
case "ServiceUnavailableException": return [3, 8];
|
|
1211
|
+
case "com.amazonaws.comprehendmedical#ServiceUnavailableException": return [3, 8];
|
|
1212
|
+
case "TextSizeLimitExceededException": return [3, 10];
|
|
1213
|
+
case "com.amazonaws.comprehendmedical#TextSizeLimitExceededException": return [3, 10];
|
|
1214
|
+
case "TooManyRequestsException": return [3, 12];
|
|
1215
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 12];
|
|
1216
|
+
}
|
|
1217
|
+
return [3, 14];
|
|
1218
|
+
case 2:
|
|
1219
|
+
_c = [{}];
|
|
1220
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1221
|
+
case 3:
|
|
1222
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1223
|
+
return [3, 15];
|
|
1224
|
+
case 4:
|
|
1225
|
+
_d = [{}];
|
|
1226
|
+
return [4, deserializeAws_json1_1InvalidEncodingExceptionResponse(parsedOutput, context)];
|
|
1227
|
+
case 5:
|
|
1228
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1229
|
+
return [3, 15];
|
|
1230
|
+
case 6:
|
|
1231
|
+
_e = [{}];
|
|
1232
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1233
|
+
case 7:
|
|
1234
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1235
|
+
return [3, 15];
|
|
1236
|
+
case 8:
|
|
1237
|
+
_f = [{}];
|
|
1238
|
+
return [4, deserializeAws_json1_1ServiceUnavailableExceptionResponse(parsedOutput, context)];
|
|
1239
|
+
case 9:
|
|
1240
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1241
|
+
return [3, 15];
|
|
1242
|
+
case 10:
|
|
1243
|
+
_g = [{}];
|
|
1244
|
+
return [4, deserializeAws_json1_1TextSizeLimitExceededExceptionResponse(parsedOutput, context)];
|
|
1245
|
+
case 11:
|
|
1246
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _g.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1247
|
+
return [3, 15];
|
|
1248
|
+
case 12:
|
|
1249
|
+
_h = [{}];
|
|
1250
|
+
return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1251
|
+
case 13:
|
|
1252
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _h.concat([(_k.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1253
|
+
return [3, 15];
|
|
1254
|
+
case 14:
|
|
1255
|
+
parsedBody = parsedOutput.body;
|
|
1256
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1257
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1258
|
+
_k.label = 15;
|
|
1259
|
+
case 15:
|
|
1260
|
+
message = response.message || response.Message || errorCode;
|
|
1261
|
+
response.message = message;
|
|
1262
|
+
delete response.Message;
|
|
1263
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1264
|
+
}
|
|
1265
|
+
});
|
|
1266
|
+
}); };
|
|
1036
1267
|
export var deserializeAws_json1_1ListEntitiesDetectionV2JobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1037
1268
|
var data, contents, response;
|
|
1038
1269
|
return __generator(this, function (_a) {
|
|
@@ -1353,25 +1584,25 @@ var deserializeAws_json1_1ListRxNormInferenceJobsCommandError = function (output
|
|
|
1353
1584
|
}
|
|
1354
1585
|
});
|
|
1355
1586
|
}); };
|
|
1356
|
-
export var
|
|
1587
|
+
export var deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1357
1588
|
var data, contents, response;
|
|
1358
1589
|
return __generator(this, function (_a) {
|
|
1359
1590
|
switch (_a.label) {
|
|
1360
1591
|
case 0:
|
|
1361
1592
|
if (output.statusCode >= 300) {
|
|
1362
|
-
return [2,
|
|
1593
|
+
return [2, deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommandError(output, context)];
|
|
1363
1594
|
}
|
|
1364
1595
|
return [4, parseBody(output.body, context)];
|
|
1365
1596
|
case 1:
|
|
1366
1597
|
data = _a.sent();
|
|
1367
1598
|
contents = {};
|
|
1368
|
-
contents =
|
|
1599
|
+
contents = deserializeAws_json1_1ListSNOMEDCTInferenceJobsResponse(data, context);
|
|
1369
1600
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1370
1601
|
return [2, Promise.resolve(response)];
|
|
1371
1602
|
}
|
|
1372
1603
|
});
|
|
1373
1604
|
}); };
|
|
1374
|
-
var
|
|
1605
|
+
var deserializeAws_json1_1ListSNOMEDCTInferenceJobsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1375
1606
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1376
1607
|
var _g;
|
|
1377
1608
|
return __generator(this, function (_h) {
|
|
@@ -1390,10 +1621,10 @@ var deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError = function (ou
|
|
|
1390
1621
|
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1391
1622
|
case "InvalidRequestException": return [3, 4];
|
|
1392
1623
|
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1393
|
-
case "
|
|
1394
|
-
case "com.amazonaws.comprehendmedical#
|
|
1395
|
-
case "
|
|
1396
|
-
case "com.amazonaws.comprehendmedical#
|
|
1624
|
+
case "TooManyRequestsException": return [3, 6];
|
|
1625
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 6];
|
|
1626
|
+
case "ValidationException": return [3, 8];
|
|
1627
|
+
case "com.amazonaws.comprehendmedical#ValidationException": return [3, 8];
|
|
1397
1628
|
}
|
|
1398
1629
|
return [3, 10];
|
|
1399
1630
|
case 2:
|
|
@@ -1410,13 +1641,13 @@ var deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError = function (ou
|
|
|
1410
1641
|
return [3, 11];
|
|
1411
1642
|
case 6:
|
|
1412
1643
|
_e = [{}];
|
|
1413
|
-
return [4,
|
|
1644
|
+
return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1414
1645
|
case 7:
|
|
1415
1646
|
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1416
1647
|
return [3, 11];
|
|
1417
1648
|
case 8:
|
|
1418
1649
|
_f = [{}];
|
|
1419
|
-
return [4,
|
|
1650
|
+
return [4, deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context)];
|
|
1420
1651
|
case 9:
|
|
1421
1652
|
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1422
1653
|
return [3, 11];
|
|
@@ -1433,25 +1664,25 @@ var deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError = function (ou
|
|
|
1433
1664
|
}
|
|
1434
1665
|
});
|
|
1435
1666
|
}); };
|
|
1436
|
-
export var
|
|
1667
|
+
export var deserializeAws_json1_1StartEntitiesDetectionV2JobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1437
1668
|
var data, contents, response;
|
|
1438
1669
|
return __generator(this, function (_a) {
|
|
1439
1670
|
switch (_a.label) {
|
|
1440
1671
|
case 0:
|
|
1441
1672
|
if (output.statusCode >= 300) {
|
|
1442
|
-
return [2,
|
|
1673
|
+
return [2, deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError(output, context)];
|
|
1443
1674
|
}
|
|
1444
1675
|
return [4, parseBody(output.body, context)];
|
|
1445
1676
|
case 1:
|
|
1446
1677
|
data = _a.sent();
|
|
1447
1678
|
contents = {};
|
|
1448
|
-
contents =
|
|
1679
|
+
contents = deserializeAws_json1_1StartEntitiesDetectionV2JobResponse(data, context);
|
|
1449
1680
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1450
1681
|
return [2, Promise.resolve(response)];
|
|
1451
1682
|
}
|
|
1452
1683
|
});
|
|
1453
1684
|
}); };
|
|
1454
|
-
var
|
|
1685
|
+
var deserializeAws_json1_1StartEntitiesDetectionV2JobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1455
1686
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1456
1687
|
var _g;
|
|
1457
1688
|
return __generator(this, function (_h) {
|
|
@@ -1513,25 +1744,25 @@ var deserializeAws_json1_1StartICD10CMInferenceJobCommandError = function (outpu
|
|
|
1513
1744
|
}
|
|
1514
1745
|
});
|
|
1515
1746
|
}); };
|
|
1516
|
-
export var
|
|
1747
|
+
export var deserializeAws_json1_1StartICD10CMInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1517
1748
|
var data, contents, response;
|
|
1518
1749
|
return __generator(this, function (_a) {
|
|
1519
1750
|
switch (_a.label) {
|
|
1520
1751
|
case 0:
|
|
1521
1752
|
if (output.statusCode >= 300) {
|
|
1522
|
-
return [2,
|
|
1753
|
+
return [2, deserializeAws_json1_1StartICD10CMInferenceJobCommandError(output, context)];
|
|
1523
1754
|
}
|
|
1524
1755
|
return [4, parseBody(output.body, context)];
|
|
1525
1756
|
case 1:
|
|
1526
1757
|
data = _a.sent();
|
|
1527
1758
|
contents = {};
|
|
1528
|
-
contents =
|
|
1759
|
+
contents = deserializeAws_json1_1StartICD10CMInferenceJobResponse(data, context);
|
|
1529
1760
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1530
1761
|
return [2, Promise.resolve(response)];
|
|
1531
1762
|
}
|
|
1532
1763
|
});
|
|
1533
1764
|
}); };
|
|
1534
|
-
var
|
|
1765
|
+
var deserializeAws_json1_1StartICD10CMInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1535
1766
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1536
1767
|
var _g;
|
|
1537
1768
|
return __generator(this, function (_h) {
|
|
@@ -1593,25 +1824,25 @@ var deserializeAws_json1_1StartPHIDetectionJobCommandError = function (output, c
|
|
|
1593
1824
|
}
|
|
1594
1825
|
});
|
|
1595
1826
|
}); };
|
|
1596
|
-
export var
|
|
1827
|
+
export var deserializeAws_json1_1StartPHIDetectionJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1597
1828
|
var data, contents, response;
|
|
1598
1829
|
return __generator(this, function (_a) {
|
|
1599
1830
|
switch (_a.label) {
|
|
1600
1831
|
case 0:
|
|
1601
1832
|
if (output.statusCode >= 300) {
|
|
1602
|
-
return [2,
|
|
1833
|
+
return [2, deserializeAws_json1_1StartPHIDetectionJobCommandError(output, context)];
|
|
1603
1834
|
}
|
|
1604
1835
|
return [4, parseBody(output.body, context)];
|
|
1605
1836
|
case 1:
|
|
1606
1837
|
data = _a.sent();
|
|
1607
1838
|
contents = {};
|
|
1608
|
-
contents =
|
|
1839
|
+
contents = deserializeAws_json1_1StartPHIDetectionJobResponse(data, context);
|
|
1609
1840
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1610
1841
|
return [2, Promise.resolve(response)];
|
|
1611
1842
|
}
|
|
1612
1843
|
});
|
|
1613
1844
|
}); };
|
|
1614
|
-
var
|
|
1845
|
+
var deserializeAws_json1_1StartPHIDetectionJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1615
1846
|
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1616
1847
|
var _g;
|
|
1617
1848
|
return __generator(this, function (_h) {
|
|
@@ -1673,26 +1904,186 @@ var deserializeAws_json1_1StartRxNormInferenceJobCommandError = function (output
|
|
|
1673
1904
|
}
|
|
1674
1905
|
});
|
|
1675
1906
|
}); };
|
|
1676
|
-
export var
|
|
1907
|
+
export var deserializeAws_json1_1StartRxNormInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1677
1908
|
var data, contents, response;
|
|
1678
1909
|
return __generator(this, function (_a) {
|
|
1679
1910
|
switch (_a.label) {
|
|
1680
1911
|
case 0:
|
|
1681
1912
|
if (output.statusCode >= 300) {
|
|
1682
|
-
return [2,
|
|
1913
|
+
return [2, deserializeAws_json1_1StartRxNormInferenceJobCommandError(output, context)];
|
|
1683
1914
|
}
|
|
1684
1915
|
return [4, parseBody(output.body, context)];
|
|
1685
1916
|
case 1:
|
|
1686
1917
|
data = _a.sent();
|
|
1687
1918
|
contents = {};
|
|
1688
|
-
contents =
|
|
1919
|
+
contents = deserializeAws_json1_1StartRxNormInferenceJobResponse(data, context);
|
|
1689
1920
|
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
1690
1921
|
return [2, Promise.resolve(response)];
|
|
1691
1922
|
}
|
|
1692
1923
|
});
|
|
1693
1924
|
}); };
|
|
1694
|
-
var
|
|
1695
|
-
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1925
|
+
var deserializeAws_json1_1StartRxNormInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1926
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
1927
|
+
var _g;
|
|
1928
|
+
return __generator(this, function (_h) {
|
|
1929
|
+
switch (_h.label) {
|
|
1930
|
+
case 0:
|
|
1931
|
+
_a = [__assign({}, output)];
|
|
1932
|
+
_g = {};
|
|
1933
|
+
return [4, parseBody(output.body, context)];
|
|
1934
|
+
case 1:
|
|
1935
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
1936
|
+
errorCode = "UnknownError";
|
|
1937
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1938
|
+
_b = errorCode;
|
|
1939
|
+
switch (_b) {
|
|
1940
|
+
case "InternalServerException": return [3, 2];
|
|
1941
|
+
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
1942
|
+
case "InvalidRequestException": return [3, 4];
|
|
1943
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
1944
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
1945
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
1946
|
+
case "TooManyRequestsException": return [3, 8];
|
|
1947
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
1948
|
+
}
|
|
1949
|
+
return [3, 10];
|
|
1950
|
+
case 2:
|
|
1951
|
+
_c = [{}];
|
|
1952
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
1953
|
+
case 3:
|
|
1954
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1955
|
+
return [3, 11];
|
|
1956
|
+
case 4:
|
|
1957
|
+
_d = [{}];
|
|
1958
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
1959
|
+
case 5:
|
|
1960
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1961
|
+
return [3, 11];
|
|
1962
|
+
case 6:
|
|
1963
|
+
_e = [{}];
|
|
1964
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
1965
|
+
case 7:
|
|
1966
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1967
|
+
return [3, 11];
|
|
1968
|
+
case 8:
|
|
1969
|
+
_f = [{}];
|
|
1970
|
+
return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
1971
|
+
case 9:
|
|
1972
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
1973
|
+
return [3, 11];
|
|
1974
|
+
case 10:
|
|
1975
|
+
parsedBody = parsedOutput.body;
|
|
1976
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
1977
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
1978
|
+
_h.label = 11;
|
|
1979
|
+
case 11:
|
|
1980
|
+
message = response.message || response.Message || errorCode;
|
|
1981
|
+
response.message = message;
|
|
1982
|
+
delete response.Message;
|
|
1983
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
1984
|
+
}
|
|
1985
|
+
});
|
|
1986
|
+
}); };
|
|
1987
|
+
export var deserializeAws_json1_1StartSNOMEDCTInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1988
|
+
var data, contents, response;
|
|
1989
|
+
return __generator(this, function (_a) {
|
|
1990
|
+
switch (_a.label) {
|
|
1991
|
+
case 0:
|
|
1992
|
+
if (output.statusCode >= 300) {
|
|
1993
|
+
return [2, deserializeAws_json1_1StartSNOMEDCTInferenceJobCommandError(output, context)];
|
|
1994
|
+
}
|
|
1995
|
+
return [4, parseBody(output.body, context)];
|
|
1996
|
+
case 1:
|
|
1997
|
+
data = _a.sent();
|
|
1998
|
+
contents = {};
|
|
1999
|
+
contents = deserializeAws_json1_1StartSNOMEDCTInferenceJobResponse(data, context);
|
|
2000
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2001
|
+
return [2, Promise.resolve(response)];
|
|
2002
|
+
}
|
|
2003
|
+
});
|
|
2004
|
+
}); };
|
|
2005
|
+
var deserializeAws_json1_1StartSNOMEDCTInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2006
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2007
|
+
var _g;
|
|
2008
|
+
return __generator(this, function (_h) {
|
|
2009
|
+
switch (_h.label) {
|
|
2010
|
+
case 0:
|
|
2011
|
+
_a = [__assign({}, output)];
|
|
2012
|
+
_g = {};
|
|
2013
|
+
return [4, parseBody(output.body, context)];
|
|
2014
|
+
case 1:
|
|
2015
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2016
|
+
errorCode = "UnknownError";
|
|
2017
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2018
|
+
_b = errorCode;
|
|
2019
|
+
switch (_b) {
|
|
2020
|
+
case "InternalServerException": return [3, 2];
|
|
2021
|
+
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
2022
|
+
case "InvalidRequestException": return [3, 4];
|
|
2023
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
2024
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2025
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
2026
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2027
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
2028
|
+
}
|
|
2029
|
+
return [3, 10];
|
|
2030
|
+
case 2:
|
|
2031
|
+
_c = [{}];
|
|
2032
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2033
|
+
case 3:
|
|
2034
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2035
|
+
return [3, 11];
|
|
2036
|
+
case 4:
|
|
2037
|
+
_d = [{}];
|
|
2038
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2039
|
+
case 5:
|
|
2040
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2041
|
+
return [3, 11];
|
|
2042
|
+
case 6:
|
|
2043
|
+
_e = [{}];
|
|
2044
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2045
|
+
case 7:
|
|
2046
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2047
|
+
return [3, 11];
|
|
2048
|
+
case 8:
|
|
2049
|
+
_f = [{}];
|
|
2050
|
+
return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2051
|
+
case 9:
|
|
2052
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2053
|
+
return [3, 11];
|
|
2054
|
+
case 10:
|
|
2055
|
+
parsedBody = parsedOutput.body;
|
|
2056
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2057
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2058
|
+
_h.label = 11;
|
|
2059
|
+
case 11:
|
|
2060
|
+
message = response.message || response.Message || errorCode;
|
|
2061
|
+
response.message = message;
|
|
2062
|
+
delete response.Message;
|
|
2063
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2064
|
+
}
|
|
2065
|
+
});
|
|
2066
|
+
}); };
|
|
2067
|
+
export var deserializeAws_json1_1StopEntitiesDetectionV2JobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2068
|
+
var data, contents, response;
|
|
2069
|
+
return __generator(this, function (_a) {
|
|
2070
|
+
switch (_a.label) {
|
|
2071
|
+
case 0:
|
|
2072
|
+
if (output.statusCode >= 300) {
|
|
2073
|
+
return [2, deserializeAws_json1_1StopEntitiesDetectionV2JobCommandError(output, context)];
|
|
2074
|
+
}
|
|
2075
|
+
return [4, parseBody(output.body, context)];
|
|
2076
|
+
case 1:
|
|
2077
|
+
data = _a.sent();
|
|
2078
|
+
contents = {};
|
|
2079
|
+
contents = deserializeAws_json1_1StopEntitiesDetectionV2JobResponse(data, context);
|
|
2080
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2081
|
+
return [2, Promise.resolve(response)];
|
|
2082
|
+
}
|
|
2083
|
+
});
|
|
2084
|
+
}); };
|
|
2085
|
+
var deserializeAws_json1_1StopEntitiesDetectionV2JobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2086
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, parsedBody, message;
|
|
1696
2087
|
var _f;
|
|
1697
2088
|
return __generator(this, function (_g) {
|
|
1698
2089
|
switch (_g.label) {
|
|
@@ -1961,6 +2352,86 @@ var deserializeAws_json1_1StopRxNormInferenceJobCommandError = function (output,
|
|
|
1961
2352
|
}
|
|
1962
2353
|
});
|
|
1963
2354
|
}); };
|
|
2355
|
+
export var deserializeAws_json1_1StopSNOMEDCTInferenceJobCommand = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2356
|
+
var data, contents, response;
|
|
2357
|
+
return __generator(this, function (_a) {
|
|
2358
|
+
switch (_a.label) {
|
|
2359
|
+
case 0:
|
|
2360
|
+
if (output.statusCode >= 300) {
|
|
2361
|
+
return [2, deserializeAws_json1_1StopSNOMEDCTInferenceJobCommandError(output, context)];
|
|
2362
|
+
}
|
|
2363
|
+
return [4, parseBody(output.body, context)];
|
|
2364
|
+
case 1:
|
|
2365
|
+
data = _a.sent();
|
|
2366
|
+
contents = {};
|
|
2367
|
+
contents = deserializeAws_json1_1StopSNOMEDCTInferenceJobResponse(data, context);
|
|
2368
|
+
response = __assign({ $metadata: deserializeMetadata(output) }, contents);
|
|
2369
|
+
return [2, Promise.resolve(response)];
|
|
2370
|
+
}
|
|
2371
|
+
});
|
|
2372
|
+
}); };
|
|
2373
|
+
var deserializeAws_json1_1StopSNOMEDCTInferenceJobCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
2374
|
+
var parsedOutput, _a, response, errorCode, _b, _c, _d, _e, _f, parsedBody, message;
|
|
2375
|
+
var _g;
|
|
2376
|
+
return __generator(this, function (_h) {
|
|
2377
|
+
switch (_h.label) {
|
|
2378
|
+
case 0:
|
|
2379
|
+
_a = [__assign({}, output)];
|
|
2380
|
+
_g = {};
|
|
2381
|
+
return [4, parseBody(output.body, context)];
|
|
2382
|
+
case 1:
|
|
2383
|
+
parsedOutput = __assign.apply(void 0, _a.concat([(_g.body = _h.sent(), _g)]));
|
|
2384
|
+
errorCode = "UnknownError";
|
|
2385
|
+
errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2386
|
+
_b = errorCode;
|
|
2387
|
+
switch (_b) {
|
|
2388
|
+
case "InternalServerException": return [3, 2];
|
|
2389
|
+
case "com.amazonaws.comprehendmedical#InternalServerException": return [3, 2];
|
|
2390
|
+
case "InvalidRequestException": return [3, 4];
|
|
2391
|
+
case "com.amazonaws.comprehendmedical#InvalidRequestException": return [3, 4];
|
|
2392
|
+
case "ResourceNotFoundException": return [3, 6];
|
|
2393
|
+
case "com.amazonaws.comprehendmedical#ResourceNotFoundException": return [3, 6];
|
|
2394
|
+
case "TooManyRequestsException": return [3, 8];
|
|
2395
|
+
case "com.amazonaws.comprehendmedical#TooManyRequestsException": return [3, 8];
|
|
2396
|
+
}
|
|
2397
|
+
return [3, 10];
|
|
2398
|
+
case 2:
|
|
2399
|
+
_c = [{}];
|
|
2400
|
+
return [4, deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context)];
|
|
2401
|
+
case 3:
|
|
2402
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _c.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2403
|
+
return [3, 11];
|
|
2404
|
+
case 4:
|
|
2405
|
+
_d = [{}];
|
|
2406
|
+
return [4, deserializeAws_json1_1InvalidRequestExceptionResponse(parsedOutput, context)];
|
|
2407
|
+
case 5:
|
|
2408
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _d.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2409
|
+
return [3, 11];
|
|
2410
|
+
case 6:
|
|
2411
|
+
_e = [{}];
|
|
2412
|
+
return [4, deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context)];
|
|
2413
|
+
case 7:
|
|
2414
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _e.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2415
|
+
return [3, 11];
|
|
2416
|
+
case 8:
|
|
2417
|
+
_f = [{}];
|
|
2418
|
+
return [4, deserializeAws_json1_1TooManyRequestsExceptionResponse(parsedOutput, context)];
|
|
2419
|
+
case 9:
|
|
2420
|
+
response = __assign.apply(void 0, [__assign.apply(void 0, _f.concat([(_h.sent())])), { name: errorCode, $metadata: deserializeMetadata(output) }]);
|
|
2421
|
+
return [3, 11];
|
|
2422
|
+
case 10:
|
|
2423
|
+
parsedBody = parsedOutput.body;
|
|
2424
|
+
errorCode = parsedBody.code || parsedBody.Code || errorCode;
|
|
2425
|
+
response = __assign(__assign({}, parsedBody), { name: "" + errorCode, message: parsedBody.message || parsedBody.Message || errorCode, $fault: "client", $metadata: deserializeMetadata(output) });
|
|
2426
|
+
_h.label = 11;
|
|
2427
|
+
case 11:
|
|
2428
|
+
message = response.message || response.Message || errorCode;
|
|
2429
|
+
response.message = message;
|
|
2430
|
+
delete response.Message;
|
|
2431
|
+
return [2, Promise.reject(Object.assign(new Error(message), response))];
|
|
2432
|
+
}
|
|
2433
|
+
});
|
|
2434
|
+
}); };
|
|
1964
2435
|
var deserializeAws_json1_1InternalServerExceptionResponse = function (parsedOutput, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
1965
2436
|
var body, deserialized, contents;
|
|
1966
2437
|
return __generator(this, function (_a) {
|
|
@@ -2050,6 +2521,9 @@ var serializeAws_json1_1DescribePHIDetectionJobRequest = function (input, contex
|
|
|
2050
2521
|
var serializeAws_json1_1DescribeRxNormInferenceJobRequest = function (input, context) {
|
|
2051
2522
|
return __assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
|
|
2052
2523
|
};
|
|
2524
|
+
var serializeAws_json1_1DescribeSNOMEDCTInferenceJobRequest = function (input, context) {
|
|
2525
|
+
return __assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
|
|
2526
|
+
};
|
|
2053
2527
|
var serializeAws_json1_1DetectEntitiesRequest = function (input, context) {
|
|
2054
2528
|
return __assign({}, (input.Text !== undefined && input.Text !== null && { Text: input.Text }));
|
|
2055
2529
|
};
|
|
@@ -2065,6 +2539,9 @@ var serializeAws_json1_1InferICD10CMRequest = function (input, context) {
|
|
|
2065
2539
|
var serializeAws_json1_1InferRxNormRequest = function (input, context) {
|
|
2066
2540
|
return __assign({}, (input.Text !== undefined && input.Text !== null && { Text: input.Text }));
|
|
2067
2541
|
};
|
|
2542
|
+
var serializeAws_json1_1InferSNOMEDCTRequest = function (input, context) {
|
|
2543
|
+
return __assign({}, (input.Text !== undefined && input.Text !== null && { Text: input.Text }));
|
|
2544
|
+
};
|
|
2068
2545
|
var serializeAws_json1_1InputDataConfig = function (input, context) {
|
|
2069
2546
|
return __assign(__assign({}, (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket })), (input.S3Key !== undefined && input.S3Key !== null && { S3Key: input.S3Key }));
|
|
2070
2547
|
};
|
|
@@ -2084,6 +2561,10 @@ var serializeAws_json1_1ListRxNormInferenceJobsRequest = function (input, contex
|
|
|
2084
2561
|
return __assign(__assign(__assign({}, (input.Filter !== undefined &&
|
|
2085
2562
|
input.Filter !== null && { Filter: serializeAws_json1_1ComprehendMedicalAsyncJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
2086
2563
|
};
|
|
2564
|
+
var serializeAws_json1_1ListSNOMEDCTInferenceJobsRequest = function (input, context) {
|
|
2565
|
+
return __assign(__assign(__assign({}, (input.Filter !== undefined &&
|
|
2566
|
+
input.Filter !== null && { Filter: serializeAws_json1_1ComprehendMedicalAsyncJobFilter(input.Filter, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }));
|
|
2567
|
+
};
|
|
2087
2568
|
var serializeAws_json1_1OutputDataConfig = function (input, context) {
|
|
2088
2569
|
return __assign(__assign({}, (input.S3Bucket !== undefined && input.S3Bucket !== null && { S3Bucket: input.S3Bucket })), (input.S3Key !== undefined && input.S3Key !== null && { S3Key: input.S3Key }));
|
|
2089
2570
|
};
|
|
@@ -2131,6 +2612,17 @@ var serializeAws_json1_1StartRxNormInferenceJobRequest = function (input, contex
|
|
|
2131
2612
|
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
2132
2613
|
}));
|
|
2133
2614
|
};
|
|
2615
|
+
var serializeAws_json1_1StartSNOMEDCTInferenceJobRequest = function (input, context) {
|
|
2616
|
+
var _a;
|
|
2617
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DataAccessRoleArn !== undefined &&
|
|
2618
|
+
input.DataAccessRoleArn !== null && { DataAccessRoleArn: input.DataAccessRoleArn })), (input.InputDataConfig !== undefined &&
|
|
2619
|
+
input.InputDataConfig !== null && {
|
|
2620
|
+
InputDataConfig: serializeAws_json1_1InputDataConfig(input.InputDataConfig, context),
|
|
2621
|
+
})), (input.JobName !== undefined && input.JobName !== null && { JobName: input.JobName })), (input.KMSKey !== undefined && input.KMSKey !== null && { KMSKey: input.KMSKey })), (input.LanguageCode !== undefined && input.LanguageCode !== null && { LanguageCode: input.LanguageCode })), (input.OutputDataConfig !== undefined &&
|
|
2622
|
+
input.OutputDataConfig !== null && {
|
|
2623
|
+
OutputDataConfig: serializeAws_json1_1OutputDataConfig(input.OutputDataConfig, context),
|
|
2624
|
+
}));
|
|
2625
|
+
};
|
|
2134
2626
|
var serializeAws_json1_1StopEntitiesDetectionV2JobRequest = function (input, context) {
|
|
2135
2627
|
return __assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
|
|
2136
2628
|
};
|
|
@@ -2143,6 +2635,9 @@ var serializeAws_json1_1StopPHIDetectionJobRequest = function (input, context) {
|
|
|
2143
2635
|
var serializeAws_json1_1StopRxNormInferenceJobRequest = function (input, context) {
|
|
2144
2636
|
return __assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
|
|
2145
2637
|
};
|
|
2638
|
+
var serializeAws_json1_1StopSNOMEDCTInferenceJobRequest = function (input, context) {
|
|
2639
|
+
return __assign({}, (input.JobId !== undefined && input.JobId !== null && { JobId: input.JobId }));
|
|
2640
|
+
};
|
|
2146
2641
|
var deserializeAws_json1_1Attribute = function (output, context) {
|
|
2147
2642
|
return {
|
|
2148
2643
|
BeginOffset: __expectInt32(output.BeginOffset),
|
|
@@ -2169,6 +2664,11 @@ var deserializeAws_json1_1AttributeList = function (output, context) {
|
|
|
2169
2664
|
return deserializeAws_json1_1Attribute(entry, context);
|
|
2170
2665
|
});
|
|
2171
2666
|
};
|
|
2667
|
+
var deserializeAws_json1_1Characters = function (output, context) {
|
|
2668
|
+
return {
|
|
2669
|
+
OriginalTextCharacters: __expectInt32(output.OriginalTextCharacters),
|
|
2670
|
+
};
|
|
2671
|
+
};
|
|
2172
2672
|
var deserializeAws_json1_1ComprehendMedicalAsyncJobProperties = function (output, context) {
|
|
2173
2673
|
return {
|
|
2174
2674
|
DataAccessRoleArn: __expectString(output.DataAccessRoleArn),
|
|
@@ -2235,6 +2735,13 @@ var deserializeAws_json1_1DescribeRxNormInferenceJobResponse = function (output,
|
|
|
2235
2735
|
: undefined,
|
|
2236
2736
|
};
|
|
2237
2737
|
};
|
|
2738
|
+
var deserializeAws_json1_1DescribeSNOMEDCTInferenceJobResponse = function (output, context) {
|
|
2739
|
+
return {
|
|
2740
|
+
ComprehendMedicalAsyncJobProperties: output.ComprehendMedicalAsyncJobProperties !== undefined && output.ComprehendMedicalAsyncJobProperties !== null
|
|
2741
|
+
? deserializeAws_json1_1ComprehendMedicalAsyncJobProperties(output.ComprehendMedicalAsyncJobProperties, context)
|
|
2742
|
+
: undefined,
|
|
2743
|
+
};
|
|
2744
|
+
};
|
|
2238
2745
|
var deserializeAws_json1_1DetectEntitiesResponse = function (output, context) {
|
|
2239
2746
|
return {
|
|
2240
2747
|
Entities: output.Entities !== undefined && output.Entities !== null
|
|
@@ -2402,6 +2909,21 @@ var deserializeAws_json1_1InferRxNormResponse = function (output, context) {
|
|
|
2402
2909
|
PaginationToken: __expectString(output.PaginationToken),
|
|
2403
2910
|
};
|
|
2404
2911
|
};
|
|
2912
|
+
var deserializeAws_json1_1InferSNOMEDCTResponse = function (output, context) {
|
|
2913
|
+
return {
|
|
2914
|
+
Characters: output.Characters !== undefined && output.Characters !== null
|
|
2915
|
+
? deserializeAws_json1_1Characters(output.Characters, context)
|
|
2916
|
+
: undefined,
|
|
2917
|
+
Entities: output.Entities !== undefined && output.Entities !== null
|
|
2918
|
+
? deserializeAws_json1_1SNOMEDCTEntityList(output.Entities, context)
|
|
2919
|
+
: undefined,
|
|
2920
|
+
ModelVersion: __expectString(output.ModelVersion),
|
|
2921
|
+
PaginationToken: __expectString(output.PaginationToken),
|
|
2922
|
+
SNOMEDCTDetails: output.SNOMEDCTDetails !== undefined && output.SNOMEDCTDetails !== null
|
|
2923
|
+
? deserializeAws_json1_1SNOMEDCTDetails(output.SNOMEDCTDetails, context)
|
|
2924
|
+
: undefined,
|
|
2925
|
+
};
|
|
2926
|
+
};
|
|
2405
2927
|
var deserializeAws_json1_1InputDataConfig = function (output, context) {
|
|
2406
2928
|
return {
|
|
2407
2929
|
S3Bucket: __expectString(output.S3Bucket),
|
|
@@ -2459,6 +2981,15 @@ var deserializeAws_json1_1ListRxNormInferenceJobsResponse = function (output, co
|
|
|
2459
2981
|
NextToken: __expectString(output.NextToken),
|
|
2460
2982
|
};
|
|
2461
2983
|
};
|
|
2984
|
+
var deserializeAws_json1_1ListSNOMEDCTInferenceJobsResponse = function (output, context) {
|
|
2985
|
+
return {
|
|
2986
|
+
ComprehendMedicalAsyncJobPropertiesList: output.ComprehendMedicalAsyncJobPropertiesList !== undefined &&
|
|
2987
|
+
output.ComprehendMedicalAsyncJobPropertiesList !== null
|
|
2988
|
+
? deserializeAws_json1_1ComprehendMedicalAsyncJobPropertiesList(output.ComprehendMedicalAsyncJobPropertiesList, context)
|
|
2989
|
+
: undefined,
|
|
2990
|
+
NextToken: __expectString(output.NextToken),
|
|
2991
|
+
};
|
|
2992
|
+
};
|
|
2462
2993
|
var deserializeAws_json1_1OutputDataConfig = function (output, context) {
|
|
2463
2994
|
return {
|
|
2464
2995
|
S3Bucket: __expectString(output.S3Bucket),
|
|
@@ -2562,6 +3093,105 @@ var deserializeAws_json1_1ServiceUnavailableException = function (output, contex
|
|
|
2562
3093
|
Message: __expectString(output.Message),
|
|
2563
3094
|
};
|
|
2564
3095
|
};
|
|
3096
|
+
var deserializeAws_json1_1SNOMEDCTAttribute = function (output, context) {
|
|
3097
|
+
return {
|
|
3098
|
+
BeginOffset: __expectInt32(output.BeginOffset),
|
|
3099
|
+
Category: __expectString(output.Category),
|
|
3100
|
+
EndOffset: __expectInt32(output.EndOffset),
|
|
3101
|
+
Id: __expectInt32(output.Id),
|
|
3102
|
+
RelationshipScore: __limitedParseFloat32(output.RelationshipScore),
|
|
3103
|
+
RelationshipType: __expectString(output.RelationshipType),
|
|
3104
|
+
SNOMEDCTConcepts: output.SNOMEDCTConcepts !== undefined && output.SNOMEDCTConcepts !== null
|
|
3105
|
+
? deserializeAws_json1_1SNOMEDCTConceptList(output.SNOMEDCTConcepts, context)
|
|
3106
|
+
: undefined,
|
|
3107
|
+
Score: __limitedParseFloat32(output.Score),
|
|
3108
|
+
Text: __expectString(output.Text),
|
|
3109
|
+
Traits: output.Traits !== undefined && output.Traits !== null
|
|
3110
|
+
? deserializeAws_json1_1SNOMEDCTTraitList(output.Traits, context)
|
|
3111
|
+
: undefined,
|
|
3112
|
+
Type: __expectString(output.Type),
|
|
3113
|
+
};
|
|
3114
|
+
};
|
|
3115
|
+
var deserializeAws_json1_1SNOMEDCTAttributeList = function (output, context) {
|
|
3116
|
+
return (output || [])
|
|
3117
|
+
.filter(function (e) { return e != null; })
|
|
3118
|
+
.map(function (entry) {
|
|
3119
|
+
if (entry === null) {
|
|
3120
|
+
return null;
|
|
3121
|
+
}
|
|
3122
|
+
return deserializeAws_json1_1SNOMEDCTAttribute(entry, context);
|
|
3123
|
+
});
|
|
3124
|
+
};
|
|
3125
|
+
var deserializeAws_json1_1SNOMEDCTConcept = function (output, context) {
|
|
3126
|
+
return {
|
|
3127
|
+
Code: __expectString(output.Code),
|
|
3128
|
+
Description: __expectString(output.Description),
|
|
3129
|
+
Score: __limitedParseFloat32(output.Score),
|
|
3130
|
+
};
|
|
3131
|
+
};
|
|
3132
|
+
var deserializeAws_json1_1SNOMEDCTConceptList = function (output, context) {
|
|
3133
|
+
return (output || [])
|
|
3134
|
+
.filter(function (e) { return e != null; })
|
|
3135
|
+
.map(function (entry) {
|
|
3136
|
+
if (entry === null) {
|
|
3137
|
+
return null;
|
|
3138
|
+
}
|
|
3139
|
+
return deserializeAws_json1_1SNOMEDCTConcept(entry, context);
|
|
3140
|
+
});
|
|
3141
|
+
};
|
|
3142
|
+
var deserializeAws_json1_1SNOMEDCTDetails = function (output, context) {
|
|
3143
|
+
return {
|
|
3144
|
+
Edition: __expectString(output.Edition),
|
|
3145
|
+
Language: __expectString(output.Language),
|
|
3146
|
+
VersionDate: __expectString(output.VersionDate),
|
|
3147
|
+
};
|
|
3148
|
+
};
|
|
3149
|
+
var deserializeAws_json1_1SNOMEDCTEntity = function (output, context) {
|
|
3150
|
+
return {
|
|
3151
|
+
Attributes: output.Attributes !== undefined && output.Attributes !== null
|
|
3152
|
+
? deserializeAws_json1_1SNOMEDCTAttributeList(output.Attributes, context)
|
|
3153
|
+
: undefined,
|
|
3154
|
+
BeginOffset: __expectInt32(output.BeginOffset),
|
|
3155
|
+
Category: __expectString(output.Category),
|
|
3156
|
+
EndOffset: __expectInt32(output.EndOffset),
|
|
3157
|
+
Id: __expectInt32(output.Id),
|
|
3158
|
+
SNOMEDCTConcepts: output.SNOMEDCTConcepts !== undefined && output.SNOMEDCTConcepts !== null
|
|
3159
|
+
? deserializeAws_json1_1SNOMEDCTConceptList(output.SNOMEDCTConcepts, context)
|
|
3160
|
+
: undefined,
|
|
3161
|
+
Score: __limitedParseFloat32(output.Score),
|
|
3162
|
+
Text: __expectString(output.Text),
|
|
3163
|
+
Traits: output.Traits !== undefined && output.Traits !== null
|
|
3164
|
+
? deserializeAws_json1_1SNOMEDCTTraitList(output.Traits, context)
|
|
3165
|
+
: undefined,
|
|
3166
|
+
Type: __expectString(output.Type),
|
|
3167
|
+
};
|
|
3168
|
+
};
|
|
3169
|
+
var deserializeAws_json1_1SNOMEDCTEntityList = function (output, context) {
|
|
3170
|
+
return (output || [])
|
|
3171
|
+
.filter(function (e) { return e != null; })
|
|
3172
|
+
.map(function (entry) {
|
|
3173
|
+
if (entry === null) {
|
|
3174
|
+
return null;
|
|
3175
|
+
}
|
|
3176
|
+
return deserializeAws_json1_1SNOMEDCTEntity(entry, context);
|
|
3177
|
+
});
|
|
3178
|
+
};
|
|
3179
|
+
var deserializeAws_json1_1SNOMEDCTTrait = function (output, context) {
|
|
3180
|
+
return {
|
|
3181
|
+
Name: __expectString(output.Name),
|
|
3182
|
+
Score: __limitedParseFloat32(output.Score),
|
|
3183
|
+
};
|
|
3184
|
+
};
|
|
3185
|
+
var deserializeAws_json1_1SNOMEDCTTraitList = function (output, context) {
|
|
3186
|
+
return (output || [])
|
|
3187
|
+
.filter(function (e) { return e != null; })
|
|
3188
|
+
.map(function (entry) {
|
|
3189
|
+
if (entry === null) {
|
|
3190
|
+
return null;
|
|
3191
|
+
}
|
|
3192
|
+
return deserializeAws_json1_1SNOMEDCTTrait(entry, context);
|
|
3193
|
+
});
|
|
3194
|
+
};
|
|
2565
3195
|
var deserializeAws_json1_1StartEntitiesDetectionV2JobResponse = function (output, context) {
|
|
2566
3196
|
return {
|
|
2567
3197
|
JobId: __expectString(output.JobId),
|
|
@@ -2582,6 +3212,11 @@ var deserializeAws_json1_1StartRxNormInferenceJobResponse = function (output, co
|
|
|
2582
3212
|
JobId: __expectString(output.JobId),
|
|
2583
3213
|
};
|
|
2584
3214
|
};
|
|
3215
|
+
var deserializeAws_json1_1StartSNOMEDCTInferenceJobResponse = function (output, context) {
|
|
3216
|
+
return {
|
|
3217
|
+
JobId: __expectString(output.JobId),
|
|
3218
|
+
};
|
|
3219
|
+
};
|
|
2585
3220
|
var deserializeAws_json1_1StopEntitiesDetectionV2JobResponse = function (output, context) {
|
|
2586
3221
|
return {
|
|
2587
3222
|
JobId: __expectString(output.JobId),
|
|
@@ -2602,6 +3237,11 @@ var deserializeAws_json1_1StopRxNormInferenceJobResponse = function (output, con
|
|
|
2602
3237
|
JobId: __expectString(output.JobId),
|
|
2603
3238
|
};
|
|
2604
3239
|
};
|
|
3240
|
+
var deserializeAws_json1_1StopSNOMEDCTInferenceJobResponse = function (output, context) {
|
|
3241
|
+
return {
|
|
3242
|
+
JobId: __expectString(output.JobId),
|
|
3243
|
+
};
|
|
3244
|
+
};
|
|
2605
3245
|
var deserializeAws_json1_1TextSizeLimitExceededException = function (output, context) {
|
|
2606
3246
|
return {
|
|
2607
3247
|
Message: __expectString(output.Message),
|