ch-admin-api-client-typescript 5.22.1 → 5.23.8
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/patient-affiliations-api.d.ts +216 -0
- package/lib/api/patient-affiliations-api.d.ts.map +1 -0
- package/lib/api/patient-affiliations-api.js +358 -0
- package/lib/api/patients-api.d.ts +191 -3
- package/lib/api/patients-api.d.ts.map +1 -1
- package/lib/api/patients-api.js +289 -6
- 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 +2 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +2 -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/chadmin-item-model.d.ts +3 -3
- package/lib/models/chadmin-item-model.d.ts.map +1 -1
- package/lib/models/chadmin-model.d.ts +3 -3
- package/lib/models/chadmin-model.d.ts.map +1 -1
- package/lib/models/chmanager-item-model.d.ts +3 -3
- package/lib/models/chmanager-item-model.d.ts.map +1 -1
- package/lib/models/chmanager-model.d.ts +3 -3
- package/lib/models/chmanager-model.d.ts.map +1 -1
- package/lib/models/create-article-command.d.ts +6 -0
- package/lib/models/create-article-command.d.ts.map +1 -1
- 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-patient-affiliation-command.d.ts +109 -0
- package/lib/models/create-patient-affiliation-command.d.ts.map +1 -0
- package/lib/models/create-patient-affiliation-command.js +15 -0
- package/lib/models/create-patient-command.d.ts +90 -0
- package/lib/models/create-patient-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/doctor-item-model.d.ts +3 -3
- package/lib/models/doctor-item-model.d.ts.map +1 -1
- package/lib/models/doctor-model.d.ts +3 -3
- package/lib/models/doctor-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/get-patient-walk-in-query.d.ts +37 -0
- package/lib/models/get-patient-walk-in-query.d.ts.map +1 -0
- package/lib/models/get-patient-walk-in-query.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 +23 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +23 -0
- package/lib/models/manager-item-model.d.ts +3 -3
- package/lib/models/manager-item-model.d.ts.map +1 -1
- package/lib/models/manager-model.d.ts +3 -3
- package/lib/models/manager-model.d.ts.map +1 -1
- package/lib/models/patient-affiliation-item-model.d.ts +153 -0
- package/lib/models/patient-affiliation-item-model.d.ts.map +1 -0
- package/lib/models/patient-affiliation-item-model.js +15 -0
- package/lib/models/patient-affiliation-model.d.ts +153 -0
- package/lib/models/patient-affiliation-model.d.ts.map +1 -0
- package/lib/models/patient-affiliation-model.js +15 -0
- package/lib/models/patient-affiliations-model.d.ts +33 -0
- package/lib/models/patient-affiliations-model.d.ts.map +1 -0
- package/lib/models/patient-affiliations-model.js +15 -0
- package/lib/models/patient-item-model.d.ts +3 -3
- package/lib/models/patient-item-model.d.ts.map +1 -1
- package/lib/models/patient-model.d.ts +3 -3
- package/lib/models/patient-model.d.ts.map +1 -1
- package/lib/models/patient-walk-in-model.d.ts +32 -0
- package/lib/models/patient-walk-in-model.d.ts.map +1 -0
- package/lib/models/patient-walk-in-model.js +15 -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-article-command.d.ts +6 -0
- package/lib/models/update-article-command.d.ts.map +1 -1
- 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-patient-affiliation-command.d.ts +115 -0
- package/lib/models/update-patient-affiliation-command.d.ts.map +1 -0
- package/lib/models/update-patient-affiliation-command.js +15 -0
- 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/lib/models/user-model.d.ts +3 -3
- package/lib/models/user-model.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +25 -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/patient-affiliations-api.ts +361 -0
- package/src/api/patients-api.ts +337 -6
- package/src/api/prescriptions-api.ts +776 -0
- package/src/api.ts +2 -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/chadmin-item-model.ts +3 -3
- package/src/models/chadmin-model.ts +3 -3
- package/src/models/chmanager-item-model.ts +3 -3
- package/src/models/chmanager-model.ts +3 -3
- package/src/models/create-article-command.ts +6 -0
- package/src/models/create-doctor-affiliation-command.ts +6 -0
- package/src/models/create-hospital-command.ts +24 -0
- package/src/models/create-patient-affiliation-command.ts +114 -0
- package/src/models/create-patient-command.ts +90 -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/doctor-item-model.ts +3 -3
- package/src/models/doctor-model.ts +3 -3
- package/src/models/get-appointment-timetables-response-model.ts +51 -0
- package/src/models/get-patient-walk-in-query.ts +42 -0
- package/src/models/hospital-model.ts +24 -0
- package/src/models/index.ts +23 -0
- package/src/models/manager-item-model.ts +3 -3
- package/src/models/manager-model.ts +3 -3
- package/src/models/patient-affiliation-item-model.ts +162 -0
- package/src/models/patient-affiliation-model.ts +162 -0
- package/src/models/patient-affiliations-model.ts +42 -0
- package/src/models/patient-item-model.ts +3 -3
- package/src/models/patient-model.ts +3 -3
- package/src/models/patient-walk-in-model.ts +39 -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-article-command.ts +6 -0
- package/src/models/update-doctor-affiliation-command.ts +6 -0
- package/src/models/update-hospital-command.ts +24 -0
- package/src/models/update-patient-affiliation-command.ts +120 -0
- package/src/models/update-prescription-command.ts +165 -0
- package/src/models/user-model.ts +3 -3
package/lib/api/patients-api.js
CHANGED
|
@@ -232,15 +232,67 @@ var PatientsApiAxiosParamCreator = function (configuration) {
|
|
|
232
232
|
});
|
|
233
233
|
});
|
|
234
234
|
},
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @summary Get patientAffiliation by patient id and hospital id.
|
|
238
|
+
* @param {string} patientId
|
|
239
|
+
* @param {string} hospitalId
|
|
240
|
+
* @param {string} [languageCode]
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdGet: function (patientId, hospitalId, languageCode, options) {
|
|
245
|
+
if (options === void 0) { options = {}; }
|
|
246
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
247
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
248
|
+
return __generator(this, function (_a) {
|
|
249
|
+
switch (_a.label) {
|
|
250
|
+
case 0:
|
|
251
|
+
// verify required parameter 'patientId' is not null or undefined
|
|
252
|
+
(0, common_1.assertParamExists)('apiV1PatientsPatientIdAffiliationsHospitalIdGet', 'patientId', patientId);
|
|
253
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
254
|
+
(0, common_1.assertParamExists)('apiV1PatientsPatientIdAffiliationsHospitalIdGet', 'hospitalId', hospitalId);
|
|
255
|
+
localVarPath = "/api/v1/patients/{patientId}/affiliations/{hospitalId}"
|
|
256
|
+
.replace("{".concat("patientId", "}"), encodeURIComponent(String(patientId)))
|
|
257
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
258
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
259
|
+
if (configuration) {
|
|
260
|
+
baseOptions = configuration.baseOptions;
|
|
261
|
+
}
|
|
262
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
263
|
+
localVarHeaderParameter = {};
|
|
264
|
+
localVarQueryParameter = {};
|
|
265
|
+
// authentication oauth2 required
|
|
266
|
+
// oauth required
|
|
267
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
268
|
+
case 1:
|
|
269
|
+
// authentication oauth2 required
|
|
270
|
+
// oauth required
|
|
271
|
+
_a.sent();
|
|
272
|
+
if (languageCode !== undefined) {
|
|
273
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
274
|
+
}
|
|
275
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
276
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
277
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
278
|
+
return [2 /*return*/, {
|
|
279
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
280
|
+
options: localVarRequestOptions,
|
|
281
|
+
}];
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
},
|
|
235
286
|
/**
|
|
236
287
|
*
|
|
237
288
|
* @summary Create patient affiliation
|
|
238
289
|
* @param {string} patientId
|
|
239
290
|
* @param {string} hospitalId
|
|
291
|
+
* @param {CreatePatientAffiliationCommand} [createPatientAffiliationCommand]
|
|
240
292
|
* @param {*} [options] Override http request option.
|
|
241
293
|
* @throws {RequiredError}
|
|
242
294
|
*/
|
|
243
|
-
apiV1PatientsPatientIdAffiliationsHospitalIdPost: function (patientId, hospitalId, options) {
|
|
295
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdPost: function (patientId, hospitalId, createPatientAffiliationCommand, options) {
|
|
244
296
|
if (options === void 0) { options = {}; }
|
|
245
297
|
return __awaiter(_this, void 0, void 0, function () {
|
|
246
298
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -268,9 +320,61 @@ var PatientsApiAxiosParamCreator = function (configuration) {
|
|
|
268
320
|
// authentication oauth2 required
|
|
269
321
|
// oauth required
|
|
270
322
|
_a.sent();
|
|
323
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
271
324
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
272
325
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
273
326
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
327
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPatientAffiliationCommand, localVarRequestOptions, configuration);
|
|
328
|
+
return [2 /*return*/, {
|
|
329
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
330
|
+
options: localVarRequestOptions,
|
|
331
|
+
}];
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
},
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @summary Update patient affiliation
|
|
339
|
+
* @param {string} patientId
|
|
340
|
+
* @param {string} hospitalId
|
|
341
|
+
* @param {UpdatePatientAffiliationCommand} [updatePatientAffiliationCommand]
|
|
342
|
+
* @param {*} [options] Override http request option.
|
|
343
|
+
* @throws {RequiredError}
|
|
344
|
+
*/
|
|
345
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdPut: function (patientId, hospitalId, updatePatientAffiliationCommand, options) {
|
|
346
|
+
if (options === void 0) { options = {}; }
|
|
347
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
348
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
349
|
+
return __generator(this, function (_a) {
|
|
350
|
+
switch (_a.label) {
|
|
351
|
+
case 0:
|
|
352
|
+
// verify required parameter 'patientId' is not null or undefined
|
|
353
|
+
(0, common_1.assertParamExists)('apiV1PatientsPatientIdAffiliationsHospitalIdPut', 'patientId', patientId);
|
|
354
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
355
|
+
(0, common_1.assertParamExists)('apiV1PatientsPatientIdAffiliationsHospitalIdPut', 'hospitalId', hospitalId);
|
|
356
|
+
localVarPath = "/api/v1/patients/{patientId}/affiliations/{hospitalId}"
|
|
357
|
+
.replace("{".concat("patientId", "}"), encodeURIComponent(String(patientId)))
|
|
358
|
+
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
359
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
360
|
+
if (configuration) {
|
|
361
|
+
baseOptions = configuration.baseOptions;
|
|
362
|
+
}
|
|
363
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
364
|
+
localVarHeaderParameter = {};
|
|
365
|
+
localVarQueryParameter = {};
|
|
366
|
+
// authentication oauth2 required
|
|
367
|
+
// oauth required
|
|
368
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
369
|
+
case 1:
|
|
370
|
+
// authentication oauth2 required
|
|
371
|
+
// oauth required
|
|
372
|
+
_a.sent();
|
|
373
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
374
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
375
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
376
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
377
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePatientAffiliationCommand, localVarRequestOptions, configuration);
|
|
274
378
|
return [2 /*return*/, {
|
|
275
379
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
276
380
|
options: localVarRequestOptions,
|
|
@@ -504,6 +608,48 @@ var PatientsApiAxiosParamCreator = function (configuration) {
|
|
|
504
608
|
});
|
|
505
609
|
});
|
|
506
610
|
},
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @summary Get patient information for Patient walk-in feature
|
|
614
|
+
* @param {GetPatientWalkInQuery} [getPatientWalkInQuery]
|
|
615
|
+
* @param {*} [options] Override http request option.
|
|
616
|
+
* @throws {RequiredError}
|
|
617
|
+
*/
|
|
618
|
+
apiV1PatientsWalkinPost: function (getPatientWalkInQuery, options) {
|
|
619
|
+
if (options === void 0) { options = {}; }
|
|
620
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
621
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
622
|
+
return __generator(this, function (_a) {
|
|
623
|
+
switch (_a.label) {
|
|
624
|
+
case 0:
|
|
625
|
+
localVarPath = "/api/v1/patients/walkin";
|
|
626
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
627
|
+
if (configuration) {
|
|
628
|
+
baseOptions = configuration.baseOptions;
|
|
629
|
+
}
|
|
630
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
631
|
+
localVarHeaderParameter = {};
|
|
632
|
+
localVarQueryParameter = {};
|
|
633
|
+
// authentication oauth2 required
|
|
634
|
+
// oauth required
|
|
635
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
636
|
+
case 1:
|
|
637
|
+
// authentication oauth2 required
|
|
638
|
+
// oauth required
|
|
639
|
+
_a.sent();
|
|
640
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
641
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
642
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
643
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
644
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(getPatientWalkInQuery, localVarRequestOptions, configuration);
|
|
645
|
+
return [2 /*return*/, {
|
|
646
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
647
|
+
options: localVarRequestOptions,
|
|
648
|
+
}];
|
|
649
|
+
}
|
|
650
|
+
});
|
|
651
|
+
});
|
|
652
|
+
},
|
|
507
653
|
};
|
|
508
654
|
};
|
|
509
655
|
exports.PatientsApiAxiosParamCreator = PatientsApiAxiosParamCreator;
|
|
@@ -566,20 +712,65 @@ var PatientsApiFp = function (configuration) {
|
|
|
566
712
|
});
|
|
567
713
|
});
|
|
568
714
|
},
|
|
715
|
+
/**
|
|
716
|
+
*
|
|
717
|
+
* @summary Get patientAffiliation by patient id and hospital id.
|
|
718
|
+
* @param {string} patientId
|
|
719
|
+
* @param {string} hospitalId
|
|
720
|
+
* @param {string} [languageCode]
|
|
721
|
+
* @param {*} [options] Override http request option.
|
|
722
|
+
* @throws {RequiredError}
|
|
723
|
+
*/
|
|
724
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdGet: function (patientId, hospitalId, languageCode, options) {
|
|
725
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
726
|
+
var localVarAxiosArgs;
|
|
727
|
+
return __generator(this, function (_a) {
|
|
728
|
+
switch (_a.label) {
|
|
729
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientsPatientIdAffiliationsHospitalIdGet(patientId, hospitalId, languageCode, options)];
|
|
730
|
+
case 1:
|
|
731
|
+
localVarAxiosArgs = _a.sent();
|
|
732
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
733
|
+
}
|
|
734
|
+
});
|
|
735
|
+
});
|
|
736
|
+
},
|
|
569
737
|
/**
|
|
570
738
|
*
|
|
571
739
|
* @summary Create patient affiliation
|
|
572
740
|
* @param {string} patientId
|
|
573
741
|
* @param {string} hospitalId
|
|
742
|
+
* @param {CreatePatientAffiliationCommand} [createPatientAffiliationCommand]
|
|
743
|
+
* @param {*} [options] Override http request option.
|
|
744
|
+
* @throws {RequiredError}
|
|
745
|
+
*/
|
|
746
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdPost: function (patientId, hospitalId, createPatientAffiliationCommand, options) {
|
|
747
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
748
|
+
var localVarAxiosArgs;
|
|
749
|
+
return __generator(this, function (_a) {
|
|
750
|
+
switch (_a.label) {
|
|
751
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientsPatientIdAffiliationsHospitalIdPost(patientId, hospitalId, createPatientAffiliationCommand, options)];
|
|
752
|
+
case 1:
|
|
753
|
+
localVarAxiosArgs = _a.sent();
|
|
754
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
755
|
+
}
|
|
756
|
+
});
|
|
757
|
+
});
|
|
758
|
+
},
|
|
759
|
+
/**
|
|
760
|
+
*
|
|
761
|
+
* @summary Update patient affiliation
|
|
762
|
+
* @param {string} patientId
|
|
763
|
+
* @param {string} hospitalId
|
|
764
|
+
* @param {UpdatePatientAffiliationCommand} [updatePatientAffiliationCommand]
|
|
574
765
|
* @param {*} [options] Override http request option.
|
|
575
766
|
* @throws {RequiredError}
|
|
576
767
|
*/
|
|
577
|
-
|
|
768
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdPut: function (patientId, hospitalId, updatePatientAffiliationCommand, options) {
|
|
578
769
|
return __awaiter(this, void 0, void 0, function () {
|
|
579
770
|
var localVarAxiosArgs;
|
|
580
771
|
return __generator(this, function (_a) {
|
|
581
772
|
switch (_a.label) {
|
|
582
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
773
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientsPatientIdAffiliationsHospitalIdPut(patientId, hospitalId, updatePatientAffiliationCommand, options)];
|
|
583
774
|
case 1:
|
|
584
775
|
localVarAxiosArgs = _a.sent();
|
|
585
776
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -690,6 +881,26 @@ var PatientsApiFp = function (configuration) {
|
|
|
690
881
|
});
|
|
691
882
|
});
|
|
692
883
|
},
|
|
884
|
+
/**
|
|
885
|
+
*
|
|
886
|
+
* @summary Get patient information for Patient walk-in feature
|
|
887
|
+
* @param {GetPatientWalkInQuery} [getPatientWalkInQuery]
|
|
888
|
+
* @param {*} [options] Override http request option.
|
|
889
|
+
* @throws {RequiredError}
|
|
890
|
+
*/
|
|
891
|
+
apiV1PatientsWalkinPost: function (getPatientWalkInQuery, options) {
|
|
892
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
893
|
+
var localVarAxiosArgs;
|
|
894
|
+
return __generator(this, function (_a) {
|
|
895
|
+
switch (_a.label) {
|
|
896
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientsWalkinPost(getPatientWalkInQuery, options)];
|
|
897
|
+
case 1:
|
|
898
|
+
localVarAxiosArgs = _a.sent();
|
|
899
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
});
|
|
903
|
+
},
|
|
693
904
|
};
|
|
694
905
|
};
|
|
695
906
|
exports.PatientsApiFp = PatientsApiFp;
|
|
@@ -732,16 +943,41 @@ var PatientsApiFactory = function (configuration, basePath, axios) {
|
|
|
732
943
|
apiV1PatientsPatientIdAffiliationsHospitalIdDelete: function (patientId, hospitalId, isPermanent, options) {
|
|
733
944
|
return localVarFp.apiV1PatientsPatientIdAffiliationsHospitalIdDelete(patientId, hospitalId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
734
945
|
},
|
|
946
|
+
/**
|
|
947
|
+
*
|
|
948
|
+
* @summary Get patientAffiliation by patient id and hospital id.
|
|
949
|
+
* @param {string} patientId
|
|
950
|
+
* @param {string} hospitalId
|
|
951
|
+
* @param {string} [languageCode]
|
|
952
|
+
* @param {*} [options] Override http request option.
|
|
953
|
+
* @throws {RequiredError}
|
|
954
|
+
*/
|
|
955
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdGet: function (patientId, hospitalId, languageCode, options) {
|
|
956
|
+
return localVarFp.apiV1PatientsPatientIdAffiliationsHospitalIdGet(patientId, hospitalId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
957
|
+
},
|
|
735
958
|
/**
|
|
736
959
|
*
|
|
737
960
|
* @summary Create patient affiliation
|
|
738
961
|
* @param {string} patientId
|
|
739
962
|
* @param {string} hospitalId
|
|
963
|
+
* @param {CreatePatientAffiliationCommand} [createPatientAffiliationCommand]
|
|
964
|
+
* @param {*} [options] Override http request option.
|
|
965
|
+
* @throws {RequiredError}
|
|
966
|
+
*/
|
|
967
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdPost: function (patientId, hospitalId, createPatientAffiliationCommand, options) {
|
|
968
|
+
return localVarFp.apiV1PatientsPatientIdAffiliationsHospitalIdPost(patientId, hospitalId, createPatientAffiliationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
969
|
+
},
|
|
970
|
+
/**
|
|
971
|
+
*
|
|
972
|
+
* @summary Update patient affiliation
|
|
973
|
+
* @param {string} patientId
|
|
974
|
+
* @param {string} hospitalId
|
|
975
|
+
* @param {UpdatePatientAffiliationCommand} [updatePatientAffiliationCommand]
|
|
740
976
|
* @param {*} [options] Override http request option.
|
|
741
977
|
* @throws {RequiredError}
|
|
742
978
|
*/
|
|
743
|
-
|
|
744
|
-
return localVarFp.
|
|
979
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdPut: function (patientId, hospitalId, updatePatientAffiliationCommand, options) {
|
|
980
|
+
return localVarFp.apiV1PatientsPatientIdAffiliationsHospitalIdPut(patientId, hospitalId, updatePatientAffiliationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
745
981
|
},
|
|
746
982
|
/**
|
|
747
983
|
*
|
|
@@ -796,6 +1032,16 @@ var PatientsApiFactory = function (configuration, basePath, axios) {
|
|
|
796
1032
|
apiV1PatientsPost: function (createPatientCommand, options) {
|
|
797
1033
|
return localVarFp.apiV1PatientsPost(createPatientCommand, options).then(function (request) { return request(axios, basePath); });
|
|
798
1034
|
},
|
|
1035
|
+
/**
|
|
1036
|
+
*
|
|
1037
|
+
* @summary Get patient information for Patient walk-in feature
|
|
1038
|
+
* @param {GetPatientWalkInQuery} [getPatientWalkInQuery]
|
|
1039
|
+
* @param {*} [options] Override http request option.
|
|
1040
|
+
* @throws {RequiredError}
|
|
1041
|
+
*/
|
|
1042
|
+
apiV1PatientsWalkinPost: function (getPatientWalkInQuery, options) {
|
|
1043
|
+
return localVarFp.apiV1PatientsWalkinPost(getPatientWalkInQuery, options).then(function (request) { return request(axios, basePath); });
|
|
1044
|
+
},
|
|
799
1045
|
};
|
|
800
1046
|
};
|
|
801
1047
|
exports.PatientsApiFactory = PatientsApiFactory;
|
|
@@ -835,6 +1081,18 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
835
1081
|
var _this = this;
|
|
836
1082
|
return (0, exports.PatientsApiFp)(this.configuration).apiV1PatientsPatientIdAffiliationsHospitalIdDelete(requestParameters.patientId, requestParameters.hospitalId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
837
1083
|
};
|
|
1084
|
+
/**
|
|
1085
|
+
*
|
|
1086
|
+
* @summary Get patientAffiliation by patient id and hospital id.
|
|
1087
|
+
* @param {PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdGetRequest} requestParameters Request parameters.
|
|
1088
|
+
* @param {*} [options] Override http request option.
|
|
1089
|
+
* @throws {RequiredError}
|
|
1090
|
+
* @memberof PatientsApi
|
|
1091
|
+
*/
|
|
1092
|
+
PatientsApi.prototype.apiV1PatientsPatientIdAffiliationsHospitalIdGet = function (requestParameters, options) {
|
|
1093
|
+
var _this = this;
|
|
1094
|
+
return (0, exports.PatientsApiFp)(this.configuration).apiV1PatientsPatientIdAffiliationsHospitalIdGet(requestParameters.patientId, requestParameters.hospitalId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1095
|
+
};
|
|
838
1096
|
/**
|
|
839
1097
|
*
|
|
840
1098
|
* @summary Create patient affiliation
|
|
@@ -845,7 +1103,19 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
845
1103
|
*/
|
|
846
1104
|
PatientsApi.prototype.apiV1PatientsPatientIdAffiliationsHospitalIdPost = function (requestParameters, options) {
|
|
847
1105
|
var _this = this;
|
|
848
|
-
return (0, exports.PatientsApiFp)(this.configuration).apiV1PatientsPatientIdAffiliationsHospitalIdPost(requestParameters.patientId, requestParameters.hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1106
|
+
return (0, exports.PatientsApiFp)(this.configuration).apiV1PatientsPatientIdAffiliationsHospitalIdPost(requestParameters.patientId, requestParameters.hospitalId, requestParameters.createPatientAffiliationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1107
|
+
};
|
|
1108
|
+
/**
|
|
1109
|
+
*
|
|
1110
|
+
* @summary Update patient affiliation
|
|
1111
|
+
* @param {PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdPutRequest} requestParameters Request parameters.
|
|
1112
|
+
* @param {*} [options] Override http request option.
|
|
1113
|
+
* @throws {RequiredError}
|
|
1114
|
+
* @memberof PatientsApi
|
|
1115
|
+
*/
|
|
1116
|
+
PatientsApi.prototype.apiV1PatientsPatientIdAffiliationsHospitalIdPut = function (requestParameters, options) {
|
|
1117
|
+
var _this = this;
|
|
1118
|
+
return (0, exports.PatientsApiFp)(this.configuration).apiV1PatientsPatientIdAffiliationsHospitalIdPut(requestParameters.patientId, requestParameters.hospitalId, requestParameters.updatePatientAffiliationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
849
1119
|
};
|
|
850
1120
|
/**
|
|
851
1121
|
*
|
|
@@ -908,6 +1178,19 @@ var PatientsApi = /** @class */ (function (_super) {
|
|
|
908
1178
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
909
1179
|
return (0, exports.PatientsApiFp)(this.configuration).apiV1PatientsPost(requestParameters.createPatientCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
910
1180
|
};
|
|
1181
|
+
/**
|
|
1182
|
+
*
|
|
1183
|
+
* @summary Get patient information for Patient walk-in feature
|
|
1184
|
+
* @param {PatientsApiApiV1PatientsWalkinPostRequest} requestParameters Request parameters.
|
|
1185
|
+
* @param {*} [options] Override http request option.
|
|
1186
|
+
* @throws {RequiredError}
|
|
1187
|
+
* @memberof PatientsApi
|
|
1188
|
+
*/
|
|
1189
|
+
PatientsApi.prototype.apiV1PatientsWalkinPost = function (requestParameters, options) {
|
|
1190
|
+
var _this = this;
|
|
1191
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1192
|
+
return (0, exports.PatientsApiFp)(this.configuration).apiV1PatientsWalkinPost(requestParameters.getPatientWalkInQuery, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1193
|
+
};
|
|
911
1194
|
return PatientsApi;
|
|
912
1195
|
}(base_1.BaseAPI));
|
|
913
1196
|
exports.PatientsApi = PatientsApi;
|