pet-backend-sdk 1.6.0 → 1.9.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 +444 -15
- package/axios/api.js +452 -16
- package/axios/api.js.map +1 -1
- package/package.json +1 -1
package/axios/api.js
CHANGED
|
@@ -162,6 +162,31 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
162
162
|
options: localVarRequestOptions,
|
|
163
163
|
};
|
|
164
164
|
},
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @param {*} [options] Override http request option.
|
|
168
|
+
* @throws {RequiredError}
|
|
169
|
+
*/
|
|
170
|
+
dicomSendEmailOptions: function (options) {
|
|
171
|
+
if (options === void 0) { options = {}; }
|
|
172
|
+
var localVarPath = "/dicom/send-email";
|
|
173
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
174
|
+
var baseOptions;
|
|
175
|
+
if (configuration) {
|
|
176
|
+
baseOptions = configuration.baseOptions;
|
|
177
|
+
}
|
|
178
|
+
var localVarRequestOptions = __assign(__assign({ method: 'OPTIONS' }, baseOptions), options);
|
|
179
|
+
var localVarHeaderParameter = {};
|
|
180
|
+
var localVarQueryParameter = {};
|
|
181
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
182
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
183
|
+
delete localVarUrlObj.search;
|
|
184
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
185
|
+
return {
|
|
186
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
};
|
|
189
|
+
},
|
|
165
190
|
/**
|
|
166
191
|
*
|
|
167
192
|
* @param {*} [options] Override http request option.
|
|
@@ -411,6 +436,37 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
411
436
|
options: localVarRequestOptions,
|
|
412
437
|
};
|
|
413
438
|
},
|
|
439
|
+
/**
|
|
440
|
+
*
|
|
441
|
+
* @param {string} embg The EMBG of the patient
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
patientEmbgEmbgOptions: function (embg, options) {
|
|
446
|
+
if (options === void 0) { options = {}; }
|
|
447
|
+
// verify required parameter 'embg' is not null or undefined
|
|
448
|
+
if (embg === null || embg === undefined) {
|
|
449
|
+
throw new base_1.RequiredError('embg', 'Required parameter embg was null or undefined when calling patientEmbgEmbgOptions.');
|
|
450
|
+
}
|
|
451
|
+
var localVarPath = "/patient/embg/{embg}"
|
|
452
|
+
.replace("{" + "embg" + "}", encodeURIComponent(String(embg)));
|
|
453
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
454
|
+
var baseOptions;
|
|
455
|
+
if (configuration) {
|
|
456
|
+
baseOptions = configuration.baseOptions;
|
|
457
|
+
}
|
|
458
|
+
var localVarRequestOptions = __assign(__assign({ method: 'OPTIONS' }, baseOptions), options);
|
|
459
|
+
var localVarHeaderParameter = {};
|
|
460
|
+
var localVarQueryParameter = {};
|
|
461
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
462
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
463
|
+
delete localVarUrlObj.search;
|
|
464
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
465
|
+
return {
|
|
466
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
467
|
+
options: localVarRequestOptions,
|
|
468
|
+
};
|
|
469
|
+
},
|
|
414
470
|
/**
|
|
415
471
|
*
|
|
416
472
|
* @param {*} [options] Override http request option.
|
|
@@ -554,6 +610,31 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
554
610
|
options: localVarRequestOptions,
|
|
555
611
|
};
|
|
556
612
|
},
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
* @param {*} [options] Override http request option.
|
|
616
|
+
* @throws {RequiredError}
|
|
617
|
+
*/
|
|
618
|
+
patientReferralExtractOptions: function (options) {
|
|
619
|
+
if (options === void 0) { options = {}; }
|
|
620
|
+
var localVarPath = "/patient/referral/extract";
|
|
621
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
622
|
+
var baseOptions;
|
|
623
|
+
if (configuration) {
|
|
624
|
+
baseOptions = configuration.baseOptions;
|
|
625
|
+
}
|
|
626
|
+
var localVarRequestOptions = __assign(__assign({ method: 'OPTIONS' }, baseOptions), options);
|
|
627
|
+
var localVarHeaderParameter = {};
|
|
628
|
+
var localVarQueryParameter = {};
|
|
629
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
630
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
631
|
+
delete localVarUrlObj.search;
|
|
632
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
633
|
+
return {
|
|
634
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
635
|
+
options: localVarRequestOptions,
|
|
636
|
+
};
|
|
637
|
+
},
|
|
557
638
|
/**
|
|
558
639
|
*
|
|
559
640
|
* @param {*} [options] Override http request option.
|
|
@@ -631,6 +712,20 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
631
712
|
return axios.request(axiosRequestArgs);
|
|
632
713
|
};
|
|
633
714
|
},
|
|
715
|
+
/**
|
|
716
|
+
*
|
|
717
|
+
* @param {*} [options] Override http request option.
|
|
718
|
+
* @throws {RequiredError}
|
|
719
|
+
*/
|
|
720
|
+
dicomSendEmailOptions: function (options) {
|
|
721
|
+
var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).dicomSendEmailOptions(options);
|
|
722
|
+
return function (axios, basePath) {
|
|
723
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
724
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
725
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
726
|
+
return axios.request(axiosRequestArgs);
|
|
727
|
+
};
|
|
728
|
+
},
|
|
634
729
|
/**
|
|
635
730
|
*
|
|
636
731
|
* @param {*} [options] Override http request option.
|
|
@@ -761,6 +856,21 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
761
856
|
return axios.request(axiosRequestArgs);
|
|
762
857
|
};
|
|
763
858
|
},
|
|
859
|
+
/**
|
|
860
|
+
*
|
|
861
|
+
* @param {string} embg The EMBG of the patient
|
|
862
|
+
* @param {*} [options] Override http request option.
|
|
863
|
+
* @throws {RequiredError}
|
|
864
|
+
*/
|
|
865
|
+
patientEmbgEmbgOptions: function (embg, options) {
|
|
866
|
+
var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).patientEmbgEmbgOptions(embg, options);
|
|
867
|
+
return function (axios, basePath) {
|
|
868
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
869
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
870
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
871
|
+
return axios.request(axiosRequestArgs);
|
|
872
|
+
};
|
|
873
|
+
},
|
|
764
874
|
/**
|
|
765
875
|
*
|
|
766
876
|
* @param {*} [options] Override http request option.
|
|
@@ -834,6 +944,20 @@ exports.DefaultApiFp = function (configuration) {
|
|
|
834
944
|
return axios.request(axiosRequestArgs);
|
|
835
945
|
};
|
|
836
946
|
},
|
|
947
|
+
/**
|
|
948
|
+
*
|
|
949
|
+
* @param {*} [options] Override http request option.
|
|
950
|
+
* @throws {RequiredError}
|
|
951
|
+
*/
|
|
952
|
+
patientReferralExtractOptions: function (options) {
|
|
953
|
+
var localVarAxiosArgs = exports.DefaultApiAxiosParamCreator(configuration).patientReferralExtractOptions(options);
|
|
954
|
+
return function (axios, basePath) {
|
|
955
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
956
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
957
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
958
|
+
return axios.request(axiosRequestArgs);
|
|
959
|
+
};
|
|
960
|
+
},
|
|
837
961
|
/**
|
|
838
962
|
*
|
|
839
963
|
* @param {*} [options] Override http request option.
|
|
@@ -882,6 +1006,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
882
1006
|
dicomIdDownloadOptions: function (id, options) {
|
|
883
1007
|
return exports.DefaultApiFp(configuration).dicomIdDownloadOptions(id, options)(axios, basePath);
|
|
884
1008
|
},
|
|
1009
|
+
/**
|
|
1010
|
+
*
|
|
1011
|
+
* @param {*} [options] Override http request option.
|
|
1012
|
+
* @throws {RequiredError}
|
|
1013
|
+
*/
|
|
1014
|
+
dicomSendEmailOptions: function (options) {
|
|
1015
|
+
return exports.DefaultApiFp(configuration).dicomSendEmailOptions(options)(axios, basePath);
|
|
1016
|
+
},
|
|
885
1017
|
/**
|
|
886
1018
|
*
|
|
887
1019
|
* @param {*} [options] Override http request option.
|
|
@@ -958,6 +1090,15 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
958
1090
|
patientDocumentsKeyDownloadOptions: function (key, options) {
|
|
959
1091
|
return exports.DefaultApiFp(configuration).patientDocumentsKeyDownloadOptions(key, options)(axios, basePath);
|
|
960
1092
|
},
|
|
1093
|
+
/**
|
|
1094
|
+
*
|
|
1095
|
+
* @param {string} embg The EMBG of the patient
|
|
1096
|
+
* @param {*} [options] Override http request option.
|
|
1097
|
+
* @throws {RequiredError}
|
|
1098
|
+
*/
|
|
1099
|
+
patientEmbgEmbgOptions: function (embg, options) {
|
|
1100
|
+
return exports.DefaultApiFp(configuration).patientEmbgEmbgOptions(embg, options)(axios, basePath);
|
|
1101
|
+
},
|
|
961
1102
|
/**
|
|
962
1103
|
*
|
|
963
1104
|
* @param {*} [options] Override http request option.
|
|
@@ -1001,6 +1142,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
1001
1142
|
patientPetIdIdOptions: function (id, options) {
|
|
1002
1143
|
return exports.DefaultApiFp(configuration).patientPetIdIdOptions(id, options)(axios, basePath);
|
|
1003
1144
|
},
|
|
1145
|
+
/**
|
|
1146
|
+
*
|
|
1147
|
+
* @param {*} [options] Override http request option.
|
|
1148
|
+
* @throws {RequiredError}
|
|
1149
|
+
*/
|
|
1150
|
+
patientReferralExtractOptions: function (options) {
|
|
1151
|
+
return exports.DefaultApiFp(configuration).patientReferralExtractOptions(options)(axios, basePath);
|
|
1152
|
+
},
|
|
1004
1153
|
/**
|
|
1005
1154
|
*
|
|
1006
1155
|
* @param {*} [options] Override http request option.
|
|
@@ -1051,6 +1200,15 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
1051
1200
|
DefaultApi.prototype.dicomIdDownloadOptions = function (id, options) {
|
|
1052
1201
|
return exports.DefaultApiFp(this.configuration).dicomIdDownloadOptions(id, options)(this.axios, this.basePath);
|
|
1053
1202
|
};
|
|
1203
|
+
/**
|
|
1204
|
+
*
|
|
1205
|
+
* @param {*} [options] Override http request option.
|
|
1206
|
+
* @throws {RequiredError}
|
|
1207
|
+
* @memberof DefaultApi
|
|
1208
|
+
*/
|
|
1209
|
+
DefaultApi.prototype.dicomSendEmailOptions = function (options) {
|
|
1210
|
+
return exports.DefaultApiFp(this.configuration).dicomSendEmailOptions(options)(this.axios, this.basePath);
|
|
1211
|
+
};
|
|
1054
1212
|
/**
|
|
1055
1213
|
*
|
|
1056
1214
|
* @param {*} [options] Override http request option.
|
|
@@ -1136,6 +1294,16 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
1136
1294
|
DefaultApi.prototype.patientDocumentsKeyDownloadOptions = function (key, options) {
|
|
1137
1295
|
return exports.DefaultApiFp(this.configuration).patientDocumentsKeyDownloadOptions(key, options)(this.axios, this.basePath);
|
|
1138
1296
|
};
|
|
1297
|
+
/**
|
|
1298
|
+
*
|
|
1299
|
+
* @param {string} embg The EMBG of the patient
|
|
1300
|
+
* @param {*} [options] Override http request option.
|
|
1301
|
+
* @throws {RequiredError}
|
|
1302
|
+
* @memberof DefaultApi
|
|
1303
|
+
*/
|
|
1304
|
+
DefaultApi.prototype.patientEmbgEmbgOptions = function (embg, options) {
|
|
1305
|
+
return exports.DefaultApiFp(this.configuration).patientEmbgEmbgOptions(embg, options)(this.axios, this.basePath);
|
|
1306
|
+
};
|
|
1139
1307
|
/**
|
|
1140
1308
|
*
|
|
1141
1309
|
* @param {*} [options] Override http request option.
|
|
@@ -1184,6 +1352,15 @@ var DefaultApi = /** @class */ (function (_super) {
|
|
|
1184
1352
|
DefaultApi.prototype.patientPetIdIdOptions = function (id, options) {
|
|
1185
1353
|
return exports.DefaultApiFp(this.configuration).patientPetIdIdOptions(id, options)(this.axios, this.basePath);
|
|
1186
1354
|
};
|
|
1355
|
+
/**
|
|
1356
|
+
*
|
|
1357
|
+
* @param {*} [options] Override http request option.
|
|
1358
|
+
* @throws {RequiredError}
|
|
1359
|
+
* @memberof DefaultApi
|
|
1360
|
+
*/
|
|
1361
|
+
DefaultApi.prototype.patientReferralExtractOptions = function (options) {
|
|
1362
|
+
return exports.DefaultApiFp(this.configuration).patientReferralExtractOptions(options)(this.axios, this.basePath);
|
|
1363
|
+
};
|
|
1187
1364
|
/**
|
|
1188
1365
|
*
|
|
1189
1366
|
* @param {*} [options] Override http request option.
|
|
@@ -1780,6 +1957,58 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
1780
1957
|
options: localVarRequestOptions,
|
|
1781
1958
|
};
|
|
1782
1959
|
},
|
|
1960
|
+
/**
|
|
1961
|
+
* Upload a HIFRM referral form PDF and get extracted patient and examination data.
|
|
1962
|
+
* @summary Extract referral data from PDF
|
|
1963
|
+
* @param {any} file HIFRM referral form PDF
|
|
1964
|
+
* @param {*} [options] Override http request option.
|
|
1965
|
+
* @throws {RequiredError}
|
|
1966
|
+
*/
|
|
1967
|
+
extractReferralFromPdf: function (file, options) {
|
|
1968
|
+
if (options === void 0) { options = {}; }
|
|
1969
|
+
// verify required parameter 'file' is not null or undefined
|
|
1970
|
+
if (file === null || file === undefined) {
|
|
1971
|
+
throw new base_1.RequiredError('file', 'Required parameter file was null or undefined when calling extractReferralFromPdf.');
|
|
1972
|
+
}
|
|
1973
|
+
var localVarPath = "/patient/referral/extract";
|
|
1974
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
1975
|
+
var baseOptions;
|
|
1976
|
+
if (configuration) {
|
|
1977
|
+
baseOptions = configuration.baseOptions;
|
|
1978
|
+
}
|
|
1979
|
+
var localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1980
|
+
var localVarHeaderParameter = {};
|
|
1981
|
+
var localVarQueryParameter = {};
|
|
1982
|
+
var localVarFormParams = new FormData();
|
|
1983
|
+
// authentication BearerAuth required
|
|
1984
|
+
// http bearer authentication required
|
|
1985
|
+
if (configuration && configuration.accessToken) {
|
|
1986
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
1987
|
+
? configuration.accessToken()
|
|
1988
|
+
: configuration.accessToken;
|
|
1989
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
1990
|
+
}
|
|
1991
|
+
// authentication custom-authorizer required
|
|
1992
|
+
if (configuration && configuration.apiKey) {
|
|
1993
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1994
|
+
? configuration.apiKey("Authorization")
|
|
1995
|
+
: configuration.apiKey;
|
|
1996
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
1997
|
+
}
|
|
1998
|
+
if (file !== undefined) {
|
|
1999
|
+
localVarFormParams.append('file', file);
|
|
2000
|
+
}
|
|
2001
|
+
localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
|
|
2002
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
2003
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
2004
|
+
delete localVarUrlObj.search;
|
|
2005
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
2006
|
+
localVarRequestOptions.data = localVarFormParams;
|
|
2007
|
+
return {
|
|
2008
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
2009
|
+
options: localVarRequestOptions,
|
|
2010
|
+
};
|
|
2011
|
+
},
|
|
1783
2012
|
/**
|
|
1784
2013
|
* generate inceremented petId
|
|
1785
2014
|
* @summary Generate petId
|
|
@@ -2180,6 +2409,53 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
2180
2409
|
options: localVarRequestOptions,
|
|
2181
2410
|
};
|
|
2182
2411
|
},
|
|
2412
|
+
/**
|
|
2413
|
+
*
|
|
2414
|
+
* @summary Get data about patient by EMBG
|
|
2415
|
+
* @param {string} embg EMBG of the patient
|
|
2416
|
+
* @param {*} [options] Override http request option.
|
|
2417
|
+
* @throws {RequiredError}
|
|
2418
|
+
*/
|
|
2419
|
+
getPatientByEMBG: function (embg, options) {
|
|
2420
|
+
if (options === void 0) { options = {}; }
|
|
2421
|
+
// verify required parameter 'embg' is not null or undefined
|
|
2422
|
+
if (embg === null || embg === undefined) {
|
|
2423
|
+
throw new base_1.RequiredError('embg', 'Required parameter embg was null or undefined when calling getPatientByEMBG.');
|
|
2424
|
+
}
|
|
2425
|
+
var localVarPath = "/patient/embg/{embg}"
|
|
2426
|
+
.replace("{" + "embg" + "}", encodeURIComponent(String(embg)));
|
|
2427
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
2428
|
+
var baseOptions;
|
|
2429
|
+
if (configuration) {
|
|
2430
|
+
baseOptions = configuration.baseOptions;
|
|
2431
|
+
}
|
|
2432
|
+
var localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2433
|
+
var localVarHeaderParameter = {};
|
|
2434
|
+
var localVarQueryParameter = {};
|
|
2435
|
+
// authentication BearerAuth required
|
|
2436
|
+
// http bearer authentication required
|
|
2437
|
+
if (configuration && configuration.accessToken) {
|
|
2438
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
2439
|
+
? configuration.accessToken()
|
|
2440
|
+
: configuration.accessToken;
|
|
2441
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
2442
|
+
}
|
|
2443
|
+
// authentication custom-authorizer required
|
|
2444
|
+
if (configuration && configuration.apiKey) {
|
|
2445
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
2446
|
+
? configuration.apiKey("Authorization")
|
|
2447
|
+
: configuration.apiKey;
|
|
2448
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
2449
|
+
}
|
|
2450
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
2451
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
2452
|
+
delete localVarUrlObj.search;
|
|
2453
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
2454
|
+
return {
|
|
2455
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
2456
|
+
options: localVarRequestOptions,
|
|
2457
|
+
};
|
|
2458
|
+
},
|
|
2183
2459
|
/**
|
|
2184
2460
|
*
|
|
2185
2461
|
* @summary Get data about patient by patientId
|
|
@@ -2230,15 +2506,15 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
2230
2506
|
/**
|
|
2231
2507
|
* Sending email with document
|
|
2232
2508
|
* @summary Send email with patient document
|
|
2233
|
-
* @param {
|
|
2509
|
+
* @param {SendEmailWithDocumentsRequest} sendEmailWithDocumentsRequest
|
|
2234
2510
|
* @param {*} [options] Override http request option.
|
|
2235
2511
|
* @throws {RequiredError}
|
|
2236
2512
|
*/
|
|
2237
|
-
sendEmail: function (
|
|
2513
|
+
sendEmail: function (sendEmailWithDocumentsRequest, options) {
|
|
2238
2514
|
if (options === void 0) { options = {}; }
|
|
2239
|
-
// verify required parameter '
|
|
2240
|
-
if (
|
|
2241
|
-
throw new base_1.RequiredError('
|
|
2515
|
+
// verify required parameter 'sendEmailWithDocumentsRequest' is not null or undefined
|
|
2516
|
+
if (sendEmailWithDocumentsRequest === null || sendEmailWithDocumentsRequest === undefined) {
|
|
2517
|
+
throw new base_1.RequiredError('sendEmailWithDocumentsRequest', 'Required parameter sendEmailWithDocumentsRequest was null or undefined when calling sendEmail.');
|
|
2242
2518
|
}
|
|
2243
2519
|
var localVarPath = "/patient/send-email";
|
|
2244
2520
|
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
@@ -2269,8 +2545,57 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
|
|
|
2269
2545
|
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
2270
2546
|
delete localVarUrlObj.search;
|
|
2271
2547
|
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
2272
|
-
var needsSerialization = (typeof
|
|
2273
|
-
localVarRequestOptions.data = needsSerialization ? JSON.stringify(
|
|
2548
|
+
var needsSerialization = (typeof sendEmailWithDocumentsRequest !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
2549
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(sendEmailWithDocumentsRequest !== undefined ? sendEmailWithDocumentsRequest : {}) : (sendEmailWithDocumentsRequest || "");
|
|
2550
|
+
return {
|
|
2551
|
+
url: globalImportUrl.format(localVarUrlObj),
|
|
2552
|
+
options: localVarRequestOptions,
|
|
2553
|
+
};
|
|
2554
|
+
},
|
|
2555
|
+
/**
|
|
2556
|
+
* send email with link to download dicom zip
|
|
2557
|
+
* @summary Send email with generated link to download dicom
|
|
2558
|
+
* @param {SendEmailWithGeneratedLinkRequest} sendEmailWithGeneratedLinkRequest
|
|
2559
|
+
* @param {*} [options] Override http request option.
|
|
2560
|
+
* @throws {RequiredError}
|
|
2561
|
+
*/
|
|
2562
|
+
sendEmailWithGeneratedLink: function (sendEmailWithGeneratedLinkRequest, options) {
|
|
2563
|
+
if (options === void 0) { options = {}; }
|
|
2564
|
+
// verify required parameter 'sendEmailWithGeneratedLinkRequest' is not null or undefined
|
|
2565
|
+
if (sendEmailWithGeneratedLinkRequest === null || sendEmailWithGeneratedLinkRequest === undefined) {
|
|
2566
|
+
throw new base_1.RequiredError('sendEmailWithGeneratedLinkRequest', 'Required parameter sendEmailWithGeneratedLinkRequest was null or undefined when calling sendEmailWithGeneratedLink.');
|
|
2567
|
+
}
|
|
2568
|
+
var localVarPath = "/dicom/send-email";
|
|
2569
|
+
var localVarUrlObj = globalImportUrl.parse(localVarPath, true);
|
|
2570
|
+
var baseOptions;
|
|
2571
|
+
if (configuration) {
|
|
2572
|
+
baseOptions = configuration.baseOptions;
|
|
2573
|
+
}
|
|
2574
|
+
var localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2575
|
+
var localVarHeaderParameter = {};
|
|
2576
|
+
var localVarQueryParameter = {};
|
|
2577
|
+
// authentication BearerAuth required
|
|
2578
|
+
// http bearer authentication required
|
|
2579
|
+
if (configuration && configuration.accessToken) {
|
|
2580
|
+
var accessToken = typeof configuration.accessToken === 'function'
|
|
2581
|
+
? configuration.accessToken()
|
|
2582
|
+
: configuration.accessToken;
|
|
2583
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
2584
|
+
}
|
|
2585
|
+
// authentication custom-authorizer required
|
|
2586
|
+
if (configuration && configuration.apiKey) {
|
|
2587
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
2588
|
+
? configuration.apiKey("Authorization")
|
|
2589
|
+
: configuration.apiKey;
|
|
2590
|
+
localVarHeaderParameter["Authorization"] = localVarApiKeyValue;
|
|
2591
|
+
}
|
|
2592
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2593
|
+
localVarUrlObj.query = __assign(__assign(__assign({}, localVarUrlObj.query), localVarQueryParameter), options.query);
|
|
2594
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
2595
|
+
delete localVarUrlObj.search;
|
|
2596
|
+
localVarRequestOptions.headers = __assign(__assign({}, localVarHeaderParameter), options.headers);
|
|
2597
|
+
var needsSerialization = (typeof sendEmailWithGeneratedLinkRequest !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
2598
|
+
localVarRequestOptions.data = needsSerialization ? JSON.stringify(sendEmailWithGeneratedLinkRequest !== undefined ? sendEmailWithGeneratedLinkRequest : {}) : (sendEmailWithGeneratedLinkRequest || "");
|
|
2274
2599
|
return {
|
|
2275
2600
|
url: globalImportUrl.format(localVarUrlObj),
|
|
2276
2601
|
options: localVarRequestOptions,
|
|
@@ -2791,6 +3116,22 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
2791
3116
|
return axios.request(axiosRequestArgs);
|
|
2792
3117
|
};
|
|
2793
3118
|
},
|
|
3119
|
+
/**
|
|
3120
|
+
* Upload a HIFRM referral form PDF and get extracted patient and examination data.
|
|
3121
|
+
* @summary Extract referral data from PDF
|
|
3122
|
+
* @param {any} file HIFRM referral form PDF
|
|
3123
|
+
* @param {*} [options] Override http request option.
|
|
3124
|
+
* @throws {RequiredError}
|
|
3125
|
+
*/
|
|
3126
|
+
extractReferralFromPdf: function (file, options) {
|
|
3127
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).extractReferralFromPdf(file, options);
|
|
3128
|
+
return function (axios, basePath) {
|
|
3129
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
3130
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
3131
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
3132
|
+
return axios.request(axiosRequestArgs);
|
|
3133
|
+
};
|
|
3134
|
+
},
|
|
2794
3135
|
/**
|
|
2795
3136
|
* generate inceremented petId
|
|
2796
3137
|
* @summary Generate petId
|
|
@@ -2932,6 +3273,22 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
2932
3273
|
return axios.request(axiosRequestArgs);
|
|
2933
3274
|
};
|
|
2934
3275
|
},
|
|
3276
|
+
/**
|
|
3277
|
+
*
|
|
3278
|
+
* @summary Get data about patient by EMBG
|
|
3279
|
+
* @param {string} embg EMBG of the patient
|
|
3280
|
+
* @param {*} [options] Override http request option.
|
|
3281
|
+
* @throws {RequiredError}
|
|
3282
|
+
*/
|
|
3283
|
+
getPatientByEMBG: function (embg, options) {
|
|
3284
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).getPatientByEMBG(embg, options);
|
|
3285
|
+
return function (axios, basePath) {
|
|
3286
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
3287
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
3288
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
3289
|
+
return axios.request(axiosRequestArgs);
|
|
3290
|
+
};
|
|
3291
|
+
},
|
|
2935
3292
|
/**
|
|
2936
3293
|
*
|
|
2937
3294
|
* @summary Get data about patient by patientId
|
|
@@ -2951,12 +3308,28 @@ exports.MsPetApiFp = function (configuration) {
|
|
|
2951
3308
|
/**
|
|
2952
3309
|
* Sending email with document
|
|
2953
3310
|
* @summary Send email with patient document
|
|
2954
|
-
* @param {
|
|
3311
|
+
* @param {SendEmailWithDocumentsRequest} sendEmailWithDocumentsRequest
|
|
2955
3312
|
* @param {*} [options] Override http request option.
|
|
2956
3313
|
* @throws {RequiredError}
|
|
2957
3314
|
*/
|
|
2958
|
-
sendEmail: function (
|
|
2959
|
-
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).sendEmail(
|
|
3315
|
+
sendEmail: function (sendEmailWithDocumentsRequest, options) {
|
|
3316
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).sendEmail(sendEmailWithDocumentsRequest, options);
|
|
3317
|
+
return function (axios, basePath) {
|
|
3318
|
+
if (axios === void 0) { axios = axios_1.default; }
|
|
3319
|
+
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
3320
|
+
var axiosRequestArgs = __assign(__assign({}, localVarAxiosArgs.options), { url: basePath + localVarAxiosArgs.url });
|
|
3321
|
+
return axios.request(axiosRequestArgs);
|
|
3322
|
+
};
|
|
3323
|
+
},
|
|
3324
|
+
/**
|
|
3325
|
+
* send email with link to download dicom zip
|
|
3326
|
+
* @summary Send email with generated link to download dicom
|
|
3327
|
+
* @param {SendEmailWithGeneratedLinkRequest} sendEmailWithGeneratedLinkRequest
|
|
3328
|
+
* @param {*} [options] Override http request option.
|
|
3329
|
+
* @throws {RequiredError}
|
|
3330
|
+
*/
|
|
3331
|
+
sendEmailWithGeneratedLink: function (sendEmailWithGeneratedLinkRequest, options) {
|
|
3332
|
+
var localVarAxiosArgs = exports.MsPetApiAxiosParamCreator(configuration).sendEmailWithGeneratedLink(sendEmailWithGeneratedLinkRequest, options);
|
|
2960
3333
|
return function (axios, basePath) {
|
|
2961
3334
|
if (axios === void 0) { axios = axios_1.default; }
|
|
2962
3335
|
if (basePath === void 0) { basePath = base_1.BASE_PATH; }
|
|
@@ -3195,6 +3568,16 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
3195
3568
|
downloadStudy: function (id, options) {
|
|
3196
3569
|
return exports.MsPetApiFp(configuration).downloadStudy(id, options)(axios, basePath);
|
|
3197
3570
|
},
|
|
3571
|
+
/**
|
|
3572
|
+
* Upload a HIFRM referral form PDF and get extracted patient and examination data.
|
|
3573
|
+
* @summary Extract referral data from PDF
|
|
3574
|
+
* @param {any} file HIFRM referral form PDF
|
|
3575
|
+
* @param {*} [options] Override http request option.
|
|
3576
|
+
* @throws {RequiredError}
|
|
3577
|
+
*/
|
|
3578
|
+
extractReferralFromPdf: function (file, options) {
|
|
3579
|
+
return exports.MsPetApiFp(configuration).extractReferralFromPdf(file, options)(axios, basePath);
|
|
3580
|
+
},
|
|
3198
3581
|
/**
|
|
3199
3582
|
* generate inceremented petId
|
|
3200
3583
|
* @summary Generate petId
|
|
@@ -3282,6 +3665,16 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
3282
3665
|
getPatient: function (id, options) {
|
|
3283
3666
|
return exports.MsPetApiFp(configuration).getPatient(id, options)(axios, basePath);
|
|
3284
3667
|
},
|
|
3668
|
+
/**
|
|
3669
|
+
*
|
|
3670
|
+
* @summary Get data about patient by EMBG
|
|
3671
|
+
* @param {string} embg EMBG of the patient
|
|
3672
|
+
* @param {*} [options] Override http request option.
|
|
3673
|
+
* @throws {RequiredError}
|
|
3674
|
+
*/
|
|
3675
|
+
getPatientByEMBG: function (embg, options) {
|
|
3676
|
+
return exports.MsPetApiFp(configuration).getPatientByEMBG(embg, options)(axios, basePath);
|
|
3677
|
+
},
|
|
3285
3678
|
/**
|
|
3286
3679
|
*
|
|
3287
3680
|
* @summary Get data about patient by patientId
|
|
@@ -3295,12 +3688,22 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
|
|
|
3295
3688
|
/**
|
|
3296
3689
|
* Sending email with document
|
|
3297
3690
|
* @summary Send email with patient document
|
|
3298
|
-
* @param {
|
|
3691
|
+
* @param {SendEmailWithDocumentsRequest} sendEmailWithDocumentsRequest
|
|
3299
3692
|
* @param {*} [options] Override http request option.
|
|
3300
3693
|
* @throws {RequiredError}
|
|
3301
3694
|
*/
|
|
3302
|
-
sendEmail: function (
|
|
3303
|
-
return exports.MsPetApiFp(configuration).sendEmail(
|
|
3695
|
+
sendEmail: function (sendEmailWithDocumentsRequest, options) {
|
|
3696
|
+
return exports.MsPetApiFp(configuration).sendEmail(sendEmailWithDocumentsRequest, options)(axios, basePath);
|
|
3697
|
+
},
|
|
3698
|
+
/**
|
|
3699
|
+
* send email with link to download dicom zip
|
|
3700
|
+
* @summary Send email with generated link to download dicom
|
|
3701
|
+
* @param {SendEmailWithGeneratedLinkRequest} sendEmailWithGeneratedLinkRequest
|
|
3702
|
+
* @param {*} [options] Override http request option.
|
|
3703
|
+
* @throws {RequiredError}
|
|
3704
|
+
*/
|
|
3705
|
+
sendEmailWithGeneratedLink: function (sendEmailWithGeneratedLinkRequest, options) {
|
|
3706
|
+
return exports.MsPetApiFp(configuration).sendEmailWithGeneratedLink(sendEmailWithGeneratedLinkRequest, options)(axios, basePath);
|
|
3304
3707
|
},
|
|
3305
3708
|
/**
|
|
3306
3709
|
* Change type of a document
|
|
@@ -3514,6 +3917,17 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
3514
3917
|
MsPetApi.prototype.downloadStudy = function (id, options) {
|
|
3515
3918
|
return exports.MsPetApiFp(this.configuration).downloadStudy(id, options)(this.axios, this.basePath);
|
|
3516
3919
|
};
|
|
3920
|
+
/**
|
|
3921
|
+
* Upload a HIFRM referral form PDF and get extracted patient and examination data.
|
|
3922
|
+
* @summary Extract referral data from PDF
|
|
3923
|
+
* @param {any} file HIFRM referral form PDF
|
|
3924
|
+
* @param {*} [options] Override http request option.
|
|
3925
|
+
* @throws {RequiredError}
|
|
3926
|
+
* @memberof MsPetApi
|
|
3927
|
+
*/
|
|
3928
|
+
MsPetApi.prototype.extractReferralFromPdf = function (file, options) {
|
|
3929
|
+
return exports.MsPetApiFp(this.configuration).extractReferralFromPdf(file, options)(this.axios, this.basePath);
|
|
3930
|
+
};
|
|
3517
3931
|
/**
|
|
3518
3932
|
* generate inceremented petId
|
|
3519
3933
|
* @summary Generate petId
|
|
@@ -3610,6 +4024,17 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
3610
4024
|
MsPetApi.prototype.getPatient = function (id, options) {
|
|
3611
4025
|
return exports.MsPetApiFp(this.configuration).getPatient(id, options)(this.axios, this.basePath);
|
|
3612
4026
|
};
|
|
4027
|
+
/**
|
|
4028
|
+
*
|
|
4029
|
+
* @summary Get data about patient by EMBG
|
|
4030
|
+
* @param {string} embg EMBG of the patient
|
|
4031
|
+
* @param {*} [options] Override http request option.
|
|
4032
|
+
* @throws {RequiredError}
|
|
4033
|
+
* @memberof MsPetApi
|
|
4034
|
+
*/
|
|
4035
|
+
MsPetApi.prototype.getPatientByEMBG = function (embg, options) {
|
|
4036
|
+
return exports.MsPetApiFp(this.configuration).getPatientByEMBG(embg, options)(this.axios, this.basePath);
|
|
4037
|
+
};
|
|
3613
4038
|
/**
|
|
3614
4039
|
*
|
|
3615
4040
|
* @summary Get data about patient by patientId
|
|
@@ -3624,13 +4049,24 @@ var MsPetApi = /** @class */ (function (_super) {
|
|
|
3624
4049
|
/**
|
|
3625
4050
|
* Sending email with document
|
|
3626
4051
|
* @summary Send email with patient document
|
|
3627
|
-
* @param {
|
|
4052
|
+
* @param {SendEmailWithDocumentsRequest} sendEmailWithDocumentsRequest
|
|
4053
|
+
* @param {*} [options] Override http request option.
|
|
4054
|
+
* @throws {RequiredError}
|
|
4055
|
+
* @memberof MsPetApi
|
|
4056
|
+
*/
|
|
4057
|
+
MsPetApi.prototype.sendEmail = function (sendEmailWithDocumentsRequest, options) {
|
|
4058
|
+
return exports.MsPetApiFp(this.configuration).sendEmail(sendEmailWithDocumentsRequest, options)(this.axios, this.basePath);
|
|
4059
|
+
};
|
|
4060
|
+
/**
|
|
4061
|
+
* send email with link to download dicom zip
|
|
4062
|
+
* @summary Send email with generated link to download dicom
|
|
4063
|
+
* @param {SendEmailWithGeneratedLinkRequest} sendEmailWithGeneratedLinkRequest
|
|
3628
4064
|
* @param {*} [options] Override http request option.
|
|
3629
4065
|
* @throws {RequiredError}
|
|
3630
4066
|
* @memberof MsPetApi
|
|
3631
4067
|
*/
|
|
3632
|
-
MsPetApi.prototype.
|
|
3633
|
-
return exports.MsPetApiFp(this.configuration).
|
|
4068
|
+
MsPetApi.prototype.sendEmailWithGeneratedLink = function (sendEmailWithGeneratedLinkRequest, options) {
|
|
4069
|
+
return exports.MsPetApiFp(this.configuration).sendEmailWithGeneratedLink(sendEmailWithGeneratedLinkRequest, options)(this.axios, this.basePath);
|
|
3634
4070
|
};
|
|
3635
4071
|
/**
|
|
3636
4072
|
* Change type of a document
|