oro-sdk-apis 1.28.0 → 1.30.0-dev1
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/dist/models/consult.d.ts +9 -0
- package/dist/models/practice.d.ts +139 -32
- package/dist/oro-sdk-apis.cjs.development.js +421 -823
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +436 -824
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/consult.d.ts +5 -3
- package/dist/services/teller.d.ts +2 -2
- package/package.json +1 -1
- package/src/models/consult.ts +10 -0
- package/src/models/practice.ts +169 -55
- package/src/services/consult.ts +11 -0
- package/src/services/teller.ts +5 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIService } from './api';
|
|
2
|
-
import { Uuid, Consult, ConsultRequest, MedicalStatus, ConsultTransmission, TransmissionStatus } from '../models';
|
|
2
|
+
import { Uuid, Consult, ConsultRequest, MedicalStatus, ConsultTransmission, ClosedReasonType, TransmissionStatus } from '../models';
|
|
3
3
|
export declare class ConsultService {
|
|
4
4
|
private api;
|
|
5
5
|
private baseURL;
|
|
@@ -22,7 +22,7 @@ export declare class ConsultService {
|
|
|
22
22
|
* @param filterAssignee array of practitioner uuids with which you want to filter the consultations
|
|
23
23
|
* @returns a number of consult
|
|
24
24
|
*/
|
|
25
|
-
countConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[]): Promise<number>;
|
|
25
|
+
countConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], closedReasonTypes?: ClosedReasonType[], closedReasonMsgs?: string[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[]): Promise<number>;
|
|
26
26
|
/**
|
|
27
27
|
* This function get consults using parameters
|
|
28
28
|
* @param uuidPractice the practice uuid
|
|
@@ -39,10 +39,12 @@ export declare class ConsultService {
|
|
|
39
39
|
* @param filterIsoLocality the of isoLocality to filter with
|
|
40
40
|
* @returns a list of consult
|
|
41
41
|
*/
|
|
42
|
-
getConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[]): Promise<Consult[]>;
|
|
42
|
+
getConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], closedReasonTypes?: ClosedReasonType[], closedReasonMsgs?: string[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[]): Promise<Consult[]>;
|
|
43
43
|
getConsultByUUID(uuidConsult: Uuid, uuidPractice?: Uuid): Promise<Consult>;
|
|
44
44
|
updateConsultByUUID(uuidConsult: Uuid, consult: {
|
|
45
45
|
statusMedical?: MedicalStatus;
|
|
46
|
+
closedReasonType?: ClosedReasonType;
|
|
47
|
+
closedReasonMsg?: string;
|
|
46
48
|
uuidAssignedDoctor?: Uuid;
|
|
47
49
|
neverExpires?: boolean;
|
|
48
50
|
}, uuidPractice?: Uuid, uuidRequester?: Uuid): Promise<Consult>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { APIService } from './api';
|
|
2
|
-
import { Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, Uuid, ResumeConsultEmailRequest } from '../models';
|
|
2
|
+
import { Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, Uuid, ResumeConsultEmailRequest, ClosedReasonType } from '../models';
|
|
3
3
|
export declare class TellerService {
|
|
4
4
|
private api;
|
|
5
5
|
private baseURL;
|
|
6
6
|
constructor(api: APIService, baseURL: string);
|
|
7
7
|
lockboxDataStore(lockboxUuid: Uuid, req: LockboxDataRequest, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid): Promise<DataCreateResponse>;
|
|
8
|
-
updateConsultByUUID(patientUuid: Uuid, uuidConsult: Uuid, statusMedical: MedicalStatus, neverExpires?: boolean): Promise<Consult>;
|
|
8
|
+
updateConsultByUUID(patientUuid: Uuid, uuidConsult: Uuid, statusMedical: MedicalStatus, closedReasonType?: ClosedReasonType, closedReasonMsg?: string, neverExpires?: boolean): Promise<Consult>;
|
|
9
9
|
/**
|
|
10
10
|
* This function notifies teller that the fax sent for a specific consult did not get through
|
|
11
11
|
* @todo - Make service only exposed route
|
package/package.json
CHANGED
package/src/models/consult.ts
CHANGED
|
@@ -82,6 +82,14 @@ export enum TaskStatus {
|
|
|
82
82
|
Done = 'Done',
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
export enum ClosedReasonType {
|
|
86
|
+
Completed = "Completed",
|
|
87
|
+
NotADisease = "NotADisease",
|
|
88
|
+
NotAppropriateForVirtual = "NotAppropriateForVirtual",
|
|
89
|
+
Other = "Other",
|
|
90
|
+
RequiresInPerson = "RequiresInPerson"
|
|
91
|
+
}
|
|
92
|
+
|
|
85
93
|
export interface ConsultRequest {
|
|
86
94
|
uuidPractice: string
|
|
87
95
|
tagSpecialtyRequired: string
|
|
@@ -102,6 +110,8 @@ export interface Consult {
|
|
|
102
110
|
uuidAssignedDoctor: string
|
|
103
111
|
uuidCurrentAssigned: string
|
|
104
112
|
statusTask?: TaskStatus
|
|
113
|
+
closedReasonType?: ClosedReasonType
|
|
114
|
+
closedReasonMsg?: string
|
|
105
115
|
hasTransmissions?: boolean
|
|
106
116
|
assignedAssistant?: ConsultAssignedAssistant[]
|
|
107
117
|
shortId?: string
|
package/src/models/practice.ts
CHANGED
|
@@ -122,85 +122,198 @@ export interface PracticeAccount {
|
|
|
122
122
|
urlSubdomain?: string
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
/**
|
|
126
|
+
* Defines all the practice config kind.
|
|
127
|
+
*
|
|
128
|
+
* Please respect the following when defining a new practice config:
|
|
129
|
+
* - be really specific on its role
|
|
130
|
+
* - all configs needs to have default values in app
|
|
131
|
+
* - the default behavior should always to be display the feature.
|
|
132
|
+
* In other words, practice configs should either be used to hide a functionnality or overwrite a default behavior.
|
|
133
|
+
* To be extra explicit, if you want to show a functionnality only in one practice, you will have to add a practice configs in all other practice to hide it (yes it is cumbersome).
|
|
134
|
+
*
|
|
135
|
+
*/
|
|
125
136
|
export enum PracticeConfigKind {
|
|
126
|
-
|
|
127
|
-
PractitionerChatbox = 'PractitionerChatbox',
|
|
137
|
+
PracticeCloseConsultationTypes = 'PracticeCloseConsultationTypes',
|
|
128
138
|
PracticeConfigExample = 'PracticeConfigExample',
|
|
129
|
-
PracticeLocaleSwitcher = 'PracticeLocaleSwitcher',
|
|
130
139
|
PracticeCookieBanner = 'PracticeCookieBanner',
|
|
131
|
-
PracticePharmacyPicker = 'PracticePharmacyPicker',
|
|
132
140
|
PracticeCssVariables = 'PracticeCssVariables',
|
|
133
141
|
PracticeFontsLinks = 'PracticeFontsLinks',
|
|
142
|
+
PracticeLocaleSwitcher = 'PracticeLocaleSwitcher',
|
|
143
|
+
PracticePharmacyPicker = 'PracticePharmacyPicker',
|
|
144
|
+
PractitionerChatbox = 'PractitionerChatbox',
|
|
145
|
+
PractitionerConsultList = 'PractitionerConsultList',
|
|
134
146
|
}
|
|
135
147
|
|
|
148
|
+
/**
|
|
149
|
+
* Defines the close consultation types to hide in the close consultation modal of a practice
|
|
150
|
+
*/
|
|
151
|
+
export type PracticeConfigPracticeCloseConsultationTypes = PracticeConfig<
|
|
152
|
+
PracticeConfigKind.PracticeCloseConsultationTypes,
|
|
153
|
+
{
|
|
154
|
+
/**
|
|
155
|
+
* Should hide item with value "Completed"
|
|
156
|
+
*/
|
|
157
|
+
hideCompleted?: boolean
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Should hide item with value "Requires-in-person"
|
|
161
|
+
*/
|
|
162
|
+
hideRequiresInPerson?: boolean
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Should hide item with value "Other"
|
|
166
|
+
*/
|
|
167
|
+
hideOther?: boolean
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Should hide item with value "Not-a-disease"
|
|
171
|
+
*/
|
|
172
|
+
hideNotADisease?: boolean
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Should hide item with value "Appropriate-for-virtual"
|
|
176
|
+
*/
|
|
177
|
+
hideNotAppropriateForVirtual?: boolean
|
|
178
|
+
}
|
|
179
|
+
>
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Generic interface of a practice config
|
|
183
|
+
*
|
|
184
|
+
* Practice configs needs to have a JSDoc for **all** interface and fields.
|
|
185
|
+
*
|
|
186
|
+
*/
|
|
136
187
|
export interface PracticeConfig<K, T> {
|
|
188
|
+
/**
|
|
189
|
+
* The uuid of the practice to apply the config
|
|
190
|
+
*/
|
|
137
191
|
uuidPractice: string
|
|
138
|
-
|
|
192
|
+
/**
|
|
193
|
+
* The kind of the practice config. Used as a discriminator to help auto-completion.
|
|
194
|
+
*/
|
|
195
|
+
kind: PracticeConfigKind
|
|
196
|
+
/**
|
|
197
|
+
* The actual interface of the config
|
|
198
|
+
*/
|
|
139
199
|
config: T
|
|
140
200
|
}
|
|
141
201
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
showExpirationInDays?: boolean
|
|
149
|
-
}
|
|
202
|
+
/**
|
|
203
|
+
* This type is for test (do not remove without updating the integration tests)
|
|
204
|
+
*/
|
|
205
|
+
export type PracticeConfigPracticeConfigExample = PracticeConfig<
|
|
206
|
+
PracticeConfigKind.PracticeConfigExample,
|
|
207
|
+
{ primaryColor?: string }
|
|
150
208
|
>
|
|
151
209
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
210
|
+
/**
|
|
211
|
+
* Defines the practice cookie banner
|
|
212
|
+
*/
|
|
213
|
+
export type PracticeConfigPracticeCookieBanner = PracticeConfig<
|
|
214
|
+
PracticeConfigKind.PracticeCookieBanner,
|
|
215
|
+
{
|
|
216
|
+
showCookieBanner?: boolean
|
|
217
|
+
policyLink?: string
|
|
218
|
+
useOfCookieLink?: string
|
|
219
|
+
}
|
|
157
220
|
>
|
|
158
221
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
222
|
+
/**
|
|
223
|
+
* This interface describes all practice css variables
|
|
224
|
+
* The keys should reflect the exact css name
|
|
225
|
+
*/
|
|
226
|
+
export type PracticeConfigPracticeCssVariables = PracticeConfig<
|
|
227
|
+
PracticeConfigKind.PracticeCssVariables,
|
|
228
|
+
Record<string, string>
|
|
166
229
|
>
|
|
167
230
|
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
231
|
+
/**
|
|
232
|
+
* Defines the font of the practice css url
|
|
233
|
+
*/
|
|
234
|
+
export type PracticeConfigPracticeFontsLinks = PracticeConfig<
|
|
235
|
+
PracticeConfigKind.PracticeFontsLinks,
|
|
236
|
+
{
|
|
237
|
+
/**
|
|
238
|
+
* sans serif font family
|
|
239
|
+
*/
|
|
240
|
+
sansSerif?: string
|
|
241
|
+
/**
|
|
242
|
+
* serif font family
|
|
243
|
+
*/
|
|
244
|
+
serif?: string
|
|
245
|
+
}
|
|
173
246
|
>
|
|
174
247
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
248
|
+
/**
|
|
249
|
+
* Defines the locale switcher config
|
|
250
|
+
*/
|
|
251
|
+
export type PracticeConfigPracticeLocaleSwitcher = PracticeConfig<
|
|
252
|
+
PracticeConfigKind.PracticeLocaleSwitcher,
|
|
253
|
+
{
|
|
254
|
+
/**
|
|
255
|
+
* Should hide the locale switcher
|
|
256
|
+
*/
|
|
257
|
+
hideLocaleSwitcher?: boolean
|
|
258
|
+
}
|
|
182
259
|
>
|
|
183
260
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
261
|
+
/**
|
|
262
|
+
* Defines the online pharmacy address of the practice
|
|
263
|
+
*/
|
|
264
|
+
export type PracticeConfigPracticeOnlinePharmacy = PracticeConfig<
|
|
265
|
+
PracticeConfigKind.PracticePharmacyPicker,
|
|
266
|
+
{
|
|
267
|
+
/**
|
|
268
|
+
* The address of the online pharmacy
|
|
269
|
+
*/
|
|
270
|
+
onlinePharmacy?: PlaceData
|
|
271
|
+
}
|
|
188
272
|
>
|
|
189
273
|
|
|
190
274
|
/**
|
|
191
|
-
*
|
|
192
|
-
* The keys should reflect the exact css name
|
|
275
|
+
* Defines the consultation chatbox configs
|
|
193
276
|
*/
|
|
194
|
-
export type
|
|
195
|
-
|
|
196
|
-
|
|
277
|
+
export type PracticeConfigPractitionerChatbox = PracticeConfig<
|
|
278
|
+
PracticeConfigKind.PractitionerChatbox,
|
|
279
|
+
{
|
|
280
|
+
/**
|
|
281
|
+
* If defined will replace the automatic chatbox comment notifiying the patient a new treatment plan has been added. Indexed by locale.
|
|
282
|
+
*/
|
|
283
|
+
planAddedMessage?: { [languageISO639_3: string]: string }
|
|
284
|
+
/**
|
|
285
|
+
* If defined will replace the automatic chatbox comment notifiying the patient a new treatment plan has been updated. Indexed by locale.
|
|
286
|
+
*/
|
|
287
|
+
planUpdatedMessage?: { [languageISO639_3: string]: string }
|
|
288
|
+
/**
|
|
289
|
+
* If defined will replace the automatic chatbox comment notifiying the patient a new exam has been dispatched. Indexed by locale.
|
|
290
|
+
*/
|
|
291
|
+
examsUpdatedMessage?: { [languageISO639_3: string]: string }
|
|
292
|
+
}
|
|
197
293
|
>
|
|
198
294
|
|
|
199
|
-
|
|
200
|
-
|
|
295
|
+
/**
|
|
296
|
+
* This config is used to configure the layout of the consult list for practitioners
|
|
297
|
+
*/
|
|
298
|
+
export type PracticeConfigPractitionerConsultList = PracticeConfig<
|
|
299
|
+
PracticeConfigKind.PractitionerConsultList,
|
|
201
300
|
{
|
|
202
|
-
|
|
203
|
-
|
|
301
|
+
/**
|
|
302
|
+
* Hides the locality column
|
|
303
|
+
*/
|
|
304
|
+
hideLocality?: boolean
|
|
305
|
+
/**
|
|
306
|
+
* Hides the plan name column
|
|
307
|
+
*/
|
|
308
|
+
hidePlan?: boolean
|
|
309
|
+
/**
|
|
310
|
+
* Hides the fax column
|
|
311
|
+
*/
|
|
312
|
+
hideFax?: boolean
|
|
313
|
+
/**
|
|
314
|
+
* Hides the expires at column
|
|
315
|
+
*/
|
|
316
|
+
hideExpiresAt?: boolean
|
|
204
317
|
}
|
|
205
318
|
>
|
|
206
319
|
|
|
@@ -212,7 +325,7 @@ export type PracticeConfigs =
|
|
|
212
325
|
| PracticeConfigPracticeOnlinePharmacy
|
|
213
326
|
| PracticeConfigPracticeCssVariables
|
|
214
327
|
| PracticeConfigPracticeFontsLinks
|
|
215
|
-
| PracticeConfigPracticeConfigExample // Here for
|
|
328
|
+
| PracticeConfigPracticeConfigExample // Here for integration tests only
|
|
216
329
|
|
|
217
330
|
export interface PracticeWorkflow {
|
|
218
331
|
id?: number ///optional for insertion
|
|
@@ -411,14 +524,15 @@ export interface Practitioner {
|
|
|
411
524
|
}
|
|
412
525
|
|
|
413
526
|
export interface HydratedPracticeConfigs {
|
|
414
|
-
[PracticeConfigKind.
|
|
415
|
-
[PracticeConfigKind.PractitionerChatbox]?: PracticeConfigPractitionerChatbox
|
|
527
|
+
[PracticeConfigKind.PracticeCloseConsultationTypes]?: PracticeConfigPracticeCloseConsultationTypes
|
|
416
528
|
[PracticeConfigKind.PracticeConfigExample]?: PracticeConfigPracticeConfigExample
|
|
417
|
-
[PracticeConfigKind.PracticeLocaleSwitcher]?: PracticeConfigPracticeLocaleSwitcher
|
|
418
529
|
[PracticeConfigKind.PracticeCookieBanner]?: PracticeConfigPracticeCookieBanner
|
|
419
|
-
[PracticeConfigKind.PracticePharmacyPicker]?: PracticeConfigPracticeOnlinePharmacy
|
|
420
530
|
[PracticeConfigKind.PracticeCssVariables]?: PracticeConfigPracticeCssVariables
|
|
421
531
|
[PracticeConfigKind.PracticeFontsLinks]?: PracticeConfigPracticeFontsLinks
|
|
532
|
+
[PracticeConfigKind.PracticeLocaleSwitcher]?: PracticeConfigPracticeLocaleSwitcher
|
|
533
|
+
[PracticeConfigKind.PracticePharmacyPicker]?: PracticeConfigPracticeOnlinePharmacy
|
|
534
|
+
[PracticeConfigKind.PractitionerChatbox]?: PracticeConfigPractitionerChatbox
|
|
535
|
+
[PracticeConfigKind.PractitionerConsultList]?: PracticeConfigPractitionerConsultList
|
|
422
536
|
}
|
|
423
537
|
|
|
424
538
|
export interface Practice {
|
package/src/services/consult.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
ConsultRequest,
|
|
6
6
|
MedicalStatus,
|
|
7
7
|
ConsultTransmission,
|
|
8
|
+
ClosedReasonType,
|
|
8
9
|
TransmissionKind,
|
|
9
10
|
TransmissionStatus,
|
|
10
11
|
} from '../models'
|
|
@@ -38,6 +39,8 @@ export class ConsultService {
|
|
|
38
39
|
uuidRequester?: Uuid,
|
|
39
40
|
statusesMedical?: MedicalStatus[],
|
|
40
41
|
statusesExclude?: MedicalStatus[],
|
|
42
|
+
closedReasonTypes?: ClosedReasonType[],
|
|
43
|
+
closedReasonMsgs?: string[],
|
|
41
44
|
shortId?: string,
|
|
42
45
|
columnToSortTo?: string[],
|
|
43
46
|
orderToSortTo?: string[],
|
|
@@ -57,6 +60,8 @@ export class ConsultService {
|
|
|
57
60
|
uuidRequester,
|
|
58
61
|
statusesMedical,
|
|
59
62
|
statusesExclude,
|
|
63
|
+
closedReasonTypes,
|
|
64
|
+
closedReasonMsgs,
|
|
60
65
|
shortId,
|
|
61
66
|
perPage,
|
|
62
67
|
page: indexPage,
|
|
@@ -104,6 +109,8 @@ export class ConsultService {
|
|
|
104
109
|
uuidRequester?: Uuid,
|
|
105
110
|
statusesMedical?: MedicalStatus[],
|
|
106
111
|
statusesExclude?: MedicalStatus[],
|
|
112
|
+
closedReasonTypes?: ClosedReasonType[],
|
|
113
|
+
closedReasonMsgs?: string[],
|
|
107
114
|
shortId?: string,
|
|
108
115
|
columnToSortTo?: string[],
|
|
109
116
|
orderToSortTo?: string[],
|
|
@@ -120,6 +127,8 @@ export class ConsultService {
|
|
|
120
127
|
uuidRequester,
|
|
121
128
|
statusesMedical,
|
|
122
129
|
statusesExclude,
|
|
130
|
+
closedReasonTypes,
|
|
131
|
+
closedReasonMsgs,
|
|
123
132
|
shortId,
|
|
124
133
|
perPage,
|
|
125
134
|
page: indexPage,
|
|
@@ -141,6 +150,8 @@ export class ConsultService {
|
|
|
141
150
|
uuidConsult: Uuid,
|
|
142
151
|
consult: {
|
|
143
152
|
statusMedical?: MedicalStatus
|
|
153
|
+
closedReasonType?: ClosedReasonType
|
|
154
|
+
closedReasonMsg?: string
|
|
144
155
|
uuidAssignedDoctor?: Uuid
|
|
145
156
|
neverExpires?: boolean
|
|
146
157
|
},
|
package/src/services/teller.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
MedicalStatus,
|
|
7
7
|
Uuid,
|
|
8
8
|
ResumeConsultEmailRequest,
|
|
9
|
+
ClosedReasonType,
|
|
9
10
|
} from '../models'
|
|
10
11
|
export class TellerService {
|
|
11
12
|
constructor(private api: APIService, private baseURL: string) {}
|
|
@@ -28,11 +29,15 @@ export class TellerService {
|
|
|
28
29
|
patientUuid: Uuid,
|
|
29
30
|
uuidConsult: Uuid,
|
|
30
31
|
statusMedical: MedicalStatus,
|
|
32
|
+
closedReasonType?: ClosedReasonType,
|
|
33
|
+
closedReasonMsg?: string,
|
|
31
34
|
neverExpires?: boolean
|
|
32
35
|
): Promise<Consult> {
|
|
33
36
|
return this.api.put<Consult>(`${this.baseURL}/v1/consults/${uuidConsult}`, {
|
|
34
37
|
patientUuid,
|
|
35
38
|
statusMedical,
|
|
39
|
+
closedReasonType,
|
|
40
|
+
closedReasonMsg,
|
|
36
41
|
neverExpires,
|
|
37
42
|
})
|
|
38
43
|
}
|