@aws-sdk/client-comprehendmedical 3.310.0 → 3.315.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/dist-cjs/protocols/Aws_json1_1.js +409 -785
- package/dist-es/protocols/Aws_json1_1.js +410 -786
- package/package.json +6 -6
|
@@ -8,262 +8,184 @@ const uuid_1 = require("uuid");
|
|
|
8
8
|
const ComprehendMedicalServiceException_1 = require("../models/ComprehendMedicalServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_DescribeEntitiesDetectionV2JobCommand = async (input, context) => {
|
|
11
|
-
const headers =
|
|
12
|
-
"content-type": "application/x-amz-json-1.1",
|
|
13
|
-
"x-amz-target": "ComprehendMedical_20181030.DescribeEntitiesDetectionV2Job",
|
|
14
|
-
};
|
|
11
|
+
const headers = sharedHeaders("DescribeEntitiesDetectionV2Job");
|
|
15
12
|
let body;
|
|
16
|
-
body = JSON.stringify(
|
|
13
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
17
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
15
|
};
|
|
19
16
|
exports.se_DescribeEntitiesDetectionV2JobCommand = se_DescribeEntitiesDetectionV2JobCommand;
|
|
20
17
|
const se_DescribeICD10CMInferenceJobCommand = async (input, context) => {
|
|
21
|
-
const headers =
|
|
22
|
-
"content-type": "application/x-amz-json-1.1",
|
|
23
|
-
"x-amz-target": "ComprehendMedical_20181030.DescribeICD10CMInferenceJob",
|
|
24
|
-
};
|
|
18
|
+
const headers = sharedHeaders("DescribeICD10CMInferenceJob");
|
|
25
19
|
let body;
|
|
26
|
-
body = JSON.stringify(
|
|
20
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
27
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
22
|
};
|
|
29
23
|
exports.se_DescribeICD10CMInferenceJobCommand = se_DescribeICD10CMInferenceJobCommand;
|
|
30
24
|
const se_DescribePHIDetectionJobCommand = async (input, context) => {
|
|
31
|
-
const headers =
|
|
32
|
-
"content-type": "application/x-amz-json-1.1",
|
|
33
|
-
"x-amz-target": "ComprehendMedical_20181030.DescribePHIDetectionJob",
|
|
34
|
-
};
|
|
25
|
+
const headers = sharedHeaders("DescribePHIDetectionJob");
|
|
35
26
|
let body;
|
|
36
|
-
body = JSON.stringify(
|
|
27
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
37
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
29
|
};
|
|
39
30
|
exports.se_DescribePHIDetectionJobCommand = se_DescribePHIDetectionJobCommand;
|
|
40
31
|
const se_DescribeRxNormInferenceJobCommand = async (input, context) => {
|
|
41
|
-
const headers =
|
|
42
|
-
"content-type": "application/x-amz-json-1.1",
|
|
43
|
-
"x-amz-target": "ComprehendMedical_20181030.DescribeRxNormInferenceJob",
|
|
44
|
-
};
|
|
32
|
+
const headers = sharedHeaders("DescribeRxNormInferenceJob");
|
|
45
33
|
let body;
|
|
46
|
-
body = JSON.stringify(
|
|
34
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
47
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
36
|
};
|
|
49
37
|
exports.se_DescribeRxNormInferenceJobCommand = se_DescribeRxNormInferenceJobCommand;
|
|
50
38
|
const se_DescribeSNOMEDCTInferenceJobCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "ComprehendMedical_20181030.DescribeSNOMEDCTInferenceJob",
|
|
54
|
-
};
|
|
39
|
+
const headers = sharedHeaders("DescribeSNOMEDCTInferenceJob");
|
|
55
40
|
let body;
|
|
56
|
-
body = JSON.stringify(
|
|
41
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
57
42
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
43
|
};
|
|
59
44
|
exports.se_DescribeSNOMEDCTInferenceJobCommand = se_DescribeSNOMEDCTInferenceJobCommand;
|
|
60
45
|
const se_DetectEntitiesCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.1",
|
|
63
|
-
"x-amz-target": "ComprehendMedical_20181030.DetectEntities",
|
|
64
|
-
};
|
|
46
|
+
const headers = sharedHeaders("DetectEntities");
|
|
65
47
|
let body;
|
|
66
|
-
body = JSON.stringify(
|
|
48
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
67
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
50
|
};
|
|
69
51
|
exports.se_DetectEntitiesCommand = se_DetectEntitiesCommand;
|
|
70
52
|
const se_DetectEntitiesV2Command = async (input, context) => {
|
|
71
|
-
const headers =
|
|
72
|
-
"content-type": "application/x-amz-json-1.1",
|
|
73
|
-
"x-amz-target": "ComprehendMedical_20181030.DetectEntitiesV2",
|
|
74
|
-
};
|
|
53
|
+
const headers = sharedHeaders("DetectEntitiesV2");
|
|
75
54
|
let body;
|
|
76
|
-
body = JSON.stringify(
|
|
55
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
77
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
57
|
};
|
|
79
58
|
exports.se_DetectEntitiesV2Command = se_DetectEntitiesV2Command;
|
|
80
59
|
const se_DetectPHICommand = async (input, context) => {
|
|
81
|
-
const headers =
|
|
82
|
-
"content-type": "application/x-amz-json-1.1",
|
|
83
|
-
"x-amz-target": "ComprehendMedical_20181030.DetectPHI",
|
|
84
|
-
};
|
|
60
|
+
const headers = sharedHeaders("DetectPHI");
|
|
85
61
|
let body;
|
|
86
|
-
body = JSON.stringify(
|
|
62
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
87
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
64
|
};
|
|
89
65
|
exports.se_DetectPHICommand = se_DetectPHICommand;
|
|
90
66
|
const se_InferICD10CMCommand = async (input, context) => {
|
|
91
|
-
const headers =
|
|
92
|
-
"content-type": "application/x-amz-json-1.1",
|
|
93
|
-
"x-amz-target": "ComprehendMedical_20181030.InferICD10CM",
|
|
94
|
-
};
|
|
67
|
+
const headers = sharedHeaders("InferICD10CM");
|
|
95
68
|
let body;
|
|
96
|
-
body = JSON.stringify(
|
|
69
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
97
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
71
|
};
|
|
99
72
|
exports.se_InferICD10CMCommand = se_InferICD10CMCommand;
|
|
100
73
|
const se_InferRxNormCommand = async (input, context) => {
|
|
101
|
-
const headers =
|
|
102
|
-
"content-type": "application/x-amz-json-1.1",
|
|
103
|
-
"x-amz-target": "ComprehendMedical_20181030.InferRxNorm",
|
|
104
|
-
};
|
|
74
|
+
const headers = sharedHeaders("InferRxNorm");
|
|
105
75
|
let body;
|
|
106
|
-
body = JSON.stringify(
|
|
76
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
107
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
78
|
};
|
|
109
79
|
exports.se_InferRxNormCommand = se_InferRxNormCommand;
|
|
110
80
|
const se_InferSNOMEDCTCommand = async (input, context) => {
|
|
111
|
-
const headers =
|
|
112
|
-
"content-type": "application/x-amz-json-1.1",
|
|
113
|
-
"x-amz-target": "ComprehendMedical_20181030.InferSNOMEDCT",
|
|
114
|
-
};
|
|
81
|
+
const headers = sharedHeaders("InferSNOMEDCT");
|
|
115
82
|
let body;
|
|
116
|
-
body = JSON.stringify(
|
|
83
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
117
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
85
|
};
|
|
119
86
|
exports.se_InferSNOMEDCTCommand = se_InferSNOMEDCTCommand;
|
|
120
87
|
const se_ListEntitiesDetectionV2JobsCommand = async (input, context) => {
|
|
121
|
-
const headers =
|
|
122
|
-
"content-type": "application/x-amz-json-1.1",
|
|
123
|
-
"x-amz-target": "ComprehendMedical_20181030.ListEntitiesDetectionV2Jobs",
|
|
124
|
-
};
|
|
88
|
+
const headers = sharedHeaders("ListEntitiesDetectionV2Jobs");
|
|
125
89
|
let body;
|
|
126
90
|
body = JSON.stringify(se_ListEntitiesDetectionV2JobsRequest(input, context));
|
|
127
91
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
92
|
};
|
|
129
93
|
exports.se_ListEntitiesDetectionV2JobsCommand = se_ListEntitiesDetectionV2JobsCommand;
|
|
130
94
|
const se_ListICD10CMInferenceJobsCommand = async (input, context) => {
|
|
131
|
-
const headers =
|
|
132
|
-
"content-type": "application/x-amz-json-1.1",
|
|
133
|
-
"x-amz-target": "ComprehendMedical_20181030.ListICD10CMInferenceJobs",
|
|
134
|
-
};
|
|
95
|
+
const headers = sharedHeaders("ListICD10CMInferenceJobs");
|
|
135
96
|
let body;
|
|
136
97
|
body = JSON.stringify(se_ListICD10CMInferenceJobsRequest(input, context));
|
|
137
98
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
99
|
};
|
|
139
100
|
exports.se_ListICD10CMInferenceJobsCommand = se_ListICD10CMInferenceJobsCommand;
|
|
140
101
|
const se_ListPHIDetectionJobsCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "ComprehendMedical_20181030.ListPHIDetectionJobs",
|
|
144
|
-
};
|
|
102
|
+
const headers = sharedHeaders("ListPHIDetectionJobs");
|
|
145
103
|
let body;
|
|
146
104
|
body = JSON.stringify(se_ListPHIDetectionJobsRequest(input, context));
|
|
147
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
106
|
};
|
|
149
107
|
exports.se_ListPHIDetectionJobsCommand = se_ListPHIDetectionJobsCommand;
|
|
150
108
|
const se_ListRxNormInferenceJobsCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-amz-json-1.1",
|
|
153
|
-
"x-amz-target": "ComprehendMedical_20181030.ListRxNormInferenceJobs",
|
|
154
|
-
};
|
|
109
|
+
const headers = sharedHeaders("ListRxNormInferenceJobs");
|
|
155
110
|
let body;
|
|
156
111
|
body = JSON.stringify(se_ListRxNormInferenceJobsRequest(input, context));
|
|
157
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
113
|
};
|
|
159
114
|
exports.se_ListRxNormInferenceJobsCommand = se_ListRxNormInferenceJobsCommand;
|
|
160
115
|
const se_ListSNOMEDCTInferenceJobsCommand = async (input, context) => {
|
|
161
|
-
const headers =
|
|
162
|
-
"content-type": "application/x-amz-json-1.1",
|
|
163
|
-
"x-amz-target": "ComprehendMedical_20181030.ListSNOMEDCTInferenceJobs",
|
|
164
|
-
};
|
|
116
|
+
const headers = sharedHeaders("ListSNOMEDCTInferenceJobs");
|
|
165
117
|
let body;
|
|
166
118
|
body = JSON.stringify(se_ListSNOMEDCTInferenceJobsRequest(input, context));
|
|
167
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
120
|
};
|
|
169
121
|
exports.se_ListSNOMEDCTInferenceJobsCommand = se_ListSNOMEDCTInferenceJobsCommand;
|
|
170
122
|
const se_StartEntitiesDetectionV2JobCommand = async (input, context) => {
|
|
171
|
-
const headers =
|
|
172
|
-
"content-type": "application/x-amz-json-1.1",
|
|
173
|
-
"x-amz-target": "ComprehendMedical_20181030.StartEntitiesDetectionV2Job",
|
|
174
|
-
};
|
|
123
|
+
const headers = sharedHeaders("StartEntitiesDetectionV2Job");
|
|
175
124
|
let body;
|
|
176
125
|
body = JSON.stringify(se_StartEntitiesDetectionV2JobRequest(input, context));
|
|
177
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
127
|
};
|
|
179
128
|
exports.se_StartEntitiesDetectionV2JobCommand = se_StartEntitiesDetectionV2JobCommand;
|
|
180
129
|
const se_StartICD10CMInferenceJobCommand = async (input, context) => {
|
|
181
|
-
const headers =
|
|
182
|
-
"content-type": "application/x-amz-json-1.1",
|
|
183
|
-
"x-amz-target": "ComprehendMedical_20181030.StartICD10CMInferenceJob",
|
|
184
|
-
};
|
|
130
|
+
const headers = sharedHeaders("StartICD10CMInferenceJob");
|
|
185
131
|
let body;
|
|
186
132
|
body = JSON.stringify(se_StartICD10CMInferenceJobRequest(input, context));
|
|
187
133
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
188
134
|
};
|
|
189
135
|
exports.se_StartICD10CMInferenceJobCommand = se_StartICD10CMInferenceJobCommand;
|
|
190
136
|
const se_StartPHIDetectionJobCommand = async (input, context) => {
|
|
191
|
-
const headers =
|
|
192
|
-
"content-type": "application/x-amz-json-1.1",
|
|
193
|
-
"x-amz-target": "ComprehendMedical_20181030.StartPHIDetectionJob",
|
|
194
|
-
};
|
|
137
|
+
const headers = sharedHeaders("StartPHIDetectionJob");
|
|
195
138
|
let body;
|
|
196
139
|
body = JSON.stringify(se_StartPHIDetectionJobRequest(input, context));
|
|
197
140
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
141
|
};
|
|
199
142
|
exports.se_StartPHIDetectionJobCommand = se_StartPHIDetectionJobCommand;
|
|
200
143
|
const se_StartRxNormInferenceJobCommand = async (input, context) => {
|
|
201
|
-
const headers =
|
|
202
|
-
"content-type": "application/x-amz-json-1.1",
|
|
203
|
-
"x-amz-target": "ComprehendMedical_20181030.StartRxNormInferenceJob",
|
|
204
|
-
};
|
|
144
|
+
const headers = sharedHeaders("StartRxNormInferenceJob");
|
|
205
145
|
let body;
|
|
206
146
|
body = JSON.stringify(se_StartRxNormInferenceJobRequest(input, context));
|
|
207
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
148
|
};
|
|
209
149
|
exports.se_StartRxNormInferenceJobCommand = se_StartRxNormInferenceJobCommand;
|
|
210
150
|
const se_StartSNOMEDCTInferenceJobCommand = async (input, context) => {
|
|
211
|
-
const headers =
|
|
212
|
-
"content-type": "application/x-amz-json-1.1",
|
|
213
|
-
"x-amz-target": "ComprehendMedical_20181030.StartSNOMEDCTInferenceJob",
|
|
214
|
-
};
|
|
151
|
+
const headers = sharedHeaders("StartSNOMEDCTInferenceJob");
|
|
215
152
|
let body;
|
|
216
153
|
body = JSON.stringify(se_StartSNOMEDCTInferenceJobRequest(input, context));
|
|
217
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
155
|
};
|
|
219
156
|
exports.se_StartSNOMEDCTInferenceJobCommand = se_StartSNOMEDCTInferenceJobCommand;
|
|
220
157
|
const se_StopEntitiesDetectionV2JobCommand = async (input, context) => {
|
|
221
|
-
const headers =
|
|
222
|
-
"content-type": "application/x-amz-json-1.1",
|
|
223
|
-
"x-amz-target": "ComprehendMedical_20181030.StopEntitiesDetectionV2Job",
|
|
224
|
-
};
|
|
158
|
+
const headers = sharedHeaders("StopEntitiesDetectionV2Job");
|
|
225
159
|
let body;
|
|
226
|
-
body = JSON.stringify(
|
|
160
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
227
161
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
162
|
};
|
|
229
163
|
exports.se_StopEntitiesDetectionV2JobCommand = se_StopEntitiesDetectionV2JobCommand;
|
|
230
164
|
const se_StopICD10CMInferenceJobCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "ComprehendMedical_20181030.StopICD10CMInferenceJob",
|
|
234
|
-
};
|
|
165
|
+
const headers = sharedHeaders("StopICD10CMInferenceJob");
|
|
235
166
|
let body;
|
|
236
|
-
body = JSON.stringify(
|
|
167
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
237
168
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
169
|
};
|
|
239
170
|
exports.se_StopICD10CMInferenceJobCommand = se_StopICD10CMInferenceJobCommand;
|
|
240
171
|
const se_StopPHIDetectionJobCommand = async (input, context) => {
|
|
241
|
-
const headers =
|
|
242
|
-
"content-type": "application/x-amz-json-1.1",
|
|
243
|
-
"x-amz-target": "ComprehendMedical_20181030.StopPHIDetectionJob",
|
|
244
|
-
};
|
|
172
|
+
const headers = sharedHeaders("StopPHIDetectionJob");
|
|
245
173
|
let body;
|
|
246
|
-
body = JSON.stringify(
|
|
174
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
247
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
176
|
};
|
|
249
177
|
exports.se_StopPHIDetectionJobCommand = se_StopPHIDetectionJobCommand;
|
|
250
178
|
const se_StopRxNormInferenceJobCommand = async (input, context) => {
|
|
251
|
-
const headers =
|
|
252
|
-
"content-type": "application/x-amz-json-1.1",
|
|
253
|
-
"x-amz-target": "ComprehendMedical_20181030.StopRxNormInferenceJob",
|
|
254
|
-
};
|
|
179
|
+
const headers = sharedHeaders("StopRxNormInferenceJob");
|
|
255
180
|
let body;
|
|
256
|
-
body = JSON.stringify(
|
|
181
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
257
182
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
183
|
};
|
|
259
184
|
exports.se_StopRxNormInferenceJobCommand = se_StopRxNormInferenceJobCommand;
|
|
260
185
|
const se_StopSNOMEDCTInferenceJobCommand = async (input, context) => {
|
|
261
|
-
const headers =
|
|
262
|
-
"content-type": "application/x-amz-json-1.1",
|
|
263
|
-
"x-amz-target": "ComprehendMedical_20181030.StopSNOMEDCTInferenceJob",
|
|
264
|
-
};
|
|
186
|
+
const headers = sharedHeaders("StopSNOMEDCTInferenceJob");
|
|
265
187
|
let body;
|
|
266
|
-
body = JSON.stringify(
|
|
188
|
+
body = JSON.stringify((0, smithy_client_1._json)(input));
|
|
267
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
190
|
};
|
|
269
191
|
exports.se_StopSNOMEDCTInferenceJobCommand = se_StopSNOMEDCTInferenceJobCommand;
|
|
@@ -278,7 +200,7 @@ const de_DescribeEntitiesDetectionV2JobCommand = async (output, context) => {
|
|
|
278
200
|
$metadata: deserializeMetadata(output),
|
|
279
201
|
...contents,
|
|
280
202
|
};
|
|
281
|
-
return
|
|
203
|
+
return response;
|
|
282
204
|
};
|
|
283
205
|
exports.de_DescribeEntitiesDetectionV2JobCommand = de_DescribeEntitiesDetectionV2JobCommand;
|
|
284
206
|
const de_DescribeEntitiesDetectionV2JobCommandError = async (output, context) => {
|
|
@@ -302,10 +224,9 @@ const de_DescribeEntitiesDetectionV2JobCommandError = async (output, context) =>
|
|
|
302
224
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
303
225
|
default:
|
|
304
226
|
const parsedBody = parsedOutput.body;
|
|
305
|
-
|
|
227
|
+
return throwDefaultError({
|
|
306
228
|
output,
|
|
307
229
|
parsedBody,
|
|
308
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
309
230
|
errorCode,
|
|
310
231
|
});
|
|
311
232
|
}
|
|
@@ -321,7 +242,7 @@ const de_DescribeICD10CMInferenceJobCommand = async (output, context) => {
|
|
|
321
242
|
$metadata: deserializeMetadata(output),
|
|
322
243
|
...contents,
|
|
323
244
|
};
|
|
324
|
-
return
|
|
245
|
+
return response;
|
|
325
246
|
};
|
|
326
247
|
exports.de_DescribeICD10CMInferenceJobCommand = de_DescribeICD10CMInferenceJobCommand;
|
|
327
248
|
const de_DescribeICD10CMInferenceJobCommandError = async (output, context) => {
|
|
@@ -345,10 +266,9 @@ const de_DescribeICD10CMInferenceJobCommandError = async (output, context) => {
|
|
|
345
266
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
346
267
|
default:
|
|
347
268
|
const parsedBody = parsedOutput.body;
|
|
348
|
-
|
|
269
|
+
return throwDefaultError({
|
|
349
270
|
output,
|
|
350
271
|
parsedBody,
|
|
351
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
352
272
|
errorCode,
|
|
353
273
|
});
|
|
354
274
|
}
|
|
@@ -364,7 +284,7 @@ const de_DescribePHIDetectionJobCommand = async (output, context) => {
|
|
|
364
284
|
$metadata: deserializeMetadata(output),
|
|
365
285
|
...contents,
|
|
366
286
|
};
|
|
367
|
-
return
|
|
287
|
+
return response;
|
|
368
288
|
};
|
|
369
289
|
exports.de_DescribePHIDetectionJobCommand = de_DescribePHIDetectionJobCommand;
|
|
370
290
|
const de_DescribePHIDetectionJobCommandError = async (output, context) => {
|
|
@@ -388,10 +308,9 @@ const de_DescribePHIDetectionJobCommandError = async (output, context) => {
|
|
|
388
308
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
389
309
|
default:
|
|
390
310
|
const parsedBody = parsedOutput.body;
|
|
391
|
-
|
|
311
|
+
return throwDefaultError({
|
|
392
312
|
output,
|
|
393
313
|
parsedBody,
|
|
394
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
395
314
|
errorCode,
|
|
396
315
|
});
|
|
397
316
|
}
|
|
@@ -407,7 +326,7 @@ const de_DescribeRxNormInferenceJobCommand = async (output, context) => {
|
|
|
407
326
|
$metadata: deserializeMetadata(output),
|
|
408
327
|
...contents,
|
|
409
328
|
};
|
|
410
|
-
return
|
|
329
|
+
return response;
|
|
411
330
|
};
|
|
412
331
|
exports.de_DescribeRxNormInferenceJobCommand = de_DescribeRxNormInferenceJobCommand;
|
|
413
332
|
const de_DescribeRxNormInferenceJobCommandError = async (output, context) => {
|
|
@@ -431,10 +350,9 @@ const de_DescribeRxNormInferenceJobCommandError = async (output, context) => {
|
|
|
431
350
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
432
351
|
default:
|
|
433
352
|
const parsedBody = parsedOutput.body;
|
|
434
|
-
|
|
353
|
+
return throwDefaultError({
|
|
435
354
|
output,
|
|
436
355
|
parsedBody,
|
|
437
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
438
356
|
errorCode,
|
|
439
357
|
});
|
|
440
358
|
}
|
|
@@ -450,7 +368,7 @@ const de_DescribeSNOMEDCTInferenceJobCommand = async (output, context) => {
|
|
|
450
368
|
$metadata: deserializeMetadata(output),
|
|
451
369
|
...contents,
|
|
452
370
|
};
|
|
453
|
-
return
|
|
371
|
+
return response;
|
|
454
372
|
};
|
|
455
373
|
exports.de_DescribeSNOMEDCTInferenceJobCommand = de_DescribeSNOMEDCTInferenceJobCommand;
|
|
456
374
|
const de_DescribeSNOMEDCTInferenceJobCommandError = async (output, context) => {
|
|
@@ -474,10 +392,9 @@ const de_DescribeSNOMEDCTInferenceJobCommandError = async (output, context) => {
|
|
|
474
392
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
475
393
|
default:
|
|
476
394
|
const parsedBody = parsedOutput.body;
|
|
477
|
-
|
|
395
|
+
return throwDefaultError({
|
|
478
396
|
output,
|
|
479
397
|
parsedBody,
|
|
480
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
481
398
|
errorCode,
|
|
482
399
|
});
|
|
483
400
|
}
|
|
@@ -493,7 +410,7 @@ const de_DetectEntitiesCommand = async (output, context) => {
|
|
|
493
410
|
$metadata: deserializeMetadata(output),
|
|
494
411
|
...contents,
|
|
495
412
|
};
|
|
496
|
-
return
|
|
413
|
+
return response;
|
|
497
414
|
};
|
|
498
415
|
exports.de_DetectEntitiesCommand = de_DetectEntitiesCommand;
|
|
499
416
|
const de_DetectEntitiesCommandError = async (output, context) => {
|
|
@@ -523,10 +440,9 @@ const de_DetectEntitiesCommandError = async (output, context) => {
|
|
|
523
440
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
524
441
|
default:
|
|
525
442
|
const parsedBody = parsedOutput.body;
|
|
526
|
-
|
|
443
|
+
return throwDefaultError({
|
|
527
444
|
output,
|
|
528
445
|
parsedBody,
|
|
529
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
530
446
|
errorCode,
|
|
531
447
|
});
|
|
532
448
|
}
|
|
@@ -542,7 +458,7 @@ const de_DetectEntitiesV2Command = async (output, context) => {
|
|
|
542
458
|
$metadata: deserializeMetadata(output),
|
|
543
459
|
...contents,
|
|
544
460
|
};
|
|
545
|
-
return
|
|
461
|
+
return response;
|
|
546
462
|
};
|
|
547
463
|
exports.de_DetectEntitiesV2Command = de_DetectEntitiesV2Command;
|
|
548
464
|
const de_DetectEntitiesV2CommandError = async (output, context) => {
|
|
@@ -572,10 +488,9 @@ const de_DetectEntitiesV2CommandError = async (output, context) => {
|
|
|
572
488
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
573
489
|
default:
|
|
574
490
|
const parsedBody = parsedOutput.body;
|
|
575
|
-
|
|
491
|
+
return throwDefaultError({
|
|
576
492
|
output,
|
|
577
493
|
parsedBody,
|
|
578
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
579
494
|
errorCode,
|
|
580
495
|
});
|
|
581
496
|
}
|
|
@@ -591,7 +506,7 @@ const de_DetectPHICommand = async (output, context) => {
|
|
|
591
506
|
$metadata: deserializeMetadata(output),
|
|
592
507
|
...contents,
|
|
593
508
|
};
|
|
594
|
-
return
|
|
509
|
+
return response;
|
|
595
510
|
};
|
|
596
511
|
exports.de_DetectPHICommand = de_DetectPHICommand;
|
|
597
512
|
const de_DetectPHICommandError = async (output, context) => {
|
|
@@ -621,10 +536,9 @@ const de_DetectPHICommandError = async (output, context) => {
|
|
|
621
536
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
622
537
|
default:
|
|
623
538
|
const parsedBody = parsedOutput.body;
|
|
624
|
-
|
|
539
|
+
return throwDefaultError({
|
|
625
540
|
output,
|
|
626
541
|
parsedBody,
|
|
627
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
628
542
|
errorCode,
|
|
629
543
|
});
|
|
630
544
|
}
|
|
@@ -640,7 +554,7 @@ const de_InferICD10CMCommand = async (output, context) => {
|
|
|
640
554
|
$metadata: deserializeMetadata(output),
|
|
641
555
|
...contents,
|
|
642
556
|
};
|
|
643
|
-
return
|
|
557
|
+
return response;
|
|
644
558
|
};
|
|
645
559
|
exports.de_InferICD10CMCommand = de_InferICD10CMCommand;
|
|
646
560
|
const de_InferICD10CMCommandError = async (output, context) => {
|
|
@@ -670,10 +584,9 @@ const de_InferICD10CMCommandError = async (output, context) => {
|
|
|
670
584
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
671
585
|
default:
|
|
672
586
|
const parsedBody = parsedOutput.body;
|
|
673
|
-
|
|
587
|
+
return throwDefaultError({
|
|
674
588
|
output,
|
|
675
589
|
parsedBody,
|
|
676
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
677
590
|
errorCode,
|
|
678
591
|
});
|
|
679
592
|
}
|
|
@@ -689,7 +602,7 @@ const de_InferRxNormCommand = async (output, context) => {
|
|
|
689
602
|
$metadata: deserializeMetadata(output),
|
|
690
603
|
...contents,
|
|
691
604
|
};
|
|
692
|
-
return
|
|
605
|
+
return response;
|
|
693
606
|
};
|
|
694
607
|
exports.de_InferRxNormCommand = de_InferRxNormCommand;
|
|
695
608
|
const de_InferRxNormCommandError = async (output, context) => {
|
|
@@ -719,10 +632,9 @@ const de_InferRxNormCommandError = async (output, context) => {
|
|
|
719
632
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
720
633
|
default:
|
|
721
634
|
const parsedBody = parsedOutput.body;
|
|
722
|
-
|
|
635
|
+
return throwDefaultError({
|
|
723
636
|
output,
|
|
724
637
|
parsedBody,
|
|
725
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
726
638
|
errorCode,
|
|
727
639
|
});
|
|
728
640
|
}
|
|
@@ -738,7 +650,7 @@ const de_InferSNOMEDCTCommand = async (output, context) => {
|
|
|
738
650
|
$metadata: deserializeMetadata(output),
|
|
739
651
|
...contents,
|
|
740
652
|
};
|
|
741
|
-
return
|
|
653
|
+
return response;
|
|
742
654
|
};
|
|
743
655
|
exports.de_InferSNOMEDCTCommand = de_InferSNOMEDCTCommand;
|
|
744
656
|
const de_InferSNOMEDCTCommandError = async (output, context) => {
|
|
@@ -768,10 +680,9 @@ const de_InferSNOMEDCTCommandError = async (output, context) => {
|
|
|
768
680
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
769
681
|
default:
|
|
770
682
|
const parsedBody = parsedOutput.body;
|
|
771
|
-
|
|
683
|
+
return throwDefaultError({
|
|
772
684
|
output,
|
|
773
685
|
parsedBody,
|
|
774
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
775
686
|
errorCode,
|
|
776
687
|
});
|
|
777
688
|
}
|
|
@@ -787,7 +698,7 @@ const de_ListEntitiesDetectionV2JobsCommand = async (output, context) => {
|
|
|
787
698
|
$metadata: deserializeMetadata(output),
|
|
788
699
|
...contents,
|
|
789
700
|
};
|
|
790
|
-
return
|
|
701
|
+
return response;
|
|
791
702
|
};
|
|
792
703
|
exports.de_ListEntitiesDetectionV2JobsCommand = de_ListEntitiesDetectionV2JobsCommand;
|
|
793
704
|
const de_ListEntitiesDetectionV2JobsCommandError = async (output, context) => {
|
|
@@ -811,10 +722,9 @@ const de_ListEntitiesDetectionV2JobsCommandError = async (output, context) => {
|
|
|
811
722
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
812
723
|
default:
|
|
813
724
|
const parsedBody = parsedOutput.body;
|
|
814
|
-
|
|
725
|
+
return throwDefaultError({
|
|
815
726
|
output,
|
|
816
727
|
parsedBody,
|
|
817
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
818
728
|
errorCode,
|
|
819
729
|
});
|
|
820
730
|
}
|
|
@@ -830,7 +740,7 @@ const de_ListICD10CMInferenceJobsCommand = async (output, context) => {
|
|
|
830
740
|
$metadata: deserializeMetadata(output),
|
|
831
741
|
...contents,
|
|
832
742
|
};
|
|
833
|
-
return
|
|
743
|
+
return response;
|
|
834
744
|
};
|
|
835
745
|
exports.de_ListICD10CMInferenceJobsCommand = de_ListICD10CMInferenceJobsCommand;
|
|
836
746
|
const de_ListICD10CMInferenceJobsCommandError = async (output, context) => {
|
|
@@ -854,10 +764,9 @@ const de_ListICD10CMInferenceJobsCommandError = async (output, context) => {
|
|
|
854
764
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
855
765
|
default:
|
|
856
766
|
const parsedBody = parsedOutput.body;
|
|
857
|
-
|
|
767
|
+
return throwDefaultError({
|
|
858
768
|
output,
|
|
859
769
|
parsedBody,
|
|
860
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
861
770
|
errorCode,
|
|
862
771
|
});
|
|
863
772
|
}
|
|
@@ -873,7 +782,7 @@ const de_ListPHIDetectionJobsCommand = async (output, context) => {
|
|
|
873
782
|
$metadata: deserializeMetadata(output),
|
|
874
783
|
...contents,
|
|
875
784
|
};
|
|
876
|
-
return
|
|
785
|
+
return response;
|
|
877
786
|
};
|
|
878
787
|
exports.de_ListPHIDetectionJobsCommand = de_ListPHIDetectionJobsCommand;
|
|
879
788
|
const de_ListPHIDetectionJobsCommandError = async (output, context) => {
|
|
@@ -897,10 +806,9 @@ const de_ListPHIDetectionJobsCommandError = async (output, context) => {
|
|
|
897
806
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
898
807
|
default:
|
|
899
808
|
const parsedBody = parsedOutput.body;
|
|
900
|
-
|
|
809
|
+
return throwDefaultError({
|
|
901
810
|
output,
|
|
902
811
|
parsedBody,
|
|
903
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
904
812
|
errorCode,
|
|
905
813
|
});
|
|
906
814
|
}
|
|
@@ -916,7 +824,7 @@ const de_ListRxNormInferenceJobsCommand = async (output, context) => {
|
|
|
916
824
|
$metadata: deserializeMetadata(output),
|
|
917
825
|
...contents,
|
|
918
826
|
};
|
|
919
|
-
return
|
|
827
|
+
return response;
|
|
920
828
|
};
|
|
921
829
|
exports.de_ListRxNormInferenceJobsCommand = de_ListRxNormInferenceJobsCommand;
|
|
922
830
|
const de_ListRxNormInferenceJobsCommandError = async (output, context) => {
|
|
@@ -940,10 +848,9 @@ const de_ListRxNormInferenceJobsCommandError = async (output, context) => {
|
|
|
940
848
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
941
849
|
default:
|
|
942
850
|
const parsedBody = parsedOutput.body;
|
|
943
|
-
|
|
851
|
+
return throwDefaultError({
|
|
944
852
|
output,
|
|
945
853
|
parsedBody,
|
|
946
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
947
854
|
errorCode,
|
|
948
855
|
});
|
|
949
856
|
}
|
|
@@ -959,7 +866,7 @@ const de_ListSNOMEDCTInferenceJobsCommand = async (output, context) => {
|
|
|
959
866
|
$metadata: deserializeMetadata(output),
|
|
960
867
|
...contents,
|
|
961
868
|
};
|
|
962
|
-
return
|
|
869
|
+
return response;
|
|
963
870
|
};
|
|
964
871
|
exports.de_ListSNOMEDCTInferenceJobsCommand = de_ListSNOMEDCTInferenceJobsCommand;
|
|
965
872
|
const de_ListSNOMEDCTInferenceJobsCommandError = async (output, context) => {
|
|
@@ -983,10 +890,9 @@ const de_ListSNOMEDCTInferenceJobsCommandError = async (output, context) => {
|
|
|
983
890
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
984
891
|
default:
|
|
985
892
|
const parsedBody = parsedOutput.body;
|
|
986
|
-
|
|
893
|
+
return throwDefaultError({
|
|
987
894
|
output,
|
|
988
895
|
parsedBody,
|
|
989
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
990
896
|
errorCode,
|
|
991
897
|
});
|
|
992
898
|
}
|
|
@@ -997,12 +903,12 @@ const de_StartEntitiesDetectionV2JobCommand = async (output, context) => {
|
|
|
997
903
|
}
|
|
998
904
|
const data = await parseBody(output.body, context);
|
|
999
905
|
let contents = {};
|
|
1000
|
-
contents =
|
|
906
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1001
907
|
const response = {
|
|
1002
908
|
$metadata: deserializeMetadata(output),
|
|
1003
909
|
...contents,
|
|
1004
910
|
};
|
|
1005
|
-
return
|
|
911
|
+
return response;
|
|
1006
912
|
};
|
|
1007
913
|
exports.de_StartEntitiesDetectionV2JobCommand = de_StartEntitiesDetectionV2JobCommand;
|
|
1008
914
|
const de_StartEntitiesDetectionV2JobCommandError = async (output, context) => {
|
|
@@ -1026,10 +932,9 @@ const de_StartEntitiesDetectionV2JobCommandError = async (output, context) => {
|
|
|
1026
932
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1027
933
|
default:
|
|
1028
934
|
const parsedBody = parsedOutput.body;
|
|
1029
|
-
|
|
935
|
+
return throwDefaultError({
|
|
1030
936
|
output,
|
|
1031
937
|
parsedBody,
|
|
1032
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1033
938
|
errorCode,
|
|
1034
939
|
});
|
|
1035
940
|
}
|
|
@@ -1040,12 +945,12 @@ const de_StartICD10CMInferenceJobCommand = async (output, context) => {
|
|
|
1040
945
|
}
|
|
1041
946
|
const data = await parseBody(output.body, context);
|
|
1042
947
|
let contents = {};
|
|
1043
|
-
contents =
|
|
948
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1044
949
|
const response = {
|
|
1045
950
|
$metadata: deserializeMetadata(output),
|
|
1046
951
|
...contents,
|
|
1047
952
|
};
|
|
1048
|
-
return
|
|
953
|
+
return response;
|
|
1049
954
|
};
|
|
1050
955
|
exports.de_StartICD10CMInferenceJobCommand = de_StartICD10CMInferenceJobCommand;
|
|
1051
956
|
const de_StartICD10CMInferenceJobCommandError = async (output, context) => {
|
|
@@ -1069,10 +974,9 @@ const de_StartICD10CMInferenceJobCommandError = async (output, context) => {
|
|
|
1069
974
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1070
975
|
default:
|
|
1071
976
|
const parsedBody = parsedOutput.body;
|
|
1072
|
-
|
|
977
|
+
return throwDefaultError({
|
|
1073
978
|
output,
|
|
1074
979
|
parsedBody,
|
|
1075
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1076
980
|
errorCode,
|
|
1077
981
|
});
|
|
1078
982
|
}
|
|
@@ -1083,12 +987,12 @@ const de_StartPHIDetectionJobCommand = async (output, context) => {
|
|
|
1083
987
|
}
|
|
1084
988
|
const data = await parseBody(output.body, context);
|
|
1085
989
|
let contents = {};
|
|
1086
|
-
contents =
|
|
990
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1087
991
|
const response = {
|
|
1088
992
|
$metadata: deserializeMetadata(output),
|
|
1089
993
|
...contents,
|
|
1090
994
|
};
|
|
1091
|
-
return
|
|
995
|
+
return response;
|
|
1092
996
|
};
|
|
1093
997
|
exports.de_StartPHIDetectionJobCommand = de_StartPHIDetectionJobCommand;
|
|
1094
998
|
const de_StartPHIDetectionJobCommandError = async (output, context) => {
|
|
@@ -1112,10 +1016,9 @@ const de_StartPHIDetectionJobCommandError = async (output, context) => {
|
|
|
1112
1016
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1113
1017
|
default:
|
|
1114
1018
|
const parsedBody = parsedOutput.body;
|
|
1115
|
-
|
|
1019
|
+
return throwDefaultError({
|
|
1116
1020
|
output,
|
|
1117
1021
|
parsedBody,
|
|
1118
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1119
1022
|
errorCode,
|
|
1120
1023
|
});
|
|
1121
1024
|
}
|
|
@@ -1126,12 +1029,12 @@ const de_StartRxNormInferenceJobCommand = async (output, context) => {
|
|
|
1126
1029
|
}
|
|
1127
1030
|
const data = await parseBody(output.body, context);
|
|
1128
1031
|
let contents = {};
|
|
1129
|
-
contents =
|
|
1032
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1130
1033
|
const response = {
|
|
1131
1034
|
$metadata: deserializeMetadata(output),
|
|
1132
1035
|
...contents,
|
|
1133
1036
|
};
|
|
1134
|
-
return
|
|
1037
|
+
return response;
|
|
1135
1038
|
};
|
|
1136
1039
|
exports.de_StartRxNormInferenceJobCommand = de_StartRxNormInferenceJobCommand;
|
|
1137
1040
|
const de_StartRxNormInferenceJobCommandError = async (output, context) => {
|
|
@@ -1155,10 +1058,9 @@ const de_StartRxNormInferenceJobCommandError = async (output, context) => {
|
|
|
1155
1058
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1156
1059
|
default:
|
|
1157
1060
|
const parsedBody = parsedOutput.body;
|
|
1158
|
-
|
|
1061
|
+
return throwDefaultError({
|
|
1159
1062
|
output,
|
|
1160
1063
|
parsedBody,
|
|
1161
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1162
1064
|
errorCode,
|
|
1163
1065
|
});
|
|
1164
1066
|
}
|
|
@@ -1169,12 +1071,12 @@ const de_StartSNOMEDCTInferenceJobCommand = async (output, context) => {
|
|
|
1169
1071
|
}
|
|
1170
1072
|
const data = await parseBody(output.body, context);
|
|
1171
1073
|
let contents = {};
|
|
1172
|
-
contents =
|
|
1074
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1173
1075
|
const response = {
|
|
1174
1076
|
$metadata: deserializeMetadata(output),
|
|
1175
1077
|
...contents,
|
|
1176
1078
|
};
|
|
1177
|
-
return
|
|
1079
|
+
return response;
|
|
1178
1080
|
};
|
|
1179
1081
|
exports.de_StartSNOMEDCTInferenceJobCommand = de_StartSNOMEDCTInferenceJobCommand;
|
|
1180
1082
|
const de_StartSNOMEDCTInferenceJobCommandError = async (output, context) => {
|
|
@@ -1198,10 +1100,9 @@ const de_StartSNOMEDCTInferenceJobCommandError = async (output, context) => {
|
|
|
1198
1100
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1199
1101
|
default:
|
|
1200
1102
|
const parsedBody = parsedOutput.body;
|
|
1201
|
-
|
|
1103
|
+
return throwDefaultError({
|
|
1202
1104
|
output,
|
|
1203
1105
|
parsedBody,
|
|
1204
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1205
1106
|
errorCode,
|
|
1206
1107
|
});
|
|
1207
1108
|
}
|
|
@@ -1212,12 +1113,12 @@ const de_StopEntitiesDetectionV2JobCommand = async (output, context) => {
|
|
|
1212
1113
|
}
|
|
1213
1114
|
const data = await parseBody(output.body, context);
|
|
1214
1115
|
let contents = {};
|
|
1215
|
-
contents =
|
|
1116
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1216
1117
|
const response = {
|
|
1217
1118
|
$metadata: deserializeMetadata(output),
|
|
1218
1119
|
...contents,
|
|
1219
1120
|
};
|
|
1220
|
-
return
|
|
1121
|
+
return response;
|
|
1221
1122
|
};
|
|
1222
1123
|
exports.de_StopEntitiesDetectionV2JobCommand = de_StopEntitiesDetectionV2JobCommand;
|
|
1223
1124
|
const de_StopEntitiesDetectionV2JobCommandError = async (output, context) => {
|
|
@@ -1238,10 +1139,9 @@ const de_StopEntitiesDetectionV2JobCommandError = async (output, context) => {
|
|
|
1238
1139
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1239
1140
|
default:
|
|
1240
1141
|
const parsedBody = parsedOutput.body;
|
|
1241
|
-
|
|
1142
|
+
return throwDefaultError({
|
|
1242
1143
|
output,
|
|
1243
1144
|
parsedBody,
|
|
1244
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1245
1145
|
errorCode,
|
|
1246
1146
|
});
|
|
1247
1147
|
}
|
|
@@ -1252,12 +1152,12 @@ const de_StopICD10CMInferenceJobCommand = async (output, context) => {
|
|
|
1252
1152
|
}
|
|
1253
1153
|
const data = await parseBody(output.body, context);
|
|
1254
1154
|
let contents = {};
|
|
1255
|
-
contents =
|
|
1155
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1256
1156
|
const response = {
|
|
1257
1157
|
$metadata: deserializeMetadata(output),
|
|
1258
1158
|
...contents,
|
|
1259
1159
|
};
|
|
1260
|
-
return
|
|
1160
|
+
return response;
|
|
1261
1161
|
};
|
|
1262
1162
|
exports.de_StopICD10CMInferenceJobCommand = de_StopICD10CMInferenceJobCommand;
|
|
1263
1163
|
const de_StopICD10CMInferenceJobCommandError = async (output, context) => {
|
|
@@ -1278,10 +1178,9 @@ const de_StopICD10CMInferenceJobCommandError = async (output, context) => {
|
|
|
1278
1178
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1279
1179
|
default:
|
|
1280
1180
|
const parsedBody = parsedOutput.body;
|
|
1281
|
-
|
|
1181
|
+
return throwDefaultError({
|
|
1282
1182
|
output,
|
|
1283
1183
|
parsedBody,
|
|
1284
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1285
1184
|
errorCode,
|
|
1286
1185
|
});
|
|
1287
1186
|
}
|
|
@@ -1292,12 +1191,12 @@ const de_StopPHIDetectionJobCommand = async (output, context) => {
|
|
|
1292
1191
|
}
|
|
1293
1192
|
const data = await parseBody(output.body, context);
|
|
1294
1193
|
let contents = {};
|
|
1295
|
-
contents =
|
|
1194
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1296
1195
|
const response = {
|
|
1297
1196
|
$metadata: deserializeMetadata(output),
|
|
1298
1197
|
...contents,
|
|
1299
1198
|
};
|
|
1300
|
-
return
|
|
1199
|
+
return response;
|
|
1301
1200
|
};
|
|
1302
1201
|
exports.de_StopPHIDetectionJobCommand = de_StopPHIDetectionJobCommand;
|
|
1303
1202
|
const de_StopPHIDetectionJobCommandError = async (output, context) => {
|
|
@@ -1318,10 +1217,9 @@ const de_StopPHIDetectionJobCommandError = async (output, context) => {
|
|
|
1318
1217
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1319
1218
|
default:
|
|
1320
1219
|
const parsedBody = parsedOutput.body;
|
|
1321
|
-
|
|
1220
|
+
return throwDefaultError({
|
|
1322
1221
|
output,
|
|
1323
1222
|
parsedBody,
|
|
1324
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1325
1223
|
errorCode,
|
|
1326
1224
|
});
|
|
1327
1225
|
}
|
|
@@ -1332,12 +1230,12 @@ const de_StopRxNormInferenceJobCommand = async (output, context) => {
|
|
|
1332
1230
|
}
|
|
1333
1231
|
const data = await parseBody(output.body, context);
|
|
1334
1232
|
let contents = {};
|
|
1335
|
-
contents =
|
|
1233
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1336
1234
|
const response = {
|
|
1337
1235
|
$metadata: deserializeMetadata(output),
|
|
1338
1236
|
...contents,
|
|
1339
1237
|
};
|
|
1340
|
-
return
|
|
1238
|
+
return response;
|
|
1341
1239
|
};
|
|
1342
1240
|
exports.de_StopRxNormInferenceJobCommand = de_StopRxNormInferenceJobCommand;
|
|
1343
1241
|
const de_StopRxNormInferenceJobCommandError = async (output, context) => {
|
|
@@ -1358,10 +1256,9 @@ const de_StopRxNormInferenceJobCommandError = async (output, context) => {
|
|
|
1358
1256
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1359
1257
|
default:
|
|
1360
1258
|
const parsedBody = parsedOutput.body;
|
|
1361
|
-
|
|
1259
|
+
return throwDefaultError({
|
|
1362
1260
|
output,
|
|
1363
1261
|
parsedBody,
|
|
1364
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1365
1262
|
errorCode,
|
|
1366
1263
|
});
|
|
1367
1264
|
}
|
|
@@ -1372,12 +1269,12 @@ const de_StopSNOMEDCTInferenceJobCommand = async (output, context) => {
|
|
|
1372
1269
|
}
|
|
1373
1270
|
const data = await parseBody(output.body, context);
|
|
1374
1271
|
let contents = {};
|
|
1375
|
-
contents =
|
|
1272
|
+
contents = (0, smithy_client_1._json)(data);
|
|
1376
1273
|
const response = {
|
|
1377
1274
|
$metadata: deserializeMetadata(output),
|
|
1378
1275
|
...contents,
|
|
1379
1276
|
};
|
|
1380
|
-
return
|
|
1277
|
+
return response;
|
|
1381
1278
|
};
|
|
1382
1279
|
exports.de_StopSNOMEDCTInferenceJobCommand = de_StopSNOMEDCTInferenceJobCommand;
|
|
1383
1280
|
const de_StopSNOMEDCTInferenceJobCommandError = async (output, context) => {
|
|
@@ -1401,17 +1298,16 @@ const de_StopSNOMEDCTInferenceJobCommandError = async (output, context) => {
|
|
|
1401
1298
|
throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
|
|
1402
1299
|
default:
|
|
1403
1300
|
const parsedBody = parsedOutput.body;
|
|
1404
|
-
|
|
1301
|
+
return throwDefaultError({
|
|
1405
1302
|
output,
|
|
1406
1303
|
parsedBody,
|
|
1407
|
-
exceptionCtor: ComprehendMedicalServiceException_1.ComprehendMedicalServiceException,
|
|
1408
1304
|
errorCode,
|
|
1409
1305
|
});
|
|
1410
1306
|
}
|
|
1411
1307
|
};
|
|
1412
1308
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1413
1309
|
const body = parsedOutput.body;
|
|
1414
|
-
const deserialized =
|
|
1310
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1415
1311
|
const exception = new models_0_1.InternalServerException({
|
|
1416
1312
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1417
1313
|
...deserialized,
|
|
@@ -1420,7 +1316,7 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
|
1420
1316
|
};
|
|
1421
1317
|
const de_InvalidEncodingExceptionRes = async (parsedOutput, context) => {
|
|
1422
1318
|
const body = parsedOutput.body;
|
|
1423
|
-
const deserialized =
|
|
1319
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1424
1320
|
const exception = new models_0_1.InvalidEncodingException({
|
|
1425
1321
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1426
1322
|
...deserialized,
|
|
@@ -1429,7 +1325,7 @@ const de_InvalidEncodingExceptionRes = async (parsedOutput, context) => {
|
|
|
1429
1325
|
};
|
|
1430
1326
|
const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
1431
1327
|
const body = parsedOutput.body;
|
|
1432
|
-
const deserialized =
|
|
1328
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1433
1329
|
const exception = new models_0_1.InvalidRequestException({
|
|
1434
1330
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1435
1331
|
...deserialized,
|
|
@@ -1438,7 +1334,7 @@ const de_InvalidRequestExceptionRes = async (parsedOutput, context) => {
|
|
|
1438
1334
|
};
|
|
1439
1335
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1440
1336
|
const body = parsedOutput.body;
|
|
1441
|
-
const deserialized =
|
|
1337
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1442
1338
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
1443
1339
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1444
1340
|
...deserialized,
|
|
@@ -1447,7 +1343,7 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
|
1447
1343
|
};
|
|
1448
1344
|
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1449
1345
|
const body = parsedOutput.body;
|
|
1450
|
-
const deserialized =
|
|
1346
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1451
1347
|
const exception = new models_0_1.ServiceUnavailableException({
|
|
1452
1348
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1453
1349
|
...deserialized,
|
|
@@ -1456,7 +1352,7 @@ const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1456
1352
|
};
|
|
1457
1353
|
const de_TextSizeLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1458
1354
|
const body = parsedOutput.body;
|
|
1459
|
-
const deserialized =
|
|
1355
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1460
1356
|
const exception = new models_0_1.TextSizeLimitExceededException({
|
|
1461
1357
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1462
1358
|
...deserialized,
|
|
@@ -1465,7 +1361,7 @@ const de_TextSizeLimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1465
1361
|
};
|
|
1466
1362
|
const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
1467
1363
|
const body = parsedOutput.body;
|
|
1468
|
-
const deserialized =
|
|
1364
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1469
1365
|
const exception = new models_0_1.TooManyRequestsException({
|
|
1470
1366
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1471
1367
|
...deserialized,
|
|
@@ -1474,7 +1370,7 @@ const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => {
|
|
|
1474
1370
|
};
|
|
1475
1371
|
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1476
1372
|
const body = parsedOutput.body;
|
|
1477
|
-
const deserialized =
|
|
1373
|
+
const deserialized = (0, smithy_client_1._json)(body);
|
|
1478
1374
|
const exception = new models_0_1.ValidationException({
|
|
1479
1375
|
$metadata: deserializeMetadata(parsedOutput),
|
|
1480
1376
|
...deserialized,
|
|
@@ -1482,798 +1378,519 @@ const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
|
1482
1378
|
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
1483
1379
|
};
|
|
1484
1380
|
const se_ComprehendMedicalAsyncJobFilter = (input, context) => {
|
|
1485
|
-
return {
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
};
|
|
1491
|
-
};
|
|
1492
|
-
const se_DescribeEntitiesDetectionV2JobRequest = (input, context) => {
|
|
1493
|
-
return {
|
|
1494
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1495
|
-
};
|
|
1496
|
-
};
|
|
1497
|
-
const se_DescribeICD10CMInferenceJobRequest = (input, context) => {
|
|
1498
|
-
return {
|
|
1499
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1500
|
-
};
|
|
1501
|
-
};
|
|
1502
|
-
const se_DescribePHIDetectionJobRequest = (input, context) => {
|
|
1503
|
-
return {
|
|
1504
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1505
|
-
};
|
|
1506
|
-
};
|
|
1507
|
-
const se_DescribeRxNormInferenceJobRequest = (input, context) => {
|
|
1508
|
-
return {
|
|
1509
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1510
|
-
};
|
|
1511
|
-
};
|
|
1512
|
-
const se_DescribeSNOMEDCTInferenceJobRequest = (input, context) => {
|
|
1513
|
-
return {
|
|
1514
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1515
|
-
};
|
|
1516
|
-
};
|
|
1517
|
-
const se_DetectEntitiesRequest = (input, context) => {
|
|
1518
|
-
return {
|
|
1519
|
-
...(input.Text != null && { Text: input.Text }),
|
|
1520
|
-
};
|
|
1521
|
-
};
|
|
1522
|
-
const se_DetectEntitiesV2Request = (input, context) => {
|
|
1523
|
-
return {
|
|
1524
|
-
...(input.Text != null && { Text: input.Text }),
|
|
1525
|
-
};
|
|
1526
|
-
};
|
|
1527
|
-
const se_DetectPHIRequest = (input, context) => {
|
|
1528
|
-
return {
|
|
1529
|
-
...(input.Text != null && { Text: input.Text }),
|
|
1530
|
-
};
|
|
1531
|
-
};
|
|
1532
|
-
const se_InferICD10CMRequest = (input, context) => {
|
|
1533
|
-
return {
|
|
1534
|
-
...(input.Text != null && { Text: input.Text }),
|
|
1535
|
-
};
|
|
1536
|
-
};
|
|
1537
|
-
const se_InferRxNormRequest = (input, context) => {
|
|
1538
|
-
return {
|
|
1539
|
-
...(input.Text != null && { Text: input.Text }),
|
|
1540
|
-
};
|
|
1541
|
-
};
|
|
1542
|
-
const se_InferSNOMEDCTRequest = (input, context) => {
|
|
1543
|
-
return {
|
|
1544
|
-
...(input.Text != null && { Text: input.Text }),
|
|
1545
|
-
};
|
|
1546
|
-
};
|
|
1547
|
-
const se_InputDataConfig = (input, context) => {
|
|
1548
|
-
return {
|
|
1549
|
-
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
1550
|
-
...(input.S3Key != null && { S3Key: input.S3Key }),
|
|
1551
|
-
};
|
|
1381
|
+
return (0, smithy_client_1.take)(input, {
|
|
1382
|
+
JobName: [],
|
|
1383
|
+
JobStatus: [],
|
|
1384
|
+
SubmitTimeAfter: (_) => Math.round(_.getTime() / 1000),
|
|
1385
|
+
SubmitTimeBefore: (_) => Math.round(_.getTime() / 1000),
|
|
1386
|
+
});
|
|
1552
1387
|
};
|
|
1553
1388
|
const se_ListEntitiesDetectionV2JobsRequest = (input, context) => {
|
|
1554
|
-
return {
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
};
|
|
1389
|
+
return (0, smithy_client_1.take)(input, {
|
|
1390
|
+
Filter: (_) => se_ComprehendMedicalAsyncJobFilter(_, context),
|
|
1391
|
+
MaxResults: [],
|
|
1392
|
+
NextToken: [],
|
|
1393
|
+
});
|
|
1559
1394
|
};
|
|
1560
1395
|
const se_ListICD10CMInferenceJobsRequest = (input, context) => {
|
|
1561
|
-
return {
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
};
|
|
1396
|
+
return (0, smithy_client_1.take)(input, {
|
|
1397
|
+
Filter: (_) => se_ComprehendMedicalAsyncJobFilter(_, context),
|
|
1398
|
+
MaxResults: [],
|
|
1399
|
+
NextToken: [],
|
|
1400
|
+
});
|
|
1566
1401
|
};
|
|
1567
1402
|
const se_ListPHIDetectionJobsRequest = (input, context) => {
|
|
1568
|
-
return {
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
};
|
|
1403
|
+
return (0, smithy_client_1.take)(input, {
|
|
1404
|
+
Filter: (_) => se_ComprehendMedicalAsyncJobFilter(_, context),
|
|
1405
|
+
MaxResults: [],
|
|
1406
|
+
NextToken: [],
|
|
1407
|
+
});
|
|
1573
1408
|
};
|
|
1574
1409
|
const se_ListRxNormInferenceJobsRequest = (input, context) => {
|
|
1575
|
-
return {
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
};
|
|
1410
|
+
return (0, smithy_client_1.take)(input, {
|
|
1411
|
+
Filter: (_) => se_ComprehendMedicalAsyncJobFilter(_, context),
|
|
1412
|
+
MaxResults: [],
|
|
1413
|
+
NextToken: [],
|
|
1414
|
+
});
|
|
1580
1415
|
};
|
|
1581
1416
|
const se_ListSNOMEDCTInferenceJobsRequest = (input, context) => {
|
|
1582
|
-
return {
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
};
|
|
1587
|
-
};
|
|
1588
|
-
const se_OutputDataConfig = (input, context) => {
|
|
1589
|
-
return {
|
|
1590
|
-
...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
|
|
1591
|
-
...(input.S3Key != null && { S3Key: input.S3Key }),
|
|
1592
|
-
};
|
|
1417
|
+
return (0, smithy_client_1.take)(input, {
|
|
1418
|
+
Filter: (_) => se_ComprehendMedicalAsyncJobFilter(_, context),
|
|
1419
|
+
MaxResults: [],
|
|
1420
|
+
NextToken: [],
|
|
1421
|
+
});
|
|
1593
1422
|
};
|
|
1594
1423
|
const se_StartEntitiesDetectionV2JobRequest = (input, context) => {
|
|
1595
|
-
return {
|
|
1596
|
-
ClientRequestToken:
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
};
|
|
1424
|
+
return (0, smithy_client_1.take)(input, {
|
|
1425
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1426
|
+
DataAccessRoleArn: [],
|
|
1427
|
+
InputDataConfig: smithy_client_1._json,
|
|
1428
|
+
JobName: [],
|
|
1429
|
+
KMSKey: [],
|
|
1430
|
+
LanguageCode: [],
|
|
1431
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1432
|
+
});
|
|
1604
1433
|
};
|
|
1605
1434
|
const se_StartICD10CMInferenceJobRequest = (input, context) => {
|
|
1606
|
-
return {
|
|
1607
|
-
ClientRequestToken:
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
};
|
|
1435
|
+
return (0, smithy_client_1.take)(input, {
|
|
1436
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1437
|
+
DataAccessRoleArn: [],
|
|
1438
|
+
InputDataConfig: smithy_client_1._json,
|
|
1439
|
+
JobName: [],
|
|
1440
|
+
KMSKey: [],
|
|
1441
|
+
LanguageCode: [],
|
|
1442
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1443
|
+
});
|
|
1615
1444
|
};
|
|
1616
1445
|
const se_StartPHIDetectionJobRequest = (input, context) => {
|
|
1617
|
-
return {
|
|
1618
|
-
ClientRequestToken:
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
};
|
|
1446
|
+
return (0, smithy_client_1.take)(input, {
|
|
1447
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1448
|
+
DataAccessRoleArn: [],
|
|
1449
|
+
InputDataConfig: smithy_client_1._json,
|
|
1450
|
+
JobName: [],
|
|
1451
|
+
KMSKey: [],
|
|
1452
|
+
LanguageCode: [],
|
|
1453
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1454
|
+
});
|
|
1626
1455
|
};
|
|
1627
1456
|
const se_StartRxNormInferenceJobRequest = (input, context) => {
|
|
1628
|
-
return {
|
|
1629
|
-
ClientRequestToken:
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
};
|
|
1457
|
+
return (0, smithy_client_1.take)(input, {
|
|
1458
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1459
|
+
DataAccessRoleArn: [],
|
|
1460
|
+
InputDataConfig: smithy_client_1._json,
|
|
1461
|
+
JobName: [],
|
|
1462
|
+
KMSKey: [],
|
|
1463
|
+
LanguageCode: [],
|
|
1464
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1465
|
+
});
|
|
1637
1466
|
};
|
|
1638
1467
|
const se_StartSNOMEDCTInferenceJobRequest = (input, context) => {
|
|
1639
|
-
return {
|
|
1640
|
-
ClientRequestToken:
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
};
|
|
1648
|
-
};
|
|
1649
|
-
const se_StopEntitiesDetectionV2JobRequest = (input, context) => {
|
|
1650
|
-
return {
|
|
1651
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1652
|
-
};
|
|
1653
|
-
};
|
|
1654
|
-
const se_StopICD10CMInferenceJobRequest = (input, context) => {
|
|
1655
|
-
return {
|
|
1656
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1657
|
-
};
|
|
1658
|
-
};
|
|
1659
|
-
const se_StopPHIDetectionJobRequest = (input, context) => {
|
|
1660
|
-
return {
|
|
1661
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1662
|
-
};
|
|
1663
|
-
};
|
|
1664
|
-
const se_StopRxNormInferenceJobRequest = (input, context) => {
|
|
1665
|
-
return {
|
|
1666
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1667
|
-
};
|
|
1668
|
-
};
|
|
1669
|
-
const se_StopSNOMEDCTInferenceJobRequest = (input, context) => {
|
|
1670
|
-
return {
|
|
1671
|
-
...(input.JobId != null && { JobId: input.JobId }),
|
|
1672
|
-
};
|
|
1468
|
+
return (0, smithy_client_1.take)(input, {
|
|
1469
|
+
ClientRequestToken: (_) => _ ?? (0, uuid_1.v4)(),
|
|
1470
|
+
DataAccessRoleArn: [],
|
|
1471
|
+
InputDataConfig: smithy_client_1._json,
|
|
1472
|
+
JobName: [],
|
|
1473
|
+
KMSKey: [],
|
|
1474
|
+
LanguageCode: [],
|
|
1475
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1476
|
+
});
|
|
1673
1477
|
};
|
|
1674
1478
|
const de_Attribute = (output, context) => {
|
|
1675
|
-
return {
|
|
1676
|
-
BeginOffset:
|
|
1677
|
-
Category:
|
|
1678
|
-
EndOffset:
|
|
1679
|
-
Id:
|
|
1680
|
-
RelationshipScore:
|
|
1681
|
-
RelationshipType:
|
|
1682
|
-
Score:
|
|
1683
|
-
Text:
|
|
1684
|
-
Traits:
|
|
1685
|
-
Type:
|
|
1686
|
-
};
|
|
1479
|
+
return (0, smithy_client_1.take)(output, {
|
|
1480
|
+
BeginOffset: smithy_client_1.expectInt32,
|
|
1481
|
+
Category: smithy_client_1.expectString,
|
|
1482
|
+
EndOffset: smithy_client_1.expectInt32,
|
|
1483
|
+
Id: smithy_client_1.expectInt32,
|
|
1484
|
+
RelationshipScore: smithy_client_1.limitedParseFloat32,
|
|
1485
|
+
RelationshipType: smithy_client_1.expectString,
|
|
1486
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1487
|
+
Text: smithy_client_1.expectString,
|
|
1488
|
+
Traits: (_) => de_TraitList(_, context),
|
|
1489
|
+
Type: smithy_client_1.expectString,
|
|
1490
|
+
});
|
|
1687
1491
|
};
|
|
1688
1492
|
const de_AttributeList = (output, context) => {
|
|
1689
1493
|
const retVal = (output || [])
|
|
1690
1494
|
.filter((e) => e != null)
|
|
1691
1495
|
.map((entry) => {
|
|
1692
|
-
if (entry === null) {
|
|
1693
|
-
return null;
|
|
1694
|
-
}
|
|
1695
1496
|
return de_Attribute(entry, context);
|
|
1696
1497
|
});
|
|
1697
1498
|
return retVal;
|
|
1698
1499
|
};
|
|
1699
|
-
const de_Characters = (output, context) => {
|
|
1700
|
-
return {
|
|
1701
|
-
OriginalTextCharacters: (0, smithy_client_1.expectInt32)(output.OriginalTextCharacters),
|
|
1702
|
-
};
|
|
1703
|
-
};
|
|
1704
1500
|
const de_ComprehendMedicalAsyncJobProperties = (output, context) => {
|
|
1705
|
-
return {
|
|
1706
|
-
DataAccessRoleArn:
|
|
1707
|
-
EndTime:
|
|
1708
|
-
ExpirationTime:
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
SubmitTime: output.SubmitTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.SubmitTime))) : undefined,
|
|
1722
|
-
};
|
|
1501
|
+
return (0, smithy_client_1.take)(output, {
|
|
1502
|
+
DataAccessRoleArn: smithy_client_1.expectString,
|
|
1503
|
+
EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1504
|
+
ExpirationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1505
|
+
InputDataConfig: smithy_client_1._json,
|
|
1506
|
+
JobId: smithy_client_1.expectString,
|
|
1507
|
+
JobName: smithy_client_1.expectString,
|
|
1508
|
+
JobStatus: smithy_client_1.expectString,
|
|
1509
|
+
KMSKey: smithy_client_1.expectString,
|
|
1510
|
+
LanguageCode: smithy_client_1.expectString,
|
|
1511
|
+
ManifestFilePath: smithy_client_1.expectString,
|
|
1512
|
+
Message: smithy_client_1.expectString,
|
|
1513
|
+
ModelVersion: smithy_client_1.expectString,
|
|
1514
|
+
OutputDataConfig: smithy_client_1._json,
|
|
1515
|
+
SubmitTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
1516
|
+
});
|
|
1723
1517
|
};
|
|
1724
1518
|
const de_ComprehendMedicalAsyncJobPropertiesList = (output, context) => {
|
|
1725
1519
|
const retVal = (output || [])
|
|
1726
1520
|
.filter((e) => e != null)
|
|
1727
1521
|
.map((entry) => {
|
|
1728
|
-
if (entry === null) {
|
|
1729
|
-
return null;
|
|
1730
|
-
}
|
|
1731
1522
|
return de_ComprehendMedicalAsyncJobProperties(entry, context);
|
|
1732
1523
|
});
|
|
1733
1524
|
return retVal;
|
|
1734
1525
|
};
|
|
1735
1526
|
const de_DescribeEntitiesDetectionV2JobResponse = (output, context) => {
|
|
1736
|
-
return {
|
|
1737
|
-
ComprehendMedicalAsyncJobProperties:
|
|
1738
|
-
|
|
1739
|
-
: undefined,
|
|
1740
|
-
};
|
|
1527
|
+
return (0, smithy_client_1.take)(output, {
|
|
1528
|
+
ComprehendMedicalAsyncJobProperties: (_) => de_ComprehendMedicalAsyncJobProperties(_, context),
|
|
1529
|
+
});
|
|
1741
1530
|
};
|
|
1742
1531
|
const de_DescribeICD10CMInferenceJobResponse = (output, context) => {
|
|
1743
|
-
return {
|
|
1744
|
-
ComprehendMedicalAsyncJobProperties:
|
|
1745
|
-
|
|
1746
|
-
: undefined,
|
|
1747
|
-
};
|
|
1532
|
+
return (0, smithy_client_1.take)(output, {
|
|
1533
|
+
ComprehendMedicalAsyncJobProperties: (_) => de_ComprehendMedicalAsyncJobProperties(_, context),
|
|
1534
|
+
});
|
|
1748
1535
|
};
|
|
1749
1536
|
const de_DescribePHIDetectionJobResponse = (output, context) => {
|
|
1750
|
-
return {
|
|
1751
|
-
ComprehendMedicalAsyncJobProperties:
|
|
1752
|
-
|
|
1753
|
-
: undefined,
|
|
1754
|
-
};
|
|
1537
|
+
return (0, smithy_client_1.take)(output, {
|
|
1538
|
+
ComprehendMedicalAsyncJobProperties: (_) => de_ComprehendMedicalAsyncJobProperties(_, context),
|
|
1539
|
+
});
|
|
1755
1540
|
};
|
|
1756
1541
|
const de_DescribeRxNormInferenceJobResponse = (output, context) => {
|
|
1757
|
-
return {
|
|
1758
|
-
ComprehendMedicalAsyncJobProperties:
|
|
1759
|
-
|
|
1760
|
-
: undefined,
|
|
1761
|
-
};
|
|
1542
|
+
return (0, smithy_client_1.take)(output, {
|
|
1543
|
+
ComprehendMedicalAsyncJobProperties: (_) => de_ComprehendMedicalAsyncJobProperties(_, context),
|
|
1544
|
+
});
|
|
1762
1545
|
};
|
|
1763
1546
|
const de_DescribeSNOMEDCTInferenceJobResponse = (output, context) => {
|
|
1764
|
-
return {
|
|
1765
|
-
ComprehendMedicalAsyncJobProperties:
|
|
1766
|
-
|
|
1767
|
-
: undefined,
|
|
1768
|
-
};
|
|
1547
|
+
return (0, smithy_client_1.take)(output, {
|
|
1548
|
+
ComprehendMedicalAsyncJobProperties: (_) => de_ComprehendMedicalAsyncJobProperties(_, context),
|
|
1549
|
+
});
|
|
1769
1550
|
};
|
|
1770
1551
|
const de_DetectEntitiesResponse = (output, context) => {
|
|
1771
|
-
return {
|
|
1772
|
-
Entities:
|
|
1773
|
-
ModelVersion:
|
|
1774
|
-
PaginationToken:
|
|
1775
|
-
UnmappedAttributes:
|
|
1776
|
-
};
|
|
1552
|
+
return (0, smithy_client_1.take)(output, {
|
|
1553
|
+
Entities: (_) => de_EntityList(_, context),
|
|
1554
|
+
ModelVersion: smithy_client_1.expectString,
|
|
1555
|
+
PaginationToken: smithy_client_1.expectString,
|
|
1556
|
+
UnmappedAttributes: (_) => de_UnmappedAttributeList(_, context),
|
|
1557
|
+
});
|
|
1777
1558
|
};
|
|
1778
1559
|
const de_DetectEntitiesV2Response = (output, context) => {
|
|
1779
|
-
return {
|
|
1780
|
-
Entities:
|
|
1781
|
-
ModelVersion:
|
|
1782
|
-
PaginationToken:
|
|
1783
|
-
UnmappedAttributes:
|
|
1784
|
-
};
|
|
1560
|
+
return (0, smithy_client_1.take)(output, {
|
|
1561
|
+
Entities: (_) => de_EntityList(_, context),
|
|
1562
|
+
ModelVersion: smithy_client_1.expectString,
|
|
1563
|
+
PaginationToken: smithy_client_1.expectString,
|
|
1564
|
+
UnmappedAttributes: (_) => de_UnmappedAttributeList(_, context),
|
|
1565
|
+
});
|
|
1785
1566
|
};
|
|
1786
1567
|
const de_DetectPHIResponse = (output, context) => {
|
|
1787
|
-
return {
|
|
1788
|
-
Entities:
|
|
1789
|
-
ModelVersion:
|
|
1790
|
-
PaginationToken:
|
|
1791
|
-
};
|
|
1568
|
+
return (0, smithy_client_1.take)(output, {
|
|
1569
|
+
Entities: (_) => de_EntityList(_, context),
|
|
1570
|
+
ModelVersion: smithy_client_1.expectString,
|
|
1571
|
+
PaginationToken: smithy_client_1.expectString,
|
|
1572
|
+
});
|
|
1792
1573
|
};
|
|
1793
1574
|
const de_Entity = (output, context) => {
|
|
1794
|
-
return {
|
|
1795
|
-
Attributes:
|
|
1796
|
-
BeginOffset:
|
|
1797
|
-
Category:
|
|
1798
|
-
EndOffset:
|
|
1799
|
-
Id:
|
|
1800
|
-
Score:
|
|
1801
|
-
Text:
|
|
1802
|
-
Traits:
|
|
1803
|
-
Type:
|
|
1804
|
-
};
|
|
1575
|
+
return (0, smithy_client_1.take)(output, {
|
|
1576
|
+
Attributes: (_) => de_AttributeList(_, context),
|
|
1577
|
+
BeginOffset: smithy_client_1.expectInt32,
|
|
1578
|
+
Category: smithy_client_1.expectString,
|
|
1579
|
+
EndOffset: smithy_client_1.expectInt32,
|
|
1580
|
+
Id: smithy_client_1.expectInt32,
|
|
1581
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1582
|
+
Text: smithy_client_1.expectString,
|
|
1583
|
+
Traits: (_) => de_TraitList(_, context),
|
|
1584
|
+
Type: smithy_client_1.expectString,
|
|
1585
|
+
});
|
|
1805
1586
|
};
|
|
1806
1587
|
const de_EntityList = (output, context) => {
|
|
1807
1588
|
const retVal = (output || [])
|
|
1808
1589
|
.filter((e) => e != null)
|
|
1809
1590
|
.map((entry) => {
|
|
1810
|
-
if (entry === null) {
|
|
1811
|
-
return null;
|
|
1812
|
-
}
|
|
1813
1591
|
return de_Entity(entry, context);
|
|
1814
1592
|
});
|
|
1815
1593
|
return retVal;
|
|
1816
1594
|
};
|
|
1817
1595
|
const de_ICD10CMAttribute = (output, context) => {
|
|
1818
|
-
return {
|
|
1819
|
-
BeginOffset:
|
|
1820
|
-
Category:
|
|
1821
|
-
EndOffset:
|
|
1822
|
-
Id:
|
|
1823
|
-
RelationshipScore:
|
|
1824
|
-
RelationshipType:
|
|
1825
|
-
Score:
|
|
1826
|
-
Text:
|
|
1827
|
-
Traits:
|
|
1828
|
-
Type:
|
|
1829
|
-
};
|
|
1596
|
+
return (0, smithy_client_1.take)(output, {
|
|
1597
|
+
BeginOffset: smithy_client_1.expectInt32,
|
|
1598
|
+
Category: smithy_client_1.expectString,
|
|
1599
|
+
EndOffset: smithy_client_1.expectInt32,
|
|
1600
|
+
Id: smithy_client_1.expectInt32,
|
|
1601
|
+
RelationshipScore: smithy_client_1.limitedParseFloat32,
|
|
1602
|
+
RelationshipType: smithy_client_1.expectString,
|
|
1603
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1604
|
+
Text: smithy_client_1.expectString,
|
|
1605
|
+
Traits: (_) => de_ICD10CMTraitList(_, context),
|
|
1606
|
+
Type: smithy_client_1.expectString,
|
|
1607
|
+
});
|
|
1830
1608
|
};
|
|
1831
1609
|
const de_ICD10CMAttributeList = (output, context) => {
|
|
1832
1610
|
const retVal = (output || [])
|
|
1833
1611
|
.filter((e) => e != null)
|
|
1834
1612
|
.map((entry) => {
|
|
1835
|
-
if (entry === null) {
|
|
1836
|
-
return null;
|
|
1837
|
-
}
|
|
1838
1613
|
return de_ICD10CMAttribute(entry, context);
|
|
1839
1614
|
});
|
|
1840
1615
|
return retVal;
|
|
1841
1616
|
};
|
|
1842
1617
|
const de_ICD10CMConcept = (output, context) => {
|
|
1843
|
-
return {
|
|
1844
|
-
Code:
|
|
1845
|
-
Description:
|
|
1846
|
-
Score:
|
|
1847
|
-
};
|
|
1618
|
+
return (0, smithy_client_1.take)(output, {
|
|
1619
|
+
Code: smithy_client_1.expectString,
|
|
1620
|
+
Description: smithy_client_1.expectString,
|
|
1621
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1622
|
+
});
|
|
1848
1623
|
};
|
|
1849
1624
|
const de_ICD10CMConceptList = (output, context) => {
|
|
1850
1625
|
const retVal = (output || [])
|
|
1851
1626
|
.filter((e) => e != null)
|
|
1852
1627
|
.map((entry) => {
|
|
1853
|
-
if (entry === null) {
|
|
1854
|
-
return null;
|
|
1855
|
-
}
|
|
1856
1628
|
return de_ICD10CMConcept(entry, context);
|
|
1857
1629
|
});
|
|
1858
1630
|
return retVal;
|
|
1859
1631
|
};
|
|
1860
1632
|
const de_ICD10CMEntity = (output, context) => {
|
|
1861
|
-
return {
|
|
1862
|
-
Attributes:
|
|
1863
|
-
BeginOffset:
|
|
1864
|
-
Category:
|
|
1865
|
-
EndOffset:
|
|
1866
|
-
ICD10CMConcepts:
|
|
1867
|
-
Id:
|
|
1868
|
-
Score:
|
|
1869
|
-
Text:
|
|
1870
|
-
Traits:
|
|
1871
|
-
Type:
|
|
1872
|
-
};
|
|
1633
|
+
return (0, smithy_client_1.take)(output, {
|
|
1634
|
+
Attributes: (_) => de_ICD10CMAttributeList(_, context),
|
|
1635
|
+
BeginOffset: smithy_client_1.expectInt32,
|
|
1636
|
+
Category: smithy_client_1.expectString,
|
|
1637
|
+
EndOffset: smithy_client_1.expectInt32,
|
|
1638
|
+
ICD10CMConcepts: (_) => de_ICD10CMConceptList(_, context),
|
|
1639
|
+
Id: smithy_client_1.expectInt32,
|
|
1640
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1641
|
+
Text: smithy_client_1.expectString,
|
|
1642
|
+
Traits: (_) => de_ICD10CMTraitList(_, context),
|
|
1643
|
+
Type: smithy_client_1.expectString,
|
|
1644
|
+
});
|
|
1873
1645
|
};
|
|
1874
1646
|
const de_ICD10CMEntityList = (output, context) => {
|
|
1875
1647
|
const retVal = (output || [])
|
|
1876
1648
|
.filter((e) => e != null)
|
|
1877
1649
|
.map((entry) => {
|
|
1878
|
-
if (entry === null) {
|
|
1879
|
-
return null;
|
|
1880
|
-
}
|
|
1881
1650
|
return de_ICD10CMEntity(entry, context);
|
|
1882
1651
|
});
|
|
1883
1652
|
return retVal;
|
|
1884
1653
|
};
|
|
1885
1654
|
const de_ICD10CMTrait = (output, context) => {
|
|
1886
|
-
return {
|
|
1887
|
-
Name:
|
|
1888
|
-
Score:
|
|
1889
|
-
};
|
|
1655
|
+
return (0, smithy_client_1.take)(output, {
|
|
1656
|
+
Name: smithy_client_1.expectString,
|
|
1657
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1658
|
+
});
|
|
1890
1659
|
};
|
|
1891
1660
|
const de_ICD10CMTraitList = (output, context) => {
|
|
1892
1661
|
const retVal = (output || [])
|
|
1893
1662
|
.filter((e) => e != null)
|
|
1894
1663
|
.map((entry) => {
|
|
1895
|
-
if (entry === null) {
|
|
1896
|
-
return null;
|
|
1897
|
-
}
|
|
1898
1664
|
return de_ICD10CMTrait(entry, context);
|
|
1899
1665
|
});
|
|
1900
1666
|
return retVal;
|
|
1901
1667
|
};
|
|
1902
1668
|
const de_InferICD10CMResponse = (output, context) => {
|
|
1903
|
-
return {
|
|
1904
|
-
Entities:
|
|
1905
|
-
ModelVersion:
|
|
1906
|
-
PaginationToken:
|
|
1907
|
-
};
|
|
1669
|
+
return (0, smithy_client_1.take)(output, {
|
|
1670
|
+
Entities: (_) => de_ICD10CMEntityList(_, context),
|
|
1671
|
+
ModelVersion: smithy_client_1.expectString,
|
|
1672
|
+
PaginationToken: smithy_client_1.expectString,
|
|
1673
|
+
});
|
|
1908
1674
|
};
|
|
1909
1675
|
const de_InferRxNormResponse = (output, context) => {
|
|
1910
|
-
return {
|
|
1911
|
-
Entities:
|
|
1912
|
-
ModelVersion:
|
|
1913
|
-
PaginationToken:
|
|
1914
|
-
};
|
|
1676
|
+
return (0, smithy_client_1.take)(output, {
|
|
1677
|
+
Entities: (_) => de_RxNormEntityList(_, context),
|
|
1678
|
+
ModelVersion: smithy_client_1.expectString,
|
|
1679
|
+
PaginationToken: smithy_client_1.expectString,
|
|
1680
|
+
});
|
|
1915
1681
|
};
|
|
1916
1682
|
const de_InferSNOMEDCTResponse = (output, context) => {
|
|
1917
|
-
return {
|
|
1918
|
-
Characters:
|
|
1919
|
-
Entities:
|
|
1920
|
-
ModelVersion:
|
|
1921
|
-
PaginationToken:
|
|
1922
|
-
SNOMEDCTDetails:
|
|
1923
|
-
};
|
|
1924
|
-
};
|
|
1925
|
-
const de_InputDataConfig = (output, context) => {
|
|
1926
|
-
return {
|
|
1927
|
-
S3Bucket: (0, smithy_client_1.expectString)(output.S3Bucket),
|
|
1928
|
-
S3Key: (0, smithy_client_1.expectString)(output.S3Key),
|
|
1929
|
-
};
|
|
1930
|
-
};
|
|
1931
|
-
const de_InternalServerException = (output, context) => {
|
|
1932
|
-
return {
|
|
1933
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1934
|
-
};
|
|
1935
|
-
};
|
|
1936
|
-
const de_InvalidEncodingException = (output, context) => {
|
|
1937
|
-
return {
|
|
1938
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1939
|
-
};
|
|
1940
|
-
};
|
|
1941
|
-
const de_InvalidRequestException = (output, context) => {
|
|
1942
|
-
return {
|
|
1943
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1944
|
-
};
|
|
1683
|
+
return (0, smithy_client_1.take)(output, {
|
|
1684
|
+
Characters: smithy_client_1._json,
|
|
1685
|
+
Entities: (_) => de_SNOMEDCTEntityList(_, context),
|
|
1686
|
+
ModelVersion: smithy_client_1.expectString,
|
|
1687
|
+
PaginationToken: smithy_client_1.expectString,
|
|
1688
|
+
SNOMEDCTDetails: smithy_client_1._json,
|
|
1689
|
+
});
|
|
1945
1690
|
};
|
|
1946
1691
|
const de_ListEntitiesDetectionV2JobsResponse = (output, context) => {
|
|
1947
|
-
return {
|
|
1948
|
-
ComprehendMedicalAsyncJobPropertiesList:
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1952
|
-
};
|
|
1692
|
+
return (0, smithy_client_1.take)(output, {
|
|
1693
|
+
ComprehendMedicalAsyncJobPropertiesList: (_) => de_ComprehendMedicalAsyncJobPropertiesList(_, context),
|
|
1694
|
+
NextToken: smithy_client_1.expectString,
|
|
1695
|
+
});
|
|
1953
1696
|
};
|
|
1954
1697
|
const de_ListICD10CMInferenceJobsResponse = (output, context) => {
|
|
1955
|
-
return {
|
|
1956
|
-
ComprehendMedicalAsyncJobPropertiesList:
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1960
|
-
};
|
|
1698
|
+
return (0, smithy_client_1.take)(output, {
|
|
1699
|
+
ComprehendMedicalAsyncJobPropertiesList: (_) => de_ComprehendMedicalAsyncJobPropertiesList(_, context),
|
|
1700
|
+
NextToken: smithy_client_1.expectString,
|
|
1701
|
+
});
|
|
1961
1702
|
};
|
|
1962
1703
|
const de_ListPHIDetectionJobsResponse = (output, context) => {
|
|
1963
|
-
return {
|
|
1964
|
-
ComprehendMedicalAsyncJobPropertiesList:
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1968
|
-
};
|
|
1704
|
+
return (0, smithy_client_1.take)(output, {
|
|
1705
|
+
ComprehendMedicalAsyncJobPropertiesList: (_) => de_ComprehendMedicalAsyncJobPropertiesList(_, context),
|
|
1706
|
+
NextToken: smithy_client_1.expectString,
|
|
1707
|
+
});
|
|
1969
1708
|
};
|
|
1970
1709
|
const de_ListRxNormInferenceJobsResponse = (output, context) => {
|
|
1971
|
-
return {
|
|
1972
|
-
ComprehendMedicalAsyncJobPropertiesList:
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1976
|
-
};
|
|
1710
|
+
return (0, smithy_client_1.take)(output, {
|
|
1711
|
+
ComprehendMedicalAsyncJobPropertiesList: (_) => de_ComprehendMedicalAsyncJobPropertiesList(_, context),
|
|
1712
|
+
NextToken: smithy_client_1.expectString,
|
|
1713
|
+
});
|
|
1977
1714
|
};
|
|
1978
1715
|
const de_ListSNOMEDCTInferenceJobsResponse = (output, context) => {
|
|
1979
|
-
return {
|
|
1980
|
-
ComprehendMedicalAsyncJobPropertiesList:
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1984
|
-
};
|
|
1985
|
-
};
|
|
1986
|
-
const de_OutputDataConfig = (output, context) => {
|
|
1987
|
-
return {
|
|
1988
|
-
S3Bucket: (0, smithy_client_1.expectString)(output.S3Bucket),
|
|
1989
|
-
S3Key: (0, smithy_client_1.expectString)(output.S3Key),
|
|
1990
|
-
};
|
|
1991
|
-
};
|
|
1992
|
-
const de_ResourceNotFoundException = (output, context) => {
|
|
1993
|
-
return {
|
|
1994
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1995
|
-
};
|
|
1716
|
+
return (0, smithy_client_1.take)(output, {
|
|
1717
|
+
ComprehendMedicalAsyncJobPropertiesList: (_) => de_ComprehendMedicalAsyncJobPropertiesList(_, context),
|
|
1718
|
+
NextToken: smithy_client_1.expectString,
|
|
1719
|
+
});
|
|
1996
1720
|
};
|
|
1997
1721
|
const de_RxNormAttribute = (output, context) => {
|
|
1998
|
-
return {
|
|
1999
|
-
BeginOffset:
|
|
2000
|
-
EndOffset:
|
|
2001
|
-
Id:
|
|
2002
|
-
RelationshipScore:
|
|
2003
|
-
Score:
|
|
2004
|
-
Text:
|
|
2005
|
-
Traits:
|
|
2006
|
-
Type:
|
|
2007
|
-
};
|
|
1722
|
+
return (0, smithy_client_1.take)(output, {
|
|
1723
|
+
BeginOffset: smithy_client_1.expectInt32,
|
|
1724
|
+
EndOffset: smithy_client_1.expectInt32,
|
|
1725
|
+
Id: smithy_client_1.expectInt32,
|
|
1726
|
+
RelationshipScore: smithy_client_1.limitedParseFloat32,
|
|
1727
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1728
|
+
Text: smithy_client_1.expectString,
|
|
1729
|
+
Traits: (_) => de_RxNormTraitList(_, context),
|
|
1730
|
+
Type: smithy_client_1.expectString,
|
|
1731
|
+
});
|
|
2008
1732
|
};
|
|
2009
1733
|
const de_RxNormAttributeList = (output, context) => {
|
|
2010
1734
|
const retVal = (output || [])
|
|
2011
1735
|
.filter((e) => e != null)
|
|
2012
1736
|
.map((entry) => {
|
|
2013
|
-
if (entry === null) {
|
|
2014
|
-
return null;
|
|
2015
|
-
}
|
|
2016
1737
|
return de_RxNormAttribute(entry, context);
|
|
2017
1738
|
});
|
|
2018
1739
|
return retVal;
|
|
2019
1740
|
};
|
|
2020
1741
|
const de_RxNormConcept = (output, context) => {
|
|
2021
|
-
return {
|
|
2022
|
-
Code:
|
|
2023
|
-
Description:
|
|
2024
|
-
Score:
|
|
2025
|
-
};
|
|
1742
|
+
return (0, smithy_client_1.take)(output, {
|
|
1743
|
+
Code: smithy_client_1.expectString,
|
|
1744
|
+
Description: smithy_client_1.expectString,
|
|
1745
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1746
|
+
});
|
|
2026
1747
|
};
|
|
2027
1748
|
const de_RxNormConceptList = (output, context) => {
|
|
2028
1749
|
const retVal = (output || [])
|
|
2029
1750
|
.filter((e) => e != null)
|
|
2030
1751
|
.map((entry) => {
|
|
2031
|
-
if (entry === null) {
|
|
2032
|
-
return null;
|
|
2033
|
-
}
|
|
2034
1752
|
return de_RxNormConcept(entry, context);
|
|
2035
1753
|
});
|
|
2036
1754
|
return retVal;
|
|
2037
1755
|
};
|
|
2038
1756
|
const de_RxNormEntity = (output, context) => {
|
|
2039
|
-
return {
|
|
2040
|
-
Attributes:
|
|
2041
|
-
BeginOffset:
|
|
2042
|
-
Category:
|
|
2043
|
-
EndOffset:
|
|
2044
|
-
Id:
|
|
2045
|
-
RxNormConcepts:
|
|
2046
|
-
Score:
|
|
2047
|
-
Text:
|
|
2048
|
-
Traits:
|
|
2049
|
-
Type:
|
|
2050
|
-
};
|
|
1757
|
+
return (0, smithy_client_1.take)(output, {
|
|
1758
|
+
Attributes: (_) => de_RxNormAttributeList(_, context),
|
|
1759
|
+
BeginOffset: smithy_client_1.expectInt32,
|
|
1760
|
+
Category: smithy_client_1.expectString,
|
|
1761
|
+
EndOffset: smithy_client_1.expectInt32,
|
|
1762
|
+
Id: smithy_client_1.expectInt32,
|
|
1763
|
+
RxNormConcepts: (_) => de_RxNormConceptList(_, context),
|
|
1764
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1765
|
+
Text: smithy_client_1.expectString,
|
|
1766
|
+
Traits: (_) => de_RxNormTraitList(_, context),
|
|
1767
|
+
Type: smithy_client_1.expectString,
|
|
1768
|
+
});
|
|
2051
1769
|
};
|
|
2052
1770
|
const de_RxNormEntityList = (output, context) => {
|
|
2053
1771
|
const retVal = (output || [])
|
|
2054
1772
|
.filter((e) => e != null)
|
|
2055
1773
|
.map((entry) => {
|
|
2056
|
-
if (entry === null) {
|
|
2057
|
-
return null;
|
|
2058
|
-
}
|
|
2059
1774
|
return de_RxNormEntity(entry, context);
|
|
2060
1775
|
});
|
|
2061
1776
|
return retVal;
|
|
2062
1777
|
};
|
|
2063
1778
|
const de_RxNormTrait = (output, context) => {
|
|
2064
|
-
return {
|
|
2065
|
-
Name:
|
|
2066
|
-
Score:
|
|
2067
|
-
};
|
|
1779
|
+
return (0, smithy_client_1.take)(output, {
|
|
1780
|
+
Name: smithy_client_1.expectString,
|
|
1781
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1782
|
+
});
|
|
2068
1783
|
};
|
|
2069
1784
|
const de_RxNormTraitList = (output, context) => {
|
|
2070
1785
|
const retVal = (output || [])
|
|
2071
1786
|
.filter((e) => e != null)
|
|
2072
1787
|
.map((entry) => {
|
|
2073
|
-
if (entry === null) {
|
|
2074
|
-
return null;
|
|
2075
|
-
}
|
|
2076
1788
|
return de_RxNormTrait(entry, context);
|
|
2077
1789
|
});
|
|
2078
1790
|
return retVal;
|
|
2079
1791
|
};
|
|
2080
|
-
const de_ServiceUnavailableException = (output, context) => {
|
|
2081
|
-
return {
|
|
2082
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2083
|
-
};
|
|
2084
|
-
};
|
|
2085
1792
|
const de_SNOMEDCTAttribute = (output, context) => {
|
|
2086
|
-
return {
|
|
2087
|
-
BeginOffset:
|
|
2088
|
-
Category:
|
|
2089
|
-
EndOffset:
|
|
2090
|
-
Id:
|
|
2091
|
-
RelationshipScore:
|
|
2092
|
-
RelationshipType:
|
|
2093
|
-
SNOMEDCTConcepts:
|
|
2094
|
-
Score:
|
|
2095
|
-
Text:
|
|
2096
|
-
Traits:
|
|
2097
|
-
Type:
|
|
2098
|
-
};
|
|
1793
|
+
return (0, smithy_client_1.take)(output, {
|
|
1794
|
+
BeginOffset: smithy_client_1.expectInt32,
|
|
1795
|
+
Category: smithy_client_1.expectString,
|
|
1796
|
+
EndOffset: smithy_client_1.expectInt32,
|
|
1797
|
+
Id: smithy_client_1.expectInt32,
|
|
1798
|
+
RelationshipScore: smithy_client_1.limitedParseFloat32,
|
|
1799
|
+
RelationshipType: smithy_client_1.expectString,
|
|
1800
|
+
SNOMEDCTConcepts: (_) => de_SNOMEDCTConceptList(_, context),
|
|
1801
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1802
|
+
Text: smithy_client_1.expectString,
|
|
1803
|
+
Traits: (_) => de_SNOMEDCTTraitList(_, context),
|
|
1804
|
+
Type: smithy_client_1.expectString,
|
|
1805
|
+
});
|
|
2099
1806
|
};
|
|
2100
1807
|
const de_SNOMEDCTAttributeList = (output, context) => {
|
|
2101
1808
|
const retVal = (output || [])
|
|
2102
1809
|
.filter((e) => e != null)
|
|
2103
1810
|
.map((entry) => {
|
|
2104
|
-
if (entry === null) {
|
|
2105
|
-
return null;
|
|
2106
|
-
}
|
|
2107
1811
|
return de_SNOMEDCTAttribute(entry, context);
|
|
2108
1812
|
});
|
|
2109
1813
|
return retVal;
|
|
2110
1814
|
};
|
|
2111
1815
|
const de_SNOMEDCTConcept = (output, context) => {
|
|
2112
|
-
return {
|
|
2113
|
-
Code:
|
|
2114
|
-
Description:
|
|
2115
|
-
Score:
|
|
2116
|
-
};
|
|
1816
|
+
return (0, smithy_client_1.take)(output, {
|
|
1817
|
+
Code: smithy_client_1.expectString,
|
|
1818
|
+
Description: smithy_client_1.expectString,
|
|
1819
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1820
|
+
});
|
|
2117
1821
|
};
|
|
2118
1822
|
const de_SNOMEDCTConceptList = (output, context) => {
|
|
2119
1823
|
const retVal = (output || [])
|
|
2120
1824
|
.filter((e) => e != null)
|
|
2121
1825
|
.map((entry) => {
|
|
2122
|
-
if (entry === null) {
|
|
2123
|
-
return null;
|
|
2124
|
-
}
|
|
2125
1826
|
return de_SNOMEDCTConcept(entry, context);
|
|
2126
1827
|
});
|
|
2127
1828
|
return retVal;
|
|
2128
1829
|
};
|
|
2129
|
-
const de_SNOMEDCTDetails = (output, context) => {
|
|
2130
|
-
return {
|
|
2131
|
-
Edition: (0, smithy_client_1.expectString)(output.Edition),
|
|
2132
|
-
Language: (0, smithy_client_1.expectString)(output.Language),
|
|
2133
|
-
VersionDate: (0, smithy_client_1.expectString)(output.VersionDate),
|
|
2134
|
-
};
|
|
2135
|
-
};
|
|
2136
1830
|
const de_SNOMEDCTEntity = (output, context) => {
|
|
2137
|
-
return {
|
|
2138
|
-
Attributes:
|
|
2139
|
-
BeginOffset:
|
|
2140
|
-
Category:
|
|
2141
|
-
EndOffset:
|
|
2142
|
-
Id:
|
|
2143
|
-
SNOMEDCTConcepts:
|
|
2144
|
-
Score:
|
|
2145
|
-
Text:
|
|
2146
|
-
Traits:
|
|
2147
|
-
Type:
|
|
2148
|
-
};
|
|
1831
|
+
return (0, smithy_client_1.take)(output, {
|
|
1832
|
+
Attributes: (_) => de_SNOMEDCTAttributeList(_, context),
|
|
1833
|
+
BeginOffset: smithy_client_1.expectInt32,
|
|
1834
|
+
Category: smithy_client_1.expectString,
|
|
1835
|
+
EndOffset: smithy_client_1.expectInt32,
|
|
1836
|
+
Id: smithy_client_1.expectInt32,
|
|
1837
|
+
SNOMEDCTConcepts: (_) => de_SNOMEDCTConceptList(_, context),
|
|
1838
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1839
|
+
Text: smithy_client_1.expectString,
|
|
1840
|
+
Traits: (_) => de_SNOMEDCTTraitList(_, context),
|
|
1841
|
+
Type: smithy_client_1.expectString,
|
|
1842
|
+
});
|
|
2149
1843
|
};
|
|
2150
1844
|
const de_SNOMEDCTEntityList = (output, context) => {
|
|
2151
1845
|
const retVal = (output || [])
|
|
2152
1846
|
.filter((e) => e != null)
|
|
2153
1847
|
.map((entry) => {
|
|
2154
|
-
if (entry === null) {
|
|
2155
|
-
return null;
|
|
2156
|
-
}
|
|
2157
1848
|
return de_SNOMEDCTEntity(entry, context);
|
|
2158
1849
|
});
|
|
2159
1850
|
return retVal;
|
|
2160
1851
|
};
|
|
2161
1852
|
const de_SNOMEDCTTrait = (output, context) => {
|
|
2162
|
-
return {
|
|
2163
|
-
Name:
|
|
2164
|
-
Score:
|
|
2165
|
-
};
|
|
1853
|
+
return (0, smithy_client_1.take)(output, {
|
|
1854
|
+
Name: smithy_client_1.expectString,
|
|
1855
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1856
|
+
});
|
|
2166
1857
|
};
|
|
2167
1858
|
const de_SNOMEDCTTraitList = (output, context) => {
|
|
2168
1859
|
const retVal = (output || [])
|
|
2169
1860
|
.filter((e) => e != null)
|
|
2170
1861
|
.map((entry) => {
|
|
2171
|
-
if (entry === null) {
|
|
2172
|
-
return null;
|
|
2173
|
-
}
|
|
2174
1862
|
return de_SNOMEDCTTrait(entry, context);
|
|
2175
1863
|
});
|
|
2176
1864
|
return retVal;
|
|
2177
1865
|
};
|
|
2178
|
-
const de_StartEntitiesDetectionV2JobResponse = (output, context) => {
|
|
2179
|
-
return {
|
|
2180
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
2181
|
-
};
|
|
2182
|
-
};
|
|
2183
|
-
const de_StartICD10CMInferenceJobResponse = (output, context) => {
|
|
2184
|
-
return {
|
|
2185
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
2186
|
-
};
|
|
2187
|
-
};
|
|
2188
|
-
const de_StartPHIDetectionJobResponse = (output, context) => {
|
|
2189
|
-
return {
|
|
2190
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
2191
|
-
};
|
|
2192
|
-
};
|
|
2193
|
-
const de_StartRxNormInferenceJobResponse = (output, context) => {
|
|
2194
|
-
return {
|
|
2195
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
2196
|
-
};
|
|
2197
|
-
};
|
|
2198
|
-
const de_StartSNOMEDCTInferenceJobResponse = (output, context) => {
|
|
2199
|
-
return {
|
|
2200
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
2201
|
-
};
|
|
2202
|
-
};
|
|
2203
|
-
const de_StopEntitiesDetectionV2JobResponse = (output, context) => {
|
|
2204
|
-
return {
|
|
2205
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
2206
|
-
};
|
|
2207
|
-
};
|
|
2208
|
-
const de_StopICD10CMInferenceJobResponse = (output, context) => {
|
|
2209
|
-
return {
|
|
2210
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
2211
|
-
};
|
|
2212
|
-
};
|
|
2213
|
-
const de_StopPHIDetectionJobResponse = (output, context) => {
|
|
2214
|
-
return {
|
|
2215
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
2216
|
-
};
|
|
2217
|
-
};
|
|
2218
|
-
const de_StopRxNormInferenceJobResponse = (output, context) => {
|
|
2219
|
-
return {
|
|
2220
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
2221
|
-
};
|
|
2222
|
-
};
|
|
2223
|
-
const de_StopSNOMEDCTInferenceJobResponse = (output, context) => {
|
|
2224
|
-
return {
|
|
2225
|
-
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
2226
|
-
};
|
|
2227
|
-
};
|
|
2228
|
-
const de_TextSizeLimitExceededException = (output, context) => {
|
|
2229
|
-
return {
|
|
2230
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2231
|
-
};
|
|
2232
|
-
};
|
|
2233
|
-
const de_TooManyRequestsException = (output, context) => {
|
|
2234
|
-
return {
|
|
2235
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2236
|
-
};
|
|
2237
|
-
};
|
|
2238
1866
|
const de_Trait = (output, context) => {
|
|
2239
|
-
return {
|
|
2240
|
-
Name:
|
|
2241
|
-
Score:
|
|
2242
|
-
};
|
|
1867
|
+
return (0, smithy_client_1.take)(output, {
|
|
1868
|
+
Name: smithy_client_1.expectString,
|
|
1869
|
+
Score: smithy_client_1.limitedParseFloat32,
|
|
1870
|
+
});
|
|
2243
1871
|
};
|
|
2244
1872
|
const de_TraitList = (output, context) => {
|
|
2245
1873
|
const retVal = (output || [])
|
|
2246
1874
|
.filter((e) => e != null)
|
|
2247
1875
|
.map((entry) => {
|
|
2248
|
-
if (entry === null) {
|
|
2249
|
-
return null;
|
|
2250
|
-
}
|
|
2251
1876
|
return de_Trait(entry, context);
|
|
2252
1877
|
});
|
|
2253
1878
|
return retVal;
|
|
2254
1879
|
};
|
|
2255
1880
|
const de_UnmappedAttribute = (output, context) => {
|
|
2256
|
-
return {
|
|
2257
|
-
Attribute:
|
|
2258
|
-
Type:
|
|
2259
|
-
};
|
|
1881
|
+
return (0, smithy_client_1.take)(output, {
|
|
1882
|
+
Attribute: (_) => de_Attribute(_, context),
|
|
1883
|
+
Type: smithy_client_1.expectString,
|
|
1884
|
+
});
|
|
2260
1885
|
};
|
|
2261
1886
|
const de_UnmappedAttributeList = (output, context) => {
|
|
2262
1887
|
const retVal = (output || [])
|
|
2263
1888
|
.filter((e) => e != null)
|
|
2264
1889
|
.map((entry) => {
|
|
2265
|
-
if (entry === null) {
|
|
2266
|
-
return null;
|
|
2267
|
-
}
|
|
2268
1890
|
return de_UnmappedAttribute(entry, context);
|
|
2269
1891
|
});
|
|
2270
1892
|
return retVal;
|
|
2271
1893
|
};
|
|
2272
|
-
const de_ValidationException = (output, context) => {
|
|
2273
|
-
return {
|
|
2274
|
-
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
2275
|
-
};
|
|
2276
|
-
};
|
|
2277
1894
|
const deserializeMetadata = (output) => ({
|
|
2278
1895
|
httpStatusCode: output.statusCode,
|
|
2279
1896
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -2287,6 +1904,7 @@ const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
|
2287
1904
|
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2288
1905
|
};
|
|
2289
1906
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1907
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(ComprehendMedicalServiceException_1.ComprehendMedicalServiceException);
|
|
2290
1908
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2291
1909
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
2292
1910
|
const contents = {
|
|
@@ -2305,6 +1923,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
2305
1923
|
}
|
|
2306
1924
|
return new protocol_http_1.HttpRequest(contents);
|
|
2307
1925
|
};
|
|
1926
|
+
function sharedHeaders(operation) {
|
|
1927
|
+
return {
|
|
1928
|
+
"content-type": "application/x-amz-json-1.1",
|
|
1929
|
+
"x-amz-target": `ComprehendMedical_20181030.${operation}`,
|
|
1930
|
+
};
|
|
1931
|
+
}
|
|
2308
1932
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2309
1933
|
if (encoded.length) {
|
|
2310
1934
|
return JSON.parse(encoded);
|