pet-backend-sdk 0.30.0 → 0.35.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/axios/api.d.ts +312 -74
- package/axios/api.js +772 -48
- package/axios/api.js.map +1 -1
- package/package.json +1 -1
package/axios/api.js
CHANGED
|
@@ -187,6 +187,93 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
187
187
|
options: localVarRequestOptions,
|
|
188
188
|
};
|
|
189
189
|
},
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
examinationDocumentsDownloadMultipleOptions: function (options) {
|
|
196
|
+
if (options === void 0) { options = {}; }
|
|
197
|
+
var localVarPath = "/examination/documents/download/multiple";
|
|
198
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
199
|
+
var baseOptions;
|
|
200
|
+
if (configuration) {
|
|
201
|
+
baseOptions = configuration.baseOptions;
|
|
202
|
+
}
|
|
203
|
+
var localVarRequestOptions = __assign(__assign({ method: 'OPTIONS' }, baseOptions), options);
|
|
204
|
+
var localVarHeaderParameter = {};
|
|
205
|
+
var localVarQueryParameter = {};
|
|
206
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
207
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
208
|
+
delete localVarUrlObj.search;
|
|
209
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
210
|
+
return {
|
|
211
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
212
|
+
options: localVarRequestOptions,
|
|
213
|
+
};
|
|
214
|
+
},
|
|
215
|
+
/**
|
|
216
|
+
*
|
|
217
|
+
* @param {string} key The key of the document
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
examinationDocumentsKeyDownloadOptions: function (key, options) {
|
|
222
|
+
if (options === void 0) { options = {}; }
|
|
223
|
+
// verify required parameter 'key' is not null or undefined
|
|
224
|
+
if (key === null || key === undefined) {
|
|
225
|
+
throw new base_1.RequiredError('key', 'Required parameter key was null or undefined when calling examinationDocumentsKeyDownloadOptions.');
|
|
226
|
+
}
|
|
227
|
+
var localVarPath = "/examination/documents/{key}/download"
|
|
228
|
+
.replace("{" + "key" + "}", encodeURIComponent(String(key)));
|
|
229
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
230
|
+
var baseOptions;
|
|
231
|
+
if (configuration) {
|
|
232
|
+
baseOptions = configuration.baseOptions;
|
|
233
|
+
}
|
|
234
|
+
var localVarRequestOptions = __assign(__assign({ method: 'OPTIONS' }, baseOptions), options);
|
|
235
|
+
var localVarHeaderParameter = {};
|
|
236
|
+
var localVarQueryParameter = {};
|
|
237
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
238
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
239
|
+
delete localVarUrlObj.search;
|
|
240
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
241
|
+
return {
|
|
242
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
243
|
+
options: localVarRequestOptions,
|
|
244
|
+
};
|
|
245
|
+
},
|
|
246
|
+
/**
|
|
247
|
+
*
|
|
248
|
+
* @param {string} id The id of the examination
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
examinationIdDocumentsOptions: function (id, options) {
|
|
253
|
+
if (options === void 0) { options = {}; }
|
|
254
|
+
// verify required parameter 'id' is not null or undefined
|
|
255
|
+
if (id === null || id === undefined) {
|
|
256
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling examinationIdDocumentsOptions.');
|
|
257
|
+
}
|
|
258
|
+
var localVarPath = "/examination/{id}/documents"
|
|
259
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
260
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
261
|
+
var baseOptions;
|
|
262
|
+
if (configuration) {
|
|
263
|
+
baseOptions = configuration.baseOptions;
|
|
264
|
+
}
|
|
265
|
+
var localVarRequestOptions = __assign(__assign({ method: 'OPTIONS' }, baseOptions), options);
|
|
266
|
+
var localVarHeaderParameter = {};
|
|
267
|
+
var localVarQueryParameter = {};
|
|
268
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
269
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
270
|
+
delete localVarUrlObj.search;
|
|
271
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
272
|
+
return {
|
|
273
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
274
|
+
options: localVarRequestOptions,
|
|
275
|
+
};
|
|
276
|
+
},
|
|
190
277
|
/**
|
|
191
278
|
*
|
|
192
279
|
* @param {string} id The id of the examination
|
|
@@ -477,6 +564,50 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
477
564
|
return axios.request(axiosRequestArgs);
|
|
478
565
|
};
|
|
479
566
|
},
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @param {*} [options] Override http request option.
|
|
570
|
+
* @throws {RequiredError}
|
|
571
|
+
*/
|
|
572
|
+
examinationDocumentsDownloadMultipleOptions: function (options) {
|
|
573
|
+
var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).examinationDocumentsDownloadMultipleOptions(options);
|
|
574
|
+
return function (axios, basePath) {
|
|
575
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
576
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
577
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
578
|
+
return axios.request(axiosRequestArgs);
|
|
579
|
+
};
|
|
580
|
+
},
|
|
581
|
+
/**
|
|
582
|
+
*
|
|
583
|
+
* @param {string} key The key of the document
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
*/
|
|
587
|
+
examinationDocumentsKeyDownloadOptions: function (key, options) {
|
|
588
|
+
var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).examinationDocumentsKeyDownloadOptions(key, options);
|
|
589
|
+
return function (axios, basePath) {
|
|
590
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
591
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
592
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
593
|
+
return axios.request(axiosRequestArgs);
|
|
594
|
+
};
|
|
595
|
+
},
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
* @param {string} id The id of the examination
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
examinationIdDocumentsOptions: function (id, options) {
|
|
603
|
+
var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).examinationIdDocumentsOptions(id, options);
|
|
604
|
+
return function (axios, basePath) {
|
|
605
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
606
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
607
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
608
|
+
return axios.request(axiosRequestArgs);
|
|
609
|
+
};
|
|
610
|
+
},
|
|
480
611
|
/**
|
|
481
612
|
*
|
|
482
613
|
* @param {string} id The id of the examination
|
|
@@ -635,6 +766,32 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
635
766
|
dicomUploadOptions: function (options) {
|
|
636
767
|
return exports.DefaultApiFp(configuration).dicomUploadOptions(options)(axios, basePath);
|
|
637
768
|
},
|
|
769
|
+
/**
|
|
770
|
+
*
|
|
771
|
+
* @param {*} [options] Override http request option.
|
|
772
|
+
* @throws {RequiredError}
|
|
773
|
+
*/
|
|
774
|
+
examinationDocumentsDownloadMultipleOptions: function (options) {
|
|
775
|
+
return exports.DefaultApiFp(configuration).examinationDocumentsDownloadMultipleOptions(options)(axios, basePath);
|
|
776
|
+
},
|
|
777
|
+
/**
|
|
778
|
+
*
|
|
779
|
+
* @param {string} key The key of the document
|
|
780
|
+
* @param {*} [options] Override http request option.
|
|
781
|
+
* @throws {RequiredError}
|
|
782
|
+
*/
|
|
783
|
+
examinationDocumentsKeyDownloadOptions: function (key, options) {
|
|
784
|
+
return exports.DefaultApiFp(configuration).examinationDocumentsKeyDownloadOptions(key, options)(axios, basePath);
|
|
785
|
+
},
|
|
786
|
+
/**
|
|
787
|
+
*
|
|
788
|
+
* @param {string} id The id of the examination
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
*/
|
|
792
|
+
examinationIdDocumentsOptions: function (id, options) {
|
|
793
|
+
return exports.DefaultApiFp(configuration).examinationIdDocumentsOptions(id, options)(axios, basePath);
|
|
794
|
+
},
|
|
638
795
|
/**
|
|
639
796
|
*
|
|
640
797
|
* @param {string} id The id of the examination
|
|
@@ -754,6 +911,35 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
754
911
|
DefaultApi.prototype.dicomUploadOptions = function (options) {
|
|
755
912
|
return exports.DefaultApiFp(this.configuration).dicomUploadOptions(options)(this.axios, this.basePath);
|
|
756
913
|
};
|
|
914
|
+
/**
|
|
915
|
+
*
|
|
916
|
+
* @param {*} [options] Override http request option.
|
|
917
|
+
* @throws {RequiredError}
|
|
918
|
+
* @memberof DefaultApi
|
|
919
|
+
*/
|
|
920
|
+
DefaultApi.prototype.examinationDocumentsDownloadMultipleOptions = function (options) {
|
|
921
|
+
return exports.DefaultApiFp(this.configuration).examinationDocumentsDownloadMultipleOptions(options)(this.axios, this.basePath);
|
|
922
|
+
};
|
|
923
|
+
/**
|
|
924
|
+
*
|
|
925
|
+
* @param {string} key The key of the document
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
* @memberof DefaultApi
|
|
929
|
+
*/
|
|
930
|
+
DefaultApi.prototype.examinationDocumentsKeyDownloadOptions = function (key, options) {
|
|
931
|
+
return exports.DefaultApiFp(this.configuration).examinationDocumentsKeyDownloadOptions(key, options)(this.axios, this.basePath);
|
|
932
|
+
};
|
|
933
|
+
/**
|
|
934
|
+
*
|
|
935
|
+
* @param {string} id The id of the examination
|
|
936
|
+
* @param {*} [options] Override http request option.
|
|
937
|
+
* @throws {RequiredError}
|
|
938
|
+
* @memberof DefaultApi
|
|
939
|
+
*/
|
|
940
|
+
DefaultApi.prototype.examinationIdDocumentsOptions = function (id, options) {
|
|
941
|
+
return exports.DefaultApiFp(this.configuration).examinationIdDocumentsOptions(id, options)(this.axios, this.basePath);
|
|
942
|
+
};
|
|
757
943
|
/**
|
|
758
944
|
*
|
|
759
945
|
* @param {string} id The id of the examination
|
|
@@ -1033,18 +1219,23 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1033
1219
|
},
|
|
1034
1220
|
/**
|
|
1035
1221
|
*
|
|
1036
|
-
* @summary Deletes
|
|
1037
|
-
* @param {string} id The
|
|
1222
|
+
* @summary Deletes document
|
|
1223
|
+
* @param {string} id The id of the examination
|
|
1224
|
+
* @param {string} key The key of the document
|
|
1038
1225
|
* @param {*} [options] Override http request option.
|
|
1039
1226
|
* @throws {RequiredError}
|
|
1040
1227
|
*/
|
|
1041
|
-
|
|
1228
|
+
deleteExaminationDocument: function (id, key, options) {
|
|
1042
1229
|
if (options === void 0) { options = {}; }
|
|
1043
1230
|
// verify required parameter 'id' is not null or undefined
|
|
1044
1231
|
if (id === null || id === undefined) {
|
|
1045
|
-
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling
|
|
1232
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling deleteExaminationDocument.');
|
|
1046
1233
|
}
|
|
1047
|
-
|
|
1234
|
+
// verify required parameter 'key' is not null or undefined
|
|
1235
|
+
if (key === null || key === undefined) {
|
|
1236
|
+
throw new base_1.RequiredError('key', 'Required parameter key was null or undefined when calling deleteExaminationDocument.');
|
|
1237
|
+
}
|
|
1238
|
+
var localVarPath = "/examination/{id}/documents"
|
|
1048
1239
|
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1049
1240
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1050
1241
|
var baseOptions;
|
|
@@ -1069,6 +1260,9 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1069
1260
|
: configuration.apiKey;
|
|
1070
1261
|
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1071
1262
|
}
|
|
1263
|
+
if (key !== undefined) {
|
|
1264
|
+
localVarQueryParameter['key'] = key;
|
|
1265
|
+
}
|
|
1072
1266
|
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1073
1267
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1074
1268
|
delete localVarUrlObj.search;
|
|
@@ -1080,25 +1274,25 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1080
1274
|
},
|
|
1081
1275
|
/**
|
|
1082
1276
|
*
|
|
1083
|
-
* @summary
|
|
1084
|
-
* @param {string}
|
|
1277
|
+
* @summary Deletes patient
|
|
1278
|
+
* @param {string} id The patient id
|
|
1085
1279
|
* @param {*} [options] Override http request option.
|
|
1086
1280
|
* @throws {RequiredError}
|
|
1087
1281
|
*/
|
|
1088
|
-
|
|
1282
|
+
deletePatient: function (id, options) {
|
|
1089
1283
|
if (options === void 0) { options = {}; }
|
|
1090
|
-
// verify required parameter '
|
|
1091
|
-
if (
|
|
1092
|
-
throw new base_1.RequiredError('
|
|
1284
|
+
// verify required parameter 'id' is not null or undefined
|
|
1285
|
+
if (id === null || id === undefined) {
|
|
1286
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling deletePatient.');
|
|
1093
1287
|
}
|
|
1094
|
-
var localVarPath = "/patient/
|
|
1095
|
-
.replace("{" + "
|
|
1288
|
+
var localVarPath = "/patient/{id}"
|
|
1289
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1096
1290
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1097
1291
|
var baseOptions;
|
|
1098
1292
|
if (configuration) {
|
|
1099
1293
|
baseOptions = configuration.baseOptions;
|
|
1100
1294
|
}
|
|
1101
|
-
var localVarRequestOptions = __assign(__assign({ method: '
|
|
1295
|
+
var localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
1102
1296
|
var localVarHeaderParameter = {};
|
|
1103
1297
|
var localVarQueryParameter = {};
|
|
1104
1298
|
// authentication BearerAuth required
|
|
@@ -1127,24 +1321,25 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1127
1321
|
},
|
|
1128
1322
|
/**
|
|
1129
1323
|
*
|
|
1130
|
-
* @summary Download
|
|
1131
|
-
* @param {
|
|
1324
|
+
* @summary Download the document
|
|
1325
|
+
* @param {string} key The key of the document
|
|
1132
1326
|
* @param {*} [options] Override http request option.
|
|
1133
1327
|
* @throws {RequiredError}
|
|
1134
1328
|
*/
|
|
1135
|
-
|
|
1329
|
+
downloadDocument: function (key, options) {
|
|
1136
1330
|
if (options === void 0) { options = {}; }
|
|
1137
|
-
// verify required parameter '
|
|
1138
|
-
if (
|
|
1139
|
-
throw new base_1.RequiredError('
|
|
1331
|
+
// verify required parameter 'key' is not null or undefined
|
|
1332
|
+
if (key === null || key === undefined) {
|
|
1333
|
+
throw new base_1.RequiredError('key', 'Required parameter key was null or undefined when calling downloadDocument.');
|
|
1140
1334
|
}
|
|
1141
|
-
var localVarPath = "/patient/documents/download
|
|
1335
|
+
var localVarPath = "/patient/documents/{key}/download"
|
|
1336
|
+
.replace("{" + "key" + "}", encodeURIComponent(String(key)));
|
|
1142
1337
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1143
1338
|
var baseOptions;
|
|
1144
1339
|
if (configuration) {
|
|
1145
1340
|
baseOptions = configuration.baseOptions;
|
|
1146
1341
|
}
|
|
1147
|
-
var localVarRequestOptions = __assign(__assign({ method: '
|
|
1342
|
+
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1148
1343
|
var localVarHeaderParameter = {};
|
|
1149
1344
|
var localVarQueryParameter = {};
|
|
1150
1345
|
// authentication BearerAuth required
|
|
@@ -1162,13 +1357,10 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1162
1357
|
: configuration.apiKey;
|
|
1163
1358
|
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1164
1359
|
}
|
|
1165
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1166
1360
|
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1167
1361
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1168
1362
|
delete localVarUrlObj.search;
|
|
1169
1363
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1170
|
-
var needsSerialization = (typeof downloadMultipleFilesRequest !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
1171
|
-
localVarRequestOptions.data = needsSerialization ? JSON.stringify(downloadMultipleFilesRequest !== undefined ? downloadMultipleFilesRequest : {}) : (downloadMultipleFilesRequest || "");
|
|
1172
1364
|
return {
|
|
1173
1365
|
url: globalImportUrl.format(localVarUrlObj),
|
|
1174
1366
|
options: localVarRequestOptions,
|
|
@@ -1176,19 +1368,19 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1176
1368
|
},
|
|
1177
1369
|
/**
|
|
1178
1370
|
*
|
|
1179
|
-
* @summary Download
|
|
1180
|
-
* @param {string}
|
|
1371
|
+
* @summary Download the document
|
|
1372
|
+
* @param {string} key The key of the document
|
|
1181
1373
|
* @param {*} [options] Override http request option.
|
|
1182
1374
|
* @throws {RequiredError}
|
|
1183
1375
|
*/
|
|
1184
|
-
|
|
1376
|
+
downloadExaminationDocument: function (key, options) {
|
|
1185
1377
|
if (options === void 0) { options = {}; }
|
|
1186
|
-
// verify required parameter '
|
|
1187
|
-
if (
|
|
1188
|
-
throw new base_1.RequiredError('
|
|
1378
|
+
// verify required parameter 'key' is not null or undefined
|
|
1379
|
+
if (key === null || key === undefined) {
|
|
1380
|
+
throw new base_1.RequiredError('key', 'Required parameter key was null or undefined when calling downloadExaminationDocument.');
|
|
1189
1381
|
}
|
|
1190
|
-
var localVarPath = "/
|
|
1191
|
-
.replace("{" + "
|
|
1382
|
+
var localVarPath = "/examination/documents/{key}/download"
|
|
1383
|
+
.replace("{" + "key" + "}", encodeURIComponent(String(key)));
|
|
1192
1384
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1193
1385
|
var baseOptions;
|
|
1194
1386
|
if (configuration) {
|
|
@@ -1223,24 +1415,24 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1223
1415
|
},
|
|
1224
1416
|
/**
|
|
1225
1417
|
*
|
|
1226
|
-
* @summary
|
|
1227
|
-
* @param {
|
|
1418
|
+
* @summary Download zip with multiple files
|
|
1419
|
+
* @param {DownloadMultipleFilesRequest} downloadMultipleFilesRequest
|
|
1228
1420
|
* @param {*} [options] Override http request option.
|
|
1229
1421
|
* @throws {RequiredError}
|
|
1230
1422
|
*/
|
|
1231
|
-
|
|
1423
|
+
downloadExaminationFiles: function (downloadMultipleFilesRequest, options) {
|
|
1232
1424
|
if (options === void 0) { options = {}; }
|
|
1233
|
-
// verify required parameter '
|
|
1234
|
-
if (
|
|
1235
|
-
throw new base_1.RequiredError('
|
|
1425
|
+
// verify required parameter 'downloadMultipleFilesRequest' is not null or undefined
|
|
1426
|
+
if (downloadMultipleFilesRequest === null || downloadMultipleFilesRequest === undefined) {
|
|
1427
|
+
throw new base_1.RequiredError('downloadMultipleFilesRequest', 'Required parameter downloadMultipleFilesRequest was null or undefined when calling downloadExaminationFiles.');
|
|
1236
1428
|
}
|
|
1237
|
-
var localVarPath = "/examination";
|
|
1429
|
+
var localVarPath = "/examination/documents/download/multiple";
|
|
1238
1430
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1239
1431
|
var baseOptions;
|
|
1240
1432
|
if (configuration) {
|
|
1241
1433
|
baseOptions = configuration.baseOptions;
|
|
1242
1434
|
}
|
|
1243
|
-
var localVarRequestOptions = __assign(__assign({ method: '
|
|
1435
|
+
var localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1244
1436
|
var localVarHeaderParameter = {};
|
|
1245
1437
|
var localVarQueryParameter = {};
|
|
1246
1438
|
// authentication BearerAuth required
|
|
@@ -1258,13 +1450,13 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1258
1450
|
: configuration.apiKey;
|
|
1259
1451
|
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1260
1452
|
}
|
|
1261
|
-
|
|
1262
|
-
localVarQueryParameter['patientId'] = patientId;
|
|
1263
|
-
}
|
|
1453
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1264
1454
|
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1265
1455
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1266
1456
|
delete localVarUrlObj.search;
|
|
1267
1457
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1458
|
+
var needsSerialization = (typeof downloadMultipleFilesRequest !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
1459
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(downloadMultipleFilesRequest !== undefined ? downloadMultipleFilesRequest : {}) : (downloadMultipleFilesRequest || "");
|
|
1268
1460
|
return {
|
|
1269
1461
|
url: globalImportUrl.format(localVarUrlObj),
|
|
1270
1462
|
options: localVarRequestOptions,
|
|
@@ -1272,19 +1464,164 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1272
1464
|
},
|
|
1273
1465
|
/**
|
|
1274
1466
|
*
|
|
1275
|
-
* @summary
|
|
1467
|
+
* @summary Download zip with multiple files
|
|
1468
|
+
* @param {DownloadMultipleFilesRequest} downloadMultipleFilesRequest
|
|
1276
1469
|
* @param {*} [options] Override http request option.
|
|
1277
1470
|
* @throws {RequiredError}
|
|
1278
1471
|
*/
|
|
1279
|
-
|
|
1472
|
+
downloadMultipleFiles: function (downloadMultipleFilesRequest, options) {
|
|
1280
1473
|
if (options === void 0) { options = {}; }
|
|
1281
|
-
|
|
1474
|
+
// verify required parameter 'downloadMultipleFilesRequest' is not null or undefined
|
|
1475
|
+
if (downloadMultipleFilesRequest === null || downloadMultipleFilesRequest === undefined) {
|
|
1476
|
+
throw new base_1.RequiredError('downloadMultipleFilesRequest', 'Required parameter downloadMultipleFilesRequest was null or undefined when calling downloadMultipleFiles.');
|
|
1477
|
+
}
|
|
1478
|
+
var localVarPath = "/patient/documents/download/multiple";
|
|
1282
1479
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1283
1480
|
var baseOptions;
|
|
1284
1481
|
if (configuration) {
|
|
1285
1482
|
baseOptions = configuration.baseOptions;
|
|
1286
1483
|
}
|
|
1287
|
-
var localVarRequestOptions = __assign(__assign({ method: '
|
|
1484
|
+
var localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1485
|
+
var localVarHeaderParameter = {};
|
|
1486
|
+
var localVarQueryParameter = {};
|
|
1487
|
+
// authentication BearerAuth required
|
|
1488
|
+
// http bearer authentication required
|
|
1489
|
+
if (configuration && configuration.accessToken) {
|
|
1490
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1491
|
+
? configuration.accessToken()
|
|
1492
|
+
: configuration.accessToken;
|
|
1493
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1494
|
+
}
|
|
1495
|
+
// authentication custom-authorizer required
|
|
1496
|
+
if (configuration && configuration.apiKey) {
|
|
1497
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1498
|
+
? configuration.apiKey("Authorization")
|
|
1499
|
+
: configuration.apiKey;
|
|
1500
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1501
|
+
}
|
|
1502
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1503
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1504
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1505
|
+
delete localVarUrlObj.search;
|
|
1506
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1507
|
+
var needsSerialization = (typeof downloadMultipleFilesRequest !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
1508
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(downloadMultipleFilesRequest !== undefined ? downloadMultipleFilesRequest : {}) : (downloadMultipleFilesRequest || "");
|
|
1509
|
+
return {
|
|
1510
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1511
|
+
options: localVarRequestOptions,
|
|
1512
|
+
};
|
|
1513
|
+
},
|
|
1514
|
+
/**
|
|
1515
|
+
*
|
|
1516
|
+
* @summary Download study dicom
|
|
1517
|
+
* @param {string} id The id of the study
|
|
1518
|
+
* @param {*} [options] Override http request option.
|
|
1519
|
+
* @throws {RequiredError}
|
|
1520
|
+
*/
|
|
1521
|
+
downloadStudy: function (id, options) {
|
|
1522
|
+
if (options === void 0) { options = {}; }
|
|
1523
|
+
// verify required parameter 'id' is not null or undefined
|
|
1524
|
+
if (id === null || id === undefined) {
|
|
1525
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling downloadStudy.');
|
|
1526
|
+
}
|
|
1527
|
+
var localVarPath = "/dicom/{id}/download"
|
|
1528
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1529
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1530
|
+
var baseOptions;
|
|
1531
|
+
if (configuration) {
|
|
1532
|
+
baseOptions = configuration.baseOptions;
|
|
1533
|
+
}
|
|
1534
|
+
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1535
|
+
var localVarHeaderParameter = {};
|
|
1536
|
+
var localVarQueryParameter = {};
|
|
1537
|
+
// authentication BearerAuth required
|
|
1538
|
+
// http bearer authentication required
|
|
1539
|
+
if (configuration && configuration.accessToken) {
|
|
1540
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1541
|
+
? configuration.accessToken()
|
|
1542
|
+
: configuration.accessToken;
|
|
1543
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1544
|
+
}
|
|
1545
|
+
// authentication custom-authorizer required
|
|
1546
|
+
if (configuration && configuration.apiKey) {
|
|
1547
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1548
|
+
? configuration.apiKey("Authorization")
|
|
1549
|
+
: configuration.apiKey;
|
|
1550
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1551
|
+
}
|
|
1552
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1553
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1554
|
+
delete localVarUrlObj.search;
|
|
1555
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1556
|
+
return {
|
|
1557
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1558
|
+
options: localVarRequestOptions,
|
|
1559
|
+
};
|
|
1560
|
+
},
|
|
1561
|
+
/**
|
|
1562
|
+
*
|
|
1563
|
+
* @summary Get data about Examination for patient
|
|
1564
|
+
* @param {string} patientId The patientId
|
|
1565
|
+
* @param {*} [options] Override http request option.
|
|
1566
|
+
* @throws {RequiredError}
|
|
1567
|
+
*/
|
|
1568
|
+
getAllExaminationForPatient: function (patientId, options) {
|
|
1569
|
+
if (options === void 0) { options = {}; }
|
|
1570
|
+
// verify required parameter 'patientId' is not null or undefined
|
|
1571
|
+
if (patientId === null || patientId === undefined) {
|
|
1572
|
+
throw new base_1.RequiredError('patientId', 'Required parameter patientId was null or undefined when calling getAllExaminationForPatient.');
|
|
1573
|
+
}
|
|
1574
|
+
var localVarPath = "/examination";
|
|
1575
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1576
|
+
var baseOptions;
|
|
1577
|
+
if (configuration) {
|
|
1578
|
+
baseOptions = configuration.baseOptions;
|
|
1579
|
+
}
|
|
1580
|
+
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1581
|
+
var localVarHeaderParameter = {};
|
|
1582
|
+
var localVarQueryParameter = {};
|
|
1583
|
+
// authentication BearerAuth required
|
|
1584
|
+
// http bearer authentication required
|
|
1585
|
+
if (configuration && configuration.accessToken) {
|
|
1586
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1587
|
+
? configuration.accessToken()
|
|
1588
|
+
: configuration.accessToken;
|
|
1589
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1590
|
+
}
|
|
1591
|
+
// authentication custom-authorizer required
|
|
1592
|
+
if (configuration && configuration.apiKey) {
|
|
1593
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1594
|
+
? configuration.apiKey("Authorization")
|
|
1595
|
+
: configuration.apiKey;
|
|
1596
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1597
|
+
}
|
|
1598
|
+
if (patientId !== undefined) {
|
|
1599
|
+
localVarQueryParameter['patientId'] = patientId;
|
|
1600
|
+
}
|
|
1601
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1602
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1603
|
+
delete localVarUrlObj.search;
|
|
1604
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1605
|
+
return {
|
|
1606
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1607
|
+
options: localVarRequestOptions,
|
|
1608
|
+
};
|
|
1609
|
+
},
|
|
1610
|
+
/**
|
|
1611
|
+
*
|
|
1612
|
+
* @summary Get data about patients
|
|
1613
|
+
* @param {*} [options] Override http request option.
|
|
1614
|
+
* @throws {RequiredError}
|
|
1615
|
+
*/
|
|
1616
|
+
getAllPatients: function (options) {
|
|
1617
|
+
if (options === void 0) { options = {}; }
|
|
1618
|
+
var localVarPath = "/patient";
|
|
1619
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1620
|
+
var baseOptions;
|
|
1621
|
+
if (configuration) {
|
|
1622
|
+
baseOptions = configuration.baseOptions;
|
|
1623
|
+
}
|
|
1624
|
+
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1288
1625
|
var localVarHeaderParameter = {};
|
|
1289
1626
|
var localVarQueryParameter = {};
|
|
1290
1627
|
// authentication BearerAuth required
|
|
@@ -1493,6 +1830,53 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1493
1830
|
options: localVarRequestOptions,
|
|
1494
1831
|
};
|
|
1495
1832
|
},
|
|
1833
|
+
/**
|
|
1834
|
+
*
|
|
1835
|
+
* @summary Get data about documents
|
|
1836
|
+
* @param {string} id The id of the examination
|
|
1837
|
+
* @param {*} [options] Override http request option.
|
|
1838
|
+
* @throws {RequiredError}
|
|
1839
|
+
*/
|
|
1840
|
+
getExaminationDocuments: function (id, options) {
|
|
1841
|
+
if (options === void 0) { options = {}; }
|
|
1842
|
+
// verify required parameter 'id' is not null or undefined
|
|
1843
|
+
if (id === null || id === undefined) {
|
|
1844
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling getExaminationDocuments.');
|
|
1845
|
+
}
|
|
1846
|
+
var localVarPath = "/examination/{id}/documents"
|
|
1847
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1848
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1849
|
+
var baseOptions;
|
|
1850
|
+
if (configuration) {
|
|
1851
|
+
baseOptions = configuration.baseOptions;
|
|
1852
|
+
}
|
|
1853
|
+
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1854
|
+
var localVarHeaderParameter = {};
|
|
1855
|
+
var localVarQueryParameter = {};
|
|
1856
|
+
// authentication BearerAuth required
|
|
1857
|
+
// http bearer authentication required
|
|
1858
|
+
if (configuration && configuration.accessToken) {
|
|
1859
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1860
|
+
? configuration.accessToken()
|
|
1861
|
+
: configuration.accessToken;
|
|
1862
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1863
|
+
}
|
|
1864
|
+
// authentication custom-authorizer required
|
|
1865
|
+
if (configuration && configuration.apiKey) {
|
|
1866
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1867
|
+
? configuration.apiKey("Authorization")
|
|
1868
|
+
: configuration.apiKey;
|
|
1869
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1870
|
+
}
|
|
1871
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1872
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1873
|
+
delete localVarUrlObj.search;
|
|
1874
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1875
|
+
return {
|
|
1876
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1877
|
+
options: localVarRequestOptions,
|
|
1878
|
+
};
|
|
1879
|
+
},
|
|
1496
1880
|
/**
|
|
1497
1881
|
*
|
|
1498
1882
|
* @summary Get data about patient
|
|
@@ -1589,6 +1973,61 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1589
1973
|
options: localVarRequestOptions,
|
|
1590
1974
|
};
|
|
1591
1975
|
},
|
|
1976
|
+
/**
|
|
1977
|
+
* Change type of a document
|
|
1978
|
+
* @summary Change document type
|
|
1979
|
+
* @param {string} id The id of the patient
|
|
1980
|
+
* @param {string} type The type of the document
|
|
1981
|
+
* @param {*} [options] Override http request option.
|
|
1982
|
+
* @throws {RequiredError}
|
|
1983
|
+
*/
|
|
1984
|
+
setDocumentType: function (id, type, options) {
|
|
1985
|
+
if (options === void 0) { options = {}; }
|
|
1986
|
+
// verify required parameter 'id' is not null or undefined
|
|
1987
|
+
if (id === null || id === undefined) {
|
|
1988
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling setDocumentType.');
|
|
1989
|
+
}
|
|
1990
|
+
// verify required parameter 'type' is not null or undefined
|
|
1991
|
+
if (type === null || type === undefined) {
|
|
1992
|
+
throw new base_1.RequiredError('type', 'Required parameter type was null or undefined when calling setDocumentType.');
|
|
1993
|
+
}
|
|
1994
|
+
var localVarPath = "/patient/{id}/documents"
|
|
1995
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1996
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1997
|
+
var baseOptions;
|
|
1998
|
+
if (configuration) {
|
|
1999
|
+
baseOptions = configuration.baseOptions;
|
|
2000
|
+
}
|
|
2001
|
+
var localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2002
|
+
var localVarHeaderParameter = {};
|
|
2003
|
+
var localVarQueryParameter = {};
|
|
2004
|
+
// authentication BearerAuth required
|
|
2005
|
+
// http bearer authentication required
|
|
2006
|
+
if (configuration && configuration.accessToken) {
|
|
2007
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
2008
|
+
? configuration.accessToken()
|
|
2009
|
+
: configuration.accessToken;
|
|
2010
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
2011
|
+
}
|
|
2012
|
+
// authentication custom-authorizer required
|
|
2013
|
+
if (configuration && configuration.apiKey) {
|
|
2014
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
2015
|
+
? configuration.apiKey("Authorization")
|
|
2016
|
+
: configuration.apiKey;
|
|
2017
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
2018
|
+
}
|
|
2019
|
+
if (type !== undefined) {
|
|
2020
|
+
localVarQueryParameter['type'] = type;
|
|
2021
|
+
}
|
|
2022
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
2023
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
2024
|
+
delete localVarUrlObj.search;
|
|
2025
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
2026
|
+
return {
|
|
2027
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
2028
|
+
options: localVarRequestOptions,
|
|
2029
|
+
};
|
|
2030
|
+
},
|
|
1592
2031
|
/**
|
|
1593
2032
|
*
|
|
1594
2033
|
* @summary Updates the examination
|
|
@@ -1793,6 +2232,60 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1793
2232
|
options: localVarRequestOptions,
|
|
1794
2233
|
};
|
|
1795
2234
|
},
|
|
2235
|
+
/**
|
|
2236
|
+
* Upload medical examination files
|
|
2237
|
+
* @summary Upload documents
|
|
2238
|
+
* @param {string} id The id of the examination
|
|
2239
|
+
* @param {Array<any>} [files]
|
|
2240
|
+
* @param {*} [options] Override http request option.
|
|
2241
|
+
* @throws {RequiredError}
|
|
2242
|
+
*/
|
|
2243
|
+
uploadExaminationDocuments: function (id, files, options) {
|
|
2244
|
+
if (options === void 0) { options = {}; }
|
|
2245
|
+
// verify required parameter 'id' is not null or undefined
|
|
2246
|
+
if (id === null || id === undefined) {
|
|
2247
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling uploadExaminationDocuments.');
|
|
2248
|
+
}
|
|
2249
|
+
var localVarPath = "/examination/{id}/documents"
|
|
2250
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
2251
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
2252
|
+
var baseOptions;
|
|
2253
|
+
if (configuration) {
|
|
2254
|
+
baseOptions = configuration.baseOptions;
|
|
2255
|
+
}
|
|
2256
|
+
var localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2257
|
+
var localVarHeaderParameter = {};
|
|
2258
|
+
var localVarQueryParameter = {};
|
|
2259
|
+
var localVarFormParams = new FormData();
|
|
2260
|
+
// authentication BearerAuth required
|
|
2261
|
+
// http bearer authentication required
|
|
2262
|
+
if (configuration && configuration.accessToken) {
|
|
2263
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
2264
|
+
? configuration.accessToken()
|
|
2265
|
+
: configuration.accessToken;
|
|
2266
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
2267
|
+
}
|
|
2268
|
+
// authentication custom-authorizer required
|
|
2269
|
+
if (configuration && configuration.apiKey) {
|
|
2270
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
2271
|
+
? configuration.apiKey("Authorization")
|
|
2272
|
+
: configuration.apiKey;
|
|
2273
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
2274
|
+
}
|
|
2275
|
+
if (files) {
|
|
2276
|
+
localVarFormParams.append('files', files.join(base_1.COLLECTION_FORMATS.csv));
|
|
2277
|
+
}
|
|
2278
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
2279
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
2280
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
2281
|
+
delete localVarUrlObj.search;
|
|
2282
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
2283
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
2284
|
+
return {
|
|
2285
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
2286
|
+
options: localVarRequestOptions,
|
|
2287
|
+
};
|
|
2288
|
+
},
|
|
1796
2289
|
};
|
|
1797
2290
|
};
|
|
1798
2291
|
/**
|
|
@@ -1866,6 +2359,23 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
1866
2359
|
return axios.request(axiosRequestArgs);
|
|
1867
2360
|
};
|
|
1868
2361
|
},
|
|
2362
|
+
/**
|
|
2363
|
+
*
|
|
2364
|
+
* @summary Deletes document
|
|
2365
|
+
* @param {string} id The id of the examination
|
|
2366
|
+
* @param {string} key The key of the document
|
|
2367
|
+
* @param {*} [options] Override http request option.
|
|
2368
|
+
* @throws {RequiredError}
|
|
2369
|
+
*/
|
|
2370
|
+
deleteExaminationDocument: function (id, key, options) {
|
|
2371
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).deleteExaminationDocument(id, key, options);
|
|
2372
|
+
return function (axios, basePath) {
|
|
2373
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2374
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2375
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2376
|
+
return axios.request(axiosRequestArgs);
|
|
2377
|
+
};
|
|
2378
|
+
},
|
|
1869
2379
|
/**
|
|
1870
2380
|
*
|
|
1871
2381
|
* @summary Deletes patient
|
|
@@ -1898,6 +2408,38 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
1898
2408
|
return axios.request(axiosRequestArgs);
|
|
1899
2409
|
};
|
|
1900
2410
|
},
|
|
2411
|
+
/**
|
|
2412
|
+
*
|
|
2413
|
+
* @summary Download the document
|
|
2414
|
+
* @param {string} key The key of the document
|
|
2415
|
+
* @param {*} [options] Override http request option.
|
|
2416
|
+
* @throws {RequiredError}
|
|
2417
|
+
*/
|
|
2418
|
+
downloadExaminationDocument: function (key, options) {
|
|
2419
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).downloadExaminationDocument(key, options);
|
|
2420
|
+
return function (axios, basePath) {
|
|
2421
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2422
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2423
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2424
|
+
return axios.request(axiosRequestArgs);
|
|
2425
|
+
};
|
|
2426
|
+
},
|
|
2427
|
+
/**
|
|
2428
|
+
*
|
|
2429
|
+
* @summary Download zip with multiple files
|
|
2430
|
+
* @param {DownloadMultipleFilesRequest} downloadMultipleFilesRequest
|
|
2431
|
+
* @param {*} [options] Override http request option.
|
|
2432
|
+
* @throws {RequiredError}
|
|
2433
|
+
*/
|
|
2434
|
+
downloadExaminationFiles: function (downloadMultipleFilesRequest, options) {
|
|
2435
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).downloadExaminationFiles(downloadMultipleFilesRequest, options);
|
|
2436
|
+
return function (axios, basePath) {
|
|
2437
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2438
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2439
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2440
|
+
return axios.request(axiosRequestArgs);
|
|
2441
|
+
};
|
|
2442
|
+
},
|
|
1901
2443
|
/**
|
|
1902
2444
|
*
|
|
1903
2445
|
* @summary Download zip with multiple files
|
|
@@ -2024,6 +2566,22 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
2024
2566
|
return axios.request(axiosRequestArgs);
|
|
2025
2567
|
};
|
|
2026
2568
|
},
|
|
2569
|
+
/**
|
|
2570
|
+
*
|
|
2571
|
+
* @summary Get data about documents
|
|
2572
|
+
* @param {string} id The id of the examination
|
|
2573
|
+
* @param {*} [options] Override http request option.
|
|
2574
|
+
* @throws {RequiredError}
|
|
2575
|
+
*/
|
|
2576
|
+
getExaminationDocuments: function (id, options) {
|
|
2577
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).getExaminationDocuments(id, options);
|
|
2578
|
+
return function (axios, basePath) {
|
|
2579
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2580
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2581
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2582
|
+
return axios.request(axiosRequestArgs);
|
|
2583
|
+
};
|
|
2584
|
+
},
|
|
2027
2585
|
/**
|
|
2028
2586
|
*
|
|
2029
2587
|
* @summary Get data about patient
|
|
@@ -2056,6 +2614,23 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
2056
2614
|
return axios.request(axiosRequestArgs);
|
|
2057
2615
|
};
|
|
2058
2616
|
},
|
|
2617
|
+
/**
|
|
2618
|
+
* Change type of a document
|
|
2619
|
+
* @summary Change document type
|
|
2620
|
+
* @param {string} id The id of the patient
|
|
2621
|
+
* @param {string} type The type of the document
|
|
2622
|
+
* @param {*} [options] Override http request option.
|
|
2623
|
+
* @throws {RequiredError}
|
|
2624
|
+
*/
|
|
2625
|
+
setDocumentType: function (id, type, options) {
|
|
2626
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).setDocumentType(id, type, options);
|
|
2627
|
+
return function (axios, basePath) {
|
|
2628
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2629
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2630
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2631
|
+
return axios.request(axiosRequestArgs);
|
|
2632
|
+
};
|
|
2633
|
+
},
|
|
2059
2634
|
/**
|
|
2060
2635
|
*
|
|
2061
2636
|
* @summary Updates the examination
|
|
@@ -2123,6 +2698,23 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
2123
2698
|
return axios.request(axiosRequestArgs);
|
|
2124
2699
|
};
|
|
2125
2700
|
},
|
|
2701
|
+
/**
|
|
2702
|
+
* Upload medical examination files
|
|
2703
|
+
* @summary Upload documents
|
|
2704
|
+
* @param {string} id The id of the examination
|
|
2705
|
+
* @param {Array<any>} [files]
|
|
2706
|
+
* @param {*} [options] Override http request option.
|
|
2707
|
+
* @throws {RequiredError}
|
|
2708
|
+
*/
|
|
2709
|
+
uploadExaminationDocuments: function (id, files, options) {
|
|
2710
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).uploadExaminationDocuments(id, files, options);
|
|
2711
|
+
return function (axios, basePath) {
|
|
2712
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2713
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2714
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2715
|
+
return axios.request(axiosRequestArgs);
|
|
2716
|
+
};
|
|
2717
|
+
},
|
|
2126
2718
|
};
|
|
2127
2719
|
};
|
|
2128
2720
|
/**
|
|
@@ -2172,6 +2764,17 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
2172
2764
|
deleteExamination: function (id, options) {
|
|
2173
2765
|
return exports.MsPetApiFp(configuration).deleteExamination(id, options)(axios, basePath);
|
|
2174
2766
|
},
|
|
2767
|
+
/**
|
|
2768
|
+
*
|
|
2769
|
+
* @summary Deletes document
|
|
2770
|
+
* @param {string} id The id of the examination
|
|
2771
|
+
* @param {string} key The key of the document
|
|
2772
|
+
* @param {*} [options] Override http request option.
|
|
2773
|
+
* @throws {RequiredError}
|
|
2774
|
+
*/
|
|
2775
|
+
deleteExaminationDocument: function (id, key, options) {
|
|
2776
|
+
return exports.MsPetApiFp(configuration).deleteExaminationDocument(id, key, options)(axios, basePath);
|
|
2777
|
+
},
|
|
2175
2778
|
/**
|
|
2176
2779
|
*
|
|
2177
2780
|
* @summary Deletes patient
|
|
@@ -2192,6 +2795,26 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
2192
2795
|
downloadDocument: function (key, options) {
|
|
2193
2796
|
return exports.MsPetApiFp(configuration).downloadDocument(key, options)(axios, basePath);
|
|
2194
2797
|
},
|
|
2798
|
+
/**
|
|
2799
|
+
*
|
|
2800
|
+
* @summary Download the document
|
|
2801
|
+
* @param {string} key The key of the document
|
|
2802
|
+
* @param {*} [options] Override http request option.
|
|
2803
|
+
* @throws {RequiredError}
|
|
2804
|
+
*/
|
|
2805
|
+
downloadExaminationDocument: function (key, options) {
|
|
2806
|
+
return exports.MsPetApiFp(configuration).downloadExaminationDocument(key, options)(axios, basePath);
|
|
2807
|
+
},
|
|
2808
|
+
/**
|
|
2809
|
+
*
|
|
2810
|
+
* @summary Download zip with multiple files
|
|
2811
|
+
* @param {DownloadMultipleFilesRequest} downloadMultipleFilesRequest
|
|
2812
|
+
* @param {*} [options] Override http request option.
|
|
2813
|
+
* @throws {RequiredError}
|
|
2814
|
+
*/
|
|
2815
|
+
downloadExaminationFiles: function (downloadMultipleFilesRequest, options) {
|
|
2816
|
+
return exports.MsPetApiFp(configuration).downloadExaminationFiles(downloadMultipleFilesRequest, options)(axios, basePath);
|
|
2817
|
+
},
|
|
2195
2818
|
/**
|
|
2196
2819
|
*
|
|
2197
2820
|
* @summary Download zip with multiple files
|
|
@@ -2270,6 +2893,16 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
2270
2893
|
getExamination: function (id, options) {
|
|
2271
2894
|
return exports.MsPetApiFp(configuration).getExamination(id, options)(axios, basePath);
|
|
2272
2895
|
},
|
|
2896
|
+
/**
|
|
2897
|
+
*
|
|
2898
|
+
* @summary Get data about documents
|
|
2899
|
+
* @param {string} id The id of the examination
|
|
2900
|
+
* @param {*} [options] Override http request option.
|
|
2901
|
+
* @throws {RequiredError}
|
|
2902
|
+
*/
|
|
2903
|
+
getExaminationDocuments: function (id, options) {
|
|
2904
|
+
return exports.MsPetApiFp(configuration).getExaminationDocuments(id, options)(axios, basePath);
|
|
2905
|
+
},
|
|
2273
2906
|
/**
|
|
2274
2907
|
*
|
|
2275
2908
|
* @summary Get data about patient
|
|
@@ -2290,6 +2923,17 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
2290
2923
|
sendEmail: function (sendEmailRequest, options) {
|
|
2291
2924
|
return exports.MsPetApiFp(configuration).sendEmail(sendEmailRequest, options)(axios, basePath);
|
|
2292
2925
|
},
|
|
2926
|
+
/**
|
|
2927
|
+
* Change type of a document
|
|
2928
|
+
* @summary Change document type
|
|
2929
|
+
* @param {string} id The id of the patient
|
|
2930
|
+
* @param {string} type The type of the document
|
|
2931
|
+
* @param {*} [options] Override http request option.
|
|
2932
|
+
* @throws {RequiredError}
|
|
2933
|
+
*/
|
|
2934
|
+
setDocumentType: function (id, type, options) {
|
|
2935
|
+
return exports.MsPetApiFp(configuration).setDocumentType(id, type, options)(axios, basePath);
|
|
2936
|
+
},
|
|
2293
2937
|
/**
|
|
2294
2938
|
*
|
|
2295
2939
|
* @summary Updates the examination
|
|
@@ -2333,6 +2977,17 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
2333
2977
|
uploadDocuments: function (id, files, options) {
|
|
2334
2978
|
return exports.MsPetApiFp(configuration).uploadDocuments(id, files, options)(axios, basePath);
|
|
2335
2979
|
},
|
|
2980
|
+
/**
|
|
2981
|
+
* Upload medical examination files
|
|
2982
|
+
* @summary Upload documents
|
|
2983
|
+
* @param {string} id The id of the examination
|
|
2984
|
+
* @param {Array<any>} [files]
|
|
2985
|
+
* @param {*} [options] Override http request option.
|
|
2986
|
+
* @throws {RequiredError}
|
|
2987
|
+
*/
|
|
2988
|
+
uploadExaminationDocuments: function (id, files, options) {
|
|
2989
|
+
return exports.MsPetApiFp(configuration).uploadExaminationDocuments(id, files, options)(axios, basePath);
|
|
2990
|
+
},
|
|
2336
2991
|
};
|
|
2337
2992
|
};
|
|
2338
2993
|
/**
|
|
@@ -2391,6 +3046,18 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
2391
3046
|
MsPetApi.prototype.deleteExamination = function (id, options) {
|
|
2392
3047
|
return exports.MsPetApiFp(this.configuration).deleteExamination(id, options)(this.axios, this.basePath);
|
|
2393
3048
|
};
|
|
3049
|
+
/**
|
|
3050
|
+
*
|
|
3051
|
+
* @summary Deletes document
|
|
3052
|
+
* @param {string} id The id of the examination
|
|
3053
|
+
* @param {string} key The key of the document
|
|
3054
|
+
* @param {*} [options] Override http request option.
|
|
3055
|
+
* @throws {RequiredError}
|
|
3056
|
+
* @memberof MsPetApi
|
|
3057
|
+
*/
|
|
3058
|
+
MsPetApi.prototype.deleteExaminationDocument = function (id, key, options) {
|
|
3059
|
+
return exports.MsPetApiFp(this.configuration).deleteExaminationDocument(id, key, options)(this.axios, this.basePath);
|
|
3060
|
+
};
|
|
2394
3061
|
/**
|
|
2395
3062
|
*
|
|
2396
3063
|
* @summary Deletes patient
|
|
@@ -2413,6 +3080,28 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
2413
3080
|
MsPetApi.prototype.downloadDocument = function (key, options) {
|
|
2414
3081
|
return exports.MsPetApiFp(this.configuration).downloadDocument(key, options)(this.axios, this.basePath);
|
|
2415
3082
|
};
|
|
3083
|
+
/**
|
|
3084
|
+
*
|
|
3085
|
+
* @summary Download the document
|
|
3086
|
+
* @param {string} key The key of the document
|
|
3087
|
+
* @param {*} [options] Override http request option.
|
|
3088
|
+
* @throws {RequiredError}
|
|
3089
|
+
* @memberof MsPetApi
|
|
3090
|
+
*/
|
|
3091
|
+
MsPetApi.prototype.downloadExaminationDocument = function (key, options) {
|
|
3092
|
+
return exports.MsPetApiFp(this.configuration).downloadExaminationDocument(key, options)(this.axios, this.basePath);
|
|
3093
|
+
};
|
|
3094
|
+
/**
|
|
3095
|
+
*
|
|
3096
|
+
* @summary Download zip with multiple files
|
|
3097
|
+
* @param {DownloadMultipleFilesRequest} downloadMultipleFilesRequest
|
|
3098
|
+
* @param {*} [options] Override http request option.
|
|
3099
|
+
* @throws {RequiredError}
|
|
3100
|
+
* @memberof MsPetApi
|
|
3101
|
+
*/
|
|
3102
|
+
MsPetApi.prototype.downloadExaminationFiles = function (downloadMultipleFilesRequest, options) {
|
|
3103
|
+
return exports.MsPetApiFp(this.configuration).downloadExaminationFiles(downloadMultipleFilesRequest, options)(this.axios, this.basePath);
|
|
3104
|
+
};
|
|
2416
3105
|
/**
|
|
2417
3106
|
*
|
|
2418
3107
|
* @summary Download zip with multiple files
|
|
@@ -2499,6 +3188,17 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
2499
3188
|
MsPetApi.prototype.getExamination = function (id, options) {
|
|
2500
3189
|
return exports.MsPetApiFp(this.configuration).getExamination(id, options)(this.axios, this.basePath);
|
|
2501
3190
|
};
|
|
3191
|
+
/**
|
|
3192
|
+
*
|
|
3193
|
+
* @summary Get data about documents
|
|
3194
|
+
* @param {string} id The id of the examination
|
|
3195
|
+
* @param {*} [options] Override http request option.
|
|
3196
|
+
* @throws {RequiredError}
|
|
3197
|
+
* @memberof MsPetApi
|
|
3198
|
+
*/
|
|
3199
|
+
MsPetApi.prototype.getExaminationDocuments = function (id, options) {
|
|
3200
|
+
return exports.MsPetApiFp(this.configuration).getExaminationDocuments(id, options)(this.axios, this.basePath);
|
|
3201
|
+
};
|
|
2502
3202
|
/**
|
|
2503
3203
|
*
|
|
2504
3204
|
* @summary Get data about patient
|
|
@@ -2521,6 +3221,18 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
2521
3221
|
MsPetApi.prototype.sendEmail = function (sendEmailRequest, options) {
|
|
2522
3222
|
return exports.MsPetApiFp(this.configuration).sendEmail(sendEmailRequest, options)(this.axios, this.basePath);
|
|
2523
3223
|
};
|
|
3224
|
+
/**
|
|
3225
|
+
* Change type of a document
|
|
3226
|
+
* @summary Change document type
|
|
3227
|
+
* @param {string} id The id of the patient
|
|
3228
|
+
* @param {string} type The type of the document
|
|
3229
|
+
* @param {*} [options] Override http request option.
|
|
3230
|
+
* @throws {RequiredError}
|
|
3231
|
+
* @memberof MsPetApi
|
|
3232
|
+
*/
|
|
3233
|
+
MsPetApi.prototype.setDocumentType = function (id, type, options) {
|
|
3234
|
+
return exports.MsPetApiFp(this.configuration).setDocumentType(id, type, options)(this.axios, this.basePath);
|
|
3235
|
+
};
|
|
2524
3236
|
/**
|
|
2525
3237
|
*
|
|
2526
3238
|
* @summary Updates the examination
|
|
@@ -2568,6 +3280,18 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
2568
3280
|
MsPetApi.prototype.uploadDocuments = function (id, files, options) {
|
|
2569
3281
|
return exports.MsPetApiFp(this.configuration).uploadDocuments(id, files, options)(this.axios, this.basePath);
|
|
2570
3282
|
};
|
|
3283
|
+
/**
|
|
3284
|
+
* Upload medical examination files
|
|
3285
|
+
* @summary Upload documents
|
|
3286
|
+
* @param {string} id The id of the examination
|
|
3287
|
+
* @param {Array<any>} [files]
|
|
3288
|
+
* @param {*} [options] Override http request option.
|
|
3289
|
+
* @throws {RequiredError}
|
|
3290
|
+
* @memberof MsPetApi
|
|
3291
|
+
*/
|
|
3292
|
+
MsPetApi.prototype.uploadExaminationDocuments = function (id, files, options) {
|
|
3293
|
+
return exports.MsPetApiFp(this.configuration).uploadExaminationDocuments(id, files, options)(this.axios, this.basePath);
|
|
3294
|
+
};
|
|
2571
3295
|
return MsPetApi;
|
|
2572
3296
|
}(base_1.BaseAPI));
|
|
2573
3297
|
exports.MsPetApi = MsPetApi;
|