pet-backend-sdk 0.31.0 → 0.36.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 +376 -71
- package/axios/api.js +893 -45
- 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
|
|
@@ -299,6 +386,31 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
299
386
|
options: localVarRequestOptions,
|
|
300
387
|
};
|
|
301
388
|
},
|
|
389
|
+
/**
|
|
390
|
+
*
|
|
391
|
+
* @param {*} [options] Override http request option.
|
|
392
|
+
* @throws {RequiredError}
|
|
393
|
+
*/
|
|
394
|
+
patientGeneratePetIdOptions: function (options) {
|
|
395
|
+
if (options === void 0) { options = {}; }
|
|
396
|
+
var localVarPath = "/patient/generate/petId";
|
|
397
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
398
|
+
var baseOptions;
|
|
399
|
+
if (configuration) {
|
|
400
|
+
baseOptions = configuration.baseOptions;
|
|
401
|
+
}
|
|
402
|
+
var localVarRequestOptions = __assign(__assign({ method: 'OPTIONS' }, baseOptions), options);
|
|
403
|
+
var localVarHeaderParameter = {};
|
|
404
|
+
var localVarQueryParameter = {};
|
|
405
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
406
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
407
|
+
delete localVarUrlObj.search;
|
|
408
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
409
|
+
return {
|
|
410
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
411
|
+
options: localVarRequestOptions,
|
|
412
|
+
};
|
|
413
|
+
},
|
|
302
414
|
/**
|
|
303
415
|
*
|
|
304
416
|
* @param {string} id The id of the patient
|
|
@@ -477,6 +589,50 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
477
589
|
return axios.request(axiosRequestArgs);
|
|
478
590
|
};
|
|
479
591
|
},
|
|
592
|
+
/**
|
|
593
|
+
*
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @throws {RequiredError}
|
|
596
|
+
*/
|
|
597
|
+
examinationDocumentsDownloadMultipleOptions: function (options) {
|
|
598
|
+
var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).examinationDocumentsDownloadMultipleOptions(options);
|
|
599
|
+
return function (axios, basePath) {
|
|
600
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
601
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
602
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
603
|
+
return axios.request(axiosRequestArgs);
|
|
604
|
+
};
|
|
605
|
+
},
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
* @param {string} key The key of the document
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
*/
|
|
612
|
+
examinationDocumentsKeyDownloadOptions: function (key, options) {
|
|
613
|
+
var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).examinationDocumentsKeyDownloadOptions(key, options);
|
|
614
|
+
return function (axios, basePath) {
|
|
615
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
616
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
617
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
618
|
+
return axios.request(axiosRequestArgs);
|
|
619
|
+
};
|
|
620
|
+
},
|
|
621
|
+
/**
|
|
622
|
+
*
|
|
623
|
+
* @param {string} id The id of the examination
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
*/
|
|
627
|
+
examinationIdDocumentsOptions: function (id, options) {
|
|
628
|
+
var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).examinationIdDocumentsOptions(id, options);
|
|
629
|
+
return function (axios, basePath) {
|
|
630
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
631
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
632
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
633
|
+
return axios.request(axiosRequestArgs);
|
|
634
|
+
};
|
|
635
|
+
},
|
|
480
636
|
/**
|
|
481
637
|
*
|
|
482
638
|
* @param {string} id The id of the examination
|
|
@@ -535,6 +691,20 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
535
691
|
return axios.request(axiosRequestArgs);
|
|
536
692
|
};
|
|
537
693
|
},
|
|
694
|
+
/**
|
|
695
|
+
*
|
|
696
|
+
* @param {*} [options] Override http request option.
|
|
697
|
+
* @throws {RequiredError}
|
|
698
|
+
*/
|
|
699
|
+
patientGeneratePetIdOptions: function (options) {
|
|
700
|
+
var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).patientGeneratePetIdOptions(options);
|
|
701
|
+
return function (axios, basePath) {
|
|
702
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
703
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
704
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
705
|
+
return axios.request(axiosRequestArgs);
|
|
706
|
+
};
|
|
707
|
+
},
|
|
538
708
|
/**
|
|
539
709
|
*
|
|
540
710
|
* @param {string} id The id of the patient
|
|
@@ -635,6 +805,32 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
635
805
|
dicomUploadOptions: function (options) {
|
|
636
806
|
return exports.DefaultApiFp(configuration).dicomUploadOptions(options)(axios, basePath);
|
|
637
807
|
},
|
|
808
|
+
/**
|
|
809
|
+
*
|
|
810
|
+
* @param {*} [options] Override http request option.
|
|
811
|
+
* @throws {RequiredError}
|
|
812
|
+
*/
|
|
813
|
+
examinationDocumentsDownloadMultipleOptions: function (options) {
|
|
814
|
+
return exports.DefaultApiFp(configuration).examinationDocumentsDownloadMultipleOptions(options)(axios, basePath);
|
|
815
|
+
},
|
|
816
|
+
/**
|
|
817
|
+
*
|
|
818
|
+
* @param {string} key The key of the document
|
|
819
|
+
* @param {*} [options] Override http request option.
|
|
820
|
+
* @throws {RequiredError}
|
|
821
|
+
*/
|
|
822
|
+
examinationDocumentsKeyDownloadOptions: function (key, options) {
|
|
823
|
+
return exports.DefaultApiFp(configuration).examinationDocumentsKeyDownloadOptions(key, options)(axios, basePath);
|
|
824
|
+
},
|
|
825
|
+
/**
|
|
826
|
+
*
|
|
827
|
+
* @param {string} id The id of the examination
|
|
828
|
+
* @param {*} [options] Override http request option.
|
|
829
|
+
* @throws {RequiredError}
|
|
830
|
+
*/
|
|
831
|
+
examinationIdDocumentsOptions: function (id, options) {
|
|
832
|
+
return exports.DefaultApiFp(configuration).examinationIdDocumentsOptions(id, options)(axios, basePath);
|
|
833
|
+
},
|
|
638
834
|
/**
|
|
639
835
|
*
|
|
640
836
|
* @param {string} id The id of the examination
|
|
@@ -669,6 +865,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
669
865
|
patientDocumentsKeyDownloadOptions: function (key, options) {
|
|
670
866
|
return exports.DefaultApiFp(configuration).patientDocumentsKeyDownloadOptions(key, options)(axios, basePath);
|
|
671
867
|
},
|
|
868
|
+
/**
|
|
869
|
+
*
|
|
870
|
+
* @param {*} [options] Override http request option.
|
|
871
|
+
* @throws {RequiredError}
|
|
872
|
+
*/
|
|
873
|
+
patientGeneratePetIdOptions: function (options) {
|
|
874
|
+
return exports.DefaultApiFp(configuration).patientGeneratePetIdOptions(options)(axios, basePath);
|
|
875
|
+
},
|
|
672
876
|
/**
|
|
673
877
|
*
|
|
674
878
|
* @param {string} id The id of the patient
|
|
@@ -754,6 +958,35 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
754
958
|
DefaultApi.prototype.dicomUploadOptions = function (options) {
|
|
755
959
|
return exports.DefaultApiFp(this.configuration).dicomUploadOptions(options)(this.axios, this.basePath);
|
|
756
960
|
};
|
|
961
|
+
/**
|
|
962
|
+
*
|
|
963
|
+
* @param {*} [options] Override http request option.
|
|
964
|
+
* @throws {RequiredError}
|
|
965
|
+
* @memberof DefaultApi
|
|
966
|
+
*/
|
|
967
|
+
DefaultApi.prototype.examinationDocumentsDownloadMultipleOptions = function (options) {
|
|
968
|
+
return exports.DefaultApiFp(this.configuration).examinationDocumentsDownloadMultipleOptions(options)(this.axios, this.basePath);
|
|
969
|
+
};
|
|
970
|
+
/**
|
|
971
|
+
*
|
|
972
|
+
* @param {string} key The key of the document
|
|
973
|
+
* @param {*} [options] Override http request option.
|
|
974
|
+
* @throws {RequiredError}
|
|
975
|
+
* @memberof DefaultApi
|
|
976
|
+
*/
|
|
977
|
+
DefaultApi.prototype.examinationDocumentsKeyDownloadOptions = function (key, options) {
|
|
978
|
+
return exports.DefaultApiFp(this.configuration).examinationDocumentsKeyDownloadOptions(key, options)(this.axios, this.basePath);
|
|
979
|
+
};
|
|
980
|
+
/**
|
|
981
|
+
*
|
|
982
|
+
* @param {string} id The id of the examination
|
|
983
|
+
* @param {*} [options] Override http request option.
|
|
984
|
+
* @throws {RequiredError}
|
|
985
|
+
* @memberof DefaultApi
|
|
986
|
+
*/
|
|
987
|
+
DefaultApi.prototype.examinationIdDocumentsOptions = function (id, options) {
|
|
988
|
+
return exports.DefaultApiFp(this.configuration).examinationIdDocumentsOptions(id, options)(this.axios, this.basePath);
|
|
989
|
+
};
|
|
757
990
|
/**
|
|
758
991
|
*
|
|
759
992
|
* @param {string} id The id of the examination
|
|
@@ -792,6 +1025,15 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
792
1025
|
DefaultApi.prototype.patientDocumentsKeyDownloadOptions = function (key, options) {
|
|
793
1026
|
return exports.DefaultApiFp(this.configuration).patientDocumentsKeyDownloadOptions(key, options)(this.axios, this.basePath);
|
|
794
1027
|
};
|
|
1028
|
+
/**
|
|
1029
|
+
*
|
|
1030
|
+
* @param {*} [options] Override http request option.
|
|
1031
|
+
* @throws {RequiredError}
|
|
1032
|
+
* @memberof DefaultApi
|
|
1033
|
+
*/
|
|
1034
|
+
DefaultApi.prototype.patientGeneratePetIdOptions = function (options) {
|
|
1035
|
+
return exports.DefaultApiFp(this.configuration).patientGeneratePetIdOptions(options)(this.axios, this.basePath);
|
|
1036
|
+
};
|
|
795
1037
|
/**
|
|
796
1038
|
*
|
|
797
1039
|
* @param {string} id The id of the patient
|
|
@@ -1033,18 +1275,23 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1033
1275
|
},
|
|
1034
1276
|
/**
|
|
1035
1277
|
*
|
|
1036
|
-
* @summary Deletes
|
|
1037
|
-
* @param {string} id The
|
|
1278
|
+
* @summary Deletes document
|
|
1279
|
+
* @param {string} id The id of the examination
|
|
1280
|
+
* @param {string} key The key of the document
|
|
1038
1281
|
* @param {*} [options] Override http request option.
|
|
1039
1282
|
* @throws {RequiredError}
|
|
1040
1283
|
*/
|
|
1041
|
-
|
|
1284
|
+
deleteExaminationDocument: function (id, key, options) {
|
|
1042
1285
|
if (options === void 0) { options = {}; }
|
|
1043
1286
|
// verify required parameter 'id' is not null or undefined
|
|
1044
1287
|
if (id === null || id === undefined) {
|
|
1045
|
-
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling
|
|
1288
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling deleteExaminationDocument.');
|
|
1046
1289
|
}
|
|
1047
|
-
|
|
1290
|
+
// verify required parameter 'key' is not null or undefined
|
|
1291
|
+
if (key === null || key === undefined) {
|
|
1292
|
+
throw new base_1.RequiredError('key', 'Required parameter key was null or undefined when calling deleteExaminationDocument.');
|
|
1293
|
+
}
|
|
1294
|
+
var localVarPath = "/examination/{id}/documents"
|
|
1048
1295
|
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1049
1296
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1050
1297
|
var baseOptions;
|
|
@@ -1069,6 +1316,9 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1069
1316
|
: configuration.apiKey;
|
|
1070
1317
|
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1071
1318
|
}
|
|
1319
|
+
if (key !== undefined) {
|
|
1320
|
+
localVarQueryParameter['key'] = key;
|
|
1321
|
+
}
|
|
1072
1322
|
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1073
1323
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1074
1324
|
delete localVarUrlObj.search;
|
|
@@ -1080,25 +1330,25 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1080
1330
|
},
|
|
1081
1331
|
/**
|
|
1082
1332
|
*
|
|
1083
|
-
* @summary
|
|
1084
|
-
* @param {string}
|
|
1333
|
+
* @summary Deletes patient
|
|
1334
|
+
* @param {string} id The patient id
|
|
1085
1335
|
* @param {*} [options] Override http request option.
|
|
1086
1336
|
* @throws {RequiredError}
|
|
1087
1337
|
*/
|
|
1088
|
-
|
|
1338
|
+
deletePatient: function (id, options) {
|
|
1089
1339
|
if (options === void 0) { options = {}; }
|
|
1090
|
-
// verify required parameter '
|
|
1091
|
-
if (
|
|
1092
|
-
throw new base_1.RequiredError('
|
|
1340
|
+
// verify required parameter 'id' is not null or undefined
|
|
1341
|
+
if (id === null || id === undefined) {
|
|
1342
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling deletePatient.');
|
|
1093
1343
|
}
|
|
1094
|
-
var localVarPath = "/patient/
|
|
1095
|
-
.replace("{" + "
|
|
1344
|
+
var localVarPath = "/patient/{id}"
|
|
1345
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1096
1346
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1097
1347
|
var baseOptions;
|
|
1098
1348
|
if (configuration) {
|
|
1099
1349
|
baseOptions = configuration.baseOptions;
|
|
1100
1350
|
}
|
|
1101
|
-
var localVarRequestOptions = __assign(__assign({ method: '
|
|
1351
|
+
var localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
1102
1352
|
var localVarHeaderParameter = {};
|
|
1103
1353
|
var localVarQueryParameter = {};
|
|
1104
1354
|
// authentication BearerAuth required
|
|
@@ -1127,24 +1377,167 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1127
1377
|
},
|
|
1128
1378
|
/**
|
|
1129
1379
|
*
|
|
1130
|
-
* @summary Download
|
|
1131
|
-
* @param {
|
|
1380
|
+
* @summary Download the document
|
|
1381
|
+
* @param {string} key The key of the document
|
|
1132
1382
|
* @param {*} [options] Override http request option.
|
|
1133
1383
|
* @throws {RequiredError}
|
|
1134
1384
|
*/
|
|
1135
|
-
|
|
1385
|
+
downloadDocument: function (key, options) {
|
|
1136
1386
|
if (options === void 0) { options = {}; }
|
|
1137
|
-
// verify required parameter '
|
|
1138
|
-
if (
|
|
1139
|
-
throw new base_1.RequiredError('
|
|
1387
|
+
// verify required parameter 'key' is not null or undefined
|
|
1388
|
+
if (key === null || key === undefined) {
|
|
1389
|
+
throw new base_1.RequiredError('key', 'Required parameter key was null or undefined when calling downloadDocument.');
|
|
1140
1390
|
}
|
|
1141
|
-
var localVarPath = "/patient/documents/download
|
|
1391
|
+
var localVarPath = "/patient/documents/{key}/download"
|
|
1392
|
+
.replace("{" + "key" + "}", encodeURIComponent(String(key)));
|
|
1142
1393
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1143
1394
|
var baseOptions;
|
|
1144
1395
|
if (configuration) {
|
|
1145
1396
|
baseOptions = configuration.baseOptions;
|
|
1146
1397
|
}
|
|
1147
|
-
var localVarRequestOptions = __assign(__assign({ method: '
|
|
1398
|
+
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1399
|
+
var localVarHeaderParameter = {};
|
|
1400
|
+
var localVarQueryParameter = {};
|
|
1401
|
+
// authentication BearerAuth required
|
|
1402
|
+
// http bearer authentication required
|
|
1403
|
+
if (configuration && configuration.accessToken) {
|
|
1404
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1405
|
+
? configuration.accessToken()
|
|
1406
|
+
: configuration.accessToken;
|
|
1407
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1408
|
+
}
|
|
1409
|
+
// authentication custom-authorizer required
|
|
1410
|
+
if (configuration && configuration.apiKey) {
|
|
1411
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1412
|
+
? configuration.apiKey("Authorization")
|
|
1413
|
+
: configuration.apiKey;
|
|
1414
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1415
|
+
}
|
|
1416
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1417
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1418
|
+
delete localVarUrlObj.search;
|
|
1419
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1420
|
+
return {
|
|
1421
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1422
|
+
options: localVarRequestOptions,
|
|
1423
|
+
};
|
|
1424
|
+
},
|
|
1425
|
+
/**
|
|
1426
|
+
*
|
|
1427
|
+
* @summary Download the document
|
|
1428
|
+
* @param {string} key The key of the document
|
|
1429
|
+
* @param {*} [options] Override http request option.
|
|
1430
|
+
* @throws {RequiredError}
|
|
1431
|
+
*/
|
|
1432
|
+
downloadExaminationDocument: function (key, options) {
|
|
1433
|
+
if (options === void 0) { options = {}; }
|
|
1434
|
+
// verify required parameter 'key' is not null or undefined
|
|
1435
|
+
if (key === null || key === undefined) {
|
|
1436
|
+
throw new base_1.RequiredError('key', 'Required parameter key was null or undefined when calling downloadExaminationDocument.');
|
|
1437
|
+
}
|
|
1438
|
+
var localVarPath = "/examination/documents/{key}/download"
|
|
1439
|
+
.replace("{" + "key" + "}", encodeURIComponent(String(key)));
|
|
1440
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1441
|
+
var baseOptions;
|
|
1442
|
+
if (configuration) {
|
|
1443
|
+
baseOptions = configuration.baseOptions;
|
|
1444
|
+
}
|
|
1445
|
+
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1446
|
+
var localVarHeaderParameter = {};
|
|
1447
|
+
var localVarQueryParameter = {};
|
|
1448
|
+
// authentication BearerAuth required
|
|
1449
|
+
// http bearer authentication required
|
|
1450
|
+
if (configuration && configuration.accessToken) {
|
|
1451
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1452
|
+
? configuration.accessToken()
|
|
1453
|
+
: configuration.accessToken;
|
|
1454
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1455
|
+
}
|
|
1456
|
+
// authentication custom-authorizer required
|
|
1457
|
+
if (configuration && configuration.apiKey) {
|
|
1458
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1459
|
+
? configuration.apiKey("Authorization")
|
|
1460
|
+
: configuration.apiKey;
|
|
1461
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1462
|
+
}
|
|
1463
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1464
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1465
|
+
delete localVarUrlObj.search;
|
|
1466
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1467
|
+
return {
|
|
1468
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1469
|
+
options: localVarRequestOptions,
|
|
1470
|
+
};
|
|
1471
|
+
},
|
|
1472
|
+
/**
|
|
1473
|
+
*
|
|
1474
|
+
* @summary Download zip with multiple files
|
|
1475
|
+
* @param {DownloadMultipleFilesRequest} downloadMultipleFilesRequest
|
|
1476
|
+
* @param {*} [options] Override http request option.
|
|
1477
|
+
* @throws {RequiredError}
|
|
1478
|
+
*/
|
|
1479
|
+
downloadExaminationFiles: function (downloadMultipleFilesRequest, options) {
|
|
1480
|
+
if (options === void 0) { options = {}; }
|
|
1481
|
+
// verify required parameter 'downloadMultipleFilesRequest' is not null or undefined
|
|
1482
|
+
if (downloadMultipleFilesRequest === null || downloadMultipleFilesRequest === undefined) {
|
|
1483
|
+
throw new base_1.RequiredError('downloadMultipleFilesRequest', 'Required parameter downloadMultipleFilesRequest was null or undefined when calling downloadExaminationFiles.');
|
|
1484
|
+
}
|
|
1485
|
+
var localVarPath = "/examination/documents/download/multiple";
|
|
1486
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1487
|
+
var baseOptions;
|
|
1488
|
+
if (configuration) {
|
|
1489
|
+
baseOptions = configuration.baseOptions;
|
|
1490
|
+
}
|
|
1491
|
+
var localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1492
|
+
var localVarHeaderParameter = {};
|
|
1493
|
+
var localVarQueryParameter = {};
|
|
1494
|
+
// authentication BearerAuth required
|
|
1495
|
+
// http bearer authentication required
|
|
1496
|
+
if (configuration && configuration.accessToken) {
|
|
1497
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1498
|
+
? configuration.accessToken()
|
|
1499
|
+
: configuration.accessToken;
|
|
1500
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1501
|
+
}
|
|
1502
|
+
// authentication custom-authorizer required
|
|
1503
|
+
if (configuration && configuration.apiKey) {
|
|
1504
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1505
|
+
? configuration.apiKey("Authorization")
|
|
1506
|
+
: configuration.apiKey;
|
|
1507
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1508
|
+
}
|
|
1509
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1510
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1511
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1512
|
+
delete localVarUrlObj.search;
|
|
1513
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1514
|
+
var needsSerialization = (typeof downloadMultipleFilesRequest !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
1515
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(downloadMultipleFilesRequest !== undefined ? downloadMultipleFilesRequest : {}) : (downloadMultipleFilesRequest || "");
|
|
1516
|
+
return {
|
|
1517
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1518
|
+
options: localVarRequestOptions,
|
|
1519
|
+
};
|
|
1520
|
+
},
|
|
1521
|
+
/**
|
|
1522
|
+
*
|
|
1523
|
+
* @summary Download zip with multiple files
|
|
1524
|
+
* @param {DownloadMultipleFilesRequest} downloadMultipleFilesRequest
|
|
1525
|
+
* @param {*} [options] Override http request option.
|
|
1526
|
+
* @throws {RequiredError}
|
|
1527
|
+
*/
|
|
1528
|
+
downloadMultipleFiles: function (downloadMultipleFilesRequest, options) {
|
|
1529
|
+
if (options === void 0) { options = {}; }
|
|
1530
|
+
// verify required parameter 'downloadMultipleFilesRequest' is not null or undefined
|
|
1531
|
+
if (downloadMultipleFilesRequest === null || downloadMultipleFilesRequest === undefined) {
|
|
1532
|
+
throw new base_1.RequiredError('downloadMultipleFilesRequest', 'Required parameter downloadMultipleFilesRequest was null or undefined when calling downloadMultipleFiles.');
|
|
1533
|
+
}
|
|
1534
|
+
var localVarPath = "/patient/documents/download/multiple";
|
|
1535
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1536
|
+
var baseOptions;
|
|
1537
|
+
if (configuration) {
|
|
1538
|
+
baseOptions = configuration.baseOptions;
|
|
1539
|
+
}
|
|
1540
|
+
var localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1148
1541
|
var localVarHeaderParameter = {};
|
|
1149
1542
|
var localVarQueryParameter = {};
|
|
1150
1543
|
// authentication BearerAuth required
|
|
@@ -1221,6 +1614,40 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1221
1614
|
options: localVarRequestOptions,
|
|
1222
1615
|
};
|
|
1223
1616
|
},
|
|
1617
|
+
/**
|
|
1618
|
+
* generate inceremented petId
|
|
1619
|
+
* @summary Generate petId
|
|
1620
|
+
* @param {*} [options] Override http request option.
|
|
1621
|
+
* @throws {RequiredError}
|
|
1622
|
+
*/
|
|
1623
|
+
generatePetId: function (options) {
|
|
1624
|
+
if (options === void 0) { options = {}; }
|
|
1625
|
+
var localVarPath = "/patient/generate/petId";
|
|
1626
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1627
|
+
var baseOptions;
|
|
1628
|
+
if (configuration) {
|
|
1629
|
+
baseOptions = configuration.baseOptions;
|
|
1630
|
+
}
|
|
1631
|
+
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1632
|
+
var localVarHeaderParameter = {};
|
|
1633
|
+
var localVarQueryParameter = {};
|
|
1634
|
+
// authentication BearerAuth required
|
|
1635
|
+
// http bearer authentication required
|
|
1636
|
+
if (configuration && configuration.accessToken) {
|
|
1637
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1638
|
+
? configuration.accessToken()
|
|
1639
|
+
: configuration.accessToken;
|
|
1640
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1641
|
+
}
|
|
1642
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1643
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1644
|
+
delete localVarUrlObj.search;
|
|
1645
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1646
|
+
return {
|
|
1647
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1648
|
+
options: localVarRequestOptions,
|
|
1649
|
+
};
|
|
1650
|
+
},
|
|
1224
1651
|
/**
|
|
1225
1652
|
*
|
|
1226
1653
|
* @summary Get data about Examination for patient
|
|
@@ -1493,6 +1920,53 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1493
1920
|
options: localVarRequestOptions,
|
|
1494
1921
|
};
|
|
1495
1922
|
},
|
|
1923
|
+
/**
|
|
1924
|
+
*
|
|
1925
|
+
* @summary Get data about documents
|
|
1926
|
+
* @param {string} id The id of the examination
|
|
1927
|
+
* @param {*} [options] Override http request option.
|
|
1928
|
+
* @throws {RequiredError}
|
|
1929
|
+
*/
|
|
1930
|
+
getExaminationDocuments: function (id, options) {
|
|
1931
|
+
if (options === void 0) { options = {}; }
|
|
1932
|
+
// verify required parameter 'id' is not null or undefined
|
|
1933
|
+
if (id === null || id === undefined) {
|
|
1934
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling getExaminationDocuments.');
|
|
1935
|
+
}
|
|
1936
|
+
var localVarPath = "/examination/{id}/documents"
|
|
1937
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1938
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1939
|
+
var baseOptions;
|
|
1940
|
+
if (configuration) {
|
|
1941
|
+
baseOptions = configuration.baseOptions;
|
|
1942
|
+
}
|
|
1943
|
+
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1944
|
+
var localVarHeaderParameter = {};
|
|
1945
|
+
var localVarQueryParameter = {};
|
|
1946
|
+
// authentication BearerAuth required
|
|
1947
|
+
// http bearer authentication required
|
|
1948
|
+
if (configuration && configuration.accessToken) {
|
|
1949
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1950
|
+
? configuration.accessToken()
|
|
1951
|
+
: configuration.accessToken;
|
|
1952
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1953
|
+
}
|
|
1954
|
+
// authentication custom-authorizer required
|
|
1955
|
+
if (configuration && configuration.apiKey) {
|
|
1956
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1957
|
+
? configuration.apiKey("Authorization")
|
|
1958
|
+
: configuration.apiKey;
|
|
1959
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1960
|
+
}
|
|
1961
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1962
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1963
|
+
delete localVarUrlObj.search;
|
|
1964
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1965
|
+
return {
|
|
1966
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1967
|
+
options: localVarRequestOptions,
|
|
1968
|
+
};
|
|
1969
|
+
},
|
|
1496
1970
|
/**
|
|
1497
1971
|
*
|
|
1498
1972
|
* @summary Get data about patient
|
|
@@ -1589,6 +2063,61 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1589
2063
|
options: localVarRequestOptions,
|
|
1590
2064
|
};
|
|
1591
2065
|
},
|
|
2066
|
+
/**
|
|
2067
|
+
* Change type of a document
|
|
2068
|
+
* @summary Change document type
|
|
2069
|
+
* @param {string} id The id of the patient
|
|
2070
|
+
* @param {string} type The type of the document
|
|
2071
|
+
* @param {*} [options] Override http request option.
|
|
2072
|
+
* @throws {RequiredError}
|
|
2073
|
+
*/
|
|
2074
|
+
setDocumentType: function (id, type, options) {
|
|
2075
|
+
if (options === void 0) { options = {}; }
|
|
2076
|
+
// verify required parameter 'id' is not null or undefined
|
|
2077
|
+
if (id === null || id === undefined) {
|
|
2078
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling setDocumentType.');
|
|
2079
|
+
}
|
|
2080
|
+
// verify required parameter 'type' is not null or undefined
|
|
2081
|
+
if (type === null || type === undefined) {
|
|
2082
|
+
throw new base_1.RequiredError('type', 'Required parameter type was null or undefined when calling setDocumentType.');
|
|
2083
|
+
}
|
|
2084
|
+
var localVarPath = "/patient/{id}/documents"
|
|
2085
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
2086
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
2087
|
+
var baseOptions;
|
|
2088
|
+
if (configuration) {
|
|
2089
|
+
baseOptions = configuration.baseOptions;
|
|
2090
|
+
}
|
|
2091
|
+
var localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2092
|
+
var localVarHeaderParameter = {};
|
|
2093
|
+
var localVarQueryParameter = {};
|
|
2094
|
+
// authentication BearerAuth required
|
|
2095
|
+
// http bearer authentication required
|
|
2096
|
+
if (configuration && configuration.accessToken) {
|
|
2097
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
2098
|
+
? configuration.accessToken()
|
|
2099
|
+
: configuration.accessToken;
|
|
2100
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
2101
|
+
}
|
|
2102
|
+
// authentication custom-authorizer required
|
|
2103
|
+
if (configuration && configuration.apiKey) {
|
|
2104
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
2105
|
+
? configuration.apiKey("Authorization")
|
|
2106
|
+
: configuration.apiKey;
|
|
2107
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
2108
|
+
}
|
|
2109
|
+
if (type !== undefined) {
|
|
2110
|
+
localVarQueryParameter['type'] = type;
|
|
2111
|
+
}
|
|
2112
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
2113
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
2114
|
+
delete localVarUrlObj.search;
|
|
2115
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
2116
|
+
return {
|
|
2117
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
2118
|
+
options: localVarRequestOptions,
|
|
2119
|
+
};
|
|
2120
|
+
},
|
|
1592
2121
|
/**
|
|
1593
2122
|
*
|
|
1594
2123
|
* @summary Updates the examination
|
|
@@ -1641,29 +2170,75 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1641
2170
|
};
|
|
1642
2171
|
},
|
|
1643
2172
|
/**
|
|
1644
|
-
*
|
|
1645
|
-
* @summary Updates the patient
|
|
1646
|
-
* @param {string} id The id of the patient
|
|
1647
|
-
* @param {UpdatePatientRequest} [updatePatientRequest]
|
|
2173
|
+
*
|
|
2174
|
+
* @summary Updates the patient
|
|
2175
|
+
* @param {string} id The id of the patient
|
|
2176
|
+
* @param {UpdatePatientRequest} [updatePatientRequest]
|
|
2177
|
+
* @param {*} [options] Override http request option.
|
|
2178
|
+
* @throws {RequiredError}
|
|
2179
|
+
*/
|
|
2180
|
+
updatePatientDetails: function (id, updatePatientRequest, options) {
|
|
2181
|
+
if (options === void 0) { options = {}; }
|
|
2182
|
+
// verify required parameter 'id' is not null or undefined
|
|
2183
|
+
if (id === null || id === undefined) {
|
|
2184
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling updatePatientDetails.');
|
|
2185
|
+
}
|
|
2186
|
+
var localVarPath = "/patient/{id}"
|
|
2187
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
2188
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
2189
|
+
var baseOptions;
|
|
2190
|
+
if (configuration) {
|
|
2191
|
+
baseOptions = configuration.baseOptions;
|
|
2192
|
+
}
|
|
2193
|
+
var localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2194
|
+
var localVarHeaderParameter = {};
|
|
2195
|
+
var localVarQueryParameter = {};
|
|
2196
|
+
// authentication BearerAuth required
|
|
2197
|
+
// http bearer authentication required
|
|
2198
|
+
if (configuration && configuration.accessToken) {
|
|
2199
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
2200
|
+
? configuration.accessToken()
|
|
2201
|
+
: configuration.accessToken;
|
|
2202
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
2203
|
+
}
|
|
2204
|
+
// authentication custom-authorizer required
|
|
2205
|
+
if (configuration && configuration.apiKey) {
|
|
2206
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
2207
|
+
? configuration.apiKey("Authorization")
|
|
2208
|
+
: configuration.apiKey;
|
|
2209
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
2210
|
+
}
|
|
2211
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2212
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
2213
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
2214
|
+
delete localVarUrlObj.search;
|
|
2215
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
2216
|
+
var needsSerialization = (typeof updatePatientRequest !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
2217
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(updatePatientRequest !== undefined ? updatePatientRequest : {}) : (updatePatientRequest || "");
|
|
2218
|
+
return {
|
|
2219
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
2220
|
+
options: localVarRequestOptions,
|
|
2221
|
+
};
|
|
2222
|
+
},
|
|
2223
|
+
/**
|
|
2224
|
+
* Upload medical DICOM files
|
|
2225
|
+
* @summary Upload DICOM documents
|
|
2226
|
+
* @param {Array<any>} [files]
|
|
1648
2227
|
* @param {*} [options] Override http request option.
|
|
1649
2228
|
* @throws {RequiredError}
|
|
1650
2229
|
*/
|
|
1651
|
-
|
|
2230
|
+
uploadDICOMDocuments: function (files, options) {
|
|
1652
2231
|
if (options === void 0) { options = {}; }
|
|
1653
|
-
|
|
1654
|
-
if (id === null || id === undefined) {
|
|
1655
|
-
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling updatePatientDetails.');
|
|
1656
|
-
}
|
|
1657
|
-
var localVarPath = "/patient/{id}"
|
|
1658
|
-
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
2232
|
+
var localVarPath = "/dicom/upload";
|
|
1659
2233
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1660
2234
|
var baseOptions;
|
|
1661
2235
|
if (configuration) {
|
|
1662
2236
|
baseOptions = configuration.baseOptions;
|
|
1663
2237
|
}
|
|
1664
|
-
var localVarRequestOptions = __assign(__assign({ method: '
|
|
2238
|
+
var localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1665
2239
|
var localVarHeaderParameter = {};
|
|
1666
2240
|
var localVarQueryParameter = {};
|
|
2241
|
+
var localVarFormParams = new FormData();
|
|
1667
2242
|
// authentication BearerAuth required
|
|
1668
2243
|
// http bearer authentication required
|
|
1669
2244
|
if (configuration && configuration.accessToken) {
|
|
@@ -1679,28 +2254,36 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1679
2254
|
: configuration.apiKey;
|
|
1680
2255
|
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1681
2256
|
}
|
|
1682
|
-
|
|
2257
|
+
if (files) {
|
|
2258
|
+
localVarFormParams.append('files', files.join(base_1.COLLECTION_FORMATS.csv));
|
|
2259
|
+
}
|
|
2260
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
1683
2261
|
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1684
2262
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1685
2263
|
delete localVarUrlObj.search;
|
|
1686
2264
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1687
|
-
|
|
1688
|
-
localVarRequestOptions.data = needsSerialization ? JSON.stringify(updatePatientRequest !== undefined ? updatePatientRequest : {}) : (updatePatientRequest || "");
|
|
2265
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
1689
2266
|
return {
|
|
1690
2267
|
url: globalImportUrl.format(localVarUrlObj),
|
|
1691
2268
|
options: localVarRequestOptions,
|
|
1692
2269
|
};
|
|
1693
2270
|
},
|
|
1694
2271
|
/**
|
|
1695
|
-
* Upload medical
|
|
1696
|
-
* @summary Upload
|
|
2272
|
+
* Upload medical examination files
|
|
2273
|
+
* @summary Upload documents
|
|
2274
|
+
* @param {string} id The id of the patient
|
|
1697
2275
|
* @param {Array<any>} [files]
|
|
1698
2276
|
* @param {*} [options] Override http request option.
|
|
1699
2277
|
* @throws {RequiredError}
|
|
1700
2278
|
*/
|
|
1701
|
-
|
|
2279
|
+
uploadDocuments: function (id, files, options) {
|
|
1702
2280
|
if (options === void 0) { options = {}; }
|
|
1703
|
-
|
|
2281
|
+
// verify required parameter 'id' is not null or undefined
|
|
2282
|
+
if (id === null || id === undefined) {
|
|
2283
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling uploadDocuments.');
|
|
2284
|
+
}
|
|
2285
|
+
var localVarPath = "/patient/{id}/documents"
|
|
2286
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1704
2287
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1705
2288
|
var baseOptions;
|
|
1706
2289
|
if (configuration) {
|
|
@@ -1742,18 +2325,18 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1742
2325
|
/**
|
|
1743
2326
|
* Upload medical examination files
|
|
1744
2327
|
* @summary Upload documents
|
|
1745
|
-
* @param {string} id The id of the
|
|
2328
|
+
* @param {string} id The id of the examination
|
|
1746
2329
|
* @param {Array<any>} [files]
|
|
1747
2330
|
* @param {*} [options] Override http request option.
|
|
1748
2331
|
* @throws {RequiredError}
|
|
1749
2332
|
*/
|
|
1750
|
-
|
|
2333
|
+
uploadExaminationDocuments: function (id, files, options) {
|
|
1751
2334
|
if (options === void 0) { options = {}; }
|
|
1752
2335
|
// verify required parameter 'id' is not null or undefined
|
|
1753
2336
|
if (id === null || id === undefined) {
|
|
1754
|
-
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling
|
|
2337
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling uploadExaminationDocuments.');
|
|
1755
2338
|
}
|
|
1756
|
-
var localVarPath = "/
|
|
2339
|
+
var localVarPath = "/examination/{id}/documents"
|
|
1757
2340
|
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1758
2341
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1759
2342
|
var baseOptions;
|
|
@@ -1866,6 +2449,23 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
1866
2449
|
return axios.request(axiosRequestArgs);
|
|
1867
2450
|
};
|
|
1868
2451
|
},
|
|
2452
|
+
/**
|
|
2453
|
+
*
|
|
2454
|
+
* @summary Deletes document
|
|
2455
|
+
* @param {string} id The id of the examination
|
|
2456
|
+
* @param {string} key The key of the document
|
|
2457
|
+
* @param {*} [options] Override http request option.
|
|
2458
|
+
* @throws {RequiredError}
|
|
2459
|
+
*/
|
|
2460
|
+
deleteExaminationDocument: function (id, key, options) {
|
|
2461
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).deleteExaminationDocument(id, key, options);
|
|
2462
|
+
return function (axios, basePath) {
|
|
2463
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2464
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2465
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2466
|
+
return axios.request(axiosRequestArgs);
|
|
2467
|
+
};
|
|
2468
|
+
},
|
|
1869
2469
|
/**
|
|
1870
2470
|
*
|
|
1871
2471
|
* @summary Deletes patient
|
|
@@ -1898,6 +2498,38 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
1898
2498
|
return axios.request(axiosRequestArgs);
|
|
1899
2499
|
};
|
|
1900
2500
|
},
|
|
2501
|
+
/**
|
|
2502
|
+
*
|
|
2503
|
+
* @summary Download the document
|
|
2504
|
+
* @param {string} key The key of the document
|
|
2505
|
+
* @param {*} [options] Override http request option.
|
|
2506
|
+
* @throws {RequiredError}
|
|
2507
|
+
*/
|
|
2508
|
+
downloadExaminationDocument: function (key, options) {
|
|
2509
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).downloadExaminationDocument(key, options);
|
|
2510
|
+
return function (axios, basePath) {
|
|
2511
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2512
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2513
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2514
|
+
return axios.request(axiosRequestArgs);
|
|
2515
|
+
};
|
|
2516
|
+
},
|
|
2517
|
+
/**
|
|
2518
|
+
*
|
|
2519
|
+
* @summary Download zip with multiple files
|
|
2520
|
+
* @param {DownloadMultipleFilesRequest} downloadMultipleFilesRequest
|
|
2521
|
+
* @param {*} [options] Override http request option.
|
|
2522
|
+
* @throws {RequiredError}
|
|
2523
|
+
*/
|
|
2524
|
+
downloadExaminationFiles: function (downloadMultipleFilesRequest, options) {
|
|
2525
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).downloadExaminationFiles(downloadMultipleFilesRequest, options);
|
|
2526
|
+
return function (axios, basePath) {
|
|
2527
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2528
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2529
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2530
|
+
return axios.request(axiosRequestArgs);
|
|
2531
|
+
};
|
|
2532
|
+
},
|
|
1901
2533
|
/**
|
|
1902
2534
|
*
|
|
1903
2535
|
* @summary Download zip with multiple files
|
|
@@ -1930,6 +2562,21 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
1930
2562
|
return axios.request(axiosRequestArgs);
|
|
1931
2563
|
};
|
|
1932
2564
|
},
|
|
2565
|
+
/**
|
|
2566
|
+
* generate inceremented petId
|
|
2567
|
+
* @summary Generate petId
|
|
2568
|
+
* @param {*} [options] Override http request option.
|
|
2569
|
+
* @throws {RequiredError}
|
|
2570
|
+
*/
|
|
2571
|
+
generatePetId: function (options) {
|
|
2572
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).generatePetId(options);
|
|
2573
|
+
return function (axios, basePath) {
|
|
2574
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2575
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2576
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2577
|
+
return axios.request(axiosRequestArgs);
|
|
2578
|
+
};
|
|
2579
|
+
},
|
|
1933
2580
|
/**
|
|
1934
2581
|
*
|
|
1935
2582
|
* @summary Get data about Examination for patient
|
|
@@ -2024,6 +2671,22 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
2024
2671
|
return axios.request(axiosRequestArgs);
|
|
2025
2672
|
};
|
|
2026
2673
|
},
|
|
2674
|
+
/**
|
|
2675
|
+
*
|
|
2676
|
+
* @summary Get data about documents
|
|
2677
|
+
* @param {string} id The id of the examination
|
|
2678
|
+
* @param {*} [options] Override http request option.
|
|
2679
|
+
* @throws {RequiredError}
|
|
2680
|
+
*/
|
|
2681
|
+
getExaminationDocuments: function (id, options) {
|
|
2682
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).getExaminationDocuments(id, options);
|
|
2683
|
+
return function (axios, basePath) {
|
|
2684
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2685
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2686
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2687
|
+
return axios.request(axiosRequestArgs);
|
|
2688
|
+
};
|
|
2689
|
+
},
|
|
2027
2690
|
/**
|
|
2028
2691
|
*
|
|
2029
2692
|
* @summary Get data about patient
|
|
@@ -2056,6 +2719,23 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
2056
2719
|
return axios.request(axiosRequestArgs);
|
|
2057
2720
|
};
|
|
2058
2721
|
},
|
|
2722
|
+
/**
|
|
2723
|
+
* Change type of a document
|
|
2724
|
+
* @summary Change document type
|
|
2725
|
+
* @param {string} id The id of the patient
|
|
2726
|
+
* @param {string} type The type of the document
|
|
2727
|
+
* @param {*} [options] Override http request option.
|
|
2728
|
+
* @throws {RequiredError}
|
|
2729
|
+
*/
|
|
2730
|
+
setDocumentType: function (id, type, options) {
|
|
2731
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).setDocumentType(id, type, options);
|
|
2732
|
+
return function (axios, basePath) {
|
|
2733
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2734
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2735
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2736
|
+
return axios.request(axiosRequestArgs);
|
|
2737
|
+
};
|
|
2738
|
+
},
|
|
2059
2739
|
/**
|
|
2060
2740
|
*
|
|
2061
2741
|
* @summary Updates the examination
|
|
@@ -2123,6 +2803,23 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
2123
2803
|
return axios.request(axiosRequestArgs);
|
|
2124
2804
|
};
|
|
2125
2805
|
},
|
|
2806
|
+
/**
|
|
2807
|
+
* Upload medical examination files
|
|
2808
|
+
* @summary Upload documents
|
|
2809
|
+
* @param {string} id The id of the examination
|
|
2810
|
+
* @param {Array<any>} [files]
|
|
2811
|
+
* @param {*} [options] Override http request option.
|
|
2812
|
+
* @throws {RequiredError}
|
|
2813
|
+
*/
|
|
2814
|
+
uploadExaminationDocuments: function (id, files, options) {
|
|
2815
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).uploadExaminationDocuments(id, files, options);
|
|
2816
|
+
return function (axios, basePath) {
|
|
2817
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2818
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2819
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2820
|
+
return axios.request(axiosRequestArgs);
|
|
2821
|
+
};
|
|
2822
|
+
},
|
|
2126
2823
|
};
|
|
2127
2824
|
};
|
|
2128
2825
|
/**
|
|
@@ -2172,6 +2869,17 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
2172
2869
|
deleteExamination: function (id, options) {
|
|
2173
2870
|
return exports.MsPetApiFp(configuration).deleteExamination(id, options)(axios, basePath);
|
|
2174
2871
|
},
|
|
2872
|
+
/**
|
|
2873
|
+
*
|
|
2874
|
+
* @summary Deletes document
|
|
2875
|
+
* @param {string} id The id of the examination
|
|
2876
|
+
* @param {string} key The key of the document
|
|
2877
|
+
* @param {*} [options] Override http request option.
|
|
2878
|
+
* @throws {RequiredError}
|
|
2879
|
+
*/
|
|
2880
|
+
deleteExaminationDocument: function (id, key, options) {
|
|
2881
|
+
return exports.MsPetApiFp(configuration).deleteExaminationDocument(id, key, options)(axios, basePath);
|
|
2882
|
+
},
|
|
2175
2883
|
/**
|
|
2176
2884
|
*
|
|
2177
2885
|
* @summary Deletes patient
|
|
@@ -2192,6 +2900,26 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
2192
2900
|
downloadDocument: function (key, options) {
|
|
2193
2901
|
return exports.MsPetApiFp(configuration).downloadDocument(key, options)(axios, basePath);
|
|
2194
2902
|
},
|
|
2903
|
+
/**
|
|
2904
|
+
*
|
|
2905
|
+
* @summary Download the document
|
|
2906
|
+
* @param {string} key The key of the document
|
|
2907
|
+
* @param {*} [options] Override http request option.
|
|
2908
|
+
* @throws {RequiredError}
|
|
2909
|
+
*/
|
|
2910
|
+
downloadExaminationDocument: function (key, options) {
|
|
2911
|
+
return exports.MsPetApiFp(configuration).downloadExaminationDocument(key, options)(axios, basePath);
|
|
2912
|
+
},
|
|
2913
|
+
/**
|
|
2914
|
+
*
|
|
2915
|
+
* @summary Download zip with multiple files
|
|
2916
|
+
* @param {DownloadMultipleFilesRequest} downloadMultipleFilesRequest
|
|
2917
|
+
* @param {*} [options] Override http request option.
|
|
2918
|
+
* @throws {RequiredError}
|
|
2919
|
+
*/
|
|
2920
|
+
downloadExaminationFiles: function (downloadMultipleFilesRequest, options) {
|
|
2921
|
+
return exports.MsPetApiFp(configuration).downloadExaminationFiles(downloadMultipleFilesRequest, options)(axios, basePath);
|
|
2922
|
+
},
|
|
2195
2923
|
/**
|
|
2196
2924
|
*
|
|
2197
2925
|
* @summary Download zip with multiple files
|
|
@@ -2212,6 +2940,15 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
2212
2940
|
downloadStudy: function (id, options) {
|
|
2213
2941
|
return exports.MsPetApiFp(configuration).downloadStudy(id, options)(axios, basePath);
|
|
2214
2942
|
},
|
|
2943
|
+
/**
|
|
2944
|
+
* generate inceremented petId
|
|
2945
|
+
* @summary Generate petId
|
|
2946
|
+
* @param {*} [options] Override http request option.
|
|
2947
|
+
* @throws {RequiredError}
|
|
2948
|
+
*/
|
|
2949
|
+
generatePetId: function (options) {
|
|
2950
|
+
return exports.MsPetApiFp(configuration).generatePetId(options)(axios, basePath);
|
|
2951
|
+
},
|
|
2215
2952
|
/**
|
|
2216
2953
|
*
|
|
2217
2954
|
* @summary Get data about Examination for patient
|
|
@@ -2270,6 +3007,16 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
2270
3007
|
getExamination: function (id, options) {
|
|
2271
3008
|
return exports.MsPetApiFp(configuration).getExamination(id, options)(axios, basePath);
|
|
2272
3009
|
},
|
|
3010
|
+
/**
|
|
3011
|
+
*
|
|
3012
|
+
* @summary Get data about documents
|
|
3013
|
+
* @param {string} id The id of the examination
|
|
3014
|
+
* @param {*} [options] Override http request option.
|
|
3015
|
+
* @throws {RequiredError}
|
|
3016
|
+
*/
|
|
3017
|
+
getExaminationDocuments: function (id, options) {
|
|
3018
|
+
return exports.MsPetApiFp(configuration).getExaminationDocuments(id, options)(axios, basePath);
|
|
3019
|
+
},
|
|
2273
3020
|
/**
|
|
2274
3021
|
*
|
|
2275
3022
|
* @summary Get data about patient
|
|
@@ -2290,6 +3037,17 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
2290
3037
|
sendEmail: function (sendEmailRequest, options) {
|
|
2291
3038
|
return exports.MsPetApiFp(configuration).sendEmail(sendEmailRequest, options)(axios, basePath);
|
|
2292
3039
|
},
|
|
3040
|
+
/**
|
|
3041
|
+
* Change type of a document
|
|
3042
|
+
* @summary Change document type
|
|
3043
|
+
* @param {string} id The id of the patient
|
|
3044
|
+
* @param {string} type The type of the document
|
|
3045
|
+
* @param {*} [options] Override http request option.
|
|
3046
|
+
* @throws {RequiredError}
|
|
3047
|
+
*/
|
|
3048
|
+
setDocumentType: function (id, type, options) {
|
|
3049
|
+
return exports.MsPetApiFp(configuration).setDocumentType(id, type, options)(axios, basePath);
|
|
3050
|
+
},
|
|
2293
3051
|
/**
|
|
2294
3052
|
*
|
|
2295
3053
|
* @summary Updates the examination
|
|
@@ -2333,6 +3091,17 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
2333
3091
|
uploadDocuments: function (id, files, options) {
|
|
2334
3092
|
return exports.MsPetApiFp(configuration).uploadDocuments(id, files, options)(axios, basePath);
|
|
2335
3093
|
},
|
|
3094
|
+
/**
|
|
3095
|
+
* Upload medical examination files
|
|
3096
|
+
* @summary Upload documents
|
|
3097
|
+
* @param {string} id The id of the examination
|
|
3098
|
+
* @param {Array<any>} [files]
|
|
3099
|
+
* @param {*} [options] Override http request option.
|
|
3100
|
+
* @throws {RequiredError}
|
|
3101
|
+
*/
|
|
3102
|
+
uploadExaminationDocuments: function (id, files, options) {
|
|
3103
|
+
return exports.MsPetApiFp(configuration).uploadExaminationDocuments(id, files, options)(axios, basePath);
|
|
3104
|
+
},
|
|
2336
3105
|
};
|
|
2337
3106
|
};
|
|
2338
3107
|
/**
|
|
@@ -2391,6 +3160,18 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
2391
3160
|
MsPetApi.prototype.deleteExamination = function (id, options) {
|
|
2392
3161
|
return exports.MsPetApiFp(this.configuration).deleteExamination(id, options)(this.axios, this.basePath);
|
|
2393
3162
|
};
|
|
3163
|
+
/**
|
|
3164
|
+
*
|
|
3165
|
+
* @summary Deletes document
|
|
3166
|
+
* @param {string} id The id of the examination
|
|
3167
|
+
* @param {string} key The key of the document
|
|
3168
|
+
* @param {*} [options] Override http request option.
|
|
3169
|
+
* @throws {RequiredError}
|
|
3170
|
+
* @memberof MsPetApi
|
|
3171
|
+
*/
|
|
3172
|
+
MsPetApi.prototype.deleteExaminationDocument = function (id, key, options) {
|
|
3173
|
+
return exports.MsPetApiFp(this.configuration).deleteExaminationDocument(id, key, options)(this.axios, this.basePath);
|
|
3174
|
+
};
|
|
2394
3175
|
/**
|
|
2395
3176
|
*
|
|
2396
3177
|
* @summary Deletes patient
|
|
@@ -2413,6 +3194,28 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
2413
3194
|
MsPetApi.prototype.downloadDocument = function (key, options) {
|
|
2414
3195
|
return exports.MsPetApiFp(this.configuration).downloadDocument(key, options)(this.axios, this.basePath);
|
|
2415
3196
|
};
|
|
3197
|
+
/**
|
|
3198
|
+
*
|
|
3199
|
+
* @summary Download the document
|
|
3200
|
+
* @param {string} key The key of the document
|
|
3201
|
+
* @param {*} [options] Override http request option.
|
|
3202
|
+
* @throws {RequiredError}
|
|
3203
|
+
* @memberof MsPetApi
|
|
3204
|
+
*/
|
|
3205
|
+
MsPetApi.prototype.downloadExaminationDocument = function (key, options) {
|
|
3206
|
+
return exports.MsPetApiFp(this.configuration).downloadExaminationDocument(key, options)(this.axios, this.basePath);
|
|
3207
|
+
};
|
|
3208
|
+
/**
|
|
3209
|
+
*
|
|
3210
|
+
* @summary Download zip with multiple files
|
|
3211
|
+
* @param {DownloadMultipleFilesRequest} downloadMultipleFilesRequest
|
|
3212
|
+
* @param {*} [options] Override http request option.
|
|
3213
|
+
* @throws {RequiredError}
|
|
3214
|
+
* @memberof MsPetApi
|
|
3215
|
+
*/
|
|
3216
|
+
MsPetApi.prototype.downloadExaminationFiles = function (downloadMultipleFilesRequest, options) {
|
|
3217
|
+
return exports.MsPetApiFp(this.configuration).downloadExaminationFiles(downloadMultipleFilesRequest, options)(this.axios, this.basePath);
|
|
3218
|
+
};
|
|
2416
3219
|
/**
|
|
2417
3220
|
*
|
|
2418
3221
|
* @summary Download zip with multiple files
|
|
@@ -2435,6 +3238,16 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
2435
3238
|
MsPetApi.prototype.downloadStudy = function (id, options) {
|
|
2436
3239
|
return exports.MsPetApiFp(this.configuration).downloadStudy(id, options)(this.axios, this.basePath);
|
|
2437
3240
|
};
|
|
3241
|
+
/**
|
|
3242
|
+
* generate inceremented petId
|
|
3243
|
+
* @summary Generate petId
|
|
3244
|
+
* @param {*} [options] Override http request option.
|
|
3245
|
+
* @throws {RequiredError}
|
|
3246
|
+
* @memberof MsPetApi
|
|
3247
|
+
*/
|
|
3248
|
+
MsPetApi.prototype.generatePetId = function (options) {
|
|
3249
|
+
return exports.MsPetApiFp(this.configuration).generatePetId(options)(this.axios, this.basePath);
|
|
3250
|
+
};
|
|
2438
3251
|
/**
|
|
2439
3252
|
*
|
|
2440
3253
|
* @summary Get data about Examination for patient
|
|
@@ -2499,6 +3312,17 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
2499
3312
|
MsPetApi.prototype.getExamination = function (id, options) {
|
|
2500
3313
|
return exports.MsPetApiFp(this.configuration).getExamination(id, options)(this.axios, this.basePath);
|
|
2501
3314
|
};
|
|
3315
|
+
/**
|
|
3316
|
+
*
|
|
3317
|
+
* @summary Get data about documents
|
|
3318
|
+
* @param {string} id The id of the examination
|
|
3319
|
+
* @param {*} [options] Override http request option.
|
|
3320
|
+
* @throws {RequiredError}
|
|
3321
|
+
* @memberof MsPetApi
|
|
3322
|
+
*/
|
|
3323
|
+
MsPetApi.prototype.getExaminationDocuments = function (id, options) {
|
|
3324
|
+
return exports.MsPetApiFp(this.configuration).getExaminationDocuments(id, options)(this.axios, this.basePath);
|
|
3325
|
+
};
|
|
2502
3326
|
/**
|
|
2503
3327
|
*
|
|
2504
3328
|
* @summary Get data about patient
|
|
@@ -2521,6 +3345,18 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
2521
3345
|
MsPetApi.prototype.sendEmail = function (sendEmailRequest, options) {
|
|
2522
3346
|
return exports.MsPetApiFp(this.configuration).sendEmail(sendEmailRequest, options)(this.axios, this.basePath);
|
|
2523
3347
|
};
|
|
3348
|
+
/**
|
|
3349
|
+
* Change type of a document
|
|
3350
|
+
* @summary Change document type
|
|
3351
|
+
* @param {string} id The id of the patient
|
|
3352
|
+
* @param {string} type The type of the document
|
|
3353
|
+
* @param {*} [options] Override http request option.
|
|
3354
|
+
* @throws {RequiredError}
|
|
3355
|
+
* @memberof MsPetApi
|
|
3356
|
+
*/
|
|
3357
|
+
MsPetApi.prototype.setDocumentType = function (id, type, options) {
|
|
3358
|
+
return exports.MsPetApiFp(this.configuration).setDocumentType(id, type, options)(this.axios, this.basePath);
|
|
3359
|
+
};
|
|
2524
3360
|
/**
|
|
2525
3361
|
*
|
|
2526
3362
|
* @summary Updates the examination
|
|
@@ -2568,6 +3404,18 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
2568
3404
|
MsPetApi.prototype.uploadDocuments = function (id, files, options) {
|
|
2569
3405
|
return exports.MsPetApiFp(this.configuration).uploadDocuments(id, files, options)(this.axios, this.basePath);
|
|
2570
3406
|
};
|
|
3407
|
+
/**
|
|
3408
|
+
* Upload medical examination files
|
|
3409
|
+
* @summary Upload documents
|
|
3410
|
+
* @param {string} id The id of the examination
|
|
3411
|
+
* @param {Array<any>} [files]
|
|
3412
|
+
* @param {*} [options] Override http request option.
|
|
3413
|
+
* @throws {RequiredError}
|
|
3414
|
+
* @memberof MsPetApi
|
|
3415
|
+
*/
|
|
3416
|
+
MsPetApi.prototype.uploadExaminationDocuments = function (id, files, options) {
|
|
3417
|
+
return exports.MsPetApiFp(this.configuration).uploadExaminationDocuments(id, files, options)(this.axios, this.basePath);
|
|
3418
|
+
};
|
|
2571
3419
|
return MsPetApi;
|
|
2572
3420
|
}(base_1.BaseAPI));
|
|
2573
3421
|
exports.MsPetApi = MsPetApi;
|