ch-admin-api-client-typescript 5.22.1 → 5.23.2

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 (88) hide show
  1. package/lib/api/patient-affiliations-api.d.ts +216 -0
  2. package/lib/api/patient-affiliations-api.d.ts.map +1 -0
  3. package/lib/api/patient-affiliations-api.js +358 -0
  4. package/lib/api/patients-api.d.ts +191 -3
  5. package/lib/api/patients-api.d.ts.map +1 -1
  6. package/lib/api/patients-api.js +289 -6
  7. package/lib/api.d.ts +1 -0
  8. package/lib/api.d.ts.map +1 -1
  9. package/lib/api.js +1 -0
  10. package/lib/models/chadmin-item-model.d.ts +3 -3
  11. package/lib/models/chadmin-item-model.d.ts.map +1 -1
  12. package/lib/models/chadmin-model.d.ts +3 -3
  13. package/lib/models/chadmin-model.d.ts.map +1 -1
  14. package/lib/models/chmanager-item-model.d.ts +3 -3
  15. package/lib/models/chmanager-item-model.d.ts.map +1 -1
  16. package/lib/models/chmanager-model.d.ts +3 -3
  17. package/lib/models/chmanager-model.d.ts.map +1 -1
  18. package/lib/models/create-article-command.d.ts +6 -0
  19. package/lib/models/create-article-command.d.ts.map +1 -1
  20. package/lib/models/create-patient-affiliation-command.d.ts +109 -0
  21. package/lib/models/create-patient-affiliation-command.d.ts.map +1 -0
  22. package/lib/models/create-patient-affiliation-command.js +15 -0
  23. package/lib/models/create-patient-command.d.ts +90 -0
  24. package/lib/models/create-patient-command.d.ts.map +1 -1
  25. package/lib/models/doctor-item-model.d.ts +3 -3
  26. package/lib/models/doctor-item-model.d.ts.map +1 -1
  27. package/lib/models/doctor-model.d.ts +3 -3
  28. package/lib/models/doctor-model.d.ts.map +1 -1
  29. package/lib/models/get-patient-walk-in-query.d.ts +37 -0
  30. package/lib/models/get-patient-walk-in-query.d.ts.map +1 -0
  31. package/lib/models/get-patient-walk-in-query.js +15 -0
  32. package/lib/models/index.d.ts +7 -0
  33. package/lib/models/index.d.ts.map +1 -1
  34. package/lib/models/index.js +7 -0
  35. package/lib/models/manager-item-model.d.ts +3 -3
  36. package/lib/models/manager-item-model.d.ts.map +1 -1
  37. package/lib/models/manager-model.d.ts +3 -3
  38. package/lib/models/manager-model.d.ts.map +1 -1
  39. package/lib/models/patient-affiliation-item-model.d.ts +153 -0
  40. package/lib/models/patient-affiliation-item-model.d.ts.map +1 -0
  41. package/lib/models/patient-affiliation-item-model.js +15 -0
  42. package/lib/models/patient-affiliation-model.d.ts +153 -0
  43. package/lib/models/patient-affiliation-model.d.ts.map +1 -0
  44. package/lib/models/patient-affiliation-model.js +15 -0
  45. package/lib/models/patient-affiliations-model.d.ts +33 -0
  46. package/lib/models/patient-affiliations-model.d.ts.map +1 -0
  47. package/lib/models/patient-affiliations-model.js +15 -0
  48. package/lib/models/patient-item-model.d.ts +3 -3
  49. package/lib/models/patient-item-model.d.ts.map +1 -1
  50. package/lib/models/patient-model.d.ts +3 -3
  51. package/lib/models/patient-model.d.ts.map +1 -1
  52. package/lib/models/patient-walk-in-model.d.ts +32 -0
  53. package/lib/models/patient-walk-in-model.d.ts.map +1 -0
  54. package/lib/models/patient-walk-in-model.js +15 -0
  55. package/lib/models/update-article-command.d.ts +6 -0
  56. package/lib/models/update-article-command.d.ts.map +1 -1
  57. package/lib/models/update-patient-affiliation-command.d.ts +115 -0
  58. package/lib/models/update-patient-affiliation-command.d.ts.map +1 -0
  59. package/lib/models/update-patient-affiliation-command.js +15 -0
  60. package/lib/models/user-model.d.ts +3 -3
  61. package/lib/models/user-model.d.ts.map +1 -1
  62. package/package.json +1 -1
  63. package/src/.openapi-generator/FILES +8 -0
  64. package/src/api/patient-affiliations-api.ts +361 -0
  65. package/src/api/patients-api.ts +337 -6
  66. package/src/api.ts +1 -0
  67. package/src/models/chadmin-item-model.ts +3 -3
  68. package/src/models/chadmin-model.ts +3 -3
  69. package/src/models/chmanager-item-model.ts +3 -3
  70. package/src/models/chmanager-model.ts +3 -3
  71. package/src/models/create-article-command.ts +6 -0
  72. package/src/models/create-patient-affiliation-command.ts +114 -0
  73. package/src/models/create-patient-command.ts +90 -0
  74. package/src/models/doctor-item-model.ts +3 -3
  75. package/src/models/doctor-model.ts +3 -3
  76. package/src/models/get-patient-walk-in-query.ts +42 -0
  77. package/src/models/index.ts +7 -0
  78. package/src/models/manager-item-model.ts +3 -3
  79. package/src/models/manager-model.ts +3 -3
  80. package/src/models/patient-affiliation-item-model.ts +162 -0
  81. package/src/models/patient-affiliation-model.ts +162 -0
  82. package/src/models/patient-affiliations-model.ts +42 -0
  83. package/src/models/patient-item-model.ts +3 -3
  84. package/src/models/patient-model.ts +3 -3
  85. package/src/models/patient-walk-in-model.ts +39 -0
  86. package/src/models/update-article-command.ts +6 -0
  87. package/src/models/update-patient-affiliation-command.ts +120 -0
  88. package/src/models/user-model.ts +3 -3
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { AuditableEntity } from './auditable-entity';
12
+ import { AuditableEntityModel } from './auditable-entity-model';
13
13
  import { Gender } from './gender';
14
14
  import { UserLanguageModel } from './user-language-model';
15
15
  import { UserLocationModel } from './user-location-model';
@@ -99,10 +99,10 @@ export interface UserModel {
99
99
  'communicationUserId'?: string | null;
100
100
  /**
101
101
  *
102
- * @type {AuditableEntity}
102
+ * @type {AuditableEntityModel}
103
103
  * @memberof UserModel
104
104
  */
105
- 'auditableEntity'?: AuditableEntity;
105
+ 'auditableEntity'?: AuditableEntityModel;
106
106
  /**
107
107
  *
108
108
  * @type {string}
@@ -1 +1 @@
1
- {"version":3,"file":"user-model.d.ts","sourceRoot":"","sources":["../../src/models/user-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,OAAO,EAAE,iB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,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;IAC9C;;;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;CACjD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-admin-api-client-typescript",
3
- "version": "5.22.1",
3
+ "version": "5.23.2",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital admin",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -34,6 +34,7 @@ api/languages-api.ts
34
34
  api/managers-api.ts
35
35
  api/memberships-api.ts
36
36
  api/notifications-api.ts
37
+ api/patient-affiliations-api.ts
37
38
  api/patients-api.ts
38
39
  api/payments-api.ts
39
40
  api/plans-api.ts
@@ -206,6 +207,7 @@ models/create-manager-command.ts
206
207
  models/create-media-command.ts
207
208
  models/create-notice-command.ts
208
209
  models/create-page-command.ts
210
+ models/create-patient-affiliation-command.ts
209
211
  models/create-patient-command.ts
210
212
  models/create-plan-command.ts
211
213
  models/create-plan-hospital-command.ts
@@ -283,6 +285,7 @@ models/feature-model.ts
283
285
  models/footer-navigation-item-model.ts
284
286
  models/gender.ts
285
287
  models/general-statistics-model.ts
288
+ models/get-patient-walk-in-query.ts
286
289
  models/get-transfer-balance-embeded.ts
287
290
  models/get-transfer-balance-result.ts
288
291
  models/grade-item-model.ts
@@ -407,8 +410,12 @@ models/page-section-input-model.ts
407
410
  models/page-section-list-type.ts
408
411
  models/page-section-model.ts
409
412
  models/paged-list-meta-data.ts
413
+ models/patient-affiliation-item-model.ts
414
+ models/patient-affiliation-model.ts
415
+ models/patient-affiliations-model.ts
410
416
  models/patient-item-model.ts
411
417
  models/patient-model.ts
418
+ models/patient-walk-in-model.ts
412
419
  models/patients-model.ts
413
420
  models/payment-method.ts
414
421
  models/payment-model.ts
@@ -594,6 +601,7 @@ models/update-media-command.ts
594
601
  models/update-notice-command.ts
595
602
  models/update-number-command.ts
596
603
  models/update-page-command.ts
604
+ models/update-patient-affiliation-command.ts
597
605
  models/update-patient-command.ts
598
606
  models/update-plan-command.ts
599
607
  models/update-plan-hospital-command.ts
@@ -0,0 +1,361 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Admin Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 1
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 { PatientAffiliationModel } from '../models';
25
+ // @ts-ignore
26
+ import { PatientAffiliationsModel } from '../models';
27
+ /**
28
+ * PatientAffiliationsApi - axios parameter creator
29
+ * @export
30
+ */
31
+ export const PatientAffiliationsApiAxiosParamCreator = function (configuration?: Configuration) {
32
+ return {
33
+ /**
34
+ *
35
+ * @summary Get all patientAffiliations
36
+ * @param {string} [languageCode]
37
+ * @param {string} [hospitalId]
38
+ * @param {string} [patientId]
39
+ * @param {string} [patientName]
40
+ * @param {string} [patientPhoneNumber]
41
+ * @param {boolean} [showHidden]
42
+ * @param {number} [page]
43
+ * @param {number} [limit]
44
+ * @param {Date} [lastRetrieved]
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ apiV1PatientaffiliationsGet: async (languageCode?: string, hospitalId?: string, patientId?: string, patientName?: string, patientPhoneNumber?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
49
+ const localVarPath = `/api/v1/patientaffiliations`;
50
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
+ let baseOptions;
53
+ if (configuration) {
54
+ baseOptions = configuration.baseOptions;
55
+ }
56
+
57
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
58
+ const localVarHeaderParameter = {} as any;
59
+ const localVarQueryParameter = {} as any;
60
+
61
+ // authentication oauth2 required
62
+ // oauth required
63
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
64
+
65
+ if (languageCode !== undefined) {
66
+ localVarQueryParameter['LanguageCode'] = languageCode;
67
+ }
68
+
69
+ if (hospitalId !== undefined) {
70
+ localVarQueryParameter['HospitalId'] = hospitalId;
71
+ }
72
+
73
+ if (patientId !== undefined) {
74
+ localVarQueryParameter['PatientId'] = patientId;
75
+ }
76
+
77
+ if (patientName !== undefined) {
78
+ localVarQueryParameter['PatientName'] = patientName;
79
+ }
80
+
81
+ if (patientPhoneNumber !== undefined) {
82
+ localVarQueryParameter['PatientPhoneNumber'] = patientPhoneNumber;
83
+ }
84
+
85
+ if (showHidden !== undefined) {
86
+ localVarQueryParameter['ShowHidden'] = showHidden;
87
+ }
88
+
89
+ if (page !== undefined) {
90
+ localVarQueryParameter['page'] = page;
91
+ }
92
+
93
+ if (limit !== undefined) {
94
+ localVarQueryParameter['limit'] = limit;
95
+ }
96
+
97
+ if (lastRetrieved !== undefined) {
98
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
99
+ (lastRetrieved as any).toISOString() :
100
+ lastRetrieved;
101
+ }
102
+
103
+
104
+
105
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
106
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
107
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
108
+
109
+ return {
110
+ url: toPathString(localVarUrlObj),
111
+ options: localVarRequestOptions,
112
+ };
113
+ },
114
+ /**
115
+ *
116
+ * @summary Get patientAffiliation by id
117
+ * @param {string} patientAffiliationId
118
+ * @param {string} [languageCode]
119
+ * @param {*} [options] Override http request option.
120
+ * @throws {RequiredError}
121
+ */
122
+ apiV1PatientaffiliationsPatientAffiliationIdGet: async (patientAffiliationId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
123
+ // verify required parameter 'patientAffiliationId' is not null or undefined
124
+ assertParamExists('apiV1PatientaffiliationsPatientAffiliationIdGet', 'patientAffiliationId', patientAffiliationId)
125
+ const localVarPath = `/api/v1/patientaffiliations/{patientAffiliationId}`
126
+ .replace(`{${"patientAffiliationId"}}`, encodeURIComponent(String(patientAffiliationId)));
127
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
128
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
129
+ let baseOptions;
130
+ if (configuration) {
131
+ baseOptions = configuration.baseOptions;
132
+ }
133
+
134
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
135
+ const localVarHeaderParameter = {} as any;
136
+ const localVarQueryParameter = {} as any;
137
+
138
+ // authentication oauth2 required
139
+ // oauth required
140
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
141
+
142
+ if (languageCode !== undefined) {
143
+ localVarQueryParameter['languageCode'] = languageCode;
144
+ }
145
+
146
+
147
+
148
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
149
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
151
+
152
+ return {
153
+ url: toPathString(localVarUrlObj),
154
+ options: localVarRequestOptions,
155
+ };
156
+ },
157
+ }
158
+ };
159
+
160
+ /**
161
+ * PatientAffiliationsApi - functional programming interface
162
+ * @export
163
+ */
164
+ export const PatientAffiliationsApiFp = function(configuration?: Configuration) {
165
+ const localVarAxiosParamCreator = PatientAffiliationsApiAxiosParamCreator(configuration)
166
+ return {
167
+ /**
168
+ *
169
+ * @summary Get all patientAffiliations
170
+ * @param {string} [languageCode]
171
+ * @param {string} [hospitalId]
172
+ * @param {string} [patientId]
173
+ * @param {string} [patientName]
174
+ * @param {string} [patientPhoneNumber]
175
+ * @param {boolean} [showHidden]
176
+ * @param {number} [page]
177
+ * @param {number} [limit]
178
+ * @param {Date} [lastRetrieved]
179
+ * @param {*} [options] Override http request option.
180
+ * @throws {RequiredError}
181
+ */
182
+ async apiV1PatientaffiliationsGet(languageCode?: string, hospitalId?: string, patientId?: string, patientName?: string, patientPhoneNumber?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientAffiliationsModel>> {
183
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PatientaffiliationsGet(languageCode, hospitalId, patientId, patientName, patientPhoneNumber, showHidden, page, limit, lastRetrieved, options);
184
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
185
+ },
186
+ /**
187
+ *
188
+ * @summary Get patientAffiliation by id
189
+ * @param {string} patientAffiliationId
190
+ * @param {string} [languageCode]
191
+ * @param {*} [options] Override http request option.
192
+ * @throws {RequiredError}
193
+ */
194
+ async apiV1PatientaffiliationsPatientAffiliationIdGet(patientAffiliationId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientAffiliationModel>> {
195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PatientaffiliationsPatientAffiliationIdGet(patientAffiliationId, languageCode, options);
196
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
197
+ },
198
+ }
199
+ };
200
+
201
+ /**
202
+ * PatientAffiliationsApi - factory interface
203
+ * @export
204
+ */
205
+ export const PatientAffiliationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
206
+ const localVarFp = PatientAffiliationsApiFp(configuration)
207
+ return {
208
+ /**
209
+ *
210
+ * @summary Get all patientAffiliations
211
+ * @param {string} [languageCode]
212
+ * @param {string} [hospitalId]
213
+ * @param {string} [patientId]
214
+ * @param {string} [patientName]
215
+ * @param {string} [patientPhoneNumber]
216
+ * @param {boolean} [showHidden]
217
+ * @param {number} [page]
218
+ * @param {number} [limit]
219
+ * @param {Date} [lastRetrieved]
220
+ * @param {*} [options] Override http request option.
221
+ * @throws {RequiredError}
222
+ */
223
+ apiV1PatientaffiliationsGet(languageCode?: string, hospitalId?: string, patientId?: string, patientName?: string, patientPhoneNumber?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PatientAffiliationsModel> {
224
+ return localVarFp.apiV1PatientaffiliationsGet(languageCode, hospitalId, patientId, patientName, patientPhoneNumber, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
225
+ },
226
+ /**
227
+ *
228
+ * @summary Get patientAffiliation by id
229
+ * @param {string} patientAffiliationId
230
+ * @param {string} [languageCode]
231
+ * @param {*} [options] Override http request option.
232
+ * @throws {RequiredError}
233
+ */
234
+ apiV1PatientaffiliationsPatientAffiliationIdGet(patientAffiliationId: string, languageCode?: string, options?: any): AxiosPromise<PatientAffiliationModel> {
235
+ return localVarFp.apiV1PatientaffiliationsPatientAffiliationIdGet(patientAffiliationId, languageCode, options).then((request) => request(axios, basePath));
236
+ },
237
+ };
238
+ };
239
+
240
+ /**
241
+ * Request parameters for apiV1PatientaffiliationsGet operation in PatientAffiliationsApi.
242
+ * @export
243
+ * @interface PatientAffiliationsApiApiV1PatientaffiliationsGetRequest
244
+ */
245
+ export interface PatientAffiliationsApiApiV1PatientaffiliationsGetRequest {
246
+ /**
247
+ *
248
+ * @type {string}
249
+ * @memberof PatientAffiliationsApiApiV1PatientaffiliationsGet
250
+ */
251
+ readonly languageCode?: string
252
+
253
+ /**
254
+ *
255
+ * @type {string}
256
+ * @memberof PatientAffiliationsApiApiV1PatientaffiliationsGet
257
+ */
258
+ readonly hospitalId?: string
259
+
260
+ /**
261
+ *
262
+ * @type {string}
263
+ * @memberof PatientAffiliationsApiApiV1PatientaffiliationsGet
264
+ */
265
+ readonly patientId?: string
266
+
267
+ /**
268
+ *
269
+ * @type {string}
270
+ * @memberof PatientAffiliationsApiApiV1PatientaffiliationsGet
271
+ */
272
+ readonly patientName?: string
273
+
274
+ /**
275
+ *
276
+ * @type {string}
277
+ * @memberof PatientAffiliationsApiApiV1PatientaffiliationsGet
278
+ */
279
+ readonly patientPhoneNumber?: string
280
+
281
+ /**
282
+ *
283
+ * @type {boolean}
284
+ * @memberof PatientAffiliationsApiApiV1PatientaffiliationsGet
285
+ */
286
+ readonly showHidden?: boolean
287
+
288
+ /**
289
+ *
290
+ * @type {number}
291
+ * @memberof PatientAffiliationsApiApiV1PatientaffiliationsGet
292
+ */
293
+ readonly page?: number
294
+
295
+ /**
296
+ *
297
+ * @type {number}
298
+ * @memberof PatientAffiliationsApiApiV1PatientaffiliationsGet
299
+ */
300
+ readonly limit?: number
301
+
302
+ /**
303
+ *
304
+ * @type {Date}
305
+ * @memberof PatientAffiliationsApiApiV1PatientaffiliationsGet
306
+ */
307
+ readonly lastRetrieved?: Date
308
+ }
309
+
310
+ /**
311
+ * Request parameters for apiV1PatientaffiliationsPatientAffiliationIdGet operation in PatientAffiliationsApi.
312
+ * @export
313
+ * @interface PatientAffiliationsApiApiV1PatientaffiliationsPatientAffiliationIdGetRequest
314
+ */
315
+ export interface PatientAffiliationsApiApiV1PatientaffiliationsPatientAffiliationIdGetRequest {
316
+ /**
317
+ *
318
+ * @type {string}
319
+ * @memberof PatientAffiliationsApiApiV1PatientaffiliationsPatientAffiliationIdGet
320
+ */
321
+ readonly patientAffiliationId: string
322
+
323
+ /**
324
+ *
325
+ * @type {string}
326
+ * @memberof PatientAffiliationsApiApiV1PatientaffiliationsPatientAffiliationIdGet
327
+ */
328
+ readonly languageCode?: string
329
+ }
330
+
331
+ /**
332
+ * PatientAffiliationsApi - object-oriented interface
333
+ * @export
334
+ * @class PatientAffiliationsApi
335
+ * @extends {BaseAPI}
336
+ */
337
+ export class PatientAffiliationsApi extends BaseAPI {
338
+ /**
339
+ *
340
+ * @summary Get all patientAffiliations
341
+ * @param {PatientAffiliationsApiApiV1PatientaffiliationsGetRequest} requestParameters Request parameters.
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ * @memberof PatientAffiliationsApi
345
+ */
346
+ public apiV1PatientaffiliationsGet(requestParameters: PatientAffiliationsApiApiV1PatientaffiliationsGetRequest = {}, options?: AxiosRequestConfig) {
347
+ return PatientAffiliationsApiFp(this.configuration).apiV1PatientaffiliationsGet(requestParameters.languageCode, requestParameters.hospitalId, requestParameters.patientId, requestParameters.patientName, requestParameters.patientPhoneNumber, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
348
+ }
349
+
350
+ /**
351
+ *
352
+ * @summary Get patientAffiliation by id
353
+ * @param {PatientAffiliationsApiApiV1PatientaffiliationsPatientAffiliationIdGetRequest} requestParameters Request parameters.
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ * @memberof PatientAffiliationsApi
357
+ */
358
+ public apiV1PatientaffiliationsPatientAffiliationIdGet(requestParameters: PatientAffiliationsApiApiV1PatientaffiliationsPatientAffiliationIdGetRequest, options?: AxiosRequestConfig) {
359
+ return PatientAffiliationsApiFp(this.configuration).apiV1PatientaffiliationsPatientAffiliationIdGet(requestParameters.patientAffiliationId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
360
+ }
361
+ }