pet-backend-sdk 0.27.0 → 0.31.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 +1252 -101
- package/axios/api.js +548 -0
- package/axios/api.js.map +1 -1
- package/package.json +1 -1
package/axios/api.js
CHANGED
|
@@ -187,6 +187,62 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
187
187
|
options: localVarRequestOptions,
|
|
188
188
|
};
|
|
189
189
|
},
|
|
190
|
+
/**
|
|
191
|
+
*
|
|
192
|
+
* @param {string} id The id of the examination
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
examinationIdOptions: function (id, options) {
|
|
197
|
+
if (options === void 0) { options = {}; }
|
|
198
|
+
// verify required parameter 'id' is not null or undefined
|
|
199
|
+
if (id === null || id === undefined) {
|
|
200
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling examinationIdOptions.');
|
|
201
|
+
}
|
|
202
|
+
var localVarPath = "/examination/{id}"
|
|
203
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
204
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
205
|
+
var baseOptions;
|
|
206
|
+
if (configuration) {
|
|
207
|
+
baseOptions = configuration.baseOptions;
|
|
208
|
+
}
|
|
209
|
+
var localVarRequestOptions = __assign(__assign({ method: 'OPTIONS' }, baseOptions), options);
|
|
210
|
+
var localVarHeaderParameter = {};
|
|
211
|
+
var localVarQueryParameter = {};
|
|
212
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
213
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
214
|
+
delete localVarUrlObj.search;
|
|
215
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
216
|
+
return {
|
|
217
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
218
|
+
options: localVarRequestOptions,
|
|
219
|
+
};
|
|
220
|
+
},
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
examinationOptions: function (options) {
|
|
227
|
+
if (options === void 0) { options = {}; }
|
|
228
|
+
var localVarPath = "/examination";
|
|
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
|
+
},
|
|
190
246
|
/**
|
|
191
247
|
*
|
|
192
248
|
* @param {*} [options] Override http request option.
|
|
@@ -421,6 +477,35 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
421
477
|
return axios.request(axiosRequestArgs);
|
|
422
478
|
};
|
|
423
479
|
},
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* @param {string} id The id of the examination
|
|
483
|
+
* @param {*} [options] Override http request option.
|
|
484
|
+
* @throws {RequiredError}
|
|
485
|
+
*/
|
|
486
|
+
examinationIdOptions: function (id, options) {
|
|
487
|
+
var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).examinationIdOptions(id, options);
|
|
488
|
+
return function (axios, basePath) {
|
|
489
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
490
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
491
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
492
|
+
return axios.request(axiosRequestArgs);
|
|
493
|
+
};
|
|
494
|
+
},
|
|
495
|
+
/**
|
|
496
|
+
*
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
examinationOptions: function (options) {
|
|
501
|
+
var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).examinationOptions(options);
|
|
502
|
+
return function (axios, basePath) {
|
|
503
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
504
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
505
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
506
|
+
return axios.request(axiosRequestArgs);
|
|
507
|
+
};
|
|
508
|
+
},
|
|
424
509
|
/**
|
|
425
510
|
*
|
|
426
511
|
* @param {*} [options] Override http request option.
|
|
@@ -550,6 +635,23 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
550
635
|
dicomUploadOptions: function (options) {
|
|
551
636
|
return exports.DefaultApiFp(configuration).dicomUploadOptions(options)(axios, basePath);
|
|
552
637
|
},
|
|
638
|
+
/**
|
|
639
|
+
*
|
|
640
|
+
* @param {string} id The id of the examination
|
|
641
|
+
* @param {*} [options] Override http request option.
|
|
642
|
+
* @throws {RequiredError}
|
|
643
|
+
*/
|
|
644
|
+
examinationIdOptions: function (id, options) {
|
|
645
|
+
return exports.DefaultApiFp(configuration).examinationIdOptions(id, options)(axios, basePath);
|
|
646
|
+
},
|
|
647
|
+
/**
|
|
648
|
+
*
|
|
649
|
+
* @param {*} [options] Override http request option.
|
|
650
|
+
* @throws {RequiredError}
|
|
651
|
+
*/
|
|
652
|
+
examinationOptions: function (options) {
|
|
653
|
+
return exports.DefaultApiFp(configuration).examinationOptions(options)(axios, basePath);
|
|
654
|
+
},
|
|
553
655
|
/**
|
|
554
656
|
*
|
|
555
657
|
* @param {*} [options] Override http request option.
|
|
@@ -652,6 +754,25 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
652
754
|
DefaultApi.prototype.dicomUploadOptions = function (options) {
|
|
653
755
|
return exports.DefaultApiFp(this.configuration).dicomUploadOptions(options)(this.axios, this.basePath);
|
|
654
756
|
};
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @param {string} id The id of the examination
|
|
760
|
+
* @param {*} [options] Override http request option.
|
|
761
|
+
* @throws {RequiredError}
|
|
762
|
+
* @memberof DefaultApi
|
|
763
|
+
*/
|
|
764
|
+
DefaultApi.prototype.examinationIdOptions = function (id, options) {
|
|
765
|
+
return exports.DefaultApiFp(this.configuration).examinationIdOptions(id, options)(this.axios, this.basePath);
|
|
766
|
+
};
|
|
767
|
+
/**
|
|
768
|
+
*
|
|
769
|
+
* @param {*} [options] Override http request option.
|
|
770
|
+
* @throws {RequiredError}
|
|
771
|
+
* @memberof DefaultApi
|
|
772
|
+
*/
|
|
773
|
+
DefaultApi.prototype.examinationOptions = function (options) {
|
|
774
|
+
return exports.DefaultApiFp(this.configuration).examinationOptions(options)(this.axios, this.basePath);
|
|
775
|
+
};
|
|
655
776
|
/**
|
|
656
777
|
*
|
|
657
778
|
* @param {*} [options] Override http request option.
|
|
@@ -718,6 +839,51 @@ exports.DefaultApi = DefaultApi;
|
|
|
718
839
|
*/
|
|
719
840
|
exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
720
841
|
return {
|
|
842
|
+
/**
|
|
843
|
+
* Create a examination
|
|
844
|
+
* @summary Create examination
|
|
845
|
+
* @param {CreateExaminationRequest} [createExaminationRequest]
|
|
846
|
+
* @param {*} [options] Override http request option.
|
|
847
|
+
* @throws {RequiredError}
|
|
848
|
+
*/
|
|
849
|
+
addExamination: function (createExaminationRequest, options) {
|
|
850
|
+
if (options === void 0) { options = {}; }
|
|
851
|
+
var localVarPath = "/examination";
|
|
852
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
853
|
+
var baseOptions;
|
|
854
|
+
if (configuration) {
|
|
855
|
+
baseOptions = configuration.baseOptions;
|
|
856
|
+
}
|
|
857
|
+
var localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
858
|
+
var localVarHeaderParameter = {};
|
|
859
|
+
var localVarQueryParameter = {};
|
|
860
|
+
// authentication BearerAuth required
|
|
861
|
+
// http bearer authentication required
|
|
862
|
+
if (configuration && configuration.accessToken) {
|
|
863
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
864
|
+
? configuration.accessToken()
|
|
865
|
+
: configuration.accessToken;
|
|
866
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
867
|
+
}
|
|
868
|
+
// authentication custom-authorizer required
|
|
869
|
+
if (configuration && configuration.apiKey) {
|
|
870
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
871
|
+
? configuration.apiKey("Authorization")
|
|
872
|
+
: configuration.apiKey;
|
|
873
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
874
|
+
}
|
|
875
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
876
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
877
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
878
|
+
delete localVarUrlObj.search;
|
|
879
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
880
|
+
var needsSerialization = (typeof createExaminationRequest !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
881
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(createExaminationRequest !== undefined ? createExaminationRequest : {}) : (createExaminationRequest || "");
|
|
882
|
+
return {
|
|
883
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
884
|
+
options: localVarRequestOptions,
|
|
885
|
+
};
|
|
886
|
+
},
|
|
721
887
|
/**
|
|
722
888
|
* Create a patient
|
|
723
889
|
* @summary Create patient
|
|
@@ -818,6 +984,53 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
818
984
|
options: localVarRequestOptions,
|
|
819
985
|
};
|
|
820
986
|
},
|
|
987
|
+
/**
|
|
988
|
+
*
|
|
989
|
+
* @summary Deletes examination
|
|
990
|
+
* @param {string} id The examination id
|
|
991
|
+
* @param {*} [options] Override http request option.
|
|
992
|
+
* @throws {RequiredError}
|
|
993
|
+
*/
|
|
994
|
+
deleteExamination: function (id, options) {
|
|
995
|
+
if (options === void 0) { options = {}; }
|
|
996
|
+
// verify required parameter 'id' is not null or undefined
|
|
997
|
+
if (id === null || id === undefined) {
|
|
998
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling deleteExamination.');
|
|
999
|
+
}
|
|
1000
|
+
var localVarPath = "/examination/{id}"
|
|
1001
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1002
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1003
|
+
var baseOptions;
|
|
1004
|
+
if (configuration) {
|
|
1005
|
+
baseOptions = configuration.baseOptions;
|
|
1006
|
+
}
|
|
1007
|
+
var localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
1008
|
+
var localVarHeaderParameter = {};
|
|
1009
|
+
var localVarQueryParameter = {};
|
|
1010
|
+
// authentication BearerAuth required
|
|
1011
|
+
// http bearer authentication required
|
|
1012
|
+
if (configuration && configuration.accessToken) {
|
|
1013
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1014
|
+
? configuration.accessToken()
|
|
1015
|
+
: configuration.accessToken;
|
|
1016
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1017
|
+
}
|
|
1018
|
+
// authentication custom-authorizer required
|
|
1019
|
+
if (configuration && configuration.apiKey) {
|
|
1020
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1021
|
+
? configuration.apiKey("Authorization")
|
|
1022
|
+
: configuration.apiKey;
|
|
1023
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1024
|
+
}
|
|
1025
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1026
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1027
|
+
delete localVarUrlObj.search;
|
|
1028
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1029
|
+
return {
|
|
1030
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1031
|
+
options: localVarRequestOptions,
|
|
1032
|
+
};
|
|
1033
|
+
},
|
|
821
1034
|
/**
|
|
822
1035
|
*
|
|
823
1036
|
* @summary Deletes patient
|
|
@@ -1008,6 +1221,55 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1008
1221
|
options: localVarRequestOptions,
|
|
1009
1222
|
};
|
|
1010
1223
|
},
|
|
1224
|
+
/**
|
|
1225
|
+
*
|
|
1226
|
+
* @summary Get data about Examination for patient
|
|
1227
|
+
* @param {string} patientId The patientId
|
|
1228
|
+
* @param {*} [options] Override http request option.
|
|
1229
|
+
* @throws {RequiredError}
|
|
1230
|
+
*/
|
|
1231
|
+
getAllExaminationForPatient: function (patientId, options) {
|
|
1232
|
+
if (options === void 0) { options = {}; }
|
|
1233
|
+
// verify required parameter 'patientId' is not null or undefined
|
|
1234
|
+
if (patientId === null || patientId === undefined) {
|
|
1235
|
+
throw new base_1.RequiredError('patientId', 'Required parameter patientId was null or undefined when calling getAllExaminationForPatient.');
|
|
1236
|
+
}
|
|
1237
|
+
var localVarPath = "/examination";
|
|
1238
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1239
|
+
var baseOptions;
|
|
1240
|
+
if (configuration) {
|
|
1241
|
+
baseOptions = configuration.baseOptions;
|
|
1242
|
+
}
|
|
1243
|
+
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1244
|
+
var localVarHeaderParameter = {};
|
|
1245
|
+
var localVarQueryParameter = {};
|
|
1246
|
+
// authentication BearerAuth required
|
|
1247
|
+
// http bearer authentication required
|
|
1248
|
+
if (configuration && configuration.accessToken) {
|
|
1249
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1250
|
+
? configuration.accessToken()
|
|
1251
|
+
: configuration.accessToken;
|
|
1252
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1253
|
+
}
|
|
1254
|
+
// authentication custom-authorizer required
|
|
1255
|
+
if (configuration && configuration.apiKey) {
|
|
1256
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1257
|
+
? configuration.apiKey("Authorization")
|
|
1258
|
+
: configuration.apiKey;
|
|
1259
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1260
|
+
}
|
|
1261
|
+
if (patientId !== undefined) {
|
|
1262
|
+
localVarQueryParameter['patientId'] = patientId;
|
|
1263
|
+
}
|
|
1264
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1265
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1266
|
+
delete localVarUrlObj.search;
|
|
1267
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1268
|
+
return {
|
|
1269
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1270
|
+
options: localVarRequestOptions,
|
|
1271
|
+
};
|
|
1272
|
+
},
|
|
1011
1273
|
/**
|
|
1012
1274
|
*
|
|
1013
1275
|
* @summary Get data about patients
|
|
@@ -1184,6 +1446,53 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1184
1446
|
options: localVarRequestOptions,
|
|
1185
1447
|
};
|
|
1186
1448
|
},
|
|
1449
|
+
/**
|
|
1450
|
+
*
|
|
1451
|
+
* @summary Get data about Examination
|
|
1452
|
+
* @param {string} id The id of the examination
|
|
1453
|
+
* @param {*} [options] Override http request option.
|
|
1454
|
+
* @throws {RequiredError}
|
|
1455
|
+
*/
|
|
1456
|
+
getExamination: function (id, options) {
|
|
1457
|
+
if (options === void 0) { options = {}; }
|
|
1458
|
+
// verify required parameter 'id' is not null or undefined
|
|
1459
|
+
if (id === null || id === undefined) {
|
|
1460
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling getExamination.');
|
|
1461
|
+
}
|
|
1462
|
+
var localVarPath = "/examination/{id}"
|
|
1463
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1464
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1465
|
+
var baseOptions;
|
|
1466
|
+
if (configuration) {
|
|
1467
|
+
baseOptions = configuration.baseOptions;
|
|
1468
|
+
}
|
|
1469
|
+
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
1470
|
+
var localVarHeaderParameter = {};
|
|
1471
|
+
var localVarQueryParameter = {};
|
|
1472
|
+
// authentication BearerAuth required
|
|
1473
|
+
// http bearer authentication required
|
|
1474
|
+
if (configuration && configuration.accessToken) {
|
|
1475
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1476
|
+
? configuration.accessToken()
|
|
1477
|
+
: configuration.accessToken;
|
|
1478
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1479
|
+
}
|
|
1480
|
+
// authentication custom-authorizer required
|
|
1481
|
+
if (configuration && configuration.apiKey) {
|
|
1482
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1483
|
+
? configuration.apiKey("Authorization")
|
|
1484
|
+
: configuration.apiKey;
|
|
1485
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1486
|
+
}
|
|
1487
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1488
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1489
|
+
delete localVarUrlObj.search;
|
|
1490
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1491
|
+
return {
|
|
1492
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1493
|
+
options: localVarRequestOptions,
|
|
1494
|
+
};
|
|
1495
|
+
},
|
|
1187
1496
|
/**
|
|
1188
1497
|
*
|
|
1189
1498
|
* @summary Get data about patient
|
|
@@ -1280,6 +1589,57 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1280
1589
|
options: localVarRequestOptions,
|
|
1281
1590
|
};
|
|
1282
1591
|
},
|
|
1592
|
+
/**
|
|
1593
|
+
*
|
|
1594
|
+
* @summary Updates the examination
|
|
1595
|
+
* @param {string} id The id of the examination
|
|
1596
|
+
* @param {UpdateExaminationRequest} [updateExaminationRequest]
|
|
1597
|
+
* @param {*} [options] Override http request option.
|
|
1598
|
+
* @throws {RequiredError}
|
|
1599
|
+
*/
|
|
1600
|
+
updateExamination: function (id, updateExaminationRequest, options) {
|
|
1601
|
+
if (options === void 0) { options = {}; }
|
|
1602
|
+
// verify required parameter 'id' is not null or undefined
|
|
1603
|
+
if (id === null || id === undefined) {
|
|
1604
|
+
throw new base_1.RequiredError('id', 'Required parameter id was null or undefined when calling updateExamination.');
|
|
1605
|
+
}
|
|
1606
|
+
var localVarPath = "/examination/{id}"
|
|
1607
|
+
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
1608
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1609
|
+
var baseOptions;
|
|
1610
|
+
if (configuration) {
|
|
1611
|
+
baseOptions = configuration.baseOptions;
|
|
1612
|
+
}
|
|
1613
|
+
var localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
1614
|
+
var localVarHeaderParameter = {};
|
|
1615
|
+
var localVarQueryParameter = {};
|
|
1616
|
+
// authentication BearerAuth required
|
|
1617
|
+
// http bearer authentication required
|
|
1618
|
+
if (configuration && configuration.accessToken) {
|
|
1619
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1620
|
+
? configuration.accessToken()
|
|
1621
|
+
: configuration.accessToken;
|
|
1622
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1623
|
+
}
|
|
1624
|
+
// authentication custom-authorizer required
|
|
1625
|
+
if (configuration && configuration.apiKey) {
|
|
1626
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1627
|
+
? configuration.apiKey("Authorization")
|
|
1628
|
+
: configuration.apiKey;
|
|
1629
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1630
|
+
}
|
|
1631
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1632
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
1633
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1634
|
+
delete localVarUrlObj.search;
|
|
1635
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
1636
|
+
var needsSerialization = (typeof updateExaminationRequest !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
1637
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(updateExaminationRequest !== undefined ? updateExaminationRequest : {}) : (updateExaminationRequest || "");
|
|
1638
|
+
return {
|
|
1639
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
1640
|
+
options: localVarRequestOptions,
|
|
1641
|
+
};
|
|
1642
|
+
},
|
|
1283
1643
|
/**
|
|
1284
1644
|
*
|
|
1285
1645
|
* @summary Updates the patient
|
|
@@ -1441,6 +1801,22 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1441
1801
|
*/
|
|
1442
1802
|
exports.MsPetApiFp = function (configuration) {
|
|
1443
1803
|
return {
|
|
1804
|
+
/**
|
|
1805
|
+
* Create a examination
|
|
1806
|
+
* @summary Create examination
|
|
1807
|
+
* @param {CreateExaminationRequest} [createExaminationRequest]
|
|
1808
|
+
* @param {*} [options] Override http request option.
|
|
1809
|
+
* @throws {RequiredError}
|
|
1810
|
+
*/
|
|
1811
|
+
addExamination: function (createExaminationRequest, options) {
|
|
1812
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).addExamination(createExaminationRequest, options);
|
|
1813
|
+
return function (axios, basePath) {
|
|
1814
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
1815
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
1816
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
1817
|
+
return axios.request(axiosRequestArgs);
|
|
1818
|
+
};
|
|
1819
|
+
},
|
|
1444
1820
|
/**
|
|
1445
1821
|
* Create a patient
|
|
1446
1822
|
* @summary Create patient
|
|
@@ -1474,6 +1850,22 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
1474
1850
|
return axios.request(axiosRequestArgs);
|
|
1475
1851
|
};
|
|
1476
1852
|
},
|
|
1853
|
+
/**
|
|
1854
|
+
*
|
|
1855
|
+
* @summary Deletes examination
|
|
1856
|
+
* @param {string} id The examination id
|
|
1857
|
+
* @param {*} [options] Override http request option.
|
|
1858
|
+
* @throws {RequiredError}
|
|
1859
|
+
*/
|
|
1860
|
+
deleteExamination: function (id, options) {
|
|
1861
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).deleteExamination(id, options);
|
|
1862
|
+
return function (axios, basePath) {
|
|
1863
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
1864
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
1865
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
1866
|
+
return axios.request(axiosRequestArgs);
|
|
1867
|
+
};
|
|
1868
|
+
},
|
|
1477
1869
|
/**
|
|
1478
1870
|
*
|
|
1479
1871
|
* @summary Deletes patient
|
|
@@ -1538,6 +1930,22 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
1538
1930
|
return axios.request(axiosRequestArgs);
|
|
1539
1931
|
};
|
|
1540
1932
|
},
|
|
1933
|
+
/**
|
|
1934
|
+
*
|
|
1935
|
+
* @summary Get data about Examination for patient
|
|
1936
|
+
* @param {string} patientId The patientId
|
|
1937
|
+
* @param {*} [options] Override http request option.
|
|
1938
|
+
* @throws {RequiredError}
|
|
1939
|
+
*/
|
|
1940
|
+
getAllExaminationForPatient: function (patientId, options) {
|
|
1941
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).getAllExaminationForPatient(patientId, options);
|
|
1942
|
+
return function (axios, basePath) {
|
|
1943
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
1944
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
1945
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
1946
|
+
return axios.request(axiosRequestArgs);
|
|
1947
|
+
};
|
|
1948
|
+
},
|
|
1541
1949
|
/**
|
|
1542
1950
|
*
|
|
1543
1951
|
* @summary Get data about patients
|
|
@@ -1600,6 +2008,22 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
1600
2008
|
return axios.request(axiosRequestArgs);
|
|
1601
2009
|
};
|
|
1602
2010
|
},
|
|
2011
|
+
/**
|
|
2012
|
+
*
|
|
2013
|
+
* @summary Get data about Examination
|
|
2014
|
+
* @param {string} id The id of the examination
|
|
2015
|
+
* @param {*} [options] Override http request option.
|
|
2016
|
+
* @throws {RequiredError}
|
|
2017
|
+
*/
|
|
2018
|
+
getExamination: function (id, options) {
|
|
2019
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).getExamination(id, options);
|
|
2020
|
+
return function (axios, basePath) {
|
|
2021
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2022
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2023
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2024
|
+
return axios.request(axiosRequestArgs);
|
|
2025
|
+
};
|
|
2026
|
+
},
|
|
1603
2027
|
/**
|
|
1604
2028
|
*
|
|
1605
2029
|
* @summary Get data about patient
|
|
@@ -1632,6 +2056,23 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
1632
2056
|
return axios.request(axiosRequestArgs);
|
|
1633
2057
|
};
|
|
1634
2058
|
},
|
|
2059
|
+
/**
|
|
2060
|
+
*
|
|
2061
|
+
* @summary Updates the examination
|
|
2062
|
+
* @param {string} id The id of the examination
|
|
2063
|
+
* @param {UpdateExaminationRequest} [updateExaminationRequest]
|
|
2064
|
+
* @param {*} [options] Override http request option.
|
|
2065
|
+
* @throws {RequiredError}
|
|
2066
|
+
*/
|
|
2067
|
+
updateExamination: function (id, updateExaminationRequest, options) {
|
|
2068
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).updateExamination(id, updateExaminationRequest, options);
|
|
2069
|
+
return function (axios, basePath) {
|
|
2070
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
2071
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
2072
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
2073
|
+
return axios.request(axiosRequestArgs);
|
|
2074
|
+
};
|
|
2075
|
+
},
|
|
1635
2076
|
/**
|
|
1636
2077
|
*
|
|
1637
2078
|
* @summary Updates the patient
|
|
@@ -1690,6 +2131,16 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
1690
2131
|
*/
|
|
1691
2132
|
exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
1692
2133
|
return {
|
|
2134
|
+
/**
|
|
2135
|
+
* Create a examination
|
|
2136
|
+
* @summary Create examination
|
|
2137
|
+
* @param {CreateExaminationRequest} [createExaminationRequest]
|
|
2138
|
+
* @param {*} [options] Override http request option.
|
|
2139
|
+
* @throws {RequiredError}
|
|
2140
|
+
*/
|
|
2141
|
+
addExamination: function (createExaminationRequest, options) {
|
|
2142
|
+
return exports.MsPetApiFp(configuration).addExamination(createExaminationRequest, options)(axios, basePath);
|
|
2143
|
+
},
|
|
1693
2144
|
/**
|
|
1694
2145
|
* Create a patient
|
|
1695
2146
|
* @summary Create patient
|
|
@@ -1711,6 +2162,16 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
1711
2162
|
deleteDocument: function (id, key, options) {
|
|
1712
2163
|
return exports.MsPetApiFp(configuration).deleteDocument(id, key, options)(axios, basePath);
|
|
1713
2164
|
},
|
|
2165
|
+
/**
|
|
2166
|
+
*
|
|
2167
|
+
* @summary Deletes examination
|
|
2168
|
+
* @param {string} id The examination id
|
|
2169
|
+
* @param {*} [options] Override http request option.
|
|
2170
|
+
* @throws {RequiredError}
|
|
2171
|
+
*/
|
|
2172
|
+
deleteExamination: function (id, options) {
|
|
2173
|
+
return exports.MsPetApiFp(configuration).deleteExamination(id, options)(axios, basePath);
|
|
2174
|
+
},
|
|
1714
2175
|
/**
|
|
1715
2176
|
*
|
|
1716
2177
|
* @summary Deletes patient
|
|
@@ -1751,6 +2212,16 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
1751
2212
|
downloadStudy: function (id, options) {
|
|
1752
2213
|
return exports.MsPetApiFp(configuration).downloadStudy(id, options)(axios, basePath);
|
|
1753
2214
|
},
|
|
2215
|
+
/**
|
|
2216
|
+
*
|
|
2217
|
+
* @summary Get data about Examination for patient
|
|
2218
|
+
* @param {string} patientId The patientId
|
|
2219
|
+
* @param {*} [options] Override http request option.
|
|
2220
|
+
* @throws {RequiredError}
|
|
2221
|
+
*/
|
|
2222
|
+
getAllExaminationForPatient: function (patientId, options) {
|
|
2223
|
+
return exports.MsPetApiFp(configuration).getAllExaminationForPatient(patientId, options)(axios, basePath);
|
|
2224
|
+
},
|
|
1754
2225
|
/**
|
|
1755
2226
|
*
|
|
1756
2227
|
* @summary Get data about patients
|
|
@@ -1789,6 +2260,16 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
1789
2260
|
getDocuments: function (id, options) {
|
|
1790
2261
|
return exports.MsPetApiFp(configuration).getDocuments(id, options)(axios, basePath);
|
|
1791
2262
|
},
|
|
2263
|
+
/**
|
|
2264
|
+
*
|
|
2265
|
+
* @summary Get data about Examination
|
|
2266
|
+
* @param {string} id The id of the examination
|
|
2267
|
+
* @param {*} [options] Override http request option.
|
|
2268
|
+
* @throws {RequiredError}
|
|
2269
|
+
*/
|
|
2270
|
+
getExamination: function (id, options) {
|
|
2271
|
+
return exports.MsPetApiFp(configuration).getExamination(id, options)(axios, basePath);
|
|
2272
|
+
},
|
|
1792
2273
|
/**
|
|
1793
2274
|
*
|
|
1794
2275
|
* @summary Get data about patient
|
|
@@ -1809,6 +2290,17 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
1809
2290
|
sendEmail: function (sendEmailRequest, options) {
|
|
1810
2291
|
return exports.MsPetApiFp(configuration).sendEmail(sendEmailRequest, options)(axios, basePath);
|
|
1811
2292
|
},
|
|
2293
|
+
/**
|
|
2294
|
+
*
|
|
2295
|
+
* @summary Updates the examination
|
|
2296
|
+
* @param {string} id The id of the examination
|
|
2297
|
+
* @param {UpdateExaminationRequest} [updateExaminationRequest]
|
|
2298
|
+
* @param {*} [options] Override http request option.
|
|
2299
|
+
* @throws {RequiredError}
|
|
2300
|
+
*/
|
|
2301
|
+
updateExamination: function (id, updateExaminationRequest, options) {
|
|
2302
|
+
return exports.MsPetApiFp(configuration).updateExamination(id, updateExaminationRequest, options)(axios, basePath);
|
|
2303
|
+
},
|
|
1812
2304
|
/**
|
|
1813
2305
|
*
|
|
1814
2306
|
* @summary Updates the patient
|
|
@@ -1854,6 +2346,17 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
1854
2346
|
function MsPetApi() {
|
|
1855
2347
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1856
2348
|
}
|
|
2349
|
+
/**
|
|
2350
|
+
* Create a examination
|
|
2351
|
+
* @summary Create examination
|
|
2352
|
+
* @param {CreateExaminationRequest} [createExaminationRequest]
|
|
2353
|
+
* @param {*} [options] Override http request option.
|
|
2354
|
+
* @throws {RequiredError}
|
|
2355
|
+
* @memberof MsPetApi
|
|
2356
|
+
*/
|
|
2357
|
+
MsPetApi.prototype.addExamination = function (createExaminationRequest, options) {
|
|
2358
|
+
return exports.MsPetApiFp(this.configuration).addExamination(createExaminationRequest, options)(this.axios, this.basePath);
|
|
2359
|
+
};
|
|
1857
2360
|
/**
|
|
1858
2361
|
* Create a patient
|
|
1859
2362
|
* @summary Create patient
|
|
@@ -1877,6 +2380,17 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
1877
2380
|
MsPetApi.prototype.deleteDocument = function (id, key, options) {
|
|
1878
2381
|
return exports.MsPetApiFp(this.configuration).deleteDocument(id, key, options)(this.axios, this.basePath);
|
|
1879
2382
|
};
|
|
2383
|
+
/**
|
|
2384
|
+
*
|
|
2385
|
+
* @summary Deletes examination
|
|
2386
|
+
* @param {string} id The examination id
|
|
2387
|
+
* @param {*} [options] Override http request option.
|
|
2388
|
+
* @throws {RequiredError}
|
|
2389
|
+
* @memberof MsPetApi
|
|
2390
|
+
*/
|
|
2391
|
+
MsPetApi.prototype.deleteExamination = function (id, options) {
|
|
2392
|
+
return exports.MsPetApiFp(this.configuration).deleteExamination(id, options)(this.axios, this.basePath);
|
|
2393
|
+
};
|
|
1880
2394
|
/**
|
|
1881
2395
|
*
|
|
1882
2396
|
* @summary Deletes patient
|
|
@@ -1921,6 +2435,17 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
1921
2435
|
MsPetApi.prototype.downloadStudy = function (id, options) {
|
|
1922
2436
|
return exports.MsPetApiFp(this.configuration).downloadStudy(id, options)(this.axios, this.basePath);
|
|
1923
2437
|
};
|
|
2438
|
+
/**
|
|
2439
|
+
*
|
|
2440
|
+
* @summary Get data about Examination for patient
|
|
2441
|
+
* @param {string} patientId The patientId
|
|
2442
|
+
* @param {*} [options] Override http request option.
|
|
2443
|
+
* @throws {RequiredError}
|
|
2444
|
+
* @memberof MsPetApi
|
|
2445
|
+
*/
|
|
2446
|
+
MsPetApi.prototype.getAllExaminationForPatient = function (patientId, options) {
|
|
2447
|
+
return exports.MsPetApiFp(this.configuration).getAllExaminationForPatient(patientId, options)(this.axios, this.basePath);
|
|
2448
|
+
};
|
|
1924
2449
|
/**
|
|
1925
2450
|
*
|
|
1926
2451
|
* @summary Get data about patients
|
|
@@ -1963,6 +2488,17 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
1963
2488
|
MsPetApi.prototype.getDocuments = function (id, options) {
|
|
1964
2489
|
return exports.MsPetApiFp(this.configuration).getDocuments(id, options)(this.axios, this.basePath);
|
|
1965
2490
|
};
|
|
2491
|
+
/**
|
|
2492
|
+
*
|
|
2493
|
+
* @summary Get data about Examination
|
|
2494
|
+
* @param {string} id The id of the examination
|
|
2495
|
+
* @param {*} [options] Override http request option.
|
|
2496
|
+
* @throws {RequiredError}
|
|
2497
|
+
* @memberof MsPetApi
|
|
2498
|
+
*/
|
|
2499
|
+
MsPetApi.prototype.getExamination = function (id, options) {
|
|
2500
|
+
return exports.MsPetApiFp(this.configuration).getExamination(id, options)(this.axios, this.basePath);
|
|
2501
|
+
};
|
|
1966
2502
|
/**
|
|
1967
2503
|
*
|
|
1968
2504
|
* @summary Get data about patient
|
|
@@ -1985,6 +2521,18 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
1985
2521
|
MsPetApi.prototype.sendEmail = function (sendEmailRequest, options) {
|
|
1986
2522
|
return exports.MsPetApiFp(this.configuration).sendEmail(sendEmailRequest, options)(this.axios, this.basePath);
|
|
1987
2523
|
};
|
|
2524
|
+
/**
|
|
2525
|
+
*
|
|
2526
|
+
* @summary Updates the examination
|
|
2527
|
+
* @param {string} id The id of the examination
|
|
2528
|
+
* @param {UpdateExaminationRequest} [updateExaminationRequest]
|
|
2529
|
+
* @param {*} [options] Override http request option.
|
|
2530
|
+
* @throws {RequiredError}
|
|
2531
|
+
* @memberof MsPetApi
|
|
2532
|
+
*/
|
|
2533
|
+
MsPetApi.prototype.updateExamination = function (id, updateExaminationRequest, options) {
|
|
2534
|
+
return exports.MsPetApiFp(this.configuration).updateExamination(id, updateExaminationRequest, options)(this.axios, this.basePath);
|
|
2535
|
+
};
|
|
1988
2536
|
/**
|
|
1989
2537
|
*
|
|
1990
2538
|
* @summary Updates the patient
|