ch-admin-api-client-typescript 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.
- package/lib/api/appointments-api.d.ts +47 -0
- package/lib/api/appointments-api.d.ts.map +1 -1
- package/lib/api/appointments-api.js +85 -0
- package/lib/api/deals-api.d.ts +110 -0
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +127 -0
- package/lib/api/doctor-affiliations-api.d.ts +101 -0
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.js +121 -0
- package/lib/api/hospitals-api.d.ts +328 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +381 -0
- package/lib/api/prescriptions-api.d.ts +447 -0
- package/lib/api/prescriptions-api.d.ts.map +1 -0
- package/lib/api/prescriptions-api.js +727 -0
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/appointment-timetable-date-model.d.ts +58 -0
- package/lib/models/appointment-timetable-date-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-date-model.js +15 -0
- package/lib/models/appointment-timetable-status.d.ts +22 -0
- package/lib/models/appointment-timetable-status.d.ts.map +1 -0
- package/lib/models/appointment-timetable-status.js +25 -0
- package/lib/models/appointment-timetable-time-slot-model.d.ts +74 -0
- package/lib/models/appointment-timetable-time-slot-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-time-slot-model.js +15 -0
- package/lib/models/create-doctor-affiliation-command.d.ts +6 -0
- package/lib/models/create-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/create-hospital-command.d.ts +24 -0
- package/lib/models/create-hospital-command.d.ts.map +1 -1
- package/lib/models/create-prescription-command.d.ts +184 -0
- package/lib/models/create-prescription-command.d.ts.map +1 -0
- package/lib/models/create-prescription-command.js +15 -0
- package/lib/models/create-walk-in-appointment-command.d.ts +154 -0
- package/lib/models/create-walk-in-appointment-command.d.ts.map +1 -0
- package/lib/models/create-walk-in-appointment-command.js +15 -0
- package/lib/models/doctor-affiliation-item-model.d.ts +3 -3
- package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-model.d.ts +9 -3
- package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
- package/lib/models/get-appointment-timetables-response-model.d.ts +44 -0
- package/lib/models/get-appointment-timetables-response-model.d.ts.map +1 -0
- package/lib/models/get-appointment-timetables-response-model.js +15 -0
- package/lib/models/hospital-model.d.ts +24 -0
- package/lib/models/hospital-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +16 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +16 -0
- package/lib/models/prescription-diagnosis-input-model.d.ts +37 -0
- package/lib/models/prescription-diagnosis-input-model.d.ts.map +1 -0
- package/lib/models/prescription-diagnosis-input-model.js +15 -0
- package/lib/models/prescription-diagnosis-item-model.d.ts +37 -0
- package/lib/models/prescription-diagnosis-item-model.d.ts.map +1 -0
- package/lib/models/prescription-diagnosis-item-model.js +15 -0
- package/lib/models/prescription-item-model.d.ts +164 -0
- package/lib/models/prescription-item-model.d.ts.map +1 -0
- package/lib/models/prescription-item-model.js +15 -0
- package/lib/models/prescription-medication-input-model.d.ts +79 -0
- package/lib/models/prescription-medication-input-model.d.ts.map +1 -0
- package/lib/models/prescription-medication-input-model.js +15 -0
- package/lib/models/prescription-medication-item-model.d.ts +79 -0
- package/lib/models/prescription-medication-item-model.d.ts.map +1 -0
- package/lib/models/prescription-medication-item-model.js +15 -0
- package/lib/models/prescription-model.d.ts +185 -0
- package/lib/models/prescription-model.d.ts.map +1 -0
- package/lib/models/prescription-model.js +15 -0
- package/lib/models/prescription-symptom-input-model.d.ts +49 -0
- package/lib/models/prescription-symptom-input-model.d.ts.map +1 -0
- package/lib/models/prescription-symptom-input-model.js +15 -0
- package/lib/models/prescription-symptom-item-model.d.ts +49 -0
- package/lib/models/prescription-symptom-item-model.d.ts.map +1 -0
- package/lib/models/prescription-symptom-item-model.js +15 -0
- package/lib/models/prescriptions-model.d.ts +33 -0
- package/lib/models/prescriptions-model.d.ts.map +1 -0
- package/lib/models/prescriptions-model.js +15 -0
- package/lib/models/update-doctor-affiliation-command.d.ts +6 -0
- package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/update-hospital-command.d.ts +24 -0
- package/lib/models/update-hospital-command.d.ts.map +1 -1
- package/lib/models/update-prescription-command.d.ts +154 -0
- package/lib/models/update-prescription-command.d.ts.map +1 -0
- package/lib/models/update-prescription-command.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +17 -0
- package/src/api/appointments-api.ts +87 -0
- package/src/api/deals-api.ts +184 -0
- package/src/api/doctor-affiliations-api.ts +171 -0
- package/src/api/hospitals-api.ts +548 -0
- package/src/api/prescriptions-api.ts +776 -0
- package/src/api.ts +1 -0
- package/src/models/appointment-timetable-date-model.ts +69 -0
- package/src/models/appointment-timetable-status.ts +31 -0
- package/src/models/appointment-timetable-time-slot-model.ts +81 -0
- package/src/models/create-doctor-affiliation-command.ts +6 -0
- package/src/models/create-hospital-command.ts +24 -0
- package/src/models/create-prescription-command.ts +195 -0
- package/src/models/create-walk-in-appointment-command.ts +165 -0
- package/src/models/doctor-affiliation-item-model.ts +3 -3
- package/src/models/doctor-affiliation-model.ts +9 -3
- package/src/models/get-appointment-timetables-response-model.ts +51 -0
- package/src/models/hospital-model.ts +24 -0
- package/src/models/index.ts +16 -0
- package/src/models/prescription-diagnosis-input-model.ts +42 -0
- package/src/models/prescription-diagnosis-item-model.ts +42 -0
- package/src/models/prescription-item-model.ts +171 -0
- package/src/models/prescription-medication-input-model.ts +84 -0
- package/src/models/prescription-medication-item-model.ts +84 -0
- package/src/models/prescription-model.ts +198 -0
- package/src/models/prescription-symptom-input-model.ts +54 -0
- package/src/models/prescription-symptom-item-model.ts +54 -0
- package/src/models/prescriptions-model.ts +42 -0
- package/src/models/update-doctor-affiliation-command.ts +6 -0
- package/src/models/update-hospital-command.ts +24 -0
- package/src/models/update-prescription-command.ts +165 -0
|
@@ -0,0 +1,776 @@
|
|
|
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 { CreatePrescriptionCommand } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { PrescriptionModel } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { PrescriptionsModel } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ProblemDetails } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdatePrescriptionCommand } from '../models';
|
|
33
|
+
/**
|
|
34
|
+
* PrescriptionsApi - axios parameter creator
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
export const PrescriptionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
|
+
return {
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @summary Get prescriptions
|
|
42
|
+
* @param {string} [languageCode]
|
|
43
|
+
* @param {string} [hospitalId]
|
|
44
|
+
* @param {string} [doctorId]
|
|
45
|
+
* @param {string} [doctorAffiliationId]
|
|
46
|
+
* @param {string} [patientId]
|
|
47
|
+
* @param {string} [patientAffiliationId]
|
|
48
|
+
* @param {string} [patientPhoneNumber]
|
|
49
|
+
* @param {string} [patientName]
|
|
50
|
+
* @param {boolean} [showHidden]
|
|
51
|
+
* @param {number} [page]
|
|
52
|
+
* @param {number} [limit]
|
|
53
|
+
* @param {Date} [lastRetrieved]
|
|
54
|
+
* @param {*} [options] Override http request option.
|
|
55
|
+
* @throws {RequiredError}
|
|
56
|
+
*/
|
|
57
|
+
apiV1PrescriptionsGet: async (languageCode?: string, hospitalId?: string, doctorId?: string, doctorAffiliationId?: string, patientId?: string, patientAffiliationId?: string, patientPhoneNumber?: string, patientName?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58
|
+
const localVarPath = `/api/v1/prescriptions`;
|
|
59
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
60
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61
|
+
let baseOptions;
|
|
62
|
+
if (configuration) {
|
|
63
|
+
baseOptions = configuration.baseOptions;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
67
|
+
const localVarHeaderParameter = {} as any;
|
|
68
|
+
const localVarQueryParameter = {} as any;
|
|
69
|
+
|
|
70
|
+
// authentication oauth2 required
|
|
71
|
+
// oauth required
|
|
72
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
73
|
+
|
|
74
|
+
if (languageCode !== undefined) {
|
|
75
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (hospitalId !== undefined) {
|
|
79
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (doctorId !== undefined) {
|
|
83
|
+
localVarQueryParameter['DoctorId'] = doctorId;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (doctorAffiliationId !== undefined) {
|
|
87
|
+
localVarQueryParameter['DoctorAffiliationId'] = doctorAffiliationId;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (patientId !== undefined) {
|
|
91
|
+
localVarQueryParameter['PatientId'] = patientId;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (patientAffiliationId !== undefined) {
|
|
95
|
+
localVarQueryParameter['PatientAffiliationId'] = patientAffiliationId;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
if (patientPhoneNumber !== undefined) {
|
|
99
|
+
localVarQueryParameter['PatientPhoneNumber'] = patientPhoneNumber;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if (patientName !== undefined) {
|
|
103
|
+
localVarQueryParameter['PatientName'] = patientName;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (showHidden !== undefined) {
|
|
107
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (page !== undefined) {
|
|
111
|
+
localVarQueryParameter['page'] = page;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (limit !== undefined) {
|
|
115
|
+
localVarQueryParameter['limit'] = limit;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
if (lastRetrieved !== undefined) {
|
|
119
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
|
|
120
|
+
(lastRetrieved as any).toISOString() :
|
|
121
|
+
lastRetrieved;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
128
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
url: toPathString(localVarUrlObj),
|
|
132
|
+
options: localVarRequestOptions,
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @summary Create prescription
|
|
138
|
+
* @param {CreatePrescriptionCommand} [createPrescriptionCommand]
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
apiV1PrescriptionsPost: async (createPrescriptionCommand?: CreatePrescriptionCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
143
|
+
const localVarPath = `/api/v1/prescriptions`;
|
|
144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
145
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
146
|
+
let baseOptions;
|
|
147
|
+
if (configuration) {
|
|
148
|
+
baseOptions = configuration.baseOptions;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
152
|
+
const localVarHeaderParameter = {} as any;
|
|
153
|
+
const localVarQueryParameter = {} as any;
|
|
154
|
+
|
|
155
|
+
// authentication oauth2 required
|
|
156
|
+
// oauth required
|
|
157
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
162
|
+
|
|
163
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
164
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
165
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
166
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPrescriptionCommand, localVarRequestOptions, configuration)
|
|
167
|
+
|
|
168
|
+
return {
|
|
169
|
+
url: toPathString(localVarUrlObj),
|
|
170
|
+
options: localVarRequestOptions,
|
|
171
|
+
};
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @summary Delete prescription
|
|
176
|
+
* @param {string} prescriptionId
|
|
177
|
+
* @param {boolean} [isPermanent]
|
|
178
|
+
* @param {*} [options] Override http request option.
|
|
179
|
+
* @throws {RequiredError}
|
|
180
|
+
*/
|
|
181
|
+
apiV1PrescriptionsPrescriptionIdDelete: async (prescriptionId: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
182
|
+
// verify required parameter 'prescriptionId' is not null or undefined
|
|
183
|
+
assertParamExists('apiV1PrescriptionsPrescriptionIdDelete', 'prescriptionId', prescriptionId)
|
|
184
|
+
const localVarPath = `/api/v1/prescriptions/{prescriptionId}`
|
|
185
|
+
.replace(`{${"prescriptionId"}}`, encodeURIComponent(String(prescriptionId)));
|
|
186
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
187
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
188
|
+
let baseOptions;
|
|
189
|
+
if (configuration) {
|
|
190
|
+
baseOptions = configuration.baseOptions;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
194
|
+
const localVarHeaderParameter = {} as any;
|
|
195
|
+
const localVarQueryParameter = {} as any;
|
|
196
|
+
|
|
197
|
+
// authentication oauth2 required
|
|
198
|
+
// oauth required
|
|
199
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
200
|
+
|
|
201
|
+
if (isPermanent !== undefined) {
|
|
202
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
208
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
209
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
210
|
+
|
|
211
|
+
return {
|
|
212
|
+
url: toPathString(localVarUrlObj),
|
|
213
|
+
options: localVarRequestOptions,
|
|
214
|
+
};
|
|
215
|
+
},
|
|
216
|
+
/**
|
|
217
|
+
*
|
|
218
|
+
* @summary Get a prescription by id
|
|
219
|
+
* @param {string} prescriptionId
|
|
220
|
+
* @param {string} [languageCode]
|
|
221
|
+
* @param {*} [options] Override http request option.
|
|
222
|
+
* @throws {RequiredError}
|
|
223
|
+
*/
|
|
224
|
+
apiV1PrescriptionsPrescriptionIdGet: async (prescriptionId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
225
|
+
// verify required parameter 'prescriptionId' is not null or undefined
|
|
226
|
+
assertParamExists('apiV1PrescriptionsPrescriptionIdGet', 'prescriptionId', prescriptionId)
|
|
227
|
+
const localVarPath = `/api/v1/prescriptions/{prescriptionId}`
|
|
228
|
+
.replace(`{${"prescriptionId"}}`, encodeURIComponent(String(prescriptionId)));
|
|
229
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
230
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
231
|
+
let baseOptions;
|
|
232
|
+
if (configuration) {
|
|
233
|
+
baseOptions = configuration.baseOptions;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
237
|
+
const localVarHeaderParameter = {} as any;
|
|
238
|
+
const localVarQueryParameter = {} as any;
|
|
239
|
+
|
|
240
|
+
// authentication oauth2 required
|
|
241
|
+
// oauth required
|
|
242
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
243
|
+
|
|
244
|
+
if (languageCode !== undefined) {
|
|
245
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
251
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
252
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
253
|
+
|
|
254
|
+
return {
|
|
255
|
+
url: toPathString(localVarUrlObj),
|
|
256
|
+
options: localVarRequestOptions,
|
|
257
|
+
};
|
|
258
|
+
},
|
|
259
|
+
/**
|
|
260
|
+
*
|
|
261
|
+
* @summary Update prescription
|
|
262
|
+
* @param {string} prescriptionId
|
|
263
|
+
* @param {UpdatePrescriptionCommand} [updatePrescriptionCommand]
|
|
264
|
+
* @param {*} [options] Override http request option.
|
|
265
|
+
* @throws {RequiredError}
|
|
266
|
+
*/
|
|
267
|
+
apiV1PrescriptionsPrescriptionIdPut: async (prescriptionId: string, updatePrescriptionCommand?: UpdatePrescriptionCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
268
|
+
// verify required parameter 'prescriptionId' is not null or undefined
|
|
269
|
+
assertParamExists('apiV1PrescriptionsPrescriptionIdPut', 'prescriptionId', prescriptionId)
|
|
270
|
+
const localVarPath = `/api/v1/prescriptions/{prescriptionId}`
|
|
271
|
+
.replace(`{${"prescriptionId"}}`, encodeURIComponent(String(prescriptionId)));
|
|
272
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
273
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
274
|
+
let baseOptions;
|
|
275
|
+
if (configuration) {
|
|
276
|
+
baseOptions = configuration.baseOptions;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
280
|
+
const localVarHeaderParameter = {} as any;
|
|
281
|
+
const localVarQueryParameter = {} as any;
|
|
282
|
+
|
|
283
|
+
// authentication oauth2 required
|
|
284
|
+
// oauth required
|
|
285
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
290
|
+
|
|
291
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
293
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
294
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updatePrescriptionCommand, localVarRequestOptions, configuration)
|
|
295
|
+
|
|
296
|
+
return {
|
|
297
|
+
url: toPathString(localVarUrlObj),
|
|
298
|
+
options: localVarRequestOptions,
|
|
299
|
+
};
|
|
300
|
+
},
|
|
301
|
+
/**
|
|
302
|
+
*
|
|
303
|
+
* @summary Reactivate prescription
|
|
304
|
+
* @param {string} prescriptionId
|
|
305
|
+
* @param {*} [options] Override http request option.
|
|
306
|
+
* @throws {RequiredError}
|
|
307
|
+
*/
|
|
308
|
+
apiV1PrescriptionsPrescriptionIdReactivatePut: async (prescriptionId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
309
|
+
// verify required parameter 'prescriptionId' is not null or undefined
|
|
310
|
+
assertParamExists('apiV1PrescriptionsPrescriptionIdReactivatePut', 'prescriptionId', prescriptionId)
|
|
311
|
+
const localVarPath = `/api/v1/prescriptions/{prescriptionId}/reactivate`
|
|
312
|
+
.replace(`{${"prescriptionId"}}`, encodeURIComponent(String(prescriptionId)));
|
|
313
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
314
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
315
|
+
let baseOptions;
|
|
316
|
+
if (configuration) {
|
|
317
|
+
baseOptions = configuration.baseOptions;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
321
|
+
const localVarHeaderParameter = {} as any;
|
|
322
|
+
const localVarQueryParameter = {} as any;
|
|
323
|
+
|
|
324
|
+
// authentication oauth2 required
|
|
325
|
+
// oauth required
|
|
326
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
331
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
332
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
333
|
+
|
|
334
|
+
return {
|
|
335
|
+
url: toPathString(localVarUrlObj),
|
|
336
|
+
options: localVarRequestOptions,
|
|
337
|
+
};
|
|
338
|
+
},
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* PrescriptionsApi - functional programming interface
|
|
344
|
+
* @export
|
|
345
|
+
*/
|
|
346
|
+
export const PrescriptionsApiFp = function(configuration?: Configuration) {
|
|
347
|
+
const localVarAxiosParamCreator = PrescriptionsApiAxiosParamCreator(configuration)
|
|
348
|
+
return {
|
|
349
|
+
/**
|
|
350
|
+
*
|
|
351
|
+
* @summary Get prescriptions
|
|
352
|
+
* @param {string} [languageCode]
|
|
353
|
+
* @param {string} [hospitalId]
|
|
354
|
+
* @param {string} [doctorId]
|
|
355
|
+
* @param {string} [doctorAffiliationId]
|
|
356
|
+
* @param {string} [patientId]
|
|
357
|
+
* @param {string} [patientAffiliationId]
|
|
358
|
+
* @param {string} [patientPhoneNumber]
|
|
359
|
+
* @param {string} [patientName]
|
|
360
|
+
* @param {boolean} [showHidden]
|
|
361
|
+
* @param {number} [page]
|
|
362
|
+
* @param {number} [limit]
|
|
363
|
+
* @param {Date} [lastRetrieved]
|
|
364
|
+
* @param {*} [options] Override http request option.
|
|
365
|
+
* @throws {RequiredError}
|
|
366
|
+
*/
|
|
367
|
+
async apiV1PrescriptionsGet(languageCode?: string, hospitalId?: string, doctorId?: string, doctorAffiliationId?: string, patientId?: string, patientAffiliationId?: string, patientPhoneNumber?: string, patientName?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrescriptionsModel>> {
|
|
368
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsGet(languageCode, hospitalId, doctorId, doctorAffiliationId, patientId, patientAffiliationId, patientPhoneNumber, patientName, showHidden, page, limit, lastRetrieved, options);
|
|
369
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
370
|
+
},
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @summary Create prescription
|
|
374
|
+
* @param {CreatePrescriptionCommand} [createPrescriptionCommand]
|
|
375
|
+
* @param {*} [options] Override http request option.
|
|
376
|
+
* @throws {RequiredError}
|
|
377
|
+
*/
|
|
378
|
+
async apiV1PrescriptionsPost(createPrescriptionCommand?: CreatePrescriptionCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrescriptionModel>> {
|
|
379
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsPost(createPrescriptionCommand, options);
|
|
380
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
|
+
},
|
|
382
|
+
/**
|
|
383
|
+
*
|
|
384
|
+
* @summary Delete prescription
|
|
385
|
+
* @param {string} prescriptionId
|
|
386
|
+
* @param {boolean} [isPermanent]
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
*/
|
|
390
|
+
async apiV1PrescriptionsPrescriptionIdDelete(prescriptionId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
391
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdDelete(prescriptionId, isPermanent, options);
|
|
392
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
393
|
+
},
|
|
394
|
+
/**
|
|
395
|
+
*
|
|
396
|
+
* @summary Get a prescription by id
|
|
397
|
+
* @param {string} prescriptionId
|
|
398
|
+
* @param {string} [languageCode]
|
|
399
|
+
* @param {*} [options] Override http request option.
|
|
400
|
+
* @throws {RequiredError}
|
|
401
|
+
*/
|
|
402
|
+
async apiV1PrescriptionsPrescriptionIdGet(prescriptionId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrescriptionModel>> {
|
|
403
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdGet(prescriptionId, languageCode, options);
|
|
404
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
405
|
+
},
|
|
406
|
+
/**
|
|
407
|
+
*
|
|
408
|
+
* @summary Update prescription
|
|
409
|
+
* @param {string} prescriptionId
|
|
410
|
+
* @param {UpdatePrescriptionCommand} [updatePrescriptionCommand]
|
|
411
|
+
* @param {*} [options] Override http request option.
|
|
412
|
+
* @throws {RequiredError}
|
|
413
|
+
*/
|
|
414
|
+
async apiV1PrescriptionsPrescriptionIdPut(prescriptionId: string, updatePrescriptionCommand?: UpdatePrescriptionCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrescriptionModel>> {
|
|
415
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdPut(prescriptionId, updatePrescriptionCommand, options);
|
|
416
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
417
|
+
},
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
* @summary Reactivate prescription
|
|
421
|
+
* @param {string} prescriptionId
|
|
422
|
+
* @param {*} [options] Override http request option.
|
|
423
|
+
* @throws {RequiredError}
|
|
424
|
+
*/
|
|
425
|
+
async apiV1PrescriptionsPrescriptionIdReactivatePut(prescriptionId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
426
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1PrescriptionsPrescriptionIdReactivatePut(prescriptionId, options);
|
|
427
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
428
|
+
},
|
|
429
|
+
}
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* PrescriptionsApi - factory interface
|
|
434
|
+
* @export
|
|
435
|
+
*/
|
|
436
|
+
export const PrescriptionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
437
|
+
const localVarFp = PrescriptionsApiFp(configuration)
|
|
438
|
+
return {
|
|
439
|
+
/**
|
|
440
|
+
*
|
|
441
|
+
* @summary Get prescriptions
|
|
442
|
+
* @param {string} [languageCode]
|
|
443
|
+
* @param {string} [hospitalId]
|
|
444
|
+
* @param {string} [doctorId]
|
|
445
|
+
* @param {string} [doctorAffiliationId]
|
|
446
|
+
* @param {string} [patientId]
|
|
447
|
+
* @param {string} [patientAffiliationId]
|
|
448
|
+
* @param {string} [patientPhoneNumber]
|
|
449
|
+
* @param {string} [patientName]
|
|
450
|
+
* @param {boolean} [showHidden]
|
|
451
|
+
* @param {number} [page]
|
|
452
|
+
* @param {number} [limit]
|
|
453
|
+
* @param {Date} [lastRetrieved]
|
|
454
|
+
* @param {*} [options] Override http request option.
|
|
455
|
+
* @throws {RequiredError}
|
|
456
|
+
*/
|
|
457
|
+
apiV1PrescriptionsGet(languageCode?: string, hospitalId?: string, doctorId?: string, doctorAffiliationId?: string, patientId?: string, patientAffiliationId?: string, patientPhoneNumber?: string, patientName?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PrescriptionsModel> {
|
|
458
|
+
return localVarFp.apiV1PrescriptionsGet(languageCode, hospitalId, doctorId, doctorAffiliationId, patientId, patientAffiliationId, patientPhoneNumber, patientName, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
459
|
+
},
|
|
460
|
+
/**
|
|
461
|
+
*
|
|
462
|
+
* @summary Create prescription
|
|
463
|
+
* @param {CreatePrescriptionCommand} [createPrescriptionCommand]
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
*/
|
|
467
|
+
apiV1PrescriptionsPost(createPrescriptionCommand?: CreatePrescriptionCommand, options?: any): AxiosPromise<PrescriptionModel> {
|
|
468
|
+
return localVarFp.apiV1PrescriptionsPost(createPrescriptionCommand, options).then((request) => request(axios, basePath));
|
|
469
|
+
},
|
|
470
|
+
/**
|
|
471
|
+
*
|
|
472
|
+
* @summary Delete prescription
|
|
473
|
+
* @param {string} prescriptionId
|
|
474
|
+
* @param {boolean} [isPermanent]
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
apiV1PrescriptionsPrescriptionIdDelete(prescriptionId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
|
|
479
|
+
return localVarFp.apiV1PrescriptionsPrescriptionIdDelete(prescriptionId, isPermanent, options).then((request) => request(axios, basePath));
|
|
480
|
+
},
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @summary Get a prescription by id
|
|
484
|
+
* @param {string} prescriptionId
|
|
485
|
+
* @param {string} [languageCode]
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
*/
|
|
489
|
+
apiV1PrescriptionsPrescriptionIdGet(prescriptionId: string, languageCode?: string, options?: any): AxiosPromise<PrescriptionModel> {
|
|
490
|
+
return localVarFp.apiV1PrescriptionsPrescriptionIdGet(prescriptionId, languageCode, options).then((request) => request(axios, basePath));
|
|
491
|
+
},
|
|
492
|
+
/**
|
|
493
|
+
*
|
|
494
|
+
* @summary Update prescription
|
|
495
|
+
* @param {string} prescriptionId
|
|
496
|
+
* @param {UpdatePrescriptionCommand} [updatePrescriptionCommand]
|
|
497
|
+
* @param {*} [options] Override http request option.
|
|
498
|
+
* @throws {RequiredError}
|
|
499
|
+
*/
|
|
500
|
+
apiV1PrescriptionsPrescriptionIdPut(prescriptionId: string, updatePrescriptionCommand?: UpdatePrescriptionCommand, options?: any): AxiosPromise<PrescriptionModel> {
|
|
501
|
+
return localVarFp.apiV1PrescriptionsPrescriptionIdPut(prescriptionId, updatePrescriptionCommand, options).then((request) => request(axios, basePath));
|
|
502
|
+
},
|
|
503
|
+
/**
|
|
504
|
+
*
|
|
505
|
+
* @summary Reactivate prescription
|
|
506
|
+
* @param {string} prescriptionId
|
|
507
|
+
* @param {*} [options] Override http request option.
|
|
508
|
+
* @throws {RequiredError}
|
|
509
|
+
*/
|
|
510
|
+
apiV1PrescriptionsPrescriptionIdReactivatePut(prescriptionId: string, options?: any): AxiosPromise<boolean> {
|
|
511
|
+
return localVarFp.apiV1PrescriptionsPrescriptionIdReactivatePut(prescriptionId, options).then((request) => request(axios, basePath));
|
|
512
|
+
},
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Request parameters for apiV1PrescriptionsGet operation in PrescriptionsApi.
|
|
518
|
+
* @export
|
|
519
|
+
* @interface PrescriptionsApiApiV1PrescriptionsGetRequest
|
|
520
|
+
*/
|
|
521
|
+
export interface PrescriptionsApiApiV1PrescriptionsGetRequest {
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @type {string}
|
|
525
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsGet
|
|
526
|
+
*/
|
|
527
|
+
readonly languageCode?: string
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
*
|
|
531
|
+
* @type {string}
|
|
532
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsGet
|
|
533
|
+
*/
|
|
534
|
+
readonly hospitalId?: string
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
*
|
|
538
|
+
* @type {string}
|
|
539
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsGet
|
|
540
|
+
*/
|
|
541
|
+
readonly doctorId?: string
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
* @type {string}
|
|
546
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsGet
|
|
547
|
+
*/
|
|
548
|
+
readonly doctorAffiliationId?: string
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
*
|
|
552
|
+
* @type {string}
|
|
553
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsGet
|
|
554
|
+
*/
|
|
555
|
+
readonly patientId?: string
|
|
556
|
+
|
|
557
|
+
/**
|
|
558
|
+
*
|
|
559
|
+
* @type {string}
|
|
560
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsGet
|
|
561
|
+
*/
|
|
562
|
+
readonly patientAffiliationId?: string
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
*
|
|
566
|
+
* @type {string}
|
|
567
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsGet
|
|
568
|
+
*/
|
|
569
|
+
readonly patientPhoneNumber?: string
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
* @type {string}
|
|
574
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsGet
|
|
575
|
+
*/
|
|
576
|
+
readonly patientName?: string
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
*
|
|
580
|
+
* @type {boolean}
|
|
581
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsGet
|
|
582
|
+
*/
|
|
583
|
+
readonly showHidden?: boolean
|
|
584
|
+
|
|
585
|
+
/**
|
|
586
|
+
*
|
|
587
|
+
* @type {number}
|
|
588
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsGet
|
|
589
|
+
*/
|
|
590
|
+
readonly page?: number
|
|
591
|
+
|
|
592
|
+
/**
|
|
593
|
+
*
|
|
594
|
+
* @type {number}
|
|
595
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsGet
|
|
596
|
+
*/
|
|
597
|
+
readonly limit?: number
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
*
|
|
601
|
+
* @type {Date}
|
|
602
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsGet
|
|
603
|
+
*/
|
|
604
|
+
readonly lastRetrieved?: Date
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/**
|
|
608
|
+
* Request parameters for apiV1PrescriptionsPost operation in PrescriptionsApi.
|
|
609
|
+
* @export
|
|
610
|
+
* @interface PrescriptionsApiApiV1PrescriptionsPostRequest
|
|
611
|
+
*/
|
|
612
|
+
export interface PrescriptionsApiApiV1PrescriptionsPostRequest {
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
* @type {CreatePrescriptionCommand}
|
|
616
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPost
|
|
617
|
+
*/
|
|
618
|
+
readonly createPrescriptionCommand?: CreatePrescriptionCommand
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
/**
|
|
622
|
+
* Request parameters for apiV1PrescriptionsPrescriptionIdDelete operation in PrescriptionsApi.
|
|
623
|
+
* @export
|
|
624
|
+
* @interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdDeleteRequest
|
|
625
|
+
*/
|
|
626
|
+
export interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdDeleteRequest {
|
|
627
|
+
/**
|
|
628
|
+
*
|
|
629
|
+
* @type {string}
|
|
630
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPrescriptionIdDelete
|
|
631
|
+
*/
|
|
632
|
+
readonly prescriptionId: string
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @type {boolean}
|
|
637
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPrescriptionIdDelete
|
|
638
|
+
*/
|
|
639
|
+
readonly isPermanent?: boolean
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* Request parameters for apiV1PrescriptionsPrescriptionIdGet operation in PrescriptionsApi.
|
|
644
|
+
* @export
|
|
645
|
+
* @interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdGetRequest
|
|
646
|
+
*/
|
|
647
|
+
export interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdGetRequest {
|
|
648
|
+
/**
|
|
649
|
+
*
|
|
650
|
+
* @type {string}
|
|
651
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPrescriptionIdGet
|
|
652
|
+
*/
|
|
653
|
+
readonly prescriptionId: string
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
*
|
|
657
|
+
* @type {string}
|
|
658
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPrescriptionIdGet
|
|
659
|
+
*/
|
|
660
|
+
readonly languageCode?: string
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* Request parameters for apiV1PrescriptionsPrescriptionIdPut operation in PrescriptionsApi.
|
|
665
|
+
* @export
|
|
666
|
+
* @interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdPutRequest
|
|
667
|
+
*/
|
|
668
|
+
export interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdPutRequest {
|
|
669
|
+
/**
|
|
670
|
+
*
|
|
671
|
+
* @type {string}
|
|
672
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPrescriptionIdPut
|
|
673
|
+
*/
|
|
674
|
+
readonly prescriptionId: string
|
|
675
|
+
|
|
676
|
+
/**
|
|
677
|
+
*
|
|
678
|
+
* @type {UpdatePrescriptionCommand}
|
|
679
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPrescriptionIdPut
|
|
680
|
+
*/
|
|
681
|
+
readonly updatePrescriptionCommand?: UpdatePrescriptionCommand
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/**
|
|
685
|
+
* Request parameters for apiV1PrescriptionsPrescriptionIdReactivatePut operation in PrescriptionsApi.
|
|
686
|
+
* @export
|
|
687
|
+
* @interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdReactivatePutRequest
|
|
688
|
+
*/
|
|
689
|
+
export interface PrescriptionsApiApiV1PrescriptionsPrescriptionIdReactivatePutRequest {
|
|
690
|
+
/**
|
|
691
|
+
*
|
|
692
|
+
* @type {string}
|
|
693
|
+
* @memberof PrescriptionsApiApiV1PrescriptionsPrescriptionIdReactivatePut
|
|
694
|
+
*/
|
|
695
|
+
readonly prescriptionId: string
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* PrescriptionsApi - object-oriented interface
|
|
700
|
+
* @export
|
|
701
|
+
* @class PrescriptionsApi
|
|
702
|
+
* @extends {BaseAPI}
|
|
703
|
+
*/
|
|
704
|
+
export class PrescriptionsApi extends BaseAPI {
|
|
705
|
+
/**
|
|
706
|
+
*
|
|
707
|
+
* @summary Get prescriptions
|
|
708
|
+
* @param {PrescriptionsApiApiV1PrescriptionsGetRequest} requestParameters Request parameters.
|
|
709
|
+
* @param {*} [options] Override http request option.
|
|
710
|
+
* @throws {RequiredError}
|
|
711
|
+
* @memberof PrescriptionsApi
|
|
712
|
+
*/
|
|
713
|
+
public apiV1PrescriptionsGet(requestParameters: PrescriptionsApiApiV1PrescriptionsGetRequest = {}, options?: AxiosRequestConfig) {
|
|
714
|
+
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsGet(requestParameters.languageCode, requestParameters.hospitalId, requestParameters.doctorId, requestParameters.doctorAffiliationId, requestParameters.patientId, requestParameters.patientAffiliationId, requestParameters.patientPhoneNumber, requestParameters.patientName, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
*
|
|
719
|
+
* @summary Create prescription
|
|
720
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPostRequest} requestParameters Request parameters.
|
|
721
|
+
* @param {*} [options] Override http request option.
|
|
722
|
+
* @throws {RequiredError}
|
|
723
|
+
* @memberof PrescriptionsApi
|
|
724
|
+
*/
|
|
725
|
+
public apiV1PrescriptionsPost(requestParameters: PrescriptionsApiApiV1PrescriptionsPostRequest = {}, options?: AxiosRequestConfig) {
|
|
726
|
+
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsPost(requestParameters.createPrescriptionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
*
|
|
731
|
+
* @summary Delete prescription
|
|
732
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPrescriptionIdDeleteRequest} requestParameters Request parameters.
|
|
733
|
+
* @param {*} [options] Override http request option.
|
|
734
|
+
* @throws {RequiredError}
|
|
735
|
+
* @memberof PrescriptionsApi
|
|
736
|
+
*/
|
|
737
|
+
public apiV1PrescriptionsPrescriptionIdDelete(requestParameters: PrescriptionsApiApiV1PrescriptionsPrescriptionIdDeleteRequest, options?: AxiosRequestConfig) {
|
|
738
|
+
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsPrescriptionIdDelete(requestParameters.prescriptionId, requestParameters.isPermanent, options).then((request) => request(this.axios, this.basePath));
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
*
|
|
743
|
+
* @summary Get a prescription by id
|
|
744
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPrescriptionIdGetRequest} requestParameters Request parameters.
|
|
745
|
+
* @param {*} [options] Override http request option.
|
|
746
|
+
* @throws {RequiredError}
|
|
747
|
+
* @memberof PrescriptionsApi
|
|
748
|
+
*/
|
|
749
|
+
public apiV1PrescriptionsPrescriptionIdGet(requestParameters: PrescriptionsApiApiV1PrescriptionsPrescriptionIdGetRequest, options?: AxiosRequestConfig) {
|
|
750
|
+
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsPrescriptionIdGet(requestParameters.prescriptionId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
*
|
|
755
|
+
* @summary Update prescription
|
|
756
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPrescriptionIdPutRequest} requestParameters Request parameters.
|
|
757
|
+
* @param {*} [options] Override http request option.
|
|
758
|
+
* @throws {RequiredError}
|
|
759
|
+
* @memberof PrescriptionsApi
|
|
760
|
+
*/
|
|
761
|
+
public apiV1PrescriptionsPrescriptionIdPut(requestParameters: PrescriptionsApiApiV1PrescriptionsPrescriptionIdPutRequest, options?: AxiosRequestConfig) {
|
|
762
|
+
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsPrescriptionIdPut(requestParameters.prescriptionId, requestParameters.updatePrescriptionCommand, options).then((request) => request(this.axios, this.basePath));
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
*
|
|
767
|
+
* @summary Reactivate prescription
|
|
768
|
+
* @param {PrescriptionsApiApiV1PrescriptionsPrescriptionIdReactivatePutRequest} requestParameters Request parameters.
|
|
769
|
+
* @param {*} [options] Override http request option.
|
|
770
|
+
* @throws {RequiredError}
|
|
771
|
+
* @memberof PrescriptionsApi
|
|
772
|
+
*/
|
|
773
|
+
public apiV1PrescriptionsPrescriptionIdReactivatePut(requestParameters: PrescriptionsApiApiV1PrescriptionsPrescriptionIdReactivatePutRequest, options?: AxiosRequestConfig) {
|
|
774
|
+
return PrescriptionsApiFp(this.configuration).apiV1PrescriptionsPrescriptionIdReactivatePut(requestParameters.prescriptionId, options).then((request) => request(this.axios, this.basePath));
|
|
775
|
+
}
|
|
776
|
+
}
|