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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/lib/api/appointments-api.d.ts +47 -0
  2. package/lib/api/appointments-api.d.ts.map +1 -1
  3. package/lib/api/appointments-api.js +85 -0
  4. package/lib/api/deals-api.d.ts +110 -0
  5. package/lib/api/deals-api.d.ts.map +1 -1
  6. package/lib/api/deals-api.js +127 -0
  7. package/lib/api/doctor-affiliations-api.d.ts +101 -0
  8. package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
  9. package/lib/api/doctor-affiliations-api.js +121 -0
  10. package/lib/api/hospitals-api.d.ts +328 -0
  11. package/lib/api/hospitals-api.d.ts.map +1 -1
  12. package/lib/api/hospitals-api.js +381 -0
  13. package/lib/api/patient-affiliations-api.d.ts +216 -0
  14. package/lib/api/patient-affiliations-api.d.ts.map +1 -0
  15. package/lib/api/patient-affiliations-api.js +358 -0
  16. package/lib/api/patients-api.d.ts +191 -3
  17. package/lib/api/patients-api.d.ts.map +1 -1
  18. package/lib/api/patients-api.js +289 -6
  19. package/lib/api/prescriptions-api.d.ts +447 -0
  20. package/lib/api/prescriptions-api.d.ts.map +1 -0
  21. package/lib/api/prescriptions-api.js +727 -0
  22. package/lib/api.d.ts +2 -0
  23. package/lib/api.d.ts.map +1 -1
  24. package/lib/api.js +2 -0
  25. package/lib/models/appointment-timetable-date-model.d.ts +58 -0
  26. package/lib/models/appointment-timetable-date-model.d.ts.map +1 -0
  27. package/lib/models/appointment-timetable-date-model.js +15 -0
  28. package/lib/models/appointment-timetable-status.d.ts +22 -0
  29. package/lib/models/appointment-timetable-status.d.ts.map +1 -0
  30. package/lib/models/appointment-timetable-status.js +25 -0
  31. package/lib/models/appointment-timetable-time-slot-model.d.ts +74 -0
  32. package/lib/models/appointment-timetable-time-slot-model.d.ts.map +1 -0
  33. package/lib/models/appointment-timetable-time-slot-model.js +15 -0
  34. package/lib/models/chadmin-item-model.d.ts +3 -3
  35. package/lib/models/chadmin-item-model.d.ts.map +1 -1
  36. package/lib/models/chadmin-model.d.ts +3 -3
  37. package/lib/models/chadmin-model.d.ts.map +1 -1
  38. package/lib/models/chmanager-item-model.d.ts +3 -3
  39. package/lib/models/chmanager-item-model.d.ts.map +1 -1
  40. package/lib/models/chmanager-model.d.ts +3 -3
  41. package/lib/models/chmanager-model.d.ts.map +1 -1
  42. package/lib/models/create-article-command.d.ts +6 -0
  43. package/lib/models/create-article-command.d.ts.map +1 -1
  44. package/lib/models/create-doctor-affiliation-command.d.ts +6 -0
  45. package/lib/models/create-doctor-affiliation-command.d.ts.map +1 -1
  46. package/lib/models/create-hospital-command.d.ts +24 -0
  47. package/lib/models/create-hospital-command.d.ts.map +1 -1
  48. package/lib/models/create-patient-affiliation-command.d.ts +109 -0
  49. package/lib/models/create-patient-affiliation-command.d.ts.map +1 -0
  50. package/lib/models/create-patient-affiliation-command.js +15 -0
  51. package/lib/models/create-patient-command.d.ts +90 -0
  52. package/lib/models/create-patient-command.d.ts.map +1 -1
  53. package/lib/models/create-prescription-command.d.ts +184 -0
  54. package/lib/models/create-prescription-command.d.ts.map +1 -0
  55. package/lib/models/create-prescription-command.js +15 -0
  56. package/lib/models/create-walk-in-appointment-command.d.ts +154 -0
  57. package/lib/models/create-walk-in-appointment-command.d.ts.map +1 -0
  58. package/lib/models/create-walk-in-appointment-command.js +15 -0
  59. package/lib/models/doctor-affiliation-item-model.d.ts +3 -3
  60. package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
  61. package/lib/models/doctor-affiliation-model.d.ts +9 -3
  62. package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
  63. package/lib/models/doctor-item-model.d.ts +3 -3
  64. package/lib/models/doctor-item-model.d.ts.map +1 -1
  65. package/lib/models/doctor-model.d.ts +3 -3
  66. package/lib/models/doctor-model.d.ts.map +1 -1
  67. package/lib/models/get-appointment-timetables-response-model.d.ts +44 -0
  68. package/lib/models/get-appointment-timetables-response-model.d.ts.map +1 -0
  69. package/lib/models/get-appointment-timetables-response-model.js +15 -0
  70. package/lib/models/get-patient-walk-in-query.d.ts +37 -0
  71. package/lib/models/get-patient-walk-in-query.d.ts.map +1 -0
  72. package/lib/models/get-patient-walk-in-query.js +15 -0
  73. package/lib/models/hospital-model.d.ts +24 -0
  74. package/lib/models/hospital-model.d.ts.map +1 -1
  75. package/lib/models/index.d.ts +23 -0
  76. package/lib/models/index.d.ts.map +1 -1
  77. package/lib/models/index.js +23 -0
  78. package/lib/models/manager-item-model.d.ts +3 -3
  79. package/lib/models/manager-item-model.d.ts.map +1 -1
  80. package/lib/models/manager-model.d.ts +3 -3
  81. package/lib/models/manager-model.d.ts.map +1 -1
  82. package/lib/models/patient-affiliation-item-model.d.ts +153 -0
  83. package/lib/models/patient-affiliation-item-model.d.ts.map +1 -0
  84. package/lib/models/patient-affiliation-item-model.js +15 -0
  85. package/lib/models/patient-affiliation-model.d.ts +153 -0
  86. package/lib/models/patient-affiliation-model.d.ts.map +1 -0
  87. package/lib/models/patient-affiliation-model.js +15 -0
  88. package/lib/models/patient-affiliations-model.d.ts +33 -0
  89. package/lib/models/patient-affiliations-model.d.ts.map +1 -0
  90. package/lib/models/patient-affiliations-model.js +15 -0
  91. package/lib/models/patient-item-model.d.ts +3 -3
  92. package/lib/models/patient-item-model.d.ts.map +1 -1
  93. package/lib/models/patient-model.d.ts +3 -3
  94. package/lib/models/patient-model.d.ts.map +1 -1
  95. package/lib/models/patient-walk-in-model.d.ts +32 -0
  96. package/lib/models/patient-walk-in-model.d.ts.map +1 -0
  97. package/lib/models/patient-walk-in-model.js +15 -0
  98. package/lib/models/prescription-diagnosis-input-model.d.ts +37 -0
  99. package/lib/models/prescription-diagnosis-input-model.d.ts.map +1 -0
  100. package/lib/models/prescription-diagnosis-input-model.js +15 -0
  101. package/lib/models/prescription-diagnosis-item-model.d.ts +37 -0
  102. package/lib/models/prescription-diagnosis-item-model.d.ts.map +1 -0
  103. package/lib/models/prescription-diagnosis-item-model.js +15 -0
  104. package/lib/models/prescription-item-model.d.ts +164 -0
  105. package/lib/models/prescription-item-model.d.ts.map +1 -0
  106. package/lib/models/prescription-item-model.js +15 -0
  107. package/lib/models/prescription-medication-input-model.d.ts +79 -0
  108. package/lib/models/prescription-medication-input-model.d.ts.map +1 -0
  109. package/lib/models/prescription-medication-input-model.js +15 -0
  110. package/lib/models/prescription-medication-item-model.d.ts +79 -0
  111. package/lib/models/prescription-medication-item-model.d.ts.map +1 -0
  112. package/lib/models/prescription-medication-item-model.js +15 -0
  113. package/lib/models/prescription-model.d.ts +185 -0
  114. package/lib/models/prescription-model.d.ts.map +1 -0
  115. package/lib/models/prescription-model.js +15 -0
  116. package/lib/models/prescription-symptom-input-model.d.ts +49 -0
  117. package/lib/models/prescription-symptom-input-model.d.ts.map +1 -0
  118. package/lib/models/prescription-symptom-input-model.js +15 -0
  119. package/lib/models/prescription-symptom-item-model.d.ts +49 -0
  120. package/lib/models/prescription-symptom-item-model.d.ts.map +1 -0
  121. package/lib/models/prescription-symptom-item-model.js +15 -0
  122. package/lib/models/prescriptions-model.d.ts +33 -0
  123. package/lib/models/prescriptions-model.d.ts.map +1 -0
  124. package/lib/models/prescriptions-model.js +15 -0
  125. package/lib/models/update-article-command.d.ts +6 -0
  126. package/lib/models/update-article-command.d.ts.map +1 -1
  127. package/lib/models/update-doctor-affiliation-command.d.ts +6 -0
  128. package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
  129. package/lib/models/update-hospital-command.d.ts +24 -0
  130. package/lib/models/update-hospital-command.d.ts.map +1 -1
  131. package/lib/models/update-patient-affiliation-command.d.ts +115 -0
  132. package/lib/models/update-patient-affiliation-command.d.ts.map +1 -0
  133. package/lib/models/update-patient-affiliation-command.js +15 -0
  134. package/lib/models/update-prescription-command.d.ts +154 -0
  135. package/lib/models/update-prescription-command.d.ts.map +1 -0
  136. package/lib/models/update-prescription-command.js +15 -0
  137. package/lib/models/user-model.d.ts +3 -3
  138. package/lib/models/user-model.d.ts.map +1 -1
  139. package/package.json +1 -1
  140. package/src/.openapi-generator/FILES +25 -0
  141. package/src/api/appointments-api.ts +87 -0
  142. package/src/api/deals-api.ts +184 -0
  143. package/src/api/doctor-affiliations-api.ts +171 -0
  144. package/src/api/hospitals-api.ts +548 -0
  145. package/src/api/patient-affiliations-api.ts +361 -0
  146. package/src/api/patients-api.ts +337 -6
  147. package/src/api/prescriptions-api.ts +776 -0
  148. package/src/api.ts +2 -0
  149. package/src/models/appointment-timetable-date-model.ts +69 -0
  150. package/src/models/appointment-timetable-status.ts +31 -0
  151. package/src/models/appointment-timetable-time-slot-model.ts +81 -0
  152. package/src/models/chadmin-item-model.ts +3 -3
  153. package/src/models/chadmin-model.ts +3 -3
  154. package/src/models/chmanager-item-model.ts +3 -3
  155. package/src/models/chmanager-model.ts +3 -3
  156. package/src/models/create-article-command.ts +6 -0
  157. package/src/models/create-doctor-affiliation-command.ts +6 -0
  158. package/src/models/create-hospital-command.ts +24 -0
  159. package/src/models/create-patient-affiliation-command.ts +114 -0
  160. package/src/models/create-patient-command.ts +90 -0
  161. package/src/models/create-prescription-command.ts +195 -0
  162. package/src/models/create-walk-in-appointment-command.ts +165 -0
  163. package/src/models/doctor-affiliation-item-model.ts +3 -3
  164. package/src/models/doctor-affiliation-model.ts +9 -3
  165. package/src/models/doctor-item-model.ts +3 -3
  166. package/src/models/doctor-model.ts +3 -3
  167. package/src/models/get-appointment-timetables-response-model.ts +51 -0
  168. package/src/models/get-patient-walk-in-query.ts +42 -0
  169. package/src/models/hospital-model.ts +24 -0
  170. package/src/models/index.ts +23 -0
  171. package/src/models/manager-item-model.ts +3 -3
  172. package/src/models/manager-model.ts +3 -3
  173. package/src/models/patient-affiliation-item-model.ts +162 -0
  174. package/src/models/patient-affiliation-model.ts +162 -0
  175. package/src/models/patient-affiliations-model.ts +42 -0
  176. package/src/models/patient-item-model.ts +3 -3
  177. package/src/models/patient-model.ts +3 -3
  178. package/src/models/patient-walk-in-model.ts +39 -0
  179. package/src/models/prescription-diagnosis-input-model.ts +42 -0
  180. package/src/models/prescription-diagnosis-item-model.ts +42 -0
  181. package/src/models/prescription-item-model.ts +171 -0
  182. package/src/models/prescription-medication-input-model.ts +84 -0
  183. package/src/models/prescription-medication-item-model.ts +84 -0
  184. package/src/models/prescription-model.ts +198 -0
  185. package/src/models/prescription-symptom-input-model.ts +54 -0
  186. package/src/models/prescription-symptom-item-model.ts +54 -0
  187. package/src/models/prescriptions-model.ts +42 -0
  188. package/src/models/update-article-command.ts +6 -0
  189. package/src/models/update-doctor-affiliation-command.ts +6 -0
  190. package/src/models/update-hospital-command.ts +24 -0
  191. package/src/models/update-patient-affiliation-command.ts +120 -0
  192. package/src/models/update-prescription-command.ts +165 -0
  193. package/src/models/user-model.ts +3 -3
@@ -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
+ }