ch-api-client-typescript2 5.23.2 → 5.23.10
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/lib/api/deals-api.d.ts +4 -4
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.d.ts +4 -4
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.d.ts +10 -75
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +0 -96
- package/lib/api/prescriptions-api.d.ts +198 -0
- package/lib/api/prescriptions-api.d.ts.map +1 -0
- package/lib/api/prescriptions-api.js +346 -0
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/{appointment-timetables-model.d.ts → get-appointment-timetables-response-model.d.ts} +7 -7
- package/lib/models/get-appointment-timetables-response-model.d.ts.map +1 -0
- package/lib/models/index.d.ts +7 -2
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +7 -2
- package/lib/models/prescription-diagnosis-model.d.ts +37 -0
- package/lib/models/prescription-diagnosis-model.d.ts.map +1 -0
- package/lib/models/prescription-item-model.d.ts +151 -0
- package/lib/models/prescription-item-model.d.ts.map +1 -0
- package/lib/models/prescription-item-model.js +15 -0
- package/lib/models/prescription-medication-model.d.ts +79 -0
- package/lib/models/prescription-medication-model.d.ts.map +1 -0
- package/lib/models/prescription-medication-model.js +15 -0
- package/lib/models/prescription-model.d.ts +172 -0
- package/lib/models/prescription-model.d.ts.map +1 -0
- package/lib/models/prescription-model.js +15 -0
- package/lib/models/{create-landing-form-command.d.ts → prescription-symptom-model.d.ts} +14 -20
- package/lib/models/prescription-symptom-model.d.ts.map +1 -0
- package/lib/models/prescription-symptom-model.js +15 -0
- package/lib/models/prescriptions-model.d.ts +33 -0
- package/lib/models/prescriptions-model.d.ts.map +1 -0
- package/lib/models/prescriptions-model.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +8 -2
- package/src/api/deals-api.ts +4 -4
- package/src/api/doctor-affiliations-api.ts +4 -4
- package/src/api/hospitals-api.ts +8 -121
- package/src/api/prescriptions-api.ts +333 -0
- package/src/api.ts +1 -0
- package/src/models/{appointment-timetables-model.ts → get-appointment-timetables-response-model.ts} +6 -6
- package/src/models/index.ts +7 -2
- package/src/models/prescription-diagnosis-model.ts +42 -0
- package/src/models/prescription-item-model.ts +156 -0
- package/src/models/prescription-medication-model.ts +84 -0
- package/src/models/prescription-model.ts +183 -0
- package/src/models/{create-landing-form-command.ts → prescription-symptom-model.ts} +13 -19
- package/src/models/prescriptions-model.ts +42 -0
- package/lib/models/appointment-timetables-model.d.ts.map +0 -1
- package/lib/models/create-landing-form-command.d.ts.map +0 -1
- /package/lib/models/{appointment-timetables-model.js → get-appointment-timetables-response-model.js} +0 -0
- /package/lib/models/{create-landing-form-command.js → prescription-diagnosis-model.js} +0 -0
package/lib/api/hospitals-api.js
CHANGED
|
@@ -1347,56 +1347,6 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
1347
1347
|
});
|
|
1348
1348
|
});
|
|
1349
1349
|
},
|
|
1350
|
-
/**
|
|
1351
|
-
*
|
|
1352
|
-
* @summary Create form data from landing page
|
|
1353
|
-
* @param {string} hospitalId
|
|
1354
|
-
* @param {string} landingId
|
|
1355
|
-
* @param {CreateLandingFormCommand} [createLandingFormCommand]
|
|
1356
|
-
* @param {*} [options] Override http request option.
|
|
1357
|
-
* @throws {RequiredError}
|
|
1358
|
-
*/
|
|
1359
|
-
apiV2HospitalsHospitalIdLandingsLandingIdFormsPost: function (hospitalId, landingId, createLandingFormCommand, options) {
|
|
1360
|
-
if (options === void 0) { options = {}; }
|
|
1361
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
1362
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1363
|
-
return __generator(this, function (_a) {
|
|
1364
|
-
switch (_a.label) {
|
|
1365
|
-
case 0:
|
|
1366
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
1367
|
-
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdLandingsLandingIdFormsPost', 'hospitalId', hospitalId);
|
|
1368
|
-
// verify required parameter 'landingId' is not null or undefined
|
|
1369
|
-
(0, common_1.assertParamExists)('apiV2HospitalsHospitalIdLandingsLandingIdFormsPost', 'landingId', landingId);
|
|
1370
|
-
localVarPath = "/api/v2/hospitals/{hospitalId}/landings/{landingId}/forms"
|
|
1371
|
-
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
1372
|
-
.replace("{".concat("landingId", "}"), encodeURIComponent(String(landingId)));
|
|
1373
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1374
|
-
if (configuration) {
|
|
1375
|
-
baseOptions = configuration.baseOptions;
|
|
1376
|
-
}
|
|
1377
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1378
|
-
localVarHeaderParameter = {};
|
|
1379
|
-
localVarQueryParameter = {};
|
|
1380
|
-
// authentication oauth2 required
|
|
1381
|
-
// oauth required
|
|
1382
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
1383
|
-
case 1:
|
|
1384
|
-
// authentication oauth2 required
|
|
1385
|
-
// oauth required
|
|
1386
|
-
_a.sent();
|
|
1387
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1388
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1389
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1390
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1391
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createLandingFormCommand, localVarRequestOptions, configuration);
|
|
1392
|
-
return [2 /*return*/, {
|
|
1393
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1394
|
-
options: localVarRequestOptions,
|
|
1395
|
-
}];
|
|
1396
|
-
}
|
|
1397
|
-
});
|
|
1398
|
-
});
|
|
1399
|
-
},
|
|
1400
1350
|
/**
|
|
1401
1351
|
*
|
|
1402
1352
|
* @summary Get landing by id
|
|
@@ -3786,28 +3736,6 @@ var HospitalsApiFp = function (configuration) {
|
|
|
3786
3736
|
});
|
|
3787
3737
|
});
|
|
3788
3738
|
},
|
|
3789
|
-
/**
|
|
3790
|
-
*
|
|
3791
|
-
* @summary Create form data from landing page
|
|
3792
|
-
* @param {string} hospitalId
|
|
3793
|
-
* @param {string} landingId
|
|
3794
|
-
* @param {CreateLandingFormCommand} [createLandingFormCommand]
|
|
3795
|
-
* @param {*} [options] Override http request option.
|
|
3796
|
-
* @throws {RequiredError}
|
|
3797
|
-
*/
|
|
3798
|
-
apiV2HospitalsHospitalIdLandingsLandingIdFormsPost: function (hospitalId, landingId, createLandingFormCommand, options) {
|
|
3799
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3800
|
-
var localVarAxiosArgs;
|
|
3801
|
-
return __generator(this, function (_a) {
|
|
3802
|
-
switch (_a.label) {
|
|
3803
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2HospitalsHospitalIdLandingsLandingIdFormsPost(hospitalId, landingId, createLandingFormCommand, options)];
|
|
3804
|
-
case 1:
|
|
3805
|
-
localVarAxiosArgs = _a.sent();
|
|
3806
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
3807
|
-
}
|
|
3808
|
-
});
|
|
3809
|
-
});
|
|
3810
|
-
},
|
|
3811
3739
|
/**
|
|
3812
3740
|
*
|
|
3813
3741
|
* @summary Get landing by id
|
|
@@ -4973,18 +4901,6 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
4973
4901
|
apiV2HospitalsHospitalIdLandingsGet: function (hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
4974
4902
|
return localVarFp.apiV2HospitalsHospitalIdLandingsGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
4975
4903
|
},
|
|
4976
|
-
/**
|
|
4977
|
-
*
|
|
4978
|
-
* @summary Create form data from landing page
|
|
4979
|
-
* @param {string} hospitalId
|
|
4980
|
-
* @param {string} landingId
|
|
4981
|
-
* @param {CreateLandingFormCommand} [createLandingFormCommand]
|
|
4982
|
-
* @param {*} [options] Override http request option.
|
|
4983
|
-
* @throws {RequiredError}
|
|
4984
|
-
*/
|
|
4985
|
-
apiV2HospitalsHospitalIdLandingsLandingIdFormsPost: function (hospitalId, landingId, createLandingFormCommand, options) {
|
|
4986
|
-
return localVarFp.apiV2HospitalsHospitalIdLandingsLandingIdFormsPost(hospitalId, landingId, createLandingFormCommand, options).then(function (request) { return request(axios, basePath); });
|
|
4987
|
-
},
|
|
4988
4904
|
/**
|
|
4989
4905
|
*
|
|
4990
4906
|
* @summary Get landing by id
|
|
@@ -5776,18 +5692,6 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
5776
5692
|
var _this = this;
|
|
5777
5693
|
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdLandingsGet(requestParameters.hospitalId, requestParameters.name, requestParameters.slug, requestParameters.languageCode, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5778
5694
|
};
|
|
5779
|
-
/**
|
|
5780
|
-
*
|
|
5781
|
-
* @summary Create form data from landing page
|
|
5782
|
-
* @param {HospitalsApiApiV2HospitalsHospitalIdLandingsLandingIdFormsPostRequest} requestParameters Request parameters.
|
|
5783
|
-
* @param {*} [options] Override http request option.
|
|
5784
|
-
* @throws {RequiredError}
|
|
5785
|
-
* @memberof HospitalsApi
|
|
5786
|
-
*/
|
|
5787
|
-
HospitalsApi.prototype.apiV2HospitalsHospitalIdLandingsLandingIdFormsPost = function (requestParameters, options) {
|
|
5788
|
-
var _this = this;
|
|
5789
|
-
return (0, exports.HospitalsApiFp)(this.configuration).apiV2HospitalsHospitalIdLandingsLandingIdFormsPost(requestParameters.hospitalId, requestParameters.landingId, requestParameters.createLandingFormCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5790
|
-
};
|
|
5791
5695
|
/**
|
|
5792
5696
|
*
|
|
5793
5697
|
* @summary Get landing by id
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Swagger UI - Cloud Hospital Api-INT
|
|
3
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2
|
|
6
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { PrescriptionModel } from '../models';
|
|
16
|
+
import { PrescriptionsModel } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* PrescriptionsApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const PrescriptionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @summary Get prescriptions of current user.
|
|
25
|
+
* @param {string} [languageCode]
|
|
26
|
+
* @param {string} [hospitalId]
|
|
27
|
+
* @param {string} [doctorId]
|
|
28
|
+
* @param {string} [doctorAffiliationId]
|
|
29
|
+
* @param {number} [page]
|
|
30
|
+
* @param {number} [limit]
|
|
31
|
+
* @param {Date} [lastRetrieved]
|
|
32
|
+
* @param {*} [options] Override http request option.
|
|
33
|
+
* @throws {RequiredError}
|
|
34
|
+
*/
|
|
35
|
+
apiV2PrescriptionsGet: (languageCode?: string, hospitalId?: string, doctorId?: string, doctorAffiliationId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @summary Get prescription of current user by id.
|
|
39
|
+
* @param {string} id
|
|
40
|
+
* @param {string} [languageCode]
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
apiV2PrescriptionsIdGet: (id: string, languageCode?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* PrescriptionsApi - functional programming interface
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const PrescriptionsApiFp: (configuration?: Configuration) => {
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @summary Get prescriptions of current user.
|
|
54
|
+
* @param {string} [languageCode]
|
|
55
|
+
* @param {string} [hospitalId]
|
|
56
|
+
* @param {string} [doctorId]
|
|
57
|
+
* @param {string} [doctorAffiliationId]
|
|
58
|
+
* @param {number} [page]
|
|
59
|
+
* @param {number} [limit]
|
|
60
|
+
* @param {Date} [lastRetrieved]
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
apiV2PrescriptionsGet(languageCode?: string, hospitalId?: string, doctorId?: string, doctorAffiliationId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrescriptionsModel>>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Get prescription of current user by id.
|
|
68
|
+
* @param {string} id
|
|
69
|
+
* @param {string} [languageCode]
|
|
70
|
+
* @param {*} [options] Override http request option.
|
|
71
|
+
* @throws {RequiredError}
|
|
72
|
+
*/
|
|
73
|
+
apiV2PrescriptionsIdGet(id: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrescriptionModel>>;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* PrescriptionsApi - factory interface
|
|
77
|
+
* @export
|
|
78
|
+
*/
|
|
79
|
+
export declare const PrescriptionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @summary Get prescriptions of current user.
|
|
83
|
+
* @param {string} [languageCode]
|
|
84
|
+
* @param {string} [hospitalId]
|
|
85
|
+
* @param {string} [doctorId]
|
|
86
|
+
* @param {string} [doctorAffiliationId]
|
|
87
|
+
* @param {number} [page]
|
|
88
|
+
* @param {number} [limit]
|
|
89
|
+
* @param {Date} [lastRetrieved]
|
|
90
|
+
* @param {*} [options] Override http request option.
|
|
91
|
+
* @throws {RequiredError}
|
|
92
|
+
*/
|
|
93
|
+
apiV2PrescriptionsGet(languageCode?: string, hospitalId?: string, doctorId?: string, doctorAffiliationId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PrescriptionsModel>;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @summary Get prescription of current user by id.
|
|
97
|
+
* @param {string} id
|
|
98
|
+
* @param {string} [languageCode]
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
apiV2PrescriptionsIdGet(id: string, languageCode?: string, options?: any): AxiosPromise<PrescriptionModel>;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* Request parameters for apiV2PrescriptionsGet operation in PrescriptionsApi.
|
|
106
|
+
* @export
|
|
107
|
+
* @interface PrescriptionsApiApiV2PrescriptionsGetRequest
|
|
108
|
+
*/
|
|
109
|
+
export interface PrescriptionsApiApiV2PrescriptionsGetRequest {
|
|
110
|
+
/**
|
|
111
|
+
*
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof PrescriptionsApiApiV2PrescriptionsGet
|
|
114
|
+
*/
|
|
115
|
+
readonly languageCode?: string;
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof PrescriptionsApiApiV2PrescriptionsGet
|
|
120
|
+
*/
|
|
121
|
+
readonly hospitalId?: string;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof PrescriptionsApiApiV2PrescriptionsGet
|
|
126
|
+
*/
|
|
127
|
+
readonly doctorId?: string;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof PrescriptionsApiApiV2PrescriptionsGet
|
|
132
|
+
*/
|
|
133
|
+
readonly doctorAffiliationId?: string;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
* @type {number}
|
|
137
|
+
* @memberof PrescriptionsApiApiV2PrescriptionsGet
|
|
138
|
+
*/
|
|
139
|
+
readonly page?: number;
|
|
140
|
+
/**
|
|
141
|
+
*
|
|
142
|
+
* @type {number}
|
|
143
|
+
* @memberof PrescriptionsApiApiV2PrescriptionsGet
|
|
144
|
+
*/
|
|
145
|
+
readonly limit?: number;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
* @type {Date}
|
|
149
|
+
* @memberof PrescriptionsApiApiV2PrescriptionsGet
|
|
150
|
+
*/
|
|
151
|
+
readonly lastRetrieved?: Date;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* Request parameters for apiV2PrescriptionsIdGet operation in PrescriptionsApi.
|
|
155
|
+
* @export
|
|
156
|
+
* @interface PrescriptionsApiApiV2PrescriptionsIdGetRequest
|
|
157
|
+
*/
|
|
158
|
+
export interface PrescriptionsApiApiV2PrescriptionsIdGetRequest {
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {string}
|
|
162
|
+
* @memberof PrescriptionsApiApiV2PrescriptionsIdGet
|
|
163
|
+
*/
|
|
164
|
+
readonly id: string;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {string}
|
|
168
|
+
* @memberof PrescriptionsApiApiV2PrescriptionsIdGet
|
|
169
|
+
*/
|
|
170
|
+
readonly languageCode?: string;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* PrescriptionsApi - object-oriented interface
|
|
174
|
+
* @export
|
|
175
|
+
* @class PrescriptionsApi
|
|
176
|
+
* @extends {BaseAPI}
|
|
177
|
+
*/
|
|
178
|
+
export declare class PrescriptionsApi extends BaseAPI {
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @summary Get prescriptions of current user.
|
|
182
|
+
* @param {PrescriptionsApiApiV2PrescriptionsGetRequest} requestParameters Request parameters.
|
|
183
|
+
* @param {*} [options] Override http request option.
|
|
184
|
+
* @throws {RequiredError}
|
|
185
|
+
* @memberof PrescriptionsApi
|
|
186
|
+
*/
|
|
187
|
+
apiV2PrescriptionsGet(requestParameters?: PrescriptionsApiApiV2PrescriptionsGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PrescriptionsModel, any>>;
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @summary Get prescription of current user by id.
|
|
191
|
+
* @param {PrescriptionsApiApiV2PrescriptionsIdGetRequest} requestParameters Request parameters.
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
* @memberof PrescriptionsApi
|
|
195
|
+
*/
|
|
196
|
+
apiV2PrescriptionsIdGet(requestParameters: PrescriptionsApiApiV2PrescriptionsIdGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PrescriptionModel, any>>;
|
|
197
|
+
}
|
|
198
|
+
//# sourceMappingURL=prescriptions-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prescriptions-api.d.ts","sourceRoot":"","sources":["../../src/api/prescriptions-api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAKjD,OAAO,EAAiC,WAAW,EAAE,OAAO,EAAiB,MAAM,SAAS,CAAC;AAE7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C;;;GAGG;AACH,eAAO,MAAM,iCAAiC,mBAA6B,aAAa;IAEhF;;;;;;;;;;;;OAYG;2CAC0C,MAAM,eAAe,MAAM,aAAa,MAAM,wBAAwB,MAAM,SAAS,MAAM,UAAU,MAAM,kBAAkB,IAAI,YAAW,kBAAkB,KAAQ,QAAQ,WAAW,CAAC;IA0DvO;;;;;;;OAOG;kCACiC,MAAM,iBAAiB,MAAM,YAAW,kBAAkB,KAAQ,QAAQ,WAAW,CAAC;CAoCjI,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,mBAA4B,aAAa;IAGhE;;;;;;;;;;;;OAYG;yCACwC,MAAM,eAAe,MAAM,aAAa,MAAM,wBAAwB,MAAM,SAAS,MAAM,UAAU,MAAM,kBAAkB,IAAI,YAAY,kBAAkB,oBAAoB,aAAa,aAAa,MAAM,KAAK,aAAa,kBAAkB,CAAC;IAInS;;;;;;;OAOG;gCAC+B,MAAM,iBAAiB,MAAM,YAAY,kBAAkB,oBAAoB,aAAa,aAAa,MAAM,KAAK,aAAa,iBAAiB,CAAC;CAK5L,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,mBAA6B,aAAa,aAAa,MAAM,UAAU,aAAa;IAGhH;;;;;;;;;;;;OAYG;yCACkC,MAAM,eAAe,MAAM,aAAa,MAAM,wBAAwB,MAAM,SAAS,MAAM,UAAU,MAAM,kBAAkB,IAAI,YAAY,GAAG,GAAG,aAAa,kBAAkB,CAAC;IAGxN;;;;;;;OAOG;gCACyB,MAAM,iBAAiB,MAAM,YAAY,GAAG,GAAG,aAAa,iBAAiB,CAAC;CAIjH,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,4CAA4C;IACzD;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;IAE9B;;;;OAIG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;IAE1B;;;;OAIG;IACH,QAAQ,CAAC,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAErC;;;;OAIG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IAEtB;;;;OAIG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,CAAA;CAChC;AAED;;;;GAIG;AACH,MAAM,WAAW,8CAA8C;IAC3D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAA;CACjC;AAED;;;;;GAKG;AACH,qBAAa,gBAAiB,SAAQ,OAAO;IACzC;;;;;;;OAOG;IACI,qBAAqB,CAAC,iBAAiB,GAAE,4CAAiD,EAAE,OAAO,CAAC,EAAE,kBAAkB;IAI/H;;;;;;;OAOG;IACI,uBAAuB,CAAC,iBAAiB,EAAE,8CAA8C,EAAE,OAAO,CAAC,EAAE,kBAAkB;CAGjI"}
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger UI - Cloud Hospital Api-INT
|
|
6
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2
|
|
9
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.PrescriptionsApi = exports.PrescriptionsApiFactory = exports.PrescriptionsApiFp = exports.PrescriptionsApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
/**
|
|
89
|
+
* PrescriptionsApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var PrescriptionsApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @summary Get prescriptions of current user.
|
|
98
|
+
* @param {string} [languageCode]
|
|
99
|
+
* @param {string} [hospitalId]
|
|
100
|
+
* @param {string} [doctorId]
|
|
101
|
+
* @param {string} [doctorAffiliationId]
|
|
102
|
+
* @param {number} [page]
|
|
103
|
+
* @param {number} [limit]
|
|
104
|
+
* @param {Date} [lastRetrieved]
|
|
105
|
+
* @param {*} [options] Override http request option.
|
|
106
|
+
* @throws {RequiredError}
|
|
107
|
+
*/
|
|
108
|
+
apiV2PrescriptionsGet: function (languageCode, hospitalId, doctorId, doctorAffiliationId, page, limit, lastRetrieved, options) {
|
|
109
|
+
if (options === void 0) { options = {}; }
|
|
110
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
|
+
return __generator(this, function (_a) {
|
|
113
|
+
switch (_a.label) {
|
|
114
|
+
case 0:
|
|
115
|
+
localVarPath = "/api/v2/prescriptions";
|
|
116
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
if (configuration) {
|
|
118
|
+
baseOptions = configuration.baseOptions;
|
|
119
|
+
}
|
|
120
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
121
|
+
localVarHeaderParameter = {};
|
|
122
|
+
localVarQueryParameter = {};
|
|
123
|
+
// authentication oauth2 required
|
|
124
|
+
// oauth required
|
|
125
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
126
|
+
case 1:
|
|
127
|
+
// authentication oauth2 required
|
|
128
|
+
// oauth required
|
|
129
|
+
_a.sent();
|
|
130
|
+
if (languageCode !== undefined) {
|
|
131
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
132
|
+
}
|
|
133
|
+
if (hospitalId !== undefined) {
|
|
134
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
135
|
+
}
|
|
136
|
+
if (doctorId !== undefined) {
|
|
137
|
+
localVarQueryParameter['DoctorId'] = doctorId;
|
|
138
|
+
}
|
|
139
|
+
if (doctorAffiliationId !== undefined) {
|
|
140
|
+
localVarQueryParameter['DoctorAffiliationId'] = doctorAffiliationId;
|
|
141
|
+
}
|
|
142
|
+
if (page !== undefined) {
|
|
143
|
+
localVarQueryParameter['page'] = page;
|
|
144
|
+
}
|
|
145
|
+
if (limit !== undefined) {
|
|
146
|
+
localVarQueryParameter['limit'] = limit;
|
|
147
|
+
}
|
|
148
|
+
if (lastRetrieved !== undefined) {
|
|
149
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
150
|
+
lastRetrieved.toISOString() :
|
|
151
|
+
lastRetrieved;
|
|
152
|
+
}
|
|
153
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
154
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
155
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
156
|
+
return [2 /*return*/, {
|
|
157
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
158
|
+
options: localVarRequestOptions,
|
|
159
|
+
}];
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
},
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @summary Get prescription of current user by id.
|
|
167
|
+
* @param {string} id
|
|
168
|
+
* @param {string} [languageCode]
|
|
169
|
+
* @param {*} [options] Override http request option.
|
|
170
|
+
* @throws {RequiredError}
|
|
171
|
+
*/
|
|
172
|
+
apiV2PrescriptionsIdGet: function (id, languageCode, options) {
|
|
173
|
+
if (options === void 0) { options = {}; }
|
|
174
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
175
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
176
|
+
return __generator(this, function (_a) {
|
|
177
|
+
switch (_a.label) {
|
|
178
|
+
case 0:
|
|
179
|
+
// verify required parameter 'id' is not null or undefined
|
|
180
|
+
(0, common_1.assertParamExists)('apiV2PrescriptionsIdGet', 'id', id);
|
|
181
|
+
localVarPath = "/api/v2/prescriptions/{id}"
|
|
182
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
183
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
184
|
+
if (configuration) {
|
|
185
|
+
baseOptions = configuration.baseOptions;
|
|
186
|
+
}
|
|
187
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
188
|
+
localVarHeaderParameter = {};
|
|
189
|
+
localVarQueryParameter = {};
|
|
190
|
+
// authentication oauth2 required
|
|
191
|
+
// oauth required
|
|
192
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
193
|
+
case 1:
|
|
194
|
+
// authentication oauth2 required
|
|
195
|
+
// oauth required
|
|
196
|
+
_a.sent();
|
|
197
|
+
if (languageCode !== undefined) {
|
|
198
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
199
|
+
}
|
|
200
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
201
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
202
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
203
|
+
return [2 /*return*/, {
|
|
204
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
205
|
+
options: localVarRequestOptions,
|
|
206
|
+
}];
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
},
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
exports.PrescriptionsApiAxiosParamCreator = PrescriptionsApiAxiosParamCreator;
|
|
214
|
+
/**
|
|
215
|
+
* PrescriptionsApi - functional programming interface
|
|
216
|
+
* @export
|
|
217
|
+
*/
|
|
218
|
+
var PrescriptionsApiFp = function (configuration) {
|
|
219
|
+
var localVarAxiosParamCreator = (0, exports.PrescriptionsApiAxiosParamCreator)(configuration);
|
|
220
|
+
return {
|
|
221
|
+
/**
|
|
222
|
+
*
|
|
223
|
+
* @summary Get prescriptions of current user.
|
|
224
|
+
* @param {string} [languageCode]
|
|
225
|
+
* @param {string} [hospitalId]
|
|
226
|
+
* @param {string} [doctorId]
|
|
227
|
+
* @param {string} [doctorAffiliationId]
|
|
228
|
+
* @param {number} [page]
|
|
229
|
+
* @param {number} [limit]
|
|
230
|
+
* @param {Date} [lastRetrieved]
|
|
231
|
+
* @param {*} [options] Override http request option.
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
*/
|
|
234
|
+
apiV2PrescriptionsGet: function (languageCode, hospitalId, doctorId, doctorAffiliationId, page, limit, lastRetrieved, options) {
|
|
235
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
236
|
+
var localVarAxiosArgs;
|
|
237
|
+
return __generator(this, function (_a) {
|
|
238
|
+
switch (_a.label) {
|
|
239
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2PrescriptionsGet(languageCode, hospitalId, doctorId, doctorAffiliationId, page, limit, lastRetrieved, options)];
|
|
240
|
+
case 1:
|
|
241
|
+
localVarAxiosArgs = _a.sent();
|
|
242
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
},
|
|
247
|
+
/**
|
|
248
|
+
*
|
|
249
|
+
* @summary Get prescription of current user by id.
|
|
250
|
+
* @param {string} id
|
|
251
|
+
* @param {string} [languageCode]
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
apiV2PrescriptionsIdGet: function (id, languageCode, options) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
257
|
+
var localVarAxiosArgs;
|
|
258
|
+
return __generator(this, function (_a) {
|
|
259
|
+
switch (_a.label) {
|
|
260
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2PrescriptionsIdGet(id, languageCode, options)];
|
|
261
|
+
case 1:
|
|
262
|
+
localVarAxiosArgs = _a.sent();
|
|
263
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
});
|
|
267
|
+
},
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
exports.PrescriptionsApiFp = PrescriptionsApiFp;
|
|
271
|
+
/**
|
|
272
|
+
* PrescriptionsApi - factory interface
|
|
273
|
+
* @export
|
|
274
|
+
*/
|
|
275
|
+
var PrescriptionsApiFactory = function (configuration, basePath, axios) {
|
|
276
|
+
var localVarFp = (0, exports.PrescriptionsApiFp)(configuration);
|
|
277
|
+
return {
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @summary Get prescriptions of current user.
|
|
281
|
+
* @param {string} [languageCode]
|
|
282
|
+
* @param {string} [hospitalId]
|
|
283
|
+
* @param {string} [doctorId]
|
|
284
|
+
* @param {string} [doctorAffiliationId]
|
|
285
|
+
* @param {number} [page]
|
|
286
|
+
* @param {number} [limit]
|
|
287
|
+
* @param {Date} [lastRetrieved]
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
*/
|
|
291
|
+
apiV2PrescriptionsGet: function (languageCode, hospitalId, doctorId, doctorAffiliationId, page, limit, lastRetrieved, options) {
|
|
292
|
+
return localVarFp.apiV2PrescriptionsGet(languageCode, hospitalId, doctorId, doctorAffiliationId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
293
|
+
},
|
|
294
|
+
/**
|
|
295
|
+
*
|
|
296
|
+
* @summary Get prescription of current user by id.
|
|
297
|
+
* @param {string} id
|
|
298
|
+
* @param {string} [languageCode]
|
|
299
|
+
* @param {*} [options] Override http request option.
|
|
300
|
+
* @throws {RequiredError}
|
|
301
|
+
*/
|
|
302
|
+
apiV2PrescriptionsIdGet: function (id, languageCode, options) {
|
|
303
|
+
return localVarFp.apiV2PrescriptionsIdGet(id, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
304
|
+
},
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
exports.PrescriptionsApiFactory = PrescriptionsApiFactory;
|
|
308
|
+
/**
|
|
309
|
+
* PrescriptionsApi - object-oriented interface
|
|
310
|
+
* @export
|
|
311
|
+
* @class PrescriptionsApi
|
|
312
|
+
* @extends {BaseAPI}
|
|
313
|
+
*/
|
|
314
|
+
var PrescriptionsApi = /** @class */ (function (_super) {
|
|
315
|
+
__extends(PrescriptionsApi, _super);
|
|
316
|
+
function PrescriptionsApi() {
|
|
317
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
*
|
|
321
|
+
* @summary Get prescriptions of current user.
|
|
322
|
+
* @param {PrescriptionsApiApiV2PrescriptionsGetRequest} requestParameters Request parameters.
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
* @memberof PrescriptionsApi
|
|
326
|
+
*/
|
|
327
|
+
PrescriptionsApi.prototype.apiV2PrescriptionsGet = function (requestParameters, options) {
|
|
328
|
+
var _this = this;
|
|
329
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
330
|
+
return (0, exports.PrescriptionsApiFp)(this.configuration).apiV2PrescriptionsGet(requestParameters.languageCode, requestParameters.hospitalId, requestParameters.doctorId, requestParameters.doctorAffiliationId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
333
|
+
*
|
|
334
|
+
* @summary Get prescription of current user by id.
|
|
335
|
+
* @param {PrescriptionsApiApiV2PrescriptionsIdGetRequest} requestParameters Request parameters.
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
* @memberof PrescriptionsApi
|
|
339
|
+
*/
|
|
340
|
+
PrescriptionsApi.prototype.apiV2PrescriptionsIdGet = function (requestParameters, options) {
|
|
341
|
+
var _this = this;
|
|
342
|
+
return (0, exports.PrescriptionsApiFp)(this.configuration).apiV2PrescriptionsIdGet(requestParameters.id, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
343
|
+
};
|
|
344
|
+
return PrescriptionsApi;
|
|
345
|
+
}(base_1.BaseAPI));
|
|
346
|
+
exports.PrescriptionsApi = PrescriptionsApi;
|