oro-sdk-apis 1.27.0-dev1 → 1.29.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 +3 -3
- package/dist/models/practice.d.ts +138 -29
- package/dist/oro-sdk-apis.cjs.development.js +421 -836
- 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 +435 -838
- 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 +3 -3
- package/src/models/practice.ts +172 -51
- package/src/services/consult.ts +11 -9
- package/src/services/teller.ts +5 -5
package/dist/models/consult.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export declare enum TaskStatus {
|
|
|
74
74
|
Blocked = "Blocked",
|
|
75
75
|
Done = "Done"
|
|
76
76
|
}
|
|
77
|
-
export declare enum
|
|
77
|
+
export declare enum ClosedReasonType {
|
|
78
78
|
Completed = "Completed",
|
|
79
79
|
NotADisease = "NotADisease",
|
|
80
80
|
NotAppropriateForVirtual = "NotAppropriateForVirtual",
|
|
@@ -101,8 +101,8 @@ export interface Consult {
|
|
|
101
101
|
uuidAssignedDoctor: string;
|
|
102
102
|
uuidCurrentAssigned: string;
|
|
103
103
|
statusTask?: TaskStatus;
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
closedReasonType?: ClosedReasonType;
|
|
105
|
+
closedReasonMsg?: string;
|
|
106
106
|
hasTransmissions?: boolean;
|
|
107
107
|
assignedAssistant?: ConsultAssignedAssistant[];
|
|
108
108
|
shortId?: string;
|
|
@@ -107,57 +107,164 @@ export interface PracticeAccount {
|
|
|
107
107
|
emailBillingContact: string;
|
|
108
108
|
urlSubdomain?: string;
|
|
109
109
|
}
|
|
110
|
+
/**
|
|
111
|
+
* Defines all the practice config kind.
|
|
112
|
+
*
|
|
113
|
+
* Please respect the following when defining a new practice config:
|
|
114
|
+
* - be really specific on its role
|
|
115
|
+
* - all configs needs to have default values in app
|
|
116
|
+
* - the default behavior should always to be display the feature.
|
|
117
|
+
* In other words, practice configs should either be used to hide a functionnality or overwrite a default behavior.
|
|
118
|
+
* 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).
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
110
121
|
export declare enum PracticeConfigKind {
|
|
111
|
-
|
|
112
|
-
PractitionerChatbox = "PractitionerChatbox",
|
|
122
|
+
PracticeCloseConsultationTypes = "PracticeCloseConsultationTypes",
|
|
113
123
|
PracticeConfigExample = "PracticeConfigExample",
|
|
114
|
-
PracticeLocaleSwitcher = "PracticeLocaleSwitcher",
|
|
115
124
|
PracticeCookieBanner = "PracticeCookieBanner",
|
|
125
|
+
PracticeCssVariables = "PracticeCssVariables",
|
|
126
|
+
PracticeFontsLinks = "PracticeFontsLinks",
|
|
127
|
+
PracticeLocaleSwitcher = "PracticeLocaleSwitcher",
|
|
116
128
|
PracticePharmacyPicker = "PracticePharmacyPicker",
|
|
117
|
-
|
|
129
|
+
PractitionerChatbox = "PractitionerChatbox",
|
|
130
|
+
PractitionerConsultList = "PractitionerConsultList"
|
|
118
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* Defines the close consultation types to hide in the close consultation modal of a practice
|
|
134
|
+
*/
|
|
135
|
+
export declare type PracticeConfigPracticeCloseConsultationTypes = PracticeConfig<PracticeConfigKind.PracticeCloseConsultationTypes, {
|
|
136
|
+
/**
|
|
137
|
+
* Should hide item with value "Completed"
|
|
138
|
+
*/
|
|
139
|
+
hideCompleted?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Should hide item with value "Requires-in-person"
|
|
142
|
+
*/
|
|
143
|
+
hideRequiresInPerson?: boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Should hide item with value "Other"
|
|
146
|
+
*/
|
|
147
|
+
hideOther?: boolean;
|
|
148
|
+
/**
|
|
149
|
+
* Should hide item with value "Not-a-disease"
|
|
150
|
+
*/
|
|
151
|
+
hideNotADisease?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Should hide item with value "Appropriate-for-virtual"
|
|
154
|
+
*/
|
|
155
|
+
hideNotAppropriateForVirtual?: boolean;
|
|
156
|
+
}>;
|
|
157
|
+
/**
|
|
158
|
+
* Generic interface of a practice config
|
|
159
|
+
*
|
|
160
|
+
* Practice configs needs to have a JSDoc for **all** interface and fields.
|
|
161
|
+
*
|
|
162
|
+
*/
|
|
119
163
|
export interface PracticeConfig<K, T> {
|
|
164
|
+
/**
|
|
165
|
+
* The uuid of the practice to apply the config
|
|
166
|
+
*/
|
|
120
167
|
uuidPractice: string;
|
|
121
|
-
|
|
168
|
+
/**
|
|
169
|
+
* The kind of the practice config. Used as a discriminator to help auto-completion.
|
|
170
|
+
*/
|
|
171
|
+
kind: PracticeConfigKind;
|
|
172
|
+
/**
|
|
173
|
+
* The actual interface of the config
|
|
174
|
+
*/
|
|
122
175
|
config: T;
|
|
123
176
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
177
|
+
/**
|
|
178
|
+
* This type is for test (do not remove without updating the integration tests)
|
|
179
|
+
*/
|
|
180
|
+
export declare type PracticeConfigPracticeConfigExample = PracticeConfig<PracticeConfigKind.PracticeConfigExample, {
|
|
181
|
+
primaryColor?: string;
|
|
182
|
+
}>;
|
|
183
|
+
/**
|
|
184
|
+
* Defines the practice cookie banner
|
|
185
|
+
*/
|
|
186
|
+
export declare type PracticeConfigPracticeCookieBanner = PracticeConfig<PracticeConfigKind.PracticeCookieBanner, {
|
|
187
|
+
showCookieBanner?: boolean;
|
|
188
|
+
policyLink?: string;
|
|
189
|
+
useOfCookieLink?: string;
|
|
190
|
+
}>;
|
|
191
|
+
/**
|
|
192
|
+
* This interface describes all practice css variables
|
|
193
|
+
* The keys should reflect the exact css name
|
|
194
|
+
*/
|
|
195
|
+
export declare type PracticeConfigPracticeCssVariables = PracticeConfig<PracticeConfigKind.PracticeCssVariables, Record<string, string>>;
|
|
196
|
+
/**
|
|
197
|
+
* Defines the font of the practice css url
|
|
198
|
+
*/
|
|
199
|
+
export declare type PracticeConfigPracticeFontsLinks = PracticeConfig<PracticeConfigKind.PracticeFontsLinks, {
|
|
200
|
+
/**
|
|
201
|
+
* sans serif font family
|
|
202
|
+
*/
|
|
203
|
+
sansSerif?: string;
|
|
204
|
+
/**
|
|
205
|
+
* serif font family
|
|
206
|
+
*/
|
|
207
|
+
serif?: string;
|
|
129
208
|
}>;
|
|
209
|
+
/**
|
|
210
|
+
* Defines the locale switcher config
|
|
211
|
+
*/
|
|
130
212
|
export declare type PracticeConfigPracticeLocaleSwitcher = PracticeConfig<PracticeConfigKind.PracticeLocaleSwitcher, {
|
|
213
|
+
/**
|
|
214
|
+
* Should hide the locale switcher
|
|
215
|
+
*/
|
|
131
216
|
hideLocaleSwitcher?: boolean;
|
|
132
217
|
}>;
|
|
218
|
+
/**
|
|
219
|
+
* Defines the online pharmacy address of the practice
|
|
220
|
+
*/
|
|
221
|
+
export declare type PracticeConfigPracticeOnlinePharmacy = PracticeConfig<PracticeConfigKind.PracticePharmacyPicker, {
|
|
222
|
+
/**
|
|
223
|
+
* The address of the online pharmacy
|
|
224
|
+
*/
|
|
225
|
+
onlinePharmacy?: PlaceData;
|
|
226
|
+
}>;
|
|
227
|
+
/**
|
|
228
|
+
* Defines the consultation chatbox configs
|
|
229
|
+
*/
|
|
133
230
|
export declare type PracticeConfigPractitionerChatbox = PracticeConfig<PracticeConfigKind.PractitionerChatbox, {
|
|
231
|
+
/**
|
|
232
|
+
* If defined will replace the automatic chatbox comment notifiying the patient a new treatment plan has been added. Indexed by locale.
|
|
233
|
+
*/
|
|
134
234
|
planAddedMessage?: {
|
|
135
235
|
[languageISO639_3: string]: string;
|
|
136
236
|
};
|
|
237
|
+
/**
|
|
238
|
+
* If defined will replace the automatic chatbox comment notifiying the patient a new treatment plan has been updated. Indexed by locale.
|
|
239
|
+
*/
|
|
137
240
|
planUpdatedMessage?: {
|
|
138
241
|
[languageISO639_3: string]: string;
|
|
139
242
|
};
|
|
243
|
+
/**
|
|
244
|
+
* If defined will replace the automatic chatbox comment notifiying the patient a new exam has been dispatched. Indexed by locale.
|
|
245
|
+
*/
|
|
140
246
|
examsUpdatedMessage?: {
|
|
141
247
|
[languageISO639_3: string]: string;
|
|
142
248
|
};
|
|
143
249
|
}>;
|
|
144
|
-
export declare type PracticeConfigPracticeOnlinePharmacy = PracticeConfig<PracticeConfigKind.PracticePharmacyPicker, {
|
|
145
|
-
onlinePharmacy?: PlaceData;
|
|
146
|
-
}>;
|
|
147
|
-
export declare type PracticeConfigPracticeCookieBanner = PracticeConfig<PracticeConfigKind.PracticeCookieBanner, {
|
|
148
|
-
showCookieBanner?: boolean;
|
|
149
|
-
policyLink?: string;
|
|
150
|
-
useOfCookieLink?: string;
|
|
151
|
-
}>;
|
|
152
|
-
export declare type PracticeConfigPracticeConfigExample = PracticeConfig<PracticeConfigKind.PracticeConfigExample, {
|
|
153
|
-
primaryColor?: string;
|
|
154
|
-
}>;
|
|
155
250
|
/**
|
|
156
|
-
* This
|
|
157
|
-
* The keys should reflect the exact css name
|
|
251
|
+
* This config is used to configure the layout of the consult list for practitioners
|
|
158
252
|
*/
|
|
159
|
-
export declare type
|
|
160
|
-
|
|
253
|
+
export declare type PracticeConfigPractitionerConsultList = PracticeConfig<PracticeConfigKind.PractitionerConsultList, {
|
|
254
|
+
/**
|
|
255
|
+
* Should hide the locality column
|
|
256
|
+
*/
|
|
257
|
+
hideLocality?: boolean;
|
|
258
|
+
/**
|
|
259
|
+
* Should hide the fax column
|
|
260
|
+
*/
|
|
261
|
+
hideFax?: boolean;
|
|
262
|
+
/**
|
|
263
|
+
* Should hide the expires at column
|
|
264
|
+
*/
|
|
265
|
+
hideExpiresAt?: boolean;
|
|
266
|
+
}>;
|
|
267
|
+
export declare type PracticeConfigs = PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeOnlinePharmacy | PracticeConfigPracticeCssVariables | PracticeConfigPracticeFontsLinks | PracticeConfigPracticeConfigExample;
|
|
161
268
|
export interface PracticeWorkflow {
|
|
162
269
|
id?: number;
|
|
163
270
|
uuidPractice: string;
|
|
@@ -336,13 +443,15 @@ export interface Practitioner {
|
|
|
336
443
|
txtAddressTransmission?: string;
|
|
337
444
|
}
|
|
338
445
|
export interface HydratedPracticeConfigs {
|
|
339
|
-
[PracticeConfigKind.
|
|
340
|
-
[PracticeConfigKind.PractitionerChatbox]?: PracticeConfigPractitionerChatbox;
|
|
446
|
+
[PracticeConfigKind.PracticeCloseConsultationTypes]?: PracticeConfigPracticeCloseConsultationTypes;
|
|
341
447
|
[PracticeConfigKind.PracticeConfigExample]?: PracticeConfigPracticeConfigExample;
|
|
342
|
-
[PracticeConfigKind.PracticeLocaleSwitcher]?: PracticeConfigPracticeLocaleSwitcher;
|
|
343
448
|
[PracticeConfigKind.PracticeCookieBanner]?: PracticeConfigPracticeCookieBanner;
|
|
344
|
-
[PracticeConfigKind.PracticePharmacyPicker]?: PracticeConfigPracticeOnlinePharmacy;
|
|
345
449
|
[PracticeConfigKind.PracticeCssVariables]?: PracticeConfigPracticeCssVariables;
|
|
450
|
+
[PracticeConfigKind.PracticeFontsLinks]?: PracticeConfigPracticeFontsLinks;
|
|
451
|
+
[PracticeConfigKind.PracticeLocaleSwitcher]?: PracticeConfigPracticeLocaleSwitcher;
|
|
452
|
+
[PracticeConfigKind.PracticePharmacyPicker]?: PracticeConfigPracticeOnlinePharmacy;
|
|
453
|
+
[PracticeConfigKind.PractitionerChatbox]?: PracticeConfigPractitionerChatbox;
|
|
454
|
+
[PracticeConfigKind.PractitionerConsultList]?: PracticeConfigPractitionerConsultList;
|
|
346
455
|
}
|
|
347
456
|
export interface Practice {
|
|
348
457
|
uuid: string;
|