pet-backend-sdk 1.7.0 → 1.12.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.js CHANGED
@@ -436,6 +436,37 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
436
436
  options: localVarRequestOptions,
437
437
  };
438
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
+ },
439
470
  /**
440
471
  *
441
472
  * @param {*} [options] Override http request option.
@@ -579,6 +610,31 @@ exports.DefaultApiAxiosParamCreator = function (configuration) {
579
610
  options: localVarRequestOptions,
580
611
  };
581
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
+ },
582
638
  /**
583
639
  *
584
640
  * @param {*} [options] Override http request option.
@@ -800,6 +856,21 @@ exports.DefaultApiFp = function (configuration) {
800
856
  return axios.request(axiosRequestArgs);
801
857
  };
802
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
+ },
803
874
  /**
804
875
  *
805
876
  * @param {*} [options] Override http request option.
@@ -873,6 +944,20 @@ exports.DefaultApiFp = function (configuration) {
873
944
  return axios.request(axiosRequestArgs);
874
945
  };
875
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
+ },
876
961
  /**
877
962
  *
878
963
  * @param {*} [options] Override http request option.
@@ -1005,6 +1090,15 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
1005
1090
  patientDocumentsKeyDownloadOptions: function (key, options) {
1006
1091
  return exports.DefaultApiFp(configuration).patientDocumentsKeyDownloadOptions(key, options)(axios, basePath);
1007
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
+ },
1008
1102
  /**
1009
1103
  *
1010
1104
  * @param {*} [options] Override http request option.
@@ -1048,6 +1142,14 @@ exports.DefaultApiFactory = function (configuration, basePath, axios) {
1048
1142
  patientPetIdIdOptions: function (id, options) {
1049
1143
  return exports.DefaultApiFp(configuration).patientPetIdIdOptions(id, options)(axios, basePath);
1050
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
+ },
1051
1153
  /**
1052
1154
  *
1053
1155
  * @param {*} [options] Override http request option.
@@ -1192,6 +1294,16 @@ var DefaultApi = /** @class */ (function (_super) {
1192
1294
  DefaultApi.prototype.patientDocumentsKeyDownloadOptions = function (key, options) {
1193
1295
  return exports.DefaultApiFp(this.configuration).patientDocumentsKeyDownloadOptions(key, options)(this.axios, this.basePath);
1194
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
+ };
1195
1307
  /**
1196
1308
  *
1197
1309
  * @param {*} [options] Override http request option.
@@ -1240,6 +1352,15 @@ var DefaultApi = /** @class */ (function (_super) {
1240
1352
  DefaultApi.prototype.patientPetIdIdOptions = function (id, options) {
1241
1353
  return exports.DefaultApiFp(this.configuration).patientPetIdIdOptions(id, options)(this.axios, this.basePath);
1242
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
+ };
1243
1364
  /**
1244
1365
  *
1245
1366
  * @param {*} [options] Override http request option.
@@ -1836,6 +1957,58 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
1836
1957
  options: localVarRequestOptions,
1837
1958
  };
1838
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
+ },
1839
2012
  /**
1840
2013
  * generate inceremented petId
1841
2014
  * @summary Generate petId
@@ -2236,6 +2409,53 @@ exports.MsPetApiAxiosParamCreator = function (configuration) {
2236
2409
  options: localVarRequestOptions,
2237
2410
  };
2238
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
+ },
2239
2459
  /**
2240
2460
  *
2241
2461
  * @summary Get data about patient by patientId
@@ -2896,6 +3116,22 @@ exports.MsPetApiFp = function (configuration) {
2896
3116
  return axios.request(axiosRequestArgs);
2897
3117
  };
2898
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
+ },
2899
3135
  /**
2900
3136
  * generate inceremented petId
2901
3137
  * @summary Generate petId
@@ -3037,6 +3273,22 @@ exports.MsPetApiFp = function (configuration) {
3037
3273
  return axios.request(axiosRequestArgs);
3038
3274
  };
3039
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
+ },
3040
3292
  /**
3041
3293
  *
3042
3294
  * @summary Get data about patient by patientId
@@ -3316,6 +3568,16 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
3316
3568
  downloadStudy: function (id, options) {
3317
3569
  return exports.MsPetApiFp(configuration).downloadStudy(id, options)(axios, basePath);
3318
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
+ },
3319
3581
  /**
3320
3582
  * generate inceremented petId
3321
3583
  * @summary Generate petId
@@ -3403,6 +3665,16 @@ exports.MsPetApiFactory = function (configuration, basePath, axios) {
3403
3665
  getPatient: function (id, options) {
3404
3666
  return exports.MsPetApiFp(configuration).getPatient(id, options)(axios, basePath);
3405
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
+ },
3406
3678
  /**
3407
3679
  *
3408
3680
  * @summary Get data about patient by patientId
@@ -3645,6 +3917,17 @@ var MsPetApi = /** @class */ (function (_super) {
3645
3917
  MsPetApi.prototype.downloadStudy = function (id, options) {
3646
3918
  return exports.MsPetApiFp(this.configuration).downloadStudy(id, options)(this.axios, this.basePath);
3647
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
+ };
3648
3931
  /**
3649
3932
  * generate inceremented petId
3650
3933
  * @summary Generate petId
@@ -3741,6 +4024,17 @@ var MsPetApi = /** @class */ (function (_super) {
3741
4024
  MsPetApi.prototype.getPatient = function (id, options) {
3742
4025
  return exports.MsPetApiFp(this.configuration).getPatient(id, options)(this.axios, this.basePath);
3743
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
+ };
3744
4038
  /**
3745
4039
  *
3746
4040
  * @summary Get data about patient by patientId