ch-admin-api-client-typescript 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/appointments-api.d.ts +47 -0
- package/lib/api/appointments-api.d.ts.map +1 -1
- package/lib/api/appointments-api.js +85 -0
- package/lib/api/deals-api.d.ts +110 -0
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +127 -0
- package/lib/api/doctor-affiliations-api.d.ts +101 -0
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.js +121 -0
- package/lib/api/hospitals-api.d.ts +328 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +381 -0
- package/lib/api/prescriptions-api.d.ts +447 -0
- package/lib/api/prescriptions-api.d.ts.map +1 -0
- package/lib/api/prescriptions-api.js +727 -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-timetable-date-model.d.ts +58 -0
- package/lib/models/appointment-timetable-date-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-date-model.js +15 -0
- package/lib/models/appointment-timetable-status.d.ts +22 -0
- package/lib/models/appointment-timetable-status.d.ts.map +1 -0
- package/lib/models/appointment-timetable-status.js +25 -0
- package/lib/models/appointment-timetable-time-slot-model.d.ts +74 -0
- package/lib/models/appointment-timetable-time-slot-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-time-slot-model.js +15 -0
- package/lib/models/create-doctor-affiliation-command.d.ts +6 -0
- package/lib/models/create-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/create-hospital-command.d.ts +24 -0
- package/lib/models/create-hospital-command.d.ts.map +1 -1
- package/lib/models/create-prescription-command.d.ts +184 -0
- package/lib/models/create-prescription-command.d.ts.map +1 -0
- package/lib/models/create-prescription-command.js +15 -0
- package/lib/models/create-walk-in-appointment-command.d.ts +154 -0
- package/lib/models/create-walk-in-appointment-command.d.ts.map +1 -0
- package/lib/models/create-walk-in-appointment-command.js +15 -0
- package/lib/models/doctor-affiliation-item-model.d.ts +3 -3
- package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-model.d.ts +9 -3
- package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
- package/lib/models/get-appointment-timetables-response-model.d.ts +44 -0
- package/lib/models/get-appointment-timetables-response-model.d.ts.map +1 -0
- package/lib/models/get-appointment-timetables-response-model.js +15 -0
- package/lib/models/hospital-model.d.ts +24 -0
- package/lib/models/hospital-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +16 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +16 -0
- package/lib/models/prescription-diagnosis-input-model.d.ts +37 -0
- package/lib/models/prescription-diagnosis-input-model.d.ts.map +1 -0
- package/lib/models/prescription-diagnosis-input-model.js +15 -0
- package/lib/models/prescription-diagnosis-item-model.d.ts +37 -0
- package/lib/models/prescription-diagnosis-item-model.d.ts.map +1 -0
- package/lib/models/prescription-diagnosis-item-model.js +15 -0
- package/lib/models/prescription-item-model.d.ts +164 -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-input-model.d.ts +79 -0
- package/lib/models/prescription-medication-input-model.d.ts.map +1 -0
- package/lib/models/prescription-medication-input-model.js +15 -0
- package/lib/models/prescription-medication-item-model.d.ts +79 -0
- package/lib/models/prescription-medication-item-model.d.ts.map +1 -0
- package/lib/models/prescription-medication-item-model.js +15 -0
- package/lib/models/prescription-model.d.ts +185 -0
- package/lib/models/prescription-model.d.ts.map +1 -0
- package/lib/models/prescription-model.js +15 -0
- package/lib/models/prescription-symptom-input-model.d.ts +49 -0
- package/lib/models/prescription-symptom-input-model.d.ts.map +1 -0
- package/lib/models/prescription-symptom-input-model.js +15 -0
- package/lib/models/prescription-symptom-item-model.d.ts +49 -0
- package/lib/models/prescription-symptom-item-model.d.ts.map +1 -0
- package/lib/models/prescription-symptom-item-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/lib/models/update-doctor-affiliation-command.d.ts +6 -0
- package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/update-hospital-command.d.ts +24 -0
- package/lib/models/update-hospital-command.d.ts.map +1 -1
- package/lib/models/update-prescription-command.d.ts +154 -0
- package/lib/models/update-prescription-command.d.ts.map +1 -0
- package/lib/models/update-prescription-command.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +17 -0
- package/src/api/appointments-api.ts +87 -0
- package/src/api/deals-api.ts +184 -0
- package/src/api/doctor-affiliations-api.ts +171 -0
- package/src/api/hospitals-api.ts +548 -0
- package/src/api/prescriptions-api.ts +776 -0
- package/src/api.ts +1 -0
- package/src/models/appointment-timetable-date-model.ts +69 -0
- package/src/models/appointment-timetable-status.ts +31 -0
- package/src/models/appointment-timetable-time-slot-model.ts +81 -0
- package/src/models/create-doctor-affiliation-command.ts +6 -0
- package/src/models/create-hospital-command.ts +24 -0
- package/src/models/create-prescription-command.ts +195 -0
- package/src/models/create-walk-in-appointment-command.ts +165 -0
- package/src/models/doctor-affiliation-item-model.ts +3 -3
- package/src/models/doctor-affiliation-model.ts +9 -3
- package/src/models/get-appointment-timetables-response-model.ts +51 -0
- package/src/models/hospital-model.ts +24 -0
- package/src/models/index.ts +16 -0
- package/src/models/prescription-diagnosis-input-model.ts +42 -0
- package/src/models/prescription-diagnosis-item-model.ts +42 -0
- package/src/models/prescription-item-model.ts +171 -0
- package/src/models/prescription-medication-input-model.ts +84 -0
- package/src/models/prescription-medication-item-model.ts +84 -0
- package/src/models/prescription-model.ts +198 -0
- package/src/models/prescription-symptom-input-model.ts +54 -0
- package/src/models/prescription-symptom-item-model.ts +54 -0
- package/src/models/prescriptions-model.ts +42 -0
- package/src/models/update-doctor-affiliation-command.ts +6 -0
- package/src/models/update-hospital-command.ts +24 -0
- package/src/models/update-prescription-command.ts +165 -0
|
@@ -0,0 +1,727 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
6
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
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
|
|
98
|
+
* @param {string} [languageCode]
|
|
99
|
+
* @param {string} [hospitalId]
|
|
100
|
+
* @param {string} [doctorId]
|
|
101
|
+
* @param {string} [doctorAffiliationId]
|
|
102
|
+
* @param {string} [patientId]
|
|
103
|
+
* @param {string} [patientAffiliationId]
|
|
104
|
+
* @param {string} [patientPhoneNumber]
|
|
105
|
+
* @param {string} [patientName]
|
|
106
|
+
* @param {boolean} [showHidden]
|
|
107
|
+
* @param {number} [page]
|
|
108
|
+
* @param {number} [limit]
|
|
109
|
+
* @param {Date} [lastRetrieved]
|
|
110
|
+
* @param {*} [options] Override http request option.
|
|
111
|
+
* @throws {RequiredError}
|
|
112
|
+
*/
|
|
113
|
+
apiV1PrescriptionsGet: function (languageCode, hospitalId, doctorId, doctorAffiliationId, patientId, patientAffiliationId, patientPhoneNumber, patientName, showHidden, page, limit, lastRetrieved, options) {
|
|
114
|
+
if (options === void 0) { options = {}; }
|
|
115
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
116
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
117
|
+
return __generator(this, function (_a) {
|
|
118
|
+
switch (_a.label) {
|
|
119
|
+
case 0:
|
|
120
|
+
localVarPath = "/api/v1/prescriptions";
|
|
121
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
122
|
+
if (configuration) {
|
|
123
|
+
baseOptions = configuration.baseOptions;
|
|
124
|
+
}
|
|
125
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
126
|
+
localVarHeaderParameter = {};
|
|
127
|
+
localVarQueryParameter = {};
|
|
128
|
+
// authentication oauth2 required
|
|
129
|
+
// oauth required
|
|
130
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
131
|
+
case 1:
|
|
132
|
+
// authentication oauth2 required
|
|
133
|
+
// oauth required
|
|
134
|
+
_a.sent();
|
|
135
|
+
if (languageCode !== undefined) {
|
|
136
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
137
|
+
}
|
|
138
|
+
if (hospitalId !== undefined) {
|
|
139
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
140
|
+
}
|
|
141
|
+
if (doctorId !== undefined) {
|
|
142
|
+
localVarQueryParameter['DoctorId'] = doctorId;
|
|
143
|
+
}
|
|
144
|
+
if (doctorAffiliationId !== undefined) {
|
|
145
|
+
localVarQueryParameter['DoctorAffiliationId'] = doctorAffiliationId;
|
|
146
|
+
}
|
|
147
|
+
if (patientId !== undefined) {
|
|
148
|
+
localVarQueryParameter['PatientId'] = patientId;
|
|
149
|
+
}
|
|
150
|
+
if (patientAffiliationId !== undefined) {
|
|
151
|
+
localVarQueryParameter['PatientAffiliationId'] = patientAffiliationId;
|
|
152
|
+
}
|
|
153
|
+
if (patientPhoneNumber !== undefined) {
|
|
154
|
+
localVarQueryParameter['PatientPhoneNumber'] = patientPhoneNumber;
|
|
155
|
+
}
|
|
156
|
+
if (patientName !== undefined) {
|
|
157
|
+
localVarQueryParameter['PatientName'] = patientName;
|
|
158
|
+
}
|
|
159
|
+
if (showHidden !== undefined) {
|
|
160
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
161
|
+
}
|
|
162
|
+
if (page !== undefined) {
|
|
163
|
+
localVarQueryParameter['page'] = page;
|
|
164
|
+
}
|
|
165
|
+
if (limit !== undefined) {
|
|
166
|
+
localVarQueryParameter['limit'] = limit;
|
|
167
|
+
}
|
|
168
|
+
if (lastRetrieved !== undefined) {
|
|
169
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
170
|
+
lastRetrieved.toISOString() :
|
|
171
|
+
lastRetrieved;
|
|
172
|
+
}
|
|
173
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
174
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
176
|
+
return [2 /*return*/, {
|
|
177
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
178
|
+
options: localVarRequestOptions,
|
|
179
|
+
}];
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
},
|
|
184
|
+
/**
|
|
185
|
+
*
|
|
186
|
+
* @summary Create prescription
|
|
187
|
+
* @param {CreatePrescriptionCommand} [createPrescriptionCommand]
|
|
188
|
+
* @param {*} [options] Override http request option.
|
|
189
|
+
* @throws {RequiredError}
|
|
190
|
+
*/
|
|
191
|
+
apiV1PrescriptionsPost: function (createPrescriptionCommand, options) {
|
|
192
|
+
if (options === void 0) { options = {}; }
|
|
193
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
194
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
195
|
+
return __generator(this, function (_a) {
|
|
196
|
+
switch (_a.label) {
|
|
197
|
+
case 0:
|
|
198
|
+
localVarPath = "/api/v1/prescriptions";
|
|
199
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
200
|
+
if (configuration) {
|
|
201
|
+
baseOptions = configuration.baseOptions;
|
|
202
|
+
}
|
|
203
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
204
|
+
localVarHeaderParameter = {};
|
|
205
|
+
localVarQueryParameter = {};
|
|
206
|
+
// authentication oauth2 required
|
|
207
|
+
// oauth required
|
|
208
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
209
|
+
case 1:
|
|
210
|
+
// authentication oauth2 required
|
|
211
|
+
// oauth required
|
|
212
|
+
_a.sent();
|
|
213
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
214
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
215
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
216
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
217
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPrescriptionCommand, localVarRequestOptions, configuration);
|
|
218
|
+
return [2 /*return*/, {
|
|
219
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
220
|
+
options: localVarRequestOptions,
|
|
221
|
+
}];
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
});
|
|
225
|
+
},
|
|
226
|
+
/**
|
|
227
|
+
*
|
|
228
|
+
* @summary Delete prescription
|
|
229
|
+
* @param {string} prescriptionId
|
|
230
|
+
* @param {boolean} [isPermanent]
|
|
231
|
+
* @param {*} [options] Override http request option.
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
*/
|
|
234
|
+
apiV1PrescriptionsPrescriptionIdDelete: function (prescriptionId, isPermanent, options) {
|
|
235
|
+
if (options === void 0) { options = {}; }
|
|
236
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
237
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
238
|
+
return __generator(this, function (_a) {
|
|
239
|
+
switch (_a.label) {
|
|
240
|
+
case 0:
|
|
241
|
+
// verify required parameter 'prescriptionId' is not null or undefined
|
|
242
|
+
(0, common_1.assertParamExists)('apiV1PrescriptionsPrescriptionIdDelete', 'prescriptionId', prescriptionId);
|
|
243
|
+
localVarPath = "/api/v1/prescriptions/{prescriptionId}"
|
|
244
|
+
.replace("{".concat("prescriptionId", "}"), encodeURIComponent(String(prescriptionId)));
|
|
245
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
246
|
+
if (configuration) {
|
|
247
|
+
baseOptions = configuration.baseOptions;
|
|
248
|
+
}
|
|
249
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
250
|
+
localVarHeaderParameter = {};
|
|
251
|
+
localVarQueryParameter = {};
|
|
252
|
+
// authentication oauth2 required
|
|
253
|
+
// oauth required
|
|
254
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
255
|
+
case 1:
|
|
256
|
+
// authentication oauth2 required
|
|
257
|
+
// oauth required
|
|
258
|
+
_a.sent();
|
|
259
|
+
if (isPermanent !== undefined) {
|
|
260
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
261
|
+
}
|
|
262
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
263
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
264
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
265
|
+
return [2 /*return*/, {
|
|
266
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
267
|
+
options: localVarRequestOptions,
|
|
268
|
+
}];
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @summary Get a prescription by id
|
|
276
|
+
* @param {string} prescriptionId
|
|
277
|
+
* @param {string} [languageCode]
|
|
278
|
+
* @param {*} [options] Override http request option.
|
|
279
|
+
* @throws {RequiredError}
|
|
280
|
+
*/
|
|
281
|
+
apiV1PrescriptionsPrescriptionIdGet: function (prescriptionId, languageCode, options) {
|
|
282
|
+
if (options === void 0) { options = {}; }
|
|
283
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
284
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
285
|
+
return __generator(this, function (_a) {
|
|
286
|
+
switch (_a.label) {
|
|
287
|
+
case 0:
|
|
288
|
+
// verify required parameter 'prescriptionId' is not null or undefined
|
|
289
|
+
(0, common_1.assertParamExists)('apiV1PrescriptionsPrescriptionIdGet', 'prescriptionId', prescriptionId);
|
|
290
|
+
localVarPath = "/api/v1/prescriptions/{prescriptionId}"
|
|
291
|
+
.replace("{".concat("prescriptionId", "}"), encodeURIComponent(String(prescriptionId)));
|
|
292
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
293
|
+
if (configuration) {
|
|
294
|
+
baseOptions = configuration.baseOptions;
|
|
295
|
+
}
|
|
296
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
297
|
+
localVarHeaderParameter = {};
|
|
298
|
+
localVarQueryParameter = {};
|
|
299
|
+
// authentication oauth2 required
|
|
300
|
+
// oauth required
|
|
301
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
302
|
+
case 1:
|
|
303
|
+
// authentication oauth2 required
|
|
304
|
+
// oauth required
|
|
305
|
+
_a.sent();
|
|
306
|
+
if (languageCode !== undefined) {
|
|
307
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
308
|
+
}
|
|
309
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
310
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
311
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
312
|
+
return [2 /*return*/, {
|
|
313
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
314
|
+
options: localVarRequestOptions,
|
|
315
|
+
}];
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
});
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @summary Update prescription
|
|
323
|
+
* @param {string} prescriptionId
|
|
324
|
+
* @param {UpdatePrescriptionCommand} [updatePrescriptionCommand]
|
|
325
|
+
* @param {*} [options] Override http request option.
|
|
326
|
+
* @throws {RequiredError}
|
|
327
|
+
*/
|
|
328
|
+
apiV1PrescriptionsPrescriptionIdPut: function (prescriptionId, updatePrescriptionCommand, options) {
|
|
329
|
+
if (options === void 0) { options = {}; }
|
|
330
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
331
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
332
|
+
return __generator(this, function (_a) {
|
|
333
|
+
switch (_a.label) {
|
|
334
|
+
case 0:
|
|
335
|
+
// verify required parameter 'prescriptionId' is not null or undefined
|
|
336
|
+
(0, common_1.assertParamExists)('apiV1PrescriptionsPrescriptionIdPut', 'prescriptionId', prescriptionId);
|
|
337
|
+
localVarPath = "/api/v1/prescriptions/{prescriptionId}"
|
|
338
|
+
.replace("{".concat("prescriptionId", "}"), encodeURIComponent(String(prescriptionId)));
|
|
339
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
340
|
+
if (configuration) {
|
|
341
|
+
baseOptions = configuration.baseOptions;
|
|
342
|
+
}
|
|
343
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
344
|
+
localVarHeaderParameter = {};
|
|
345
|
+
localVarQueryParameter = {};
|
|
346
|
+
// authentication oauth2 required
|
|
347
|
+
// oauth required
|
|
348
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
349
|
+
case 1:
|
|
350
|
+
// authentication oauth2 required
|
|
351
|
+
// oauth required
|
|
352
|
+
_a.sent();
|
|
353
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
354
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
355
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
356
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
357
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePrescriptionCommand, localVarRequestOptions, configuration);
|
|
358
|
+
return [2 /*return*/, {
|
|
359
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
360
|
+
options: localVarRequestOptions,
|
|
361
|
+
}];
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
});
|
|
365
|
+
},
|
|
366
|
+
/**
|
|
367
|
+
*
|
|
368
|
+
* @summary Reactivate prescription
|
|
369
|
+
* @param {string} prescriptionId
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
*/
|
|
373
|
+
apiV1PrescriptionsPrescriptionIdReactivatePut: function (prescriptionId, options) {
|
|
374
|
+
if (options === void 0) { options = {}; }
|
|
375
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
376
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
377
|
+
return __generator(this, function (_a) {
|
|
378
|
+
switch (_a.label) {
|
|
379
|
+
case 0:
|
|
380
|
+
// verify required parameter 'prescriptionId' is not null or undefined
|
|
381
|
+
(0, common_1.assertParamExists)('apiV1PrescriptionsPrescriptionIdReactivatePut', 'prescriptionId', prescriptionId);
|
|
382
|
+
localVarPath = "/api/v1/prescriptions/{prescriptionId}/reactivate"
|
|
383
|
+
.replace("{".concat("prescriptionId", "}"), encodeURIComponent(String(prescriptionId)));
|
|
384
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
385
|
+
if (configuration) {
|
|
386
|
+
baseOptions = configuration.baseOptions;
|
|
387
|
+
}
|
|
388
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
389
|
+
localVarHeaderParameter = {};
|
|
390
|
+
localVarQueryParameter = {};
|
|
391
|
+
// authentication oauth2 required
|
|
392
|
+
// oauth required
|
|
393
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
394
|
+
case 1:
|
|
395
|
+
// authentication oauth2 required
|
|
396
|
+
// oauth required
|
|
397
|
+
_a.sent();
|
|
398
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
399
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
400
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
401
|
+
return [2 /*return*/, {
|
|
402
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
403
|
+
options: localVarRequestOptions,
|
|
404
|
+
}];
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
});
|
|
408
|
+
},
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
exports.PrescriptionsApiAxiosParamCreator = PrescriptionsApiAxiosParamCreator;
|
|
412
|
+
/**
|
|
413
|
+
* PrescriptionsApi - functional programming interface
|
|
414
|
+
* @export
|
|
415
|
+
*/
|
|
416
|
+
var PrescriptionsApiFp = function (configuration) {
|
|
417
|
+
var localVarAxiosParamCreator = (0, exports.PrescriptionsApiAxiosParamCreator)(configuration);
|
|
418
|
+
return {
|
|
419
|
+
/**
|
|
420
|
+
*
|
|
421
|
+
* @summary Get prescriptions
|
|
422
|
+
* @param {string} [languageCode]
|
|
423
|
+
* @param {string} [hospitalId]
|
|
424
|
+
* @param {string} [doctorId]
|
|
425
|
+
* @param {string} [doctorAffiliationId]
|
|
426
|
+
* @param {string} [patientId]
|
|
427
|
+
* @param {string} [patientAffiliationId]
|
|
428
|
+
* @param {string} [patientPhoneNumber]
|
|
429
|
+
* @param {string} [patientName]
|
|
430
|
+
* @param {boolean} [showHidden]
|
|
431
|
+
* @param {number} [page]
|
|
432
|
+
* @param {number} [limit]
|
|
433
|
+
* @param {Date} [lastRetrieved]
|
|
434
|
+
* @param {*} [options] Override http request option.
|
|
435
|
+
* @throws {RequiredError}
|
|
436
|
+
*/
|
|
437
|
+
apiV1PrescriptionsGet: function (languageCode, hospitalId, doctorId, doctorAffiliationId, patientId, patientAffiliationId, patientPhoneNumber, patientName, showHidden, page, limit, lastRetrieved, options) {
|
|
438
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
439
|
+
var localVarAxiosArgs;
|
|
440
|
+
return __generator(this, function (_a) {
|
|
441
|
+
switch (_a.label) {
|
|
442
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PrescriptionsGet(languageCode, hospitalId, doctorId, doctorAffiliationId, patientId, patientAffiliationId, patientPhoneNumber, patientName, showHidden, page, limit, lastRetrieved, options)];
|
|
443
|
+
case 1:
|
|
444
|
+
localVarAxiosArgs = _a.sent();
|
|
445
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
446
|
+
}
|
|
447
|
+
});
|
|
448
|
+
});
|
|
449
|
+
},
|
|
450
|
+
/**
|
|
451
|
+
*
|
|
452
|
+
* @summary Create prescription
|
|
453
|
+
* @param {CreatePrescriptionCommand} [createPrescriptionCommand]
|
|
454
|
+
* @param {*} [options] Override http request option.
|
|
455
|
+
* @throws {RequiredError}
|
|
456
|
+
*/
|
|
457
|
+
apiV1PrescriptionsPost: function (createPrescriptionCommand, options) {
|
|
458
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
459
|
+
var localVarAxiosArgs;
|
|
460
|
+
return __generator(this, function (_a) {
|
|
461
|
+
switch (_a.label) {
|
|
462
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PrescriptionsPost(createPrescriptionCommand, options)];
|
|
463
|
+
case 1:
|
|
464
|
+
localVarAxiosArgs = _a.sent();
|
|
465
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
466
|
+
}
|
|
467
|
+
});
|
|
468
|
+
});
|
|
469
|
+
},
|
|
470
|
+
/**
|
|
471
|
+
*
|
|
472
|
+
* @summary Delete prescription
|
|
473
|
+
* @param {string} prescriptionId
|
|
474
|
+
* @param {boolean} [isPermanent]
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
apiV1PrescriptionsPrescriptionIdDelete: function (prescriptionId, isPermanent, options) {
|
|
479
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
480
|
+
var localVarAxiosArgs;
|
|
481
|
+
return __generator(this, function (_a) {
|
|
482
|
+
switch (_a.label) {
|
|
483
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdDelete(prescriptionId, isPermanent, options)];
|
|
484
|
+
case 1:
|
|
485
|
+
localVarAxiosArgs = _a.sent();
|
|
486
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
487
|
+
}
|
|
488
|
+
});
|
|
489
|
+
});
|
|
490
|
+
},
|
|
491
|
+
/**
|
|
492
|
+
*
|
|
493
|
+
* @summary Get a prescription by id
|
|
494
|
+
* @param {string} prescriptionId
|
|
495
|
+
* @param {string} [languageCode]
|
|
496
|
+
* @param {*} [options] Override http request option.
|
|
497
|
+
* @throws {RequiredError}
|
|
498
|
+
*/
|
|
499
|
+
apiV1PrescriptionsPrescriptionIdGet: function (prescriptionId, languageCode, options) {
|
|
500
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
501
|
+
var localVarAxiosArgs;
|
|
502
|
+
return __generator(this, function (_a) {
|
|
503
|
+
switch (_a.label) {
|
|
504
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdGet(prescriptionId, languageCode, options)];
|
|
505
|
+
case 1:
|
|
506
|
+
localVarAxiosArgs = _a.sent();
|
|
507
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
});
|
|
511
|
+
},
|
|
512
|
+
/**
|
|
513
|
+
*
|
|
514
|
+
* @summary Update prescription
|
|
515
|
+
* @param {string} prescriptionId
|
|
516
|
+
* @param {UpdatePrescriptionCommand} [updatePrescriptionCommand]
|
|
517
|
+
* @param {*} [options] Override http request option.
|
|
518
|
+
* @throws {RequiredError}
|
|
519
|
+
*/
|
|
520
|
+
apiV1PrescriptionsPrescriptionIdPut: function (prescriptionId, updatePrescriptionCommand, options) {
|
|
521
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
522
|
+
var localVarAxiosArgs;
|
|
523
|
+
return __generator(this, function (_a) {
|
|
524
|
+
switch (_a.label) {
|
|
525
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdPut(prescriptionId, updatePrescriptionCommand, options)];
|
|
526
|
+
case 1:
|
|
527
|
+
localVarAxiosArgs = _a.sent();
|
|
528
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
529
|
+
}
|
|
530
|
+
});
|
|
531
|
+
});
|
|
532
|
+
},
|
|
533
|
+
/**
|
|
534
|
+
*
|
|
535
|
+
* @summary Reactivate prescription
|
|
536
|
+
* @param {string} prescriptionId
|
|
537
|
+
* @param {*} [options] Override http request option.
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
*/
|
|
540
|
+
apiV1PrescriptionsPrescriptionIdReactivatePut: function (prescriptionId, options) {
|
|
541
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
542
|
+
var localVarAxiosArgs;
|
|
543
|
+
return __generator(this, function (_a) {
|
|
544
|
+
switch (_a.label) {
|
|
545
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdReactivatePut(prescriptionId, options)];
|
|
546
|
+
case 1:
|
|
547
|
+
localVarAxiosArgs = _a.sent();
|
|
548
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
549
|
+
}
|
|
550
|
+
});
|
|
551
|
+
});
|
|
552
|
+
},
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
exports.PrescriptionsApiFp = PrescriptionsApiFp;
|
|
556
|
+
/**
|
|
557
|
+
* PrescriptionsApi - factory interface
|
|
558
|
+
* @export
|
|
559
|
+
*/
|
|
560
|
+
var PrescriptionsApiFactory = function (configuration, basePath, axios) {
|
|
561
|
+
var localVarFp = (0, exports.PrescriptionsApiFp)(configuration);
|
|
562
|
+
return {
|
|
563
|
+
/**
|
|
564
|
+
*
|
|
565
|
+
* @summary Get prescriptions
|
|
566
|
+
* @param {string} [languageCode]
|
|
567
|
+
* @param {string} [hospitalId]
|
|
568
|
+
* @param {string} [doctorId]
|
|
569
|
+
* @param {string} [doctorAffiliationId]
|
|
570
|
+
* @param {string} [patientId]
|
|
571
|
+
* @param {string} [patientAffiliationId]
|
|
572
|
+
* @param {string} [patientPhoneNumber]
|
|
573
|
+
* @param {string} [patientName]
|
|
574
|
+
* @param {boolean} [showHidden]
|
|
575
|
+
* @param {number} [page]
|
|
576
|
+
* @param {number} [limit]
|
|
577
|
+
* @param {Date} [lastRetrieved]
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
*/
|
|
581
|
+
apiV1PrescriptionsGet: function (languageCode, hospitalId, doctorId, doctorAffiliationId, patientId, patientAffiliationId, patientPhoneNumber, patientName, showHidden, page, limit, lastRetrieved, options) {
|
|
582
|
+
return localVarFp.apiV1PrescriptionsGet(languageCode, hospitalId, doctorId, doctorAffiliationId, patientId, patientAffiliationId, patientPhoneNumber, patientName, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
583
|
+
},
|
|
584
|
+
/**
|
|
585
|
+
*
|
|
586
|
+
* @summary Create prescription
|
|
587
|
+
* @param {CreatePrescriptionCommand} [createPrescriptionCommand]
|
|
588
|
+
* @param {*} [options] Override http request option.
|
|
589
|
+
* @throws {RequiredError}
|
|
590
|
+
*/
|
|
591
|
+
apiV1PrescriptionsPost: function (createPrescriptionCommand, options) {
|
|
592
|
+
return localVarFp.apiV1PrescriptionsPost(createPrescriptionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
593
|
+
},
|
|
594
|
+
/**
|
|
595
|
+
*
|
|
596
|
+
* @summary Delete prescription
|
|
597
|
+
* @param {string} prescriptionId
|
|
598
|
+
* @param {boolean} [isPermanent]
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
apiV1PrescriptionsPrescriptionIdDelete: function (prescriptionId, isPermanent, options) {
|
|
603
|
+
return localVarFp.apiV1PrescriptionsPrescriptionIdDelete(prescriptionId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
604
|
+
},
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @summary Get a prescription by id
|
|
608
|
+
* @param {string} prescriptionId
|
|
609
|
+
* @param {string} [languageCode]
|
|
610
|
+
* @param {*} [options] Override http request option.
|
|
611
|
+
* @throws {RequiredError}
|
|
612
|
+
*/
|
|
613
|
+
apiV1PrescriptionsPrescriptionIdGet: function (prescriptionId, languageCode, options) {
|
|
614
|
+
return localVarFp.apiV1PrescriptionsPrescriptionIdGet(prescriptionId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
615
|
+
},
|
|
616
|
+
/**
|
|
617
|
+
*
|
|
618
|
+
* @summary Update prescription
|
|
619
|
+
* @param {string} prescriptionId
|
|
620
|
+
* @param {UpdatePrescriptionCommand} [updatePrescriptionCommand]
|
|
621
|
+
* @param {*} [options] Override http request option.
|
|
622
|
+
* @throws {RequiredError}
|
|
623
|
+
*/
|
|
624
|
+
apiV1PrescriptionsPrescriptionIdPut: function (prescriptionId, updatePrescriptionCommand, options) {
|
|
625
|
+
return localVarFp.apiV1PrescriptionsPrescriptionIdPut(prescriptionId, updatePrescriptionCommand, options).then(function (request) { return request(axios, basePath); });
|
|
626
|
+
},
|
|
627
|
+
/**
|
|
628
|
+
*
|
|
629
|
+
* @summary Reactivate prescription
|
|
630
|
+
* @param {string} prescriptionId
|
|
631
|
+
* @param {*} [options] Override http request option.
|
|
632
|
+
* @throws {RequiredError}
|
|
633
|
+
*/
|
|
634
|
+
apiV1PrescriptionsPrescriptionIdReactivatePut: function (prescriptionId, options) {
|
|
635
|
+
return localVarFp.apiV1PrescriptionsPrescriptionIdReactivatePut(prescriptionId, options).then(function (request) { return request(axios, basePath); });
|
|
636
|
+
},
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
exports.PrescriptionsApiFactory = PrescriptionsApiFactory;
|
|
640
|
+
/**
|
|
641
|
+
* PrescriptionsApi - object-oriented interface
|
|
642
|
+
* @export
|
|
643
|
+
* @class PrescriptionsApi
|
|
644
|
+
* @extends {BaseAPI}
|
|
645
|
+
*/
|
|
646
|
+
var PrescriptionsApi = /** @class */ (function (_super) {
|
|
647
|
+
__extends(PrescriptionsApi, _super);
|
|
648
|
+
function PrescriptionsApi() {
|
|
649
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
*
|
|
653
|
+
* @summary Get prescriptions
|
|
654
|
+
* @param {PrescriptionsApiApiV1PrescriptionsGetRequest} requestParameters Request parameters.
|
|
655
|
+
* @param {*} [options] Override http request option.
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
* @memberof PrescriptionsApi
|
|
658
|
+
*/
|
|
659
|
+
PrescriptionsApi.prototype.apiV1PrescriptionsGet = function (requestParameters, options) {
|
|
660
|
+
var _this = this;
|
|
661
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
662
|
+
return (0, exports.PrescriptionsApiFp)(this.configuration).apiV1PrescriptionsGet(requestParameters.languageCode, requestParameters.hospitalId, requestParameters.doctorId, requestParameters.doctorAffiliationId, requestParameters.patientId, requestParameters.patientAffiliationId, requestParameters.patientPhoneNumber, requestParameters.patientName, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
663
|
+
};
|
|
664
|
+
/**
|
|
665
|
+
*
|
|
666
|
+
* @summary Create prescription
|
|
667
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPostRequest} requestParameters Request parameters.
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
* @memberof PrescriptionsApi
|
|
671
|
+
*/
|
|
672
|
+
PrescriptionsApi.prototype.apiV1PrescriptionsPost = function (requestParameters, options) {
|
|
673
|
+
var _this = this;
|
|
674
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
675
|
+
return (0, exports.PrescriptionsApiFp)(this.configuration).apiV1PrescriptionsPost(requestParameters.createPrescriptionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
676
|
+
};
|
|
677
|
+
/**
|
|
678
|
+
*
|
|
679
|
+
* @summary Delete prescription
|
|
680
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPrescriptionIdDeleteRequest} requestParameters Request parameters.
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
* @memberof PrescriptionsApi
|
|
684
|
+
*/
|
|
685
|
+
PrescriptionsApi.prototype.apiV1PrescriptionsPrescriptionIdDelete = function (requestParameters, options) {
|
|
686
|
+
var _this = this;
|
|
687
|
+
return (0, exports.PrescriptionsApiFp)(this.configuration).apiV1PrescriptionsPrescriptionIdDelete(requestParameters.prescriptionId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
*
|
|
691
|
+
* @summary Get a prescription by id
|
|
692
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPrescriptionIdGetRequest} requestParameters Request parameters.
|
|
693
|
+
* @param {*} [options] Override http request option.
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
* @memberof PrescriptionsApi
|
|
696
|
+
*/
|
|
697
|
+
PrescriptionsApi.prototype.apiV1PrescriptionsPrescriptionIdGet = function (requestParameters, options) {
|
|
698
|
+
var _this = this;
|
|
699
|
+
return (0, exports.PrescriptionsApiFp)(this.configuration).apiV1PrescriptionsPrescriptionIdGet(requestParameters.prescriptionId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
700
|
+
};
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @summary Update prescription
|
|
704
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPrescriptionIdPutRequest} requestParameters Request parameters.
|
|
705
|
+
* @param {*} [options] Override http request option.
|
|
706
|
+
* @throws {RequiredError}
|
|
707
|
+
* @memberof PrescriptionsApi
|
|
708
|
+
*/
|
|
709
|
+
PrescriptionsApi.prototype.apiV1PrescriptionsPrescriptionIdPut = function (requestParameters, options) {
|
|
710
|
+
var _this = this;
|
|
711
|
+
return (0, exports.PrescriptionsApiFp)(this.configuration).apiV1PrescriptionsPrescriptionIdPut(requestParameters.prescriptionId, requestParameters.updatePrescriptionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
712
|
+
};
|
|
713
|
+
/**
|
|
714
|
+
*
|
|
715
|
+
* @summary Reactivate prescription
|
|
716
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPrescriptionIdReactivatePutRequest} requestParameters Request parameters.
|
|
717
|
+
* @param {*} [options] Override http request option.
|
|
718
|
+
* @throws {RequiredError}
|
|
719
|
+
* @memberof PrescriptionsApi
|
|
720
|
+
*/
|
|
721
|
+
PrescriptionsApi.prototype.apiV1PrescriptionsPrescriptionIdReactivatePut = function (requestParameters, options) {
|
|
722
|
+
var _this = this;
|
|
723
|
+
return (0, exports.PrescriptionsApiFp)(this.configuration).apiV1PrescriptionsPrescriptionIdReactivatePut(requestParameters.prescriptionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
724
|
+
};
|
|
725
|
+
return PrescriptionsApi;
|
|
726
|
+
}(base_1.BaseAPI));
|
|
727
|
+
exports.PrescriptionsApi = PrescriptionsApi;
|