oro-sdk-apis 1.54.2 → 1.56.0
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/LICENSE +21 -0
- package/dist/models/diagnosis.d.ts +4 -1
- package/dist/models/practice.d.ts +13 -2
- package/dist/models/workflow.d.ts +24 -0
- package/dist/oro-sdk-apis.cjs.development.js +817 -399
- 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 +817 -399
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/models/diagnosis.ts +5 -2
- package/src/models/practice.ts +16 -0
- package/src/models/workflow.ts +26 -0
package/package.json
CHANGED
package/src/models/diagnosis.ts
CHANGED
@@ -119,7 +119,10 @@ export interface TreatmentAndDrugPrescription {
|
|
119
119
|
notes?: string
|
120
120
|
status: PlanStatus
|
121
121
|
uuidTreatmentPlan: string
|
122
|
-
|
122
|
+
/**
|
123
|
+
* this field is used to store the datetime when the patient accepted or refused the prescription
|
124
|
+
*/
|
125
|
+
decidedAt?: string
|
123
126
|
createdAt: string
|
124
127
|
}
|
125
128
|
export interface TreatmentPlans {
|
@@ -163,4 +166,4 @@ export interface TreatmentPlansResponseEntry {
|
|
163
166
|
treatmentPlan: TreatmentPlan
|
164
167
|
}
|
165
168
|
|
166
|
-
export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
|
169
|
+
export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
|
package/src/models/practice.ts
CHANGED
@@ -150,6 +150,7 @@ export enum PracticeConfigKind {
|
|
150
150
|
PracticeRegisterWalkthrough = 'PracticeRegisterWalkthrough',
|
151
151
|
PracticeExamsAndResults = 'PracticeExamsAndResults',
|
152
152
|
PracticeLayout = 'PracticeLayout',
|
153
|
+
PracticeAddressField = 'PracticeAddressField',
|
153
154
|
}
|
154
155
|
|
155
156
|
/**
|
@@ -403,6 +404,19 @@ export type PracticeConfigPracticeLayout = PracticeConfig<
|
|
403
404
|
}
|
404
405
|
>
|
405
406
|
|
407
|
+
/**
|
408
|
+
* This config is used for all configs related to the Google Places address field
|
409
|
+
*/
|
410
|
+
export type PracticeConfigPracticeAddressField = PracticeConfig<
|
411
|
+
PracticeConfigKind.PracticeAddressField,
|
412
|
+
{
|
413
|
+
/**
|
414
|
+
* If true, then show the long version of the address, otherwise, show the short version
|
415
|
+
*/
|
416
|
+
longAddress?: boolean
|
417
|
+
}
|
418
|
+
>
|
419
|
+
|
406
420
|
export type PracticeConfigs =
|
407
421
|
| PracticeConfigPractitionerSearch
|
408
422
|
| PracticeConfigPractitionerConsultList
|
@@ -418,6 +432,7 @@ export type PracticeConfigs =
|
|
418
432
|
| PracticeConfigPatientConsultCard
|
419
433
|
| PracticeConfigPracticeExamsAndResults
|
420
434
|
| PracticeConfigPracticeLayout
|
435
|
+
| PracticeConfigPracticeAddressField
|
421
436
|
|
422
437
|
export interface PracticeWorkflow {
|
423
438
|
id?: number ///optional for insertion
|
@@ -679,6 +694,7 @@ export interface HydratedPracticeConfigs {
|
|
679
694
|
[PracticeConfigKind.PracticeRegisterWalkthrough]?: PracticeConfigPracticeRegisterWalkthrough
|
680
695
|
[PracticeConfigKind.PracticeExamsAndResults]?: PracticeConfigPracticeExamsAndResults
|
681
696
|
[PracticeConfigKind.PracticeLayout]?: PracticeConfigPracticeLayout
|
697
|
+
[PracticeConfigKind.PracticeAddressField]?: PracticeConfigPracticeAddressField
|
682
698
|
}
|
683
699
|
|
684
700
|
export interface Practice {
|
package/src/models/workflow.ts
CHANGED
@@ -268,6 +268,32 @@ export interface WorkflowData {
|
|
268
268
|
* (optional) the description of the service this workflow provides
|
269
269
|
*/
|
270
270
|
serviceDescription?: string
|
271
|
+
/**
|
272
|
+
* (optional) rules to hide certain payment plans depending on the workflow answers
|
273
|
+
*/
|
274
|
+
hidePlanRules?: HidePlanRule[]
|
275
|
+
}
|
276
|
+
|
277
|
+
export interface HidePlanRule {
|
278
|
+
/**
|
279
|
+
* the stripe plan id from the practice service
|
280
|
+
*/
|
281
|
+
idPlan: string
|
282
|
+
/**
|
283
|
+
* Questions to apply yup rules on in, if rules are met then hide the plan
|
284
|
+
*/
|
285
|
+
rules: QuestionHidePlanRule | QuestionHidePlanRule[] | QuestionHidePlanRule[][]
|
286
|
+
}
|
287
|
+
|
288
|
+
export interface QuestionHidePlanRule {
|
289
|
+
/**
|
290
|
+
* the id of the question to check the rule on
|
291
|
+
*/
|
292
|
+
questionId: string
|
293
|
+
/**
|
294
|
+
* a collection of yup validated rules (same exact syntax we used for the workflow formValidation field, please reuse same functions)
|
295
|
+
*/
|
296
|
+
yupRuleValueToHide: any
|
271
297
|
}
|
272
298
|
|
273
299
|
/**
|