ch-api-client-typescript2 5.23.2 → 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.
Files changed (52) hide show
  1. package/lib/api/deals-api.d.ts +4 -4
  2. package/lib/api/deals-api.d.ts.map +1 -1
  3. package/lib/api/doctor-affiliations-api.d.ts +4 -4
  4. package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
  5. package/lib/api/hospitals-api.d.ts +10 -10
  6. package/lib/api/hospitals-api.d.ts.map +1 -1
  7. package/lib/api/prescriptions-api.d.ts +198 -0
  8. package/lib/api/prescriptions-api.d.ts.map +1 -0
  9. package/lib/api/prescriptions-api.js +346 -0
  10. package/lib/api.d.ts +1 -0
  11. package/lib/api.d.ts.map +1 -1
  12. package/lib/api.js +1 -0
  13. package/lib/models/{appointment-timetables-model.d.ts → get-appointment-timetables-response-model.d.ts} +7 -7
  14. package/lib/models/get-appointment-timetables-response-model.d.ts.map +1 -0
  15. package/lib/models/index.d.ts +7 -1
  16. package/lib/models/index.d.ts.map +1 -1
  17. package/lib/models/index.js +7 -1
  18. package/lib/models/prescription-diagnosis-model.d.ts +37 -0
  19. package/lib/models/prescription-diagnosis-model.d.ts.map +1 -0
  20. package/lib/models/prescription-diagnosis-model.js +15 -0
  21. package/lib/models/prescription-item-model.d.ts +151 -0
  22. package/lib/models/prescription-item-model.d.ts.map +1 -0
  23. package/lib/models/prescription-item-model.js +15 -0
  24. package/lib/models/prescription-medication-model.d.ts +79 -0
  25. package/lib/models/prescription-medication-model.d.ts.map +1 -0
  26. package/lib/models/prescription-medication-model.js +15 -0
  27. package/lib/models/prescription-model.d.ts +172 -0
  28. package/lib/models/prescription-model.d.ts.map +1 -0
  29. package/lib/models/prescription-model.js +15 -0
  30. package/lib/models/prescription-symptom-model.d.ts +49 -0
  31. package/lib/models/prescription-symptom-model.d.ts.map +1 -0
  32. package/lib/models/prescription-symptom-model.js +15 -0
  33. package/lib/models/prescriptions-model.d.ts +33 -0
  34. package/lib/models/prescriptions-model.d.ts.map +1 -0
  35. package/lib/models/prescriptions-model.js +15 -0
  36. package/package.json +1 -1
  37. package/src/.openapi-generator/FILES +8 -1
  38. package/src/api/deals-api.ts +4 -4
  39. package/src/api/doctor-affiliations-api.ts +4 -4
  40. package/src/api/hospitals-api.ts +8 -8
  41. package/src/api/prescriptions-api.ts +333 -0
  42. package/src/api.ts +1 -0
  43. package/src/models/{appointment-timetables-model.ts → get-appointment-timetables-response-model.ts} +6 -6
  44. package/src/models/index.ts +7 -1
  45. package/src/models/prescription-diagnosis-model.ts +42 -0
  46. package/src/models/prescription-item-model.ts +156 -0
  47. package/src/models/prescription-medication-model.ts +84 -0
  48. package/src/models/prescription-model.ts +183 -0
  49. package/src/models/prescription-symptom-model.ts +54 -0
  50. package/src/models/prescriptions-model.ts +42 -0
  51. package/lib/models/appointment-timetables-model.d.ts.map +0 -1
  52. /package/lib/models/{appointment-timetables-model.js → get-appointment-timetables-response-model.js} +0 -0
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Swagger UI - Cloud Hospital Api-INT
3
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
4
+ *
5
+ * The version of the OpenAPI document: 2
6
+ * Contact: hyounoosung@icloudhospital.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PagedListMetaData } from './paged-list-meta-data';
13
+ import { PrescriptionItemModel } from './prescription-item-model';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PrescriptionsModel
18
+ */
19
+ export interface PrescriptionsModel {
20
+ /**
21
+ *
22
+ * @type {Array<PrescriptionItemModel>}
23
+ * @memberof PrescriptionsModel
24
+ */
25
+ 'items'?: Array<PrescriptionItemModel> | null;
26
+ /**
27
+ *
28
+ * @type {PagedListMetaData}
29
+ * @memberof PrescriptionsModel
30
+ */
31
+ 'metaData'?: PagedListMetaData;
32
+ }
33
+ //# sourceMappingURL=prescriptions-model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prescriptions-model.d.ts","sourceRoot":"","sources":["../../src/models/prescriptions-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,IAAI,CAAC;IAC9C;;;;OAIG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAClC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Swagger UI - Cloud Hospital Api-INT
6
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 2
9
+ * Contact: hyounoosung@icloudhospital.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "5.23.2",
3
+ "version": "5.23.8",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,6 +30,7 @@ api/notifications-api.ts
30
30
  api/origins-api.ts
31
31
  api/patients-api.ts
32
32
  api/plans-api.ts
33
+ api/prescriptions-api.ts
33
34
  api/profiles-api.ts
34
35
  api/search-curations-api.ts
35
36
  api/secure-containers-api.ts
@@ -67,7 +68,6 @@ models/appointment-status.ts
67
68
  models/appointment-timetable-date-model.ts
68
69
  models/appointment-timetable-status.ts
69
70
  models/appointment-timetable-time-slot-model.ts
70
- models/appointment-timetables-model.ts
71
71
  models/appointment-type.ts
72
72
  models/appointments-model.ts
73
73
  models/article-contributor-document-model.ts
@@ -199,6 +199,7 @@ models/feature-model.ts
199
199
  models/footer-navigation-item-model.ts
200
200
  models/gender.ts
201
201
  models/geography-point.ts
202
+ models/get-appointment-timetables-response-model.ts
202
203
  models/grade-document-model.ts
203
204
  models/grade-model.ts
204
205
  models/header-navigation-item-model.ts
@@ -308,6 +309,12 @@ models/platform.ts
308
309
  models/policies-model.ts
309
310
  models/policy-item-model.ts
310
311
  models/policy-model.ts
312
+ models/prescription-diagnosis-model.ts
313
+ models/prescription-item-model.ts
314
+ models/prescription-medication-model.ts
315
+ models/prescription-model.ts
316
+ models/prescription-symptom-model.ts
317
+ models/prescriptions-model.ts
311
318
  models/problem-details.ts
312
319
  models/procedure.ts
313
320
  models/recurring-interval.ts
@@ -21,8 +21,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
- import { AppointmentTimetablesModel } from '../models';
25
- // @ts-ignore
26
24
  import { DealModel } from '../models';
27
25
  // @ts-ignore
28
26
  import { DealPackageModel } from '../models';
@@ -37,6 +35,8 @@ import { DealsModel } from '../models';
37
35
  // @ts-ignore
38
36
  import { DealsSimpleModel } from '../models';
39
37
  // @ts-ignore
38
+ import { GetAppointmentTimetablesResponseModel } from '../models';
39
+ // @ts-ignore
40
40
  import { MarketingType } from '../models';
41
41
  /**
42
42
  * DealsApi - axios parameter creator
@@ -802,7 +802,7 @@ export const DealsApiFp = function(configuration?: Configuration) {
802
802
  * @param {*} [options] Override http request option.
803
803
  * @throws {RequiredError}
804
804
  */
805
- async apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetablesModel>> {
805
+ async apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAppointmentTimetablesResponseModel>> {
806
806
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, year, month, timeZone, isExternal, isOnline, appointmentIdExcluded, options);
807
807
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
808
808
  },
@@ -985,7 +985,7 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
985
985
  * @param {*} [options] Override http request option.
986
986
  * @throws {RequiredError}
987
987
  */
988
- apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: any): AxiosPromise<AppointmentTimetablesModel> {
988
+ apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: any): AxiosPromise<GetAppointmentTimetablesResponseModel> {
989
989
  return localVarFp.apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, year, month, timeZone, isExternal, isOnline, appointmentIdExcluded, options).then((request) => request(axios, basePath));
990
990
  },
991
991
  /**
@@ -21,12 +21,12 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
- import { AppointmentTimetablesModel } from '../models';
25
- // @ts-ignore
26
24
  import { DoctorAffiliationModel } from '../models';
27
25
  // @ts-ignore
28
26
  import { DoctorAffiliationsModel } from '../models';
29
27
  // @ts-ignore
28
+ import { GetAppointmentTimetablesResponseModel } from '../models';
29
+ // @ts-ignore
30
30
  import { MarketingType } from '../models';
31
31
  // @ts-ignore
32
32
  import { MediaModel } from '../models';
@@ -415,7 +415,7 @@ export const DoctorAffiliationsApiFp = function(configuration?: Configuration) {
415
415
  * @param {*} [options] Override http request option.
416
416
  * @throws {RequiredError}
417
417
  */
418
- async apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet(doctorAffiliationId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetablesModel>> {
418
+ async apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet(doctorAffiliationId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAppointmentTimetablesResponseModel>> {
419
419
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet(doctorAffiliationId, year, month, timeZone, isExternal, isOnline, appointmentIdExcluded, options);
420
420
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
421
421
  },
@@ -519,7 +519,7 @@ export const DoctorAffiliationsApiFactory = function (configuration?: Configurat
519
519
  * @param {*} [options] Override http request option.
520
520
  * @throws {RequiredError}
521
521
  */
522
- apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet(doctorAffiliationId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: any): AxiosPromise<AppointmentTimetablesModel> {
522
+ apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet(doctorAffiliationId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: any): AxiosPromise<GetAppointmentTimetablesResponseModel> {
523
523
  return localVarFp.apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet(doctorAffiliationId, year, month, timeZone, isExternal, isOnline, appointmentIdExcluded, options).then((request) => request(axios, basePath));
524
524
  },
525
525
  /**
@@ -21,8 +21,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
- import { AppointmentTimetablesModel } from '../models';
25
- // @ts-ignore
26
24
  import { ArticleModel } from '../models';
27
25
  // @ts-ignore
28
26
  import { BankAccountInfoModel } from '../models';
@@ -39,6 +37,8 @@ import { DoctorAffiliationModel } from '../models';
39
37
  // @ts-ignore
40
38
  import { FooterNavigationItemModel } from '../models';
41
39
  // @ts-ignore
40
+ import { GetAppointmentTimetablesResponseModel } from '../models';
41
+ // @ts-ignore
42
42
  import { HospitalAccreditationModel } from '../models';
43
43
  // @ts-ignore
44
44
  import { HospitalAccreditationsModel } from '../models';
@@ -3591,7 +3591,7 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
3591
3591
  * @param {*} [options] Override http request option.
3592
3592
  * @throws {RequiredError}
3593
3593
  */
3594
- async apiV2HospitalsHospitalIdAppointmenttimetablesGet(hospitalId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetablesModel>> {
3594
+ async apiV2HospitalsHospitalIdAppointmenttimetablesGet(hospitalId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAppointmentTimetablesResponseModel>> {
3595
3595
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdAppointmenttimetablesGet(hospitalId, year, month, timeZone, isExternal, isOnline, appointmentIdExcluded, options);
3596
3596
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
3597
3597
  },
@@ -4135,7 +4135,7 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
4135
4135
  * @param {*} [options] Override http request option.
4136
4136
  * @throws {RequiredError}
4137
4137
  */
4138
- async apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdAppointmenttimetablesGet(hospitalId: string, hospitalSpecialtyId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetablesModel>> {
4138
+ async apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdAppointmenttimetablesGet(hospitalId: string, hospitalSpecialtyId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAppointmentTimetablesResponseModel>> {
4139
4139
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdAppointmenttimetablesGet(hospitalId, hospitalSpecialtyId, year, month, timeZone, isExternal, isOnline, appointmentIdExcluded, options);
4140
4140
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4141
4141
  },
@@ -4262,7 +4262,7 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
4262
4262
  * @param {*} [options] Override http request option.
4263
4263
  * @throws {RequiredError}
4264
4264
  */
4265
- async apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdAppointmenttimetablesGet(hospitalId: string, specialtyId: string, serviceId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetablesModel>> {
4265
+ async apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdAppointmenttimetablesGet(hospitalId: string, specialtyId: string, serviceId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAppointmentTimetablesResponseModel>> {
4266
4266
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdAppointmenttimetablesGet(hospitalId, specialtyId, serviceId, year, month, timeZone, isExternal, isOnline, appointmentIdExcluded, options);
4267
4267
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
4268
4268
  },
@@ -4501,7 +4501,7 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
4501
4501
  * @param {*} [options] Override http request option.
4502
4502
  * @throws {RequiredError}
4503
4503
  */
4504
- apiV2HospitalsHospitalIdAppointmenttimetablesGet(hospitalId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: any): AxiosPromise<AppointmentTimetablesModel> {
4504
+ apiV2HospitalsHospitalIdAppointmenttimetablesGet(hospitalId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: any): AxiosPromise<GetAppointmentTimetablesResponseModel> {
4505
4505
  return localVarFp.apiV2HospitalsHospitalIdAppointmenttimetablesGet(hospitalId, year, month, timeZone, isExternal, isOnline, appointmentIdExcluded, options).then((request) => request(axios, basePath));
4506
4506
  },
4507
4507
  /**
@@ -5009,7 +5009,7 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
5009
5009
  * @param {*} [options] Override http request option.
5010
5010
  * @throws {RequiredError}
5011
5011
  */
5012
- apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdAppointmenttimetablesGet(hospitalId: string, hospitalSpecialtyId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: any): AxiosPromise<AppointmentTimetablesModel> {
5012
+ apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdAppointmenttimetablesGet(hospitalId: string, hospitalSpecialtyId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: any): AxiosPromise<GetAppointmentTimetablesResponseModel> {
5013
5013
  return localVarFp.apiV2HospitalsHospitalIdSpecialtiesHospitalSpecialtyIdAppointmenttimetablesGet(hospitalId, hospitalSpecialtyId, year, month, timeZone, isExternal, isOnline, appointmentIdExcluded, options).then((request) => request(axios, basePath));
5014
5014
  },
5015
5015
  /**
@@ -5129,7 +5129,7 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
5129
5129
  * @param {*} [options] Override http request option.
5130
5130
  * @throws {RequiredError}
5131
5131
  */
5132
- apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdAppointmenttimetablesGet(hospitalId: string, specialtyId: string, serviceId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: any): AxiosPromise<AppointmentTimetablesModel> {
5132
+ apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdAppointmenttimetablesGet(hospitalId: string, specialtyId: string, serviceId: string, year?: number, month?: number, timeZone?: string, isExternal?: boolean, isOnline?: boolean, appointmentIdExcluded?: string, options?: any): AxiosPromise<GetAppointmentTimetablesResponseModel> {
5133
5133
  return localVarFp.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdAppointmenttimetablesGet(hospitalId, specialtyId, serviceId, year, month, timeZone, isExternal, isOnline, appointmentIdExcluded, options).then((request) => request(axios, basePath));
5134
5134
  },
5135
5135
  /**
@@ -0,0 +1,333 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 2
8
+ * Contact: hyounoosung@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
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { PrescriptionModel } from '../models';
25
+ // @ts-ignore
26
+ import { PrescriptionsModel } from '../models';
27
+ /**
28
+ * PrescriptionsApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const PrescriptionsApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @summary Get prescriptions of current user.
36
+ * @param {string} [languageCode]
37
+ * @param {string} [hospitalId]
38
+ * @param {string} [doctorId]
39
+ * @param {string} [doctorAffiliationId]
40
+ * @param {number} [page]
41
+ * @param {number} [limit]
42
+ * @param {Date} [lastRetrieved]
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ apiV2PrescriptionsGet: async (languageCode?: string, hospitalId?: string, doctorId?: string, doctorAffiliationId?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ const localVarPath = `/api/v2/prescriptions`;
48
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
50
+ let baseOptions;
51
+ if (configuration) {
52
+ baseOptions = configuration.baseOptions;
53
+ }
54
+
55
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
56
+ const localVarHeaderParameter = {} as any;
57
+ const localVarQueryParameter = {} as any;
58
+
59
+ // authentication oauth2 required
60
+ // oauth required
61
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
62
+
63
+ if (languageCode !== undefined) {
64
+ localVarQueryParameter['LanguageCode'] = languageCode;
65
+ }
66
+
67
+ if (hospitalId !== undefined) {
68
+ localVarQueryParameter['HospitalId'] = hospitalId;
69
+ }
70
+
71
+ if (doctorId !== undefined) {
72
+ localVarQueryParameter['DoctorId'] = doctorId;
73
+ }
74
+
75
+ if (doctorAffiliationId !== undefined) {
76
+ localVarQueryParameter['DoctorAffiliationId'] = doctorAffiliationId;
77
+ }
78
+
79
+ if (page !== undefined) {
80
+ localVarQueryParameter['page'] = page;
81
+ }
82
+
83
+ if (limit !== undefined) {
84
+ localVarQueryParameter['limit'] = limit;
85
+ }
86
+
87
+ if (lastRetrieved !== undefined) {
88
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
89
+ (lastRetrieved as any).toISOString() :
90
+ lastRetrieved;
91
+ }
92
+
93
+
94
+
95
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
96
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
97
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
98
+
99
+ return {
100
+ url: toPathString(localVarUrlObj),
101
+ options: localVarRequestOptions,
102
+ };
103
+ },
104
+ /**
105
+ *
106
+ * @summary Get prescription of current user by id.
107
+ * @param {string} id
108
+ * @param {string} [languageCode]
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ apiV2PrescriptionsIdGet: async (id: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
113
+ // verify required parameter 'id' is not null or undefined
114
+ assertParamExists('apiV2PrescriptionsIdGet', 'id', id)
115
+ const localVarPath = `/api/v2/prescriptions/{id}`
116
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
117
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
118
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
119
+ let baseOptions;
120
+ if (configuration) {
121
+ baseOptions = configuration.baseOptions;
122
+ }
123
+
124
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
125
+ const localVarHeaderParameter = {} as any;
126
+ const localVarQueryParameter = {} as any;
127
+
128
+ // authentication oauth2 required
129
+ // oauth required
130
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
131
+
132
+ if (languageCode !== undefined) {
133
+ localVarQueryParameter['languageCode'] = languageCode;
134
+ }
135
+
136
+
137
+
138
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
141
+
142
+ return {
143
+ url: toPathString(localVarUrlObj),
144
+ options: localVarRequestOptions,
145
+ };
146
+ },
147
+ }
148
+ };
149
+
150
+ /**
151
+ * PrescriptionsApi - functional programming interface
152
+ * @export
153
+ */
154
+ export const PrescriptionsApiFp = function(configuration?: Configuration) {
155
+ const localVarAxiosParamCreator = PrescriptionsApiAxiosParamCreator(configuration)
156
+ return {
157
+ /**
158
+ *
159
+ * @summary Get prescriptions of current user.
160
+ * @param {string} [languageCode]
161
+ * @param {string} [hospitalId]
162
+ * @param {string} [doctorId]
163
+ * @param {string} [doctorAffiliationId]
164
+ * @param {number} [page]
165
+ * @param {number} [limit]
166
+ * @param {Date} [lastRetrieved]
167
+ * @param {*} [options] Override http request option.
168
+ * @throws {RequiredError}
169
+ */
170
+ async apiV2PrescriptionsGet(languageCode?: string, hospitalId?: string, doctorId?: string, doctorAffiliationId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrescriptionsModel>> {
171
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2PrescriptionsGet(languageCode, hospitalId, doctorId, doctorAffiliationId, page, limit, lastRetrieved, options);
172
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
173
+ },
174
+ /**
175
+ *
176
+ * @summary Get prescription of current user by id.
177
+ * @param {string} id
178
+ * @param {string} [languageCode]
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ async apiV2PrescriptionsIdGet(id: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrescriptionModel>> {
183
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2PrescriptionsIdGet(id, languageCode, options);
184
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
185
+ },
186
+ }
187
+ };
188
+
189
+ /**
190
+ * PrescriptionsApi - factory interface
191
+ * @export
192
+ */
193
+ export const PrescriptionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
194
+ const localVarFp = PrescriptionsApiFp(configuration)
195
+ return {
196
+ /**
197
+ *
198
+ * @summary Get prescriptions of current user.
199
+ * @param {string} [languageCode]
200
+ * @param {string} [hospitalId]
201
+ * @param {string} [doctorId]
202
+ * @param {string} [doctorAffiliationId]
203
+ * @param {number} [page]
204
+ * @param {number} [limit]
205
+ * @param {Date} [lastRetrieved]
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ apiV2PrescriptionsGet(languageCode?: string, hospitalId?: string, doctorId?: string, doctorAffiliationId?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PrescriptionsModel> {
210
+ return localVarFp.apiV2PrescriptionsGet(languageCode, hospitalId, doctorId, doctorAffiliationId, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
211
+ },
212
+ /**
213
+ *
214
+ * @summary Get prescription of current user by id.
215
+ * @param {string} id
216
+ * @param {string} [languageCode]
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ apiV2PrescriptionsIdGet(id: string, languageCode?: string, options?: any): AxiosPromise<PrescriptionModel> {
221
+ return localVarFp.apiV2PrescriptionsIdGet(id, languageCode, options).then((request) => request(axios, basePath));
222
+ },
223
+ };
224
+ };
225
+
226
+ /**
227
+ * Request parameters for apiV2PrescriptionsGet operation in PrescriptionsApi.
228
+ * @export
229
+ * @interface PrescriptionsApiApiV2PrescriptionsGetRequest
230
+ */
231
+ export interface PrescriptionsApiApiV2PrescriptionsGetRequest {
232
+ /**
233
+ *
234
+ * @type {string}
235
+ * @memberof PrescriptionsApiApiV2PrescriptionsGet
236
+ */
237
+ readonly languageCode?: string
238
+
239
+ /**
240
+ *
241
+ * @type {string}
242
+ * @memberof PrescriptionsApiApiV2PrescriptionsGet
243
+ */
244
+ readonly hospitalId?: string
245
+
246
+ /**
247
+ *
248
+ * @type {string}
249
+ * @memberof PrescriptionsApiApiV2PrescriptionsGet
250
+ */
251
+ readonly doctorId?: string
252
+
253
+ /**
254
+ *
255
+ * @type {string}
256
+ * @memberof PrescriptionsApiApiV2PrescriptionsGet
257
+ */
258
+ readonly doctorAffiliationId?: string
259
+
260
+ /**
261
+ *
262
+ * @type {number}
263
+ * @memberof PrescriptionsApiApiV2PrescriptionsGet
264
+ */
265
+ readonly page?: number
266
+
267
+ /**
268
+ *
269
+ * @type {number}
270
+ * @memberof PrescriptionsApiApiV2PrescriptionsGet
271
+ */
272
+ readonly limit?: number
273
+
274
+ /**
275
+ *
276
+ * @type {Date}
277
+ * @memberof PrescriptionsApiApiV2PrescriptionsGet
278
+ */
279
+ readonly lastRetrieved?: Date
280
+ }
281
+
282
+ /**
283
+ * Request parameters for apiV2PrescriptionsIdGet operation in PrescriptionsApi.
284
+ * @export
285
+ * @interface PrescriptionsApiApiV2PrescriptionsIdGetRequest
286
+ */
287
+ export interface PrescriptionsApiApiV2PrescriptionsIdGetRequest {
288
+ /**
289
+ *
290
+ * @type {string}
291
+ * @memberof PrescriptionsApiApiV2PrescriptionsIdGet
292
+ */
293
+ readonly id: string
294
+
295
+ /**
296
+ *
297
+ * @type {string}
298
+ * @memberof PrescriptionsApiApiV2PrescriptionsIdGet
299
+ */
300
+ readonly languageCode?: string
301
+ }
302
+
303
+ /**
304
+ * PrescriptionsApi - object-oriented interface
305
+ * @export
306
+ * @class PrescriptionsApi
307
+ * @extends {BaseAPI}
308
+ */
309
+ export class PrescriptionsApi extends BaseAPI {
310
+ /**
311
+ *
312
+ * @summary Get prescriptions of current user.
313
+ * @param {PrescriptionsApiApiV2PrescriptionsGetRequest} requestParameters Request parameters.
314
+ * @param {*} [options] Override http request option.
315
+ * @throws {RequiredError}
316
+ * @memberof PrescriptionsApi
317
+ */
318
+ public apiV2PrescriptionsGet(requestParameters: PrescriptionsApiApiV2PrescriptionsGetRequest = {}, options?: AxiosRequestConfig) {
319
+ return PrescriptionsApiFp(this.configuration).apiV2PrescriptionsGet(requestParameters.languageCode, requestParameters.hospitalId, requestParameters.doctorId, requestParameters.doctorAffiliationId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
320
+ }
321
+
322
+ /**
323
+ *
324
+ * @summary Get prescription of current user by id.
325
+ * @param {PrescriptionsApiApiV2PrescriptionsIdGetRequest} requestParameters Request parameters.
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ * @memberof PrescriptionsApi
329
+ */
330
+ public apiV2PrescriptionsIdGet(requestParameters: PrescriptionsApiApiV2PrescriptionsIdGetRequest, options?: AxiosRequestConfig) {
331
+ return PrescriptionsApiFp(this.configuration).apiV2PrescriptionsIdGet(requestParameters.id, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
332
+ }
333
+ }
package/src/api.ts CHANGED
@@ -42,6 +42,7 @@ export * from './api/notifications-api';
42
42
  export * from './api/origins-api';
43
43
  export * from './api/patients-api';
44
44
  export * from './api/plans-api';
45
+ export * from './api/prescriptions-api';
45
46
  export * from './api/profiles-api';
46
47
  export * from './api/search-curations-api';
47
48
  export * from './api/secure-containers-api';
@@ -20,31 +20,31 @@ import { AppointmentTimetableDateModel } from './appointment-timetable-date-mode
20
20
  /**
21
21
  *
22
22
  * @export
23
- * @interface AppointmentTimetablesModel
23
+ * @interface GetAppointmentTimetablesResponseModel
24
24
  */
25
- export interface AppointmentTimetablesModel {
25
+ export interface GetAppointmentTimetablesResponseModel {
26
26
  /**
27
27
  *
28
28
  * @type {string}
29
- * @memberof AppointmentTimetablesModel
29
+ * @memberof GetAppointmentTimetablesResponseModel
30
30
  */
31
31
  'hospitalTimeZone'?: string | null;
32
32
  /**
33
33
  *
34
34
  * @type {string}
35
- * @memberof AppointmentTimetablesModel
35
+ * @memberof GetAppointmentTimetablesResponseModel
36
36
  */
37
37
  'timeZone'?: string | null;
38
38
  /**
39
39
  *
40
40
  * @type {Date}
41
- * @memberof AppointmentTimetablesModel
41
+ * @memberof GetAppointmentTimetablesResponseModel
42
42
  */
43
43
  'today'?: Date;
44
44
  /**
45
45
  *
46
46
  * @type {Array<AppointmentTimetableDateModel>}
47
- * @memberof AppointmentTimetablesModel
47
+ * @memberof GetAppointmentTimetablesResponseModel
48
48
  */
49
49
  'days'?: Array<AppointmentTimetableDateModel> | null;
50
50
  }
@@ -18,7 +18,6 @@ export * from './appointment-status';
18
18
  export * from './appointment-timetable-date-model';
19
19
  export * from './appointment-timetable-status';
20
20
  export * from './appointment-timetable-time-slot-model';
21
- export * from './appointment-timetables-model';
22
21
  export * from './appointment-type';
23
22
  export * from './appointments-model';
24
23
  export * from './article-contributor-document-model';
@@ -150,6 +149,7 @@ export * from './feature-model';
150
149
  export * from './footer-navigation-item-model';
151
150
  export * from './gender';
152
151
  export * from './geography-point';
152
+ export * from './get-appointment-timetables-response-model';
153
153
  export * from './grade-document-model';
154
154
  export * from './grade-model';
155
155
  export * from './header-navigation-item-model';
@@ -258,6 +258,12 @@ export * from './platform';
258
258
  export * from './policies-model';
259
259
  export * from './policy-item-model';
260
260
  export * from './policy-model';
261
+ export * from './prescription-diagnosis-model';
262
+ export * from './prescription-item-model';
263
+ export * from './prescription-medication-model';
264
+ export * from './prescription-model';
265
+ export * from './prescription-symptom-model';
266
+ export * from './prescriptions-model';
261
267
  export * from './problem-details';
262
268
  export * from './procedure';
263
269
  export * from './recurring-interval';