ch-admin-api-client-typescript 5.24.10 → 5.24.15
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 +101 -0
- package/lib/api/appointments-api.d.ts.map +1 -1
- package/lib/api/appointments-api.js +176 -0
- package/lib/api/azure-functions-app-webhooks-api.d.ts +88 -0
- package/lib/api/azure-functions-app-webhooks-api.d.ts.map +1 -0
- package/lib/api/azure-functions-app-webhooks-api.js +206 -0
- package/lib/api/prescriptions-api.d.ts +193 -0
- package/lib/api/prescriptions-api.d.ts.map +1 -1
- 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-item-model.d.ts +6 -0
- package/lib/models/appointment-item-model.d.ts.map +1 -1
- package/lib/models/appointment-model.d.ts +6 -0
- package/lib/models/appointment-model.d.ts.map +1 -1
- package/lib/models/create-walk-in-appointment-command.d.ts +2 -2
- package/lib/models/create-walk-in-appointment-command.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-item-model.d.ts +6 -0
- package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-model.d.ts +6 -0
- package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
- package/lib/models/generated-pdf-command.d.ts +25 -0
- package/lib/models/generated-pdf-command.d.ts.map +1 -0
- package/lib/models/generated-pdf-command.js +15 -0
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +1 -0
- package/lib/models/payment-model.d.ts +6 -0
- package/lib/models/payment-model.d.ts.map +1 -1
- package/lib/models/prescription-item-model.d.ts +12 -0
- package/lib/models/prescription-item-model.d.ts.map +1 -1
- package/lib/models/prescription-model.d.ts +12 -0
- package/lib/models/prescription-model.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +2 -0
- package/src/api/appointments-api.ts +184 -0
- package/src/api/azure-functions-app-webhooks-api.ts +143 -0
- package/src/api/prescriptions-api.ts +354 -0
- package/src/api.ts +1 -0
- package/src/models/appointment-item-model.ts +6 -0
- package/src/models/appointment-model.ts +6 -0
- package/src/models/create-walk-in-appointment-command.ts +2 -2
- package/src/models/doctor-affiliation-item-model.ts +6 -0
- package/src/models/doctor-affiliation-model.ts +6 -0
- package/src/models/generated-pdf-command.ts +30 -0
- package/src/models/index.ts +1 -0
- package/src/models/payment-model.ts +6 -0
- package/src/models/prescription-item-model.ts +12 -0
- package/src/models/prescription-model.ts +12 -0
|
@@ -170,6 +170,44 @@ export const PrescriptionsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
170
170
|
options: localVarRequestOptions,
|
|
171
171
|
};
|
|
172
172
|
},
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @summary Set IsConfirmed of prescription to true
|
|
176
|
+
* @param {string} prescriptionId
|
|
177
|
+
* @param {*} [options] Override http request option.
|
|
178
|
+
* @throws {RequiredError}
|
|
179
|
+
*/
|
|
180
|
+
apiV1PrescriptionsPrescriptionIdConfirmPatch: async (prescriptionId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
181
|
+
// verify required parameter 'prescriptionId' is not null or undefined
|
|
182
|
+
assertParamExists('apiV1PrescriptionsPrescriptionIdConfirmPatch', 'prescriptionId', prescriptionId)
|
|
183
|
+
const localVarPath = `/api/v1/prescriptions/{prescriptionId}/confirm`
|
|
184
|
+
.replace(`{${"prescriptionId"}}`, encodeURIComponent(String(prescriptionId)));
|
|
185
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
186
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
187
|
+
let baseOptions;
|
|
188
|
+
if (configuration) {
|
|
189
|
+
baseOptions = configuration.baseOptions;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
193
|
+
const localVarHeaderParameter = {} as any;
|
|
194
|
+
const localVarQueryParameter = {} as any;
|
|
195
|
+
|
|
196
|
+
// authentication oauth2 required
|
|
197
|
+
// oauth required
|
|
198
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
203
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
204
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
205
|
+
|
|
206
|
+
return {
|
|
207
|
+
url: toPathString(localVarUrlObj),
|
|
208
|
+
options: localVarRequestOptions,
|
|
209
|
+
};
|
|
210
|
+
},
|
|
173
211
|
/**
|
|
174
212
|
*
|
|
175
213
|
* @summary Delete prescription
|
|
@@ -247,6 +285,87 @@ export const PrescriptionsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
247
285
|
|
|
248
286
|
|
|
249
287
|
|
|
288
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
289
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
290
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
291
|
+
|
|
292
|
+
return {
|
|
293
|
+
url: toPathString(localVarUrlObj),
|
|
294
|
+
options: localVarRequestOptions,
|
|
295
|
+
};
|
|
296
|
+
},
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @summary Delete prexcription pdf file
|
|
300
|
+
* @param {string} prescriptionId
|
|
301
|
+
* @param {*} [options] Override http request option.
|
|
302
|
+
* @throws {RequiredError}
|
|
303
|
+
*/
|
|
304
|
+
apiV1PrescriptionsPrescriptionIdPdfDelete: async (prescriptionId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
305
|
+
// verify required parameter 'prescriptionId' is not null or undefined
|
|
306
|
+
assertParamExists('apiV1PrescriptionsPrescriptionIdPdfDelete', 'prescriptionId', prescriptionId)
|
|
307
|
+
const localVarPath = `/api/v1/prescriptions/{prescriptionId}/pdf`
|
|
308
|
+
.replace(`{${"prescriptionId"}}`, encodeURIComponent(String(prescriptionId)));
|
|
309
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
310
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
311
|
+
let baseOptions;
|
|
312
|
+
if (configuration) {
|
|
313
|
+
baseOptions = configuration.baseOptions;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
317
|
+
const localVarHeaderParameter = {} as any;
|
|
318
|
+
const localVarQueryParameter = {} as any;
|
|
319
|
+
|
|
320
|
+
// authentication oauth2 required
|
|
321
|
+
// oauth required
|
|
322
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
327
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
328
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
329
|
+
|
|
330
|
+
return {
|
|
331
|
+
url: toPathString(localVarUrlObj),
|
|
332
|
+
options: localVarRequestOptions,
|
|
333
|
+
};
|
|
334
|
+
},
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
* @summary Create prescription pdf file
|
|
338
|
+
* @param {string} prescriptionId
|
|
339
|
+
* @param {string} [languageCode]
|
|
340
|
+
* @param {*} [options] Override http request option.
|
|
341
|
+
* @throws {RequiredError}
|
|
342
|
+
*/
|
|
343
|
+
apiV1PrescriptionsPrescriptionIdPdfPost: async (prescriptionId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
344
|
+
// verify required parameter 'prescriptionId' is not null or undefined
|
|
345
|
+
assertParamExists('apiV1PrescriptionsPrescriptionIdPdfPost', 'prescriptionId', prescriptionId)
|
|
346
|
+
const localVarPath = `/api/v1/prescriptions/{prescriptionId}/pdf`
|
|
347
|
+
.replace(`{${"prescriptionId"}}`, encodeURIComponent(String(prescriptionId)));
|
|
348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
349
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
350
|
+
let baseOptions;
|
|
351
|
+
if (configuration) {
|
|
352
|
+
baseOptions = configuration.baseOptions;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
356
|
+
const localVarHeaderParameter = {} as any;
|
|
357
|
+
const localVarQueryParameter = {} as any;
|
|
358
|
+
|
|
359
|
+
// authentication oauth2 required
|
|
360
|
+
// oauth required
|
|
361
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
|
|
362
|
+
|
|
363
|
+
if (languageCode !== undefined) {
|
|
364
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
250
369
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
251
370
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
252
371
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -327,6 +446,44 @@ export const PrescriptionsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
327
446
|
|
|
328
447
|
|
|
329
448
|
|
|
449
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
450
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
451
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
452
|
+
|
|
453
|
+
return {
|
|
454
|
+
url: toPathString(localVarUrlObj),
|
|
455
|
+
options: localVarRequestOptions,
|
|
456
|
+
};
|
|
457
|
+
},
|
|
458
|
+
/**
|
|
459
|
+
*
|
|
460
|
+
* @summary Set IsConfirmed of prescription to false <br> If pdf file had been generated, pdf file deleted.
|
|
461
|
+
* @param {string} prescriptionId
|
|
462
|
+
* @param {*} [options] Override http request option.
|
|
463
|
+
* @throws {RequiredError}
|
|
464
|
+
*/
|
|
465
|
+
apiV1PrescriptionsPrescriptionIdUnconfirmPatch: async (prescriptionId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
466
|
+
// verify required parameter 'prescriptionId' is not null or undefined
|
|
467
|
+
assertParamExists('apiV1PrescriptionsPrescriptionIdUnconfirmPatch', 'prescriptionId', prescriptionId)
|
|
468
|
+
const localVarPath = `/api/v1/prescriptions/{prescriptionId}/unconfirm`
|
|
469
|
+
.replace(`{${"prescriptionId"}}`, encodeURIComponent(String(prescriptionId)));
|
|
470
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
471
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
472
|
+
let baseOptions;
|
|
473
|
+
if (configuration) {
|
|
474
|
+
baseOptions = configuration.baseOptions;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
478
|
+
const localVarHeaderParameter = {} as any;
|
|
479
|
+
const localVarQueryParameter = {} as any;
|
|
480
|
+
|
|
481
|
+
// authentication oauth2 required
|
|
482
|
+
// oauth required
|
|
483
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
330
487
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
331
488
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
332
489
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -379,6 +536,17 @@ export const PrescriptionsApiFp = function(configuration?: Configuration) {
|
|
|
379
536
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsPost(createPrescriptionCommand, options);
|
|
380
537
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
538
|
},
|
|
539
|
+
/**
|
|
540
|
+
*
|
|
541
|
+
* @summary Set IsConfirmed of prescription to true
|
|
542
|
+
* @param {string} prescriptionId
|
|
543
|
+
* @param {*} [options] Override http request option.
|
|
544
|
+
* @throws {RequiredError}
|
|
545
|
+
*/
|
|
546
|
+
async apiV1PrescriptionsPrescriptionIdConfirmPatch(prescriptionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
547
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdConfirmPatch(prescriptionId, options);
|
|
548
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
549
|
+
},
|
|
382
550
|
/**
|
|
383
551
|
*
|
|
384
552
|
* @summary Delete prescription
|
|
@@ -403,6 +571,29 @@ export const PrescriptionsApiFp = function(configuration?: Configuration) {
|
|
|
403
571
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdGet(prescriptionId, languageCode, options);
|
|
404
572
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
405
573
|
},
|
|
574
|
+
/**
|
|
575
|
+
*
|
|
576
|
+
* @summary Delete prexcription pdf file
|
|
577
|
+
* @param {string} prescriptionId
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
*/
|
|
581
|
+
async apiV1PrescriptionsPrescriptionIdPdfDelete(prescriptionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
582
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdPdfDelete(prescriptionId, options);
|
|
583
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
584
|
+
},
|
|
585
|
+
/**
|
|
586
|
+
*
|
|
587
|
+
* @summary Create prescription pdf file
|
|
588
|
+
* @param {string} prescriptionId
|
|
589
|
+
* @param {string} [languageCode]
|
|
590
|
+
* @param {*} [options] Override http request option.
|
|
591
|
+
* @throws {RequiredError}
|
|
592
|
+
*/
|
|
593
|
+
async apiV1PrescriptionsPrescriptionIdPdfPost(prescriptionId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
594
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdPdfPost(prescriptionId, languageCode, options);
|
|
595
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
596
|
+
},
|
|
406
597
|
/**
|
|
407
598
|
*
|
|
408
599
|
* @summary Update prescription
|
|
@@ -426,6 +617,17 @@ export const PrescriptionsApiFp = function(configuration?: Configuration) {
|
|
|
426
617
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdReactivatePut(prescriptionId, options);
|
|
427
618
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
428
619
|
},
|
|
620
|
+
/**
|
|
621
|
+
*
|
|
622
|
+
* @summary Set IsConfirmed of prescription to false <br> If pdf file had been generated, pdf file deleted.
|
|
623
|
+
* @param {string} prescriptionId
|
|
624
|
+
* @param {*} [options] Override http request option.
|
|
625
|
+
* @throws {RequiredError}
|
|
626
|
+
*/
|
|
627
|
+
async apiV1PrescriptionsPrescriptionIdUnconfirmPatch(prescriptionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
628
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdUnconfirmPatch(prescriptionId, options);
|
|
629
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
630
|
+
},
|
|
429
631
|
}
|
|
430
632
|
};
|
|
431
633
|
|
|
@@ -467,6 +669,16 @@ export const PrescriptionsApiFactory = function (configuration?: Configuration,
|
|
|
467
669
|
apiV1PrescriptionsPost(createPrescriptionCommand?: CreatePrescriptionCommand, options?: any): AxiosPromise<PrescriptionModel> {
|
|
468
670
|
return localVarFp.apiV1PrescriptionsPost(createPrescriptionCommand, options).then((request) => request(axios, basePath));
|
|
469
671
|
},
|
|
672
|
+
/**
|
|
673
|
+
*
|
|
674
|
+
* @summary Set IsConfirmed of prescription to true
|
|
675
|
+
* @param {string} prescriptionId
|
|
676
|
+
* @param {*} [options] Override http request option.
|
|
677
|
+
* @throws {RequiredError}
|
|
678
|
+
*/
|
|
679
|
+
apiV1PrescriptionsPrescriptionIdConfirmPatch(prescriptionId: string, options?: any): AxiosPromise<boolean> {
|
|
680
|
+
return localVarFp.apiV1PrescriptionsPrescriptionIdConfirmPatch(prescriptionId, options).then((request) => request(axios, basePath));
|
|
681
|
+
},
|
|
470
682
|
/**
|
|
471
683
|
*
|
|
472
684
|
* @summary Delete prescription
|
|
@@ -489,6 +701,27 @@ export const PrescriptionsApiFactory = function (configuration?: Configuration,
|
|
|
489
701
|
apiV1PrescriptionsPrescriptionIdGet(prescriptionId: string, languageCode?: string, options?: any): AxiosPromise<PrescriptionModel> {
|
|
490
702
|
return localVarFp.apiV1PrescriptionsPrescriptionIdGet(prescriptionId, languageCode, options).then((request) => request(axios, basePath));
|
|
491
703
|
},
|
|
704
|
+
/**
|
|
705
|
+
*
|
|
706
|
+
* @summary Delete prexcription pdf file
|
|
707
|
+
* @param {string} prescriptionId
|
|
708
|
+
* @param {*} [options] Override http request option.
|
|
709
|
+
* @throws {RequiredError}
|
|
710
|
+
*/
|
|
711
|
+
apiV1PrescriptionsPrescriptionIdPdfDelete(prescriptionId: string, options?: any): AxiosPromise<boolean> {
|
|
712
|
+
return localVarFp.apiV1PrescriptionsPrescriptionIdPdfDelete(prescriptionId, options).then((request) => request(axios, basePath));
|
|
713
|
+
},
|
|
714
|
+
/**
|
|
715
|
+
*
|
|
716
|
+
* @summary Create prescription pdf file
|
|
717
|
+
* @param {string} prescriptionId
|
|
718
|
+
* @param {string} [languageCode]
|
|
719
|
+
* @param {*} [options] Override http request option.
|
|
720
|
+
* @throws {RequiredError}
|
|
721
|
+
*/
|
|
722
|
+
apiV1PrescriptionsPrescriptionIdPdfPost(prescriptionId: string, languageCode?: string, options?: any): AxiosPromise<boolean> {
|
|
723
|
+
return localVarFp.apiV1PrescriptionsPrescriptionIdPdfPost(prescriptionId, languageCode, options).then((request) => request(axios, basePath));
|
|
724
|
+
},
|
|
492
725
|
/**
|
|
493
726
|
*
|
|
494
727
|
* @summary Update prescription
|
|
@@ -510,6 +743,16 @@ export const PrescriptionsApiFactory = function (configuration?: Configuration,
|
|
|
510
743
|
apiV1PrescriptionsPrescriptionIdReactivatePut(prescriptionId: string, options?: any): AxiosPromise<boolean> {
|
|
511
744
|
return localVarFp.apiV1PrescriptionsPrescriptionIdReactivatePut(prescriptionId, options).then((request) => request(axios, basePath));
|
|
512
745
|
},
|
|
746
|
+
/**
|
|
747
|
+
*
|
|
748
|
+
* @summary Set IsConfirmed of prescription to false <br> If pdf file had been generated, pdf file deleted.
|
|
749
|
+
* @param {string} prescriptionId
|
|
750
|
+
* @param {*} [options] Override http request option.
|
|
751
|
+
* @throws {RequiredError}
|
|
752
|
+
*/
|
|
753
|
+
apiV1PrescriptionsPrescriptionIdUnconfirmPatch(prescriptionId: string, options?: any): AxiosPromise<boolean> {
|
|
754
|
+
return localVarFp.apiV1PrescriptionsPrescriptionIdUnconfirmPatch(prescriptionId, options).then((request) => request(axios, basePath));
|
|
755
|
+
},
|
|
513
756
|
};
|
|
514
757
|
};
|
|
515
758
|
|
|
@@ -618,6 +861,20 @@ export interface PrescriptionsApiApiV1PrescriptionsPostRequest {
|
|
|
618
861
|
readonly createPrescriptionCommand?: CreatePrescriptionCommand
|
|
619
862
|
}
|
|
620
863
|
|
|
864
|
+
/**
|
|
865
|
+
* Request parameters for apiV1PrescriptionsPrescriptionIdConfirmPatch operation in PrescriptionsApi.
|
|
866
|
+
* @export
|
|
867
|
+
* @interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdConfirmPatchRequest
|
|
868
|
+
*/
|
|
869
|
+
export interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdConfirmPatchRequest {
|
|
870
|
+
/**
|
|
871
|
+
*
|
|
872
|
+
* @type {string}
|
|
873
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPrescriptionIdConfirmPatch
|
|
874
|
+
*/
|
|
875
|
+
readonly prescriptionId: string
|
|
876
|
+
}
|
|
877
|
+
|
|
621
878
|
/**
|
|
622
879
|
* Request parameters for apiV1PrescriptionsPrescriptionIdDelete operation in PrescriptionsApi.
|
|
623
880
|
* @export
|
|
@@ -660,6 +917,41 @@ export interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdGetRequest {
|
|
|
660
917
|
readonly languageCode?: string
|
|
661
918
|
}
|
|
662
919
|
|
|
920
|
+
/**
|
|
921
|
+
* Request parameters for apiV1PrescriptionsPrescriptionIdPdfDelete operation in PrescriptionsApi.
|
|
922
|
+
* @export
|
|
923
|
+
* @interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdPdfDeleteRequest
|
|
924
|
+
*/
|
|
925
|
+
export interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdPdfDeleteRequest {
|
|
926
|
+
/**
|
|
927
|
+
*
|
|
928
|
+
* @type {string}
|
|
929
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPrescriptionIdPdfDelete
|
|
930
|
+
*/
|
|
931
|
+
readonly prescriptionId: string
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* Request parameters for apiV1PrescriptionsPrescriptionIdPdfPost operation in PrescriptionsApi.
|
|
936
|
+
* @export
|
|
937
|
+
* @interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdPdfPostRequest
|
|
938
|
+
*/
|
|
939
|
+
export interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdPdfPostRequest {
|
|
940
|
+
/**
|
|
941
|
+
*
|
|
942
|
+
* @type {string}
|
|
943
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPrescriptionIdPdfPost
|
|
944
|
+
*/
|
|
945
|
+
readonly prescriptionId: string
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
*
|
|
949
|
+
* @type {string}
|
|
950
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPrescriptionIdPdfPost
|
|
951
|
+
*/
|
|
952
|
+
readonly languageCode?: string
|
|
953
|
+
}
|
|
954
|
+
|
|
663
955
|
/**
|
|
664
956
|
* Request parameters for apiV1PrescriptionsPrescriptionIdPut operation in PrescriptionsApi.
|
|
665
957
|
* @export
|
|
@@ -695,6 +987,20 @@ export interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdReactivatePutRe
|
|
|
695
987
|
readonly prescriptionId: string
|
|
696
988
|
}
|
|
697
989
|
|
|
990
|
+
/**
|
|
991
|
+
* Request parameters for apiV1PrescriptionsPrescriptionIdUnconfirmPatch operation in PrescriptionsApi.
|
|
992
|
+
* @export
|
|
993
|
+
* @interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdUnconfirmPatchRequest
|
|
994
|
+
*/
|
|
995
|
+
export interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdUnconfirmPatchRequest {
|
|
996
|
+
/**
|
|
997
|
+
*
|
|
998
|
+
* @type {string}
|
|
999
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPrescriptionIdUnconfirmPatch
|
|
1000
|
+
*/
|
|
1001
|
+
readonly prescriptionId: string
|
|
1002
|
+
}
|
|
1003
|
+
|
|
698
1004
|
/**
|
|
699
1005
|
* PrescriptionsApi - object-oriented interface
|
|
700
1006
|
* @export
|
|
@@ -726,6 +1032,18 @@ export class PrescriptionsApi extends BaseAPI {
|
|
|
726
1032
|
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsPost(requestParameters.createPrescriptionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
727
1033
|
}
|
|
728
1034
|
|
|
1035
|
+
/**
|
|
1036
|
+
*
|
|
1037
|
+
* @summary Set IsConfirmed of prescription to true
|
|
1038
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPrescriptionIdConfirmPatchRequest} requestParameters Request parameters.
|
|
1039
|
+
* @param {*} [options] Override http request option.
|
|
1040
|
+
* @throws {RequiredError}
|
|
1041
|
+
* @memberof PrescriptionsApi
|
|
1042
|
+
*/
|
|
1043
|
+
public apiV1PrescriptionsPrescriptionIdConfirmPatch(requestParameters: PrescriptionsApiApiV1PrescriptionsPrescriptionIdConfirmPatchRequest, options?: AxiosRequestConfig) {
|
|
1044
|
+
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsPrescriptionIdConfirmPatch(requestParameters.prescriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
1045
|
+
}
|
|
1046
|
+
|
|
729
1047
|
/**
|
|
730
1048
|
*
|
|
731
1049
|
* @summary Delete prescription
|
|
@@ -750,6 +1068,30 @@ export class PrescriptionsApi extends BaseAPI {
|
|
|
750
1068
|
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsPrescriptionIdGet(requestParameters.prescriptionId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
751
1069
|
}
|
|
752
1070
|
|
|
1071
|
+
/**
|
|
1072
|
+
*
|
|
1073
|
+
* @summary Delete prexcription pdf file
|
|
1074
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPrescriptionIdPdfDeleteRequest} requestParameters Request parameters.
|
|
1075
|
+
* @param {*} [options] Override http request option.
|
|
1076
|
+
* @throws {RequiredError}
|
|
1077
|
+
* @memberof PrescriptionsApi
|
|
1078
|
+
*/
|
|
1079
|
+
public apiV1PrescriptionsPrescriptionIdPdfDelete(requestParameters: PrescriptionsApiApiV1PrescriptionsPrescriptionIdPdfDeleteRequest, options?: AxiosRequestConfig) {
|
|
1080
|
+
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsPrescriptionIdPdfDelete(requestParameters.prescriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
*
|
|
1085
|
+
* @summary Create prescription pdf file
|
|
1086
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPrescriptionIdPdfPostRequest} requestParameters Request parameters.
|
|
1087
|
+
* @param {*} [options] Override http request option.
|
|
1088
|
+
* @throws {RequiredError}
|
|
1089
|
+
* @memberof PrescriptionsApi
|
|
1090
|
+
*/
|
|
1091
|
+
public apiV1PrescriptionsPrescriptionIdPdfPost(requestParameters: PrescriptionsApiApiV1PrescriptionsPrescriptionIdPdfPostRequest, options?: AxiosRequestConfig) {
|
|
1092
|
+
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsPrescriptionIdPdfPost(requestParameters.prescriptionId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
1093
|
+
}
|
|
1094
|
+
|
|
753
1095
|
/**
|
|
754
1096
|
*
|
|
755
1097
|
* @summary Update prescription
|
|
@@ -773,4 +1115,16 @@ export class PrescriptionsApi extends BaseAPI {
|
|
|
773
1115
|
public apiV1PrescriptionsPrescriptionIdReactivatePut(requestParameters: PrescriptionsApiApiV1PrescriptionsPrescriptionIdReactivatePutRequest, options?: AxiosRequestConfig) {
|
|
774
1116
|
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsPrescriptionIdReactivatePut(requestParameters.prescriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
775
1117
|
}
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
*
|
|
1121
|
+
* @summary Set IsConfirmed of prescription to false <br> If pdf file had been generated, pdf file deleted.
|
|
1122
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPrescriptionIdUnconfirmPatchRequest} requestParameters Request parameters.
|
|
1123
|
+
* @param {*} [options] Override http request option.
|
|
1124
|
+
* @throws {RequiredError}
|
|
1125
|
+
* @memberof PrescriptionsApi
|
|
1126
|
+
*/
|
|
1127
|
+
public apiV1PrescriptionsPrescriptionIdUnconfirmPatch(requestParameters: PrescriptionsApiApiV1PrescriptionsPrescriptionIdUnconfirmPatchRequest, options?: AxiosRequestConfig) {
|
|
1128
|
+
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsPrescriptionIdUnconfirmPatch(requestParameters.prescriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
1129
|
+
}
|
|
776
1130
|
}
|
package/src/api.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './api/accreditations-api';
|
|
|
19
19
|
export * from './api/app-version-api';
|
|
20
20
|
export * from './api/appointments-api';
|
|
21
21
|
export * from './api/articles-api';
|
|
22
|
+
export * from './api/azure-functions-app-webhooks-api';
|
|
22
23
|
export * from './api/chadmins-api';
|
|
23
24
|
export * from './api/chmanagers-api';
|
|
24
25
|
export * from './api/call-histories-api';
|
|
@@ -320,6 +320,12 @@ export interface AppointmentItemModel {
|
|
|
320
320
|
* @memberof AppointmentItemModel
|
|
321
321
|
*/
|
|
322
322
|
'refundInformationIsReady'?: boolean;
|
|
323
|
+
/**
|
|
324
|
+
*
|
|
325
|
+
* @type {string}
|
|
326
|
+
* @memberof AppointmentItemModel
|
|
327
|
+
*/
|
|
328
|
+
'invoicePdf'?: string | null;
|
|
323
329
|
/**
|
|
324
330
|
*
|
|
325
331
|
* @type {boolean}
|
|
@@ -326,6 +326,12 @@ export interface AppointmentModel {
|
|
|
326
326
|
* @memberof AppointmentModel
|
|
327
327
|
*/
|
|
328
328
|
'refundInformationIsReady'?: boolean;
|
|
329
|
+
/**
|
|
330
|
+
*
|
|
331
|
+
* @type {string}
|
|
332
|
+
* @memberof AppointmentModel
|
|
333
|
+
*/
|
|
334
|
+
'invoicePdf'?: string | null;
|
|
329
335
|
/**
|
|
330
336
|
*
|
|
331
337
|
* @type {boolean}
|
|
@@ -145,13 +145,13 @@ export interface CreateWalkInAppointmentCommand {
|
|
|
145
145
|
* @type {Date}
|
|
146
146
|
* @memberof CreateWalkInAppointmentCommand
|
|
147
147
|
*/
|
|
148
|
-
'
|
|
148
|
+
'confirmedDateStart'?: Date;
|
|
149
149
|
/**
|
|
150
150
|
*
|
|
151
151
|
* @type {Date}
|
|
152
152
|
* @memberof CreateWalkInAppointmentCommand
|
|
153
153
|
*/
|
|
154
|
-
'
|
|
154
|
+
'confirmedDateEnd'?: Date;
|
|
155
155
|
/**
|
|
156
156
|
*
|
|
157
157
|
* @type {boolean}
|
|
@@ -77,6 +77,12 @@ export interface DoctorAffiliationItemModel {
|
|
|
77
77
|
* @memberof DoctorAffiliationItemModel
|
|
78
78
|
*/
|
|
79
79
|
'doctorId'?: string;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof DoctorAffiliationItemModel
|
|
84
|
+
*/
|
|
85
|
+
'doctorLicense'?: string | null;
|
|
80
86
|
/**
|
|
81
87
|
*
|
|
82
88
|
* @type {string}
|
|
@@ -83,6 +83,12 @@ export interface DoctorAffiliationModel {
|
|
|
83
83
|
* @memberof DoctorAffiliationModel
|
|
84
84
|
*/
|
|
85
85
|
'doctorId'?: string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof DoctorAffiliationModel
|
|
90
|
+
*/
|
|
91
|
+
'doctorLicense'?: string | null;
|
|
86
92
|
/**
|
|
87
93
|
*
|
|
88
94
|
* @type {string}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* CloudHospital Admin Api
|
|
5
|
+
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
8
|
+
* Contact: developer@icloudhospital.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface GeneratedPdfCommand
|
|
21
|
+
*/
|
|
22
|
+
export interface GeneratedPdfCommand {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof GeneratedPdfCommand
|
|
27
|
+
*/
|
|
28
|
+
'signedPayload'?: string | null;
|
|
29
|
+
}
|
|
30
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -217,6 +217,7 @@ export * from './feature-model';
|
|
|
217
217
|
export * from './footer-navigation-item-model';
|
|
218
218
|
export * from './gender';
|
|
219
219
|
export * from './general-statistics-model';
|
|
220
|
+
export * from './generated-pdf-command';
|
|
220
221
|
export * from './get-appointment-timetables-response-model';
|
|
221
222
|
export * from './get-patient-walk-in-query';
|
|
222
223
|
export * from './grade-item-model';
|
|
@@ -53,6 +53,18 @@ export interface PrescriptionItemModel {
|
|
|
53
53
|
* @memberof PrescriptionItemModel
|
|
54
54
|
*/
|
|
55
55
|
'appointmentId'?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {string}
|
|
59
|
+
* @memberof PrescriptionItemModel
|
|
60
|
+
*/
|
|
61
|
+
'prescriptionPdf'?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {boolean}
|
|
65
|
+
* @memberof PrescriptionItemModel
|
|
66
|
+
*/
|
|
67
|
+
'isConfirmed'?: boolean;
|
|
56
68
|
/**
|
|
57
69
|
*
|
|
58
70
|
* @type {number}
|
|
@@ -62,6 +62,18 @@ export interface PrescriptionModel {
|
|
|
62
62
|
* @memberof PrescriptionModel
|
|
63
63
|
*/
|
|
64
64
|
'appointmentId'?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof PrescriptionModel
|
|
69
|
+
*/
|
|
70
|
+
'prescriptionPdf'?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof PrescriptionModel
|
|
75
|
+
*/
|
|
76
|
+
'isConfirmed'?: boolean;
|
|
65
77
|
/**
|
|
66
78
|
*
|
|
67
79
|
* @type {number}
|