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.
- package/lib/api/patient-affiliations-api.d.ts +216 -0
- package/lib/api/patient-affiliations-api.d.ts.map +1 -0
- package/lib/api/patient-affiliations-api.js +358 -0
- package/lib/api/patients-api.d.ts +191 -3
- package/lib/api/patients-api.d.ts.map +1 -1
- package/lib/api/patients-api.js +289 -6
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/chadmin-item-model.d.ts +3 -3
- package/lib/models/chadmin-item-model.d.ts.map +1 -1
- package/lib/models/chadmin-model.d.ts +3 -3
- package/lib/models/chadmin-model.d.ts.map +1 -1
- package/lib/models/chmanager-item-model.d.ts +3 -3
- package/lib/models/chmanager-item-model.d.ts.map +1 -1
- package/lib/models/chmanager-model.d.ts +3 -3
- package/lib/models/chmanager-model.d.ts.map +1 -1
- package/lib/models/create-article-command.d.ts +6 -0
- package/lib/models/create-article-command.d.ts.map +1 -1
- package/lib/models/create-patient-affiliation-command.d.ts +109 -0
- package/lib/models/create-patient-affiliation-command.d.ts.map +1 -0
- package/lib/models/create-patient-affiliation-command.js +15 -0
- package/lib/models/create-patient-command.d.ts +90 -0
- package/lib/models/create-patient-command.d.ts.map +1 -1
- package/lib/models/doctor-item-model.d.ts +3 -3
- package/lib/models/doctor-item-model.d.ts.map +1 -1
- package/lib/models/doctor-model.d.ts +3 -3
- package/lib/models/doctor-model.d.ts.map +1 -1
- package/lib/models/get-patient-walk-in-query.d.ts +37 -0
- package/lib/models/get-patient-walk-in-query.d.ts.map +1 -0
- package/lib/models/get-patient-walk-in-query.js +15 -0
- package/lib/models/index.d.ts +7 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +7 -0
- package/lib/models/manager-item-model.d.ts +3 -3
- package/lib/models/manager-item-model.d.ts.map +1 -1
- package/lib/models/manager-model.d.ts +3 -3
- package/lib/models/manager-model.d.ts.map +1 -1
- package/lib/models/patient-affiliation-item-model.d.ts +153 -0
- package/lib/models/patient-affiliation-item-model.d.ts.map +1 -0
- package/lib/models/patient-affiliation-item-model.js +15 -0
- package/lib/models/patient-affiliation-model.d.ts +153 -0
- package/lib/models/patient-affiliation-model.d.ts.map +1 -0
- package/lib/models/patient-affiliation-model.js +15 -0
- package/lib/models/patient-affiliations-model.d.ts +33 -0
- package/lib/models/patient-affiliations-model.d.ts.map +1 -0
- package/lib/models/patient-affiliations-model.js +15 -0
- package/lib/models/patient-item-model.d.ts +3 -3
- package/lib/models/patient-item-model.d.ts.map +1 -1
- package/lib/models/patient-model.d.ts +3 -3
- package/lib/models/patient-model.d.ts.map +1 -1
- package/lib/models/patient-walk-in-model.d.ts +32 -0
- package/lib/models/patient-walk-in-model.d.ts.map +1 -0
- package/lib/models/patient-walk-in-model.js +15 -0
- package/lib/models/update-article-command.d.ts +6 -0
- package/lib/models/update-article-command.d.ts.map +1 -1
- package/lib/models/update-patient-affiliation-command.d.ts +115 -0
- package/lib/models/update-patient-affiliation-command.d.ts.map +1 -0
- package/lib/models/update-patient-affiliation-command.js +15 -0
- package/lib/models/user-model.d.ts +3 -3
- package/lib/models/user-model.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +8 -0
- package/src/api/patient-affiliations-api.ts +361 -0
- package/src/api/patients-api.ts +337 -6
- package/src/api.ts +1 -0
- package/src/models/chadmin-item-model.ts +3 -3
- package/src/models/chadmin-model.ts +3 -3
- package/src/models/chmanager-item-model.ts +3 -3
- package/src/models/chmanager-model.ts +3 -3
- package/src/models/create-article-command.ts +6 -0
- package/src/models/create-patient-affiliation-command.ts +114 -0
- package/src/models/create-patient-command.ts +90 -0
- package/src/models/doctor-item-model.ts +3 -3
- package/src/models/doctor-model.ts +3 -3
- package/src/models/get-patient-walk-in-query.ts +42 -0
- package/src/models/index.ts +7 -0
- package/src/models/manager-item-model.ts +3 -3
- package/src/models/manager-model.ts +3 -3
- package/src/models/patient-affiliation-item-model.ts +162 -0
- package/src/models/patient-affiliation-model.ts +162 -0
- package/src/models/patient-affiliations-model.ts +42 -0
- package/src/models/patient-item-model.ts +3 -3
- package/src/models/patient-model.ts +3 -3
- package/src/models/patient-walk-in-model.ts +39 -0
- package/src/models/update-article-command.ts +6 -0
- package/src/models/update-patient-affiliation-command.ts +120 -0
- package/src/models/user-model.ts +3 -3
package/src/api/patients-api.ts
CHANGED
|
@@ -21,16 +21,26 @@ 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 { CreatePatientAffiliationCommand } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { CreatePatientCommand } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { Gender } from '../models';
|
|
27
29
|
// @ts-ignore
|
|
30
|
+
import { GetPatientWalkInQuery } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { PatientAffiliationModel } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
28
34
|
import { PatientModel } from '../models';
|
|
29
35
|
// @ts-ignore
|
|
36
|
+
import { PatientWalkInModel } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
30
38
|
import { PatientsModel } from '../models';
|
|
31
39
|
// @ts-ignore
|
|
32
40
|
import { ProblemDetails } from '../models';
|
|
33
41
|
// @ts-ignore
|
|
42
|
+
import { UpdatePatientAffiliationCommand } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
34
44
|
import { UpdatePatientCommand } from '../models';
|
|
35
45
|
/**
|
|
36
46
|
* PatientsApi - axios parameter creator
|
|
@@ -171,6 +181,53 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
171
181
|
|
|
172
182
|
|
|
173
183
|
|
|
184
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
185
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
187
|
+
|
|
188
|
+
return {
|
|
189
|
+
url: toPathString(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
};
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @summary Get patientAffiliation by patient id and hospital id.
|
|
196
|
+
* @param {string} patientId
|
|
197
|
+
* @param {string} hospitalId
|
|
198
|
+
* @param {string} [languageCode]
|
|
199
|
+
* @param {*} [options] Override http request option.
|
|
200
|
+
* @throws {RequiredError}
|
|
201
|
+
*/
|
|
202
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdGet: async (patientId: string, hospitalId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
203
|
+
// verify required parameter 'patientId' is not null or undefined
|
|
204
|
+
assertParamExists('apiV1PatientsPatientIdAffiliationsHospitalIdGet', 'patientId', patientId)
|
|
205
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
206
|
+
assertParamExists('apiV1PatientsPatientIdAffiliationsHospitalIdGet', 'hospitalId', hospitalId)
|
|
207
|
+
const localVarPath = `/api/v1/patients/{patientId}/affiliations/{hospitalId}`
|
|
208
|
+
.replace(`{${"patientId"}}`, encodeURIComponent(String(patientId)))
|
|
209
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
210
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
211
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
212
|
+
let baseOptions;
|
|
213
|
+
if (configuration) {
|
|
214
|
+
baseOptions = configuration.baseOptions;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
218
|
+
const localVarHeaderParameter = {} as any;
|
|
219
|
+
const localVarQueryParameter = {} as any;
|
|
220
|
+
|
|
221
|
+
// authentication oauth2 required
|
|
222
|
+
// oauth required
|
|
223
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
224
|
+
|
|
225
|
+
if (languageCode !== undefined) {
|
|
226
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
174
231
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
175
232
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
233
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -185,10 +242,11 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
185
242
|
* @summary Create patient affiliation
|
|
186
243
|
* @param {string} patientId
|
|
187
244
|
* @param {string} hospitalId
|
|
245
|
+
* @param {CreatePatientAffiliationCommand} [createPatientAffiliationCommand]
|
|
188
246
|
* @param {*} [options] Override http request option.
|
|
189
247
|
* @throws {RequiredError}
|
|
190
248
|
*/
|
|
191
|
-
apiV1PatientsPatientIdAffiliationsHospitalIdPost: async (patientId: string, hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
249
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdPost: async (patientId: string, hospitalId: string, createPatientAffiliationCommand?: CreatePatientAffiliationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
192
250
|
// verify required parameter 'patientId' is not null or undefined
|
|
193
251
|
assertParamExists('apiV1PatientsPatientIdAffiliationsHospitalIdPost', 'patientId', patientId)
|
|
194
252
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
@@ -213,9 +271,58 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
213
271
|
|
|
214
272
|
|
|
215
273
|
|
|
274
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
275
|
+
|
|
216
276
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
217
277
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
218
278
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
279
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPatientAffiliationCommand, localVarRequestOptions, configuration)
|
|
280
|
+
|
|
281
|
+
return {
|
|
282
|
+
url: toPathString(localVarUrlObj),
|
|
283
|
+
options: localVarRequestOptions,
|
|
284
|
+
};
|
|
285
|
+
},
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @summary Update patient affiliation
|
|
289
|
+
* @param {string} patientId
|
|
290
|
+
* @param {string} hospitalId
|
|
291
|
+
* @param {UpdatePatientAffiliationCommand} [updatePatientAffiliationCommand]
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdPut: async (patientId: string, hospitalId: string, updatePatientAffiliationCommand?: UpdatePatientAffiliationCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
296
|
+
// verify required parameter 'patientId' is not null or undefined
|
|
297
|
+
assertParamExists('apiV1PatientsPatientIdAffiliationsHospitalIdPut', 'patientId', patientId)
|
|
298
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
299
|
+
assertParamExists('apiV1PatientsPatientIdAffiliationsHospitalIdPut', 'hospitalId', hospitalId)
|
|
300
|
+
const localVarPath = `/api/v1/patients/{patientId}/affiliations/{hospitalId}`
|
|
301
|
+
.replace(`{${"patientId"}}`, encodeURIComponent(String(patientId)))
|
|
302
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
303
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
304
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
305
|
+
let baseOptions;
|
|
306
|
+
if (configuration) {
|
|
307
|
+
baseOptions = configuration.baseOptions;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
311
|
+
const localVarHeaderParameter = {} as any;
|
|
312
|
+
const localVarQueryParameter = {} as any;
|
|
313
|
+
|
|
314
|
+
// authentication oauth2 required
|
|
315
|
+
// oauth required
|
|
316
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
321
|
+
|
|
322
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
323
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
324
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
325
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePatientAffiliationCommand, localVarRequestOptions, configuration)
|
|
219
326
|
|
|
220
327
|
return {
|
|
221
328
|
url: toPathString(localVarUrlObj),
|
|
@@ -420,6 +527,44 @@ export const PatientsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
420
527
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
421
528
|
localVarRequestOptions.data = serializeDataIfNeeded(createPatientCommand, localVarRequestOptions, configuration)
|
|
422
529
|
|
|
530
|
+
return {
|
|
531
|
+
url: toPathString(localVarUrlObj),
|
|
532
|
+
options: localVarRequestOptions,
|
|
533
|
+
};
|
|
534
|
+
},
|
|
535
|
+
/**
|
|
536
|
+
*
|
|
537
|
+
* @summary Get patient information for Patient walk-in feature
|
|
538
|
+
* @param {GetPatientWalkInQuery} [getPatientWalkInQuery]
|
|
539
|
+
* @param {*} [options] Override http request option.
|
|
540
|
+
* @throws {RequiredError}
|
|
541
|
+
*/
|
|
542
|
+
apiV1PatientsWalkinPost: async (getPatientWalkInQuery?: GetPatientWalkInQuery, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
543
|
+
const localVarPath = `/api/v1/patients/walkin`;
|
|
544
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
545
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
546
|
+
let baseOptions;
|
|
547
|
+
if (configuration) {
|
|
548
|
+
baseOptions = configuration.baseOptions;
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
552
|
+
const localVarHeaderParameter = {} as any;
|
|
553
|
+
const localVarQueryParameter = {} as any;
|
|
554
|
+
|
|
555
|
+
// authentication oauth2 required
|
|
556
|
+
// oauth required
|
|
557
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
562
|
+
|
|
563
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
564
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
565
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
566
|
+
localVarRequestOptions.data = serializeDataIfNeeded(getPatientWalkInQuery, localVarRequestOptions, configuration)
|
|
567
|
+
|
|
423
568
|
return {
|
|
424
569
|
url: toPathString(localVarUrlObj),
|
|
425
570
|
options: localVarRequestOptions,
|
|
@@ -469,16 +614,43 @@ export const PatientsApiFp = function(configuration?: Configuration) {
|
|
|
469
614
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PatientsPatientIdAffiliationsHospitalIdDelete(patientId, hospitalId, isPermanent, options);
|
|
470
615
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
471
616
|
},
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @summary Get patientAffiliation by patient id and hospital id.
|
|
620
|
+
* @param {string} patientId
|
|
621
|
+
* @param {string} hospitalId
|
|
622
|
+
* @param {string} [languageCode]
|
|
623
|
+
* @param {*} [options] Override http request option.
|
|
624
|
+
* @throws {RequiredError}
|
|
625
|
+
*/
|
|
626
|
+
async apiV1PatientsPatientIdAffiliationsHospitalIdGet(patientId: string, hospitalId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientAffiliationModel>> {
|
|
627
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PatientsPatientIdAffiliationsHospitalIdGet(patientId, hospitalId, languageCode, options);
|
|
628
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
629
|
+
},
|
|
472
630
|
/**
|
|
473
631
|
*
|
|
474
632
|
* @summary Create patient affiliation
|
|
475
633
|
* @param {string} patientId
|
|
476
634
|
* @param {string} hospitalId
|
|
635
|
+
* @param {CreatePatientAffiliationCommand} [createPatientAffiliationCommand]
|
|
636
|
+
* @param {*} [options] Override http request option.
|
|
637
|
+
* @throws {RequiredError}
|
|
638
|
+
*/
|
|
639
|
+
async apiV1PatientsPatientIdAffiliationsHospitalIdPost(patientId: string, hospitalId: string, createPatientAffiliationCommand?: CreatePatientAffiliationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
640
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PatientsPatientIdAffiliationsHospitalIdPost(patientId, hospitalId, createPatientAffiliationCommand, options);
|
|
641
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
642
|
+
},
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @summary Update patient affiliation
|
|
646
|
+
* @param {string} patientId
|
|
647
|
+
* @param {string} hospitalId
|
|
648
|
+
* @param {UpdatePatientAffiliationCommand} [updatePatientAffiliationCommand]
|
|
477
649
|
* @param {*} [options] Override http request option.
|
|
478
650
|
* @throws {RequiredError}
|
|
479
651
|
*/
|
|
480
|
-
async
|
|
481
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
652
|
+
async apiV1PatientsPatientIdAffiliationsHospitalIdPut(patientId: string, hospitalId: string, updatePatientAffiliationCommand?: UpdatePatientAffiliationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
653
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PatientsPatientIdAffiliationsHospitalIdPut(patientId, hospitalId, updatePatientAffiliationCommand, options);
|
|
482
654
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
483
655
|
},
|
|
484
656
|
/**
|
|
@@ -539,6 +711,17 @@ export const PatientsApiFp = function(configuration?: Configuration) {
|
|
|
539
711
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PatientsPost(createPatientCommand, options);
|
|
540
712
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
541
713
|
},
|
|
714
|
+
/**
|
|
715
|
+
*
|
|
716
|
+
* @summary Get patient information for Patient walk-in feature
|
|
717
|
+
* @param {GetPatientWalkInQuery} [getPatientWalkInQuery]
|
|
718
|
+
* @param {*} [options] Override http request option.
|
|
719
|
+
* @throws {RequiredError}
|
|
720
|
+
*/
|
|
721
|
+
async apiV1PatientsWalkinPost(getPatientWalkInQuery?: GetPatientWalkInQuery, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatientWalkInModel>> {
|
|
722
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PatientsWalkinPost(getPatientWalkInQuery, options);
|
|
723
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
724
|
+
},
|
|
542
725
|
}
|
|
543
726
|
};
|
|
544
727
|
|
|
@@ -581,16 +764,41 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
|
|
|
581
764
|
apiV1PatientsPatientIdAffiliationsHospitalIdDelete(patientId: string, hospitalId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
582
765
|
return localVarFp.apiV1PatientsPatientIdAffiliationsHospitalIdDelete(patientId, hospitalId, isPermanent, options).then((request) => request(axios, basePath));
|
|
583
766
|
},
|
|
767
|
+
/**
|
|
768
|
+
*
|
|
769
|
+
* @summary Get patientAffiliation by patient id and hospital id.
|
|
770
|
+
* @param {string} patientId
|
|
771
|
+
* @param {string} hospitalId
|
|
772
|
+
* @param {string} [languageCode]
|
|
773
|
+
* @param {*} [options] Override http request option.
|
|
774
|
+
* @throws {RequiredError}
|
|
775
|
+
*/
|
|
776
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdGet(patientId: string, hospitalId: string, languageCode?: string, options?: any): AxiosPromise<PatientAffiliationModel> {
|
|
777
|
+
return localVarFp.apiV1PatientsPatientIdAffiliationsHospitalIdGet(patientId, hospitalId, languageCode, options).then((request) => request(axios, basePath));
|
|
778
|
+
},
|
|
584
779
|
/**
|
|
585
780
|
*
|
|
586
781
|
* @summary Create patient affiliation
|
|
587
782
|
* @param {string} patientId
|
|
588
783
|
* @param {string} hospitalId
|
|
784
|
+
* @param {CreatePatientAffiliationCommand} [createPatientAffiliationCommand]
|
|
589
785
|
* @param {*} [options] Override http request option.
|
|
590
786
|
* @throws {RequiredError}
|
|
591
787
|
*/
|
|
592
|
-
apiV1PatientsPatientIdAffiliationsHospitalIdPost(patientId: string, hospitalId: string, options?: any): AxiosPromise<boolean> {
|
|
593
|
-
return localVarFp.apiV1PatientsPatientIdAffiliationsHospitalIdPost(patientId, hospitalId, options).then((request) => request(axios, basePath));
|
|
788
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdPost(patientId: string, hospitalId: string, createPatientAffiliationCommand?: CreatePatientAffiliationCommand, options?: any): AxiosPromise<boolean> {
|
|
789
|
+
return localVarFp.apiV1PatientsPatientIdAffiliationsHospitalIdPost(patientId, hospitalId, createPatientAffiliationCommand, options).then((request) => request(axios, basePath));
|
|
790
|
+
},
|
|
791
|
+
/**
|
|
792
|
+
*
|
|
793
|
+
* @summary Update patient affiliation
|
|
794
|
+
* @param {string} patientId
|
|
795
|
+
* @param {string} hospitalId
|
|
796
|
+
* @param {UpdatePatientAffiliationCommand} [updatePatientAffiliationCommand]
|
|
797
|
+
* @param {*} [options] Override http request option.
|
|
798
|
+
* @throws {RequiredError}
|
|
799
|
+
*/
|
|
800
|
+
apiV1PatientsPatientIdAffiliationsHospitalIdPut(patientId: string, hospitalId: string, updatePatientAffiliationCommand?: UpdatePatientAffiliationCommand, options?: any): AxiosPromise<boolean> {
|
|
801
|
+
return localVarFp.apiV1PatientsPatientIdAffiliationsHospitalIdPut(patientId, hospitalId, updatePatientAffiliationCommand, options).then((request) => request(axios, basePath));
|
|
594
802
|
},
|
|
595
803
|
/**
|
|
596
804
|
*
|
|
@@ -645,6 +853,16 @@ export const PatientsApiFactory = function (configuration?: Configuration, baseP
|
|
|
645
853
|
apiV1PatientsPost(createPatientCommand?: CreatePatientCommand, options?: any): AxiosPromise<PatientModel> {
|
|
646
854
|
return localVarFp.apiV1PatientsPost(createPatientCommand, options).then((request) => request(axios, basePath));
|
|
647
855
|
},
|
|
856
|
+
/**
|
|
857
|
+
*
|
|
858
|
+
* @summary Get patient information for Patient walk-in feature
|
|
859
|
+
* @param {GetPatientWalkInQuery} [getPatientWalkInQuery]
|
|
860
|
+
* @param {*} [options] Override http request option.
|
|
861
|
+
* @throws {RequiredError}
|
|
862
|
+
*/
|
|
863
|
+
apiV1PatientsWalkinPost(getPatientWalkInQuery?: GetPatientWalkInQuery, options?: any): AxiosPromise<PatientWalkInModel> {
|
|
864
|
+
return localVarFp.apiV1PatientsWalkinPost(getPatientWalkInQuery, options).then((request) => request(axios, basePath));
|
|
865
|
+
},
|
|
648
866
|
};
|
|
649
867
|
};
|
|
650
868
|
|
|
@@ -760,6 +978,34 @@ export interface PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdDeleteRe
|
|
|
760
978
|
readonly isPermanent?: boolean
|
|
761
979
|
}
|
|
762
980
|
|
|
981
|
+
/**
|
|
982
|
+
* Request parameters for apiV1PatientsPatientIdAffiliationsHospitalIdGet operation in PatientsApi.
|
|
983
|
+
* @export
|
|
984
|
+
* @interface PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdGetRequest
|
|
985
|
+
*/
|
|
986
|
+
export interface PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdGetRequest {
|
|
987
|
+
/**
|
|
988
|
+
*
|
|
989
|
+
* @type {string}
|
|
990
|
+
* @memberof PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdGet
|
|
991
|
+
*/
|
|
992
|
+
readonly patientId: string
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
*
|
|
996
|
+
* @type {string}
|
|
997
|
+
* @memberof PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdGet
|
|
998
|
+
*/
|
|
999
|
+
readonly hospitalId: string
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
*
|
|
1003
|
+
* @type {string}
|
|
1004
|
+
* @memberof PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdGet
|
|
1005
|
+
*/
|
|
1006
|
+
readonly languageCode?: string
|
|
1007
|
+
}
|
|
1008
|
+
|
|
763
1009
|
/**
|
|
764
1010
|
* Request parameters for apiV1PatientsPatientIdAffiliationsHospitalIdPost operation in PatientsApi.
|
|
765
1011
|
* @export
|
|
@@ -779,6 +1025,41 @@ export interface PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdPostRequ
|
|
|
779
1025
|
* @memberof PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdPost
|
|
780
1026
|
*/
|
|
781
1027
|
readonly hospitalId: string
|
|
1028
|
+
|
|
1029
|
+
/**
|
|
1030
|
+
*
|
|
1031
|
+
* @type {CreatePatientAffiliationCommand}
|
|
1032
|
+
* @memberof PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdPost
|
|
1033
|
+
*/
|
|
1034
|
+
readonly createPatientAffiliationCommand?: CreatePatientAffiliationCommand
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Request parameters for apiV1PatientsPatientIdAffiliationsHospitalIdPut operation in PatientsApi.
|
|
1039
|
+
* @export
|
|
1040
|
+
* @interface PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdPutRequest
|
|
1041
|
+
*/
|
|
1042
|
+
export interface PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdPutRequest {
|
|
1043
|
+
/**
|
|
1044
|
+
*
|
|
1045
|
+
* @type {string}
|
|
1046
|
+
* @memberof PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdPut
|
|
1047
|
+
*/
|
|
1048
|
+
readonly patientId: string
|
|
1049
|
+
|
|
1050
|
+
/**
|
|
1051
|
+
*
|
|
1052
|
+
* @type {string}
|
|
1053
|
+
* @memberof PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdPut
|
|
1054
|
+
*/
|
|
1055
|
+
readonly hospitalId: string
|
|
1056
|
+
|
|
1057
|
+
/**
|
|
1058
|
+
*
|
|
1059
|
+
* @type {UpdatePatientAffiliationCommand}
|
|
1060
|
+
* @memberof PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdPut
|
|
1061
|
+
*/
|
|
1062
|
+
readonly updatePatientAffiliationCommand?: UpdatePatientAffiliationCommand
|
|
782
1063
|
}
|
|
783
1064
|
|
|
784
1065
|
/**
|
|
@@ -872,6 +1153,20 @@ export interface PatientsApiApiV1PatientsPostRequest {
|
|
|
872
1153
|
readonly createPatientCommand?: CreatePatientCommand
|
|
873
1154
|
}
|
|
874
1155
|
|
|
1156
|
+
/**
|
|
1157
|
+
* Request parameters for apiV1PatientsWalkinPost operation in PatientsApi.
|
|
1158
|
+
* @export
|
|
1159
|
+
* @interface PatientsApiApiV1PatientsWalkinPostRequest
|
|
1160
|
+
*/
|
|
1161
|
+
export interface PatientsApiApiV1PatientsWalkinPostRequest {
|
|
1162
|
+
/**
|
|
1163
|
+
*
|
|
1164
|
+
* @type {GetPatientWalkInQuery}
|
|
1165
|
+
* @memberof PatientsApiApiV1PatientsWalkinPost
|
|
1166
|
+
*/
|
|
1167
|
+
readonly getPatientWalkInQuery?: GetPatientWalkInQuery
|
|
1168
|
+
}
|
|
1169
|
+
|
|
875
1170
|
/**
|
|
876
1171
|
* PatientsApi - object-oriented interface
|
|
877
1172
|
* @export
|
|
@@ -903,6 +1198,18 @@ export class PatientsApi extends BaseAPI {
|
|
|
903
1198
|
return PatientsApiFp(this.configuration).apiV1PatientsPatientIdAffiliationsHospitalIdDelete(requestParameters.patientId, requestParameters.hospitalId, requestParameters.isPermanent, options).then((request) => request(this.axios, this.basePath));
|
|
904
1199
|
}
|
|
905
1200
|
|
|
1201
|
+
/**
|
|
1202
|
+
*
|
|
1203
|
+
* @summary Get patientAffiliation by patient id and hospital id.
|
|
1204
|
+
* @param {PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdGetRequest} requestParameters Request parameters.
|
|
1205
|
+
* @param {*} [options] Override http request option.
|
|
1206
|
+
* @throws {RequiredError}
|
|
1207
|
+
* @memberof PatientsApi
|
|
1208
|
+
*/
|
|
1209
|
+
public apiV1PatientsPatientIdAffiliationsHospitalIdGet(requestParameters: PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdGetRequest, options?: AxiosRequestConfig) {
|
|
1210
|
+
return PatientsApiFp(this.configuration).apiV1PatientsPatientIdAffiliationsHospitalIdGet(requestParameters.patientId, requestParameters.hospitalId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
1211
|
+
}
|
|
1212
|
+
|
|
906
1213
|
/**
|
|
907
1214
|
*
|
|
908
1215
|
* @summary Create patient affiliation
|
|
@@ -912,7 +1219,19 @@ export class PatientsApi extends BaseAPI {
|
|
|
912
1219
|
* @memberof PatientsApi
|
|
913
1220
|
*/
|
|
914
1221
|
public apiV1PatientsPatientIdAffiliationsHospitalIdPost(requestParameters: PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdPostRequest, options?: AxiosRequestConfig) {
|
|
915
|
-
return PatientsApiFp(this.configuration).apiV1PatientsPatientIdAffiliationsHospitalIdPost(requestParameters.patientId, requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
|
|
1222
|
+
return PatientsApiFp(this.configuration).apiV1PatientsPatientIdAffiliationsHospitalIdPost(requestParameters.patientId, requestParameters.hospitalId, requestParameters.createPatientAffiliationCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
*
|
|
1227
|
+
* @summary Update patient affiliation
|
|
1228
|
+
* @param {PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdPutRequest} requestParameters Request parameters.
|
|
1229
|
+
* @param {*} [options] Override http request option.
|
|
1230
|
+
* @throws {RequiredError}
|
|
1231
|
+
* @memberof PatientsApi
|
|
1232
|
+
*/
|
|
1233
|
+
public apiV1PatientsPatientIdAffiliationsHospitalIdPut(requestParameters: PatientsApiApiV1PatientsPatientIdAffiliationsHospitalIdPutRequest, options?: AxiosRequestConfig) {
|
|
1234
|
+
return PatientsApiFp(this.configuration).apiV1PatientsPatientIdAffiliationsHospitalIdPut(requestParameters.patientId, requestParameters.hospitalId, requestParameters.updatePatientAffiliationCommand, options).then((request) => request(this.axios, this.basePath));
|
|
916
1235
|
}
|
|
917
1236
|
|
|
918
1237
|
/**
|
|
@@ -974,4 +1293,16 @@ export class PatientsApi extends BaseAPI {
|
|
|
974
1293
|
public apiV1PatientsPost(requestParameters: PatientsApiApiV1PatientsPostRequest = {}, options?: AxiosRequestConfig) {
|
|
975
1294
|
return PatientsApiFp(this.configuration).apiV1PatientsPost(requestParameters.createPatientCommand, options).then((request) => request(this.axios, this.basePath));
|
|
976
1295
|
}
|
|
1296
|
+
|
|
1297
|
+
/**
|
|
1298
|
+
*
|
|
1299
|
+
* @summary Get patient information for Patient walk-in feature
|
|
1300
|
+
* @param {PatientsApiApiV1PatientsWalkinPostRequest} requestParameters Request parameters.
|
|
1301
|
+
* @param {*} [options] Override http request option.
|
|
1302
|
+
* @throws {RequiredError}
|
|
1303
|
+
* @memberof PatientsApi
|
|
1304
|
+
*/
|
|
1305
|
+
public apiV1PatientsWalkinPost(requestParameters: PatientsApiApiV1PatientsWalkinPostRequest = {}, options?: AxiosRequestConfig) {
|
|
1306
|
+
return PatientsApiFp(this.configuration).apiV1PatientsWalkinPost(requestParameters.getPatientWalkInQuery, options).then((request) => request(this.axios, this.basePath));
|
|
1307
|
+
}
|
|
977
1308
|
}
|
package/src/api.ts
CHANGED
|
@@ -46,6 +46,7 @@ export * from './api/languages-api';
|
|
|
46
46
|
export * from './api/managers-api';
|
|
47
47
|
export * from './api/memberships-api';
|
|
48
48
|
export * from './api/notifications-api';
|
|
49
|
+
export * from './api/patient-affiliations-api';
|
|
49
50
|
export * from './api/patients-api';
|
|
50
51
|
export * from './api/payments-api';
|
|
51
52
|
export * from './api/plans-api';
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
// May contain unused imports in some cases
|
|
17
17
|
// @ts-ignore
|
|
18
|
-
import {
|
|
18
|
+
import { AuditableEntityModel } from './auditable-entity-model';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import { Gender } from './gender';
|
|
@@ -106,9 +106,9 @@ export interface CHAdminItemModel {
|
|
|
106
106
|
'communicationUserId'?: string | null;
|
|
107
107
|
/**
|
|
108
108
|
*
|
|
109
|
-
* @type {
|
|
109
|
+
* @type {AuditableEntityModel}
|
|
110
110
|
* @memberof CHAdminItemModel
|
|
111
111
|
*/
|
|
112
|
-
'auditableEntity'?:
|
|
112
|
+
'auditableEntity'?: AuditableEntityModel;
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
// May contain unused imports in some cases
|
|
17
17
|
// @ts-ignore
|
|
18
|
-
import {
|
|
18
|
+
import { AuditableEntityModel } from './auditable-entity-model';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import { Gender } from './gender';
|
|
@@ -112,10 +112,10 @@ export interface CHAdminModel {
|
|
|
112
112
|
'communicationUserId'?: string | null;
|
|
113
113
|
/**
|
|
114
114
|
*
|
|
115
|
-
* @type {
|
|
115
|
+
* @type {AuditableEntityModel}
|
|
116
116
|
* @memberof CHAdminModel
|
|
117
117
|
*/
|
|
118
|
-
'auditableEntity'?:
|
|
118
|
+
'auditableEntity'?: AuditableEntityModel;
|
|
119
119
|
/**
|
|
120
120
|
*
|
|
121
121
|
* @type {string}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
// May contain unused imports in some cases
|
|
17
17
|
// @ts-ignore
|
|
18
|
-
import {
|
|
18
|
+
import { AuditableEntityModel } from './auditable-entity-model';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import { Gender } from './gender';
|
|
@@ -106,9 +106,9 @@ export interface CHManagerItemModel {
|
|
|
106
106
|
'communicationUserId'?: string | null;
|
|
107
107
|
/**
|
|
108
108
|
*
|
|
109
|
-
* @type {
|
|
109
|
+
* @type {AuditableEntityModel}
|
|
110
110
|
* @memberof CHManagerItemModel
|
|
111
111
|
*/
|
|
112
|
-
'auditableEntity'?:
|
|
112
|
+
'auditableEntity'?: AuditableEntityModel;
|
|
113
113
|
}
|
|
114
114
|
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
// May contain unused imports in some cases
|
|
17
17
|
// @ts-ignore
|
|
18
|
-
import {
|
|
18
|
+
import { AuditableEntityModel } from './auditable-entity-model';
|
|
19
19
|
// May contain unused imports in some cases
|
|
20
20
|
// @ts-ignore
|
|
21
21
|
import { Gender } from './gender';
|
|
@@ -112,10 +112,10 @@ export interface CHManagerModel {
|
|
|
112
112
|
'communicationUserId'?: string | null;
|
|
113
113
|
/**
|
|
114
114
|
*
|
|
115
|
-
* @type {
|
|
115
|
+
* @type {AuditableEntityModel}
|
|
116
116
|
* @memberof CHManagerModel
|
|
117
117
|
*/
|
|
118
|
-
'auditableEntity'?:
|
|
118
|
+
'auditableEntity'?: AuditableEntityModel;
|
|
119
119
|
/**
|
|
120
120
|
*
|
|
121
121
|
* @type {string}
|
|
@@ -62,6 +62,12 @@ export interface CreateArticleCommand {
|
|
|
62
62
|
* @memberof CreateArticleCommand
|
|
63
63
|
*/
|
|
64
64
|
'hospitalId'?: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof CreateArticleCommand
|
|
69
|
+
*/
|
|
70
|
+
'specialtyTypeId'?: string | null;
|
|
65
71
|
/**
|
|
66
72
|
*
|
|
67
73
|
* @type {ArticleStatus}
|