oro-sdk-apis 1.57.0-dev1 → 1.58.1-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/LICENSE +21 -0
- package/dist/models/diagnosis.d.ts +3 -1
- package/dist/models/practice.d.ts +13 -2
- package/dist/models/workflow.d.ts +1 -1
- package/dist/oro-sdk-apis.cjs.development.js +818 -400
- 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 +818 -400
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/models/diagnosis.ts +4 -2
- package/src/models/practice.ts +16 -0
- package/src/models/workflow.ts +2 -2
- package/src/services/guard.ts +1 -1
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2021 ORO Health Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -24,10 +24,11 @@ export interface Diagnosis extends DiagnosisRequest {
|
|
24
24
|
export interface TreatmentRequest {
|
25
25
|
uuid?: string;
|
26
26
|
uuidDiagnosis?: string;
|
27
|
+
uuidParentTreatment?: string;
|
27
28
|
name: string;
|
28
29
|
description: string;
|
30
|
+
refillable?: boolean;
|
29
31
|
urlMultimedia?: string;
|
30
|
-
refillable: boolean;
|
31
32
|
type?: TreatmentType;
|
32
33
|
}
|
33
34
|
export interface Treatment extends TreatmentRequest {
|
@@ -139,6 +140,7 @@ export interface TreatmentPlanUpdateRequest extends TreatmentPlansRequest {
|
|
139
140
|
uuidConsult: string;
|
140
141
|
diagnosis: DiagnosisRequest;
|
141
142
|
plan: TreatmentAndDrugPrescriptionUpdateRequest;
|
143
|
+
refill?: boolean;
|
142
144
|
}
|
143
145
|
export interface TreatmentPlansResponseEntry {
|
144
146
|
trackingId?: string;
|
@@ -135,7 +135,8 @@ export declare enum PracticeConfigKind {
|
|
135
135
|
PracticeRegisterWalkthrough = "PracticeRegisterWalkthrough",
|
136
136
|
PracticeExamsAndResults = "PracticeExamsAndResults",
|
137
137
|
PracticeLayout = "PracticeLayout",
|
138
|
-
PracticeAddressField = "PracticeAddressField"
|
138
|
+
PracticeAddressField = "PracticeAddressField",
|
139
|
+
PracticeDiagnosisAndTreatment = "PracticeDiagnosisAndTreatment"
|
139
140
|
}
|
140
141
|
/**
|
141
142
|
* Defines the close consultation types to hide in the close consultation modal of a practice
|
@@ -340,7 +341,16 @@ export declare type PracticeConfigPracticeAddressField = PracticeConfig<Practice
|
|
340
341
|
*/
|
341
342
|
longAddress?: boolean;
|
342
343
|
}>;
|
343
|
-
|
344
|
+
/**
|
345
|
+
* This config is used for all configs related to the Diagnosis and Treatments module
|
346
|
+
*/
|
347
|
+
export declare type PracticeConfigPracticeDiagnosisAndTreatment = PracticeConfig<PracticeConfigKind.PracticeDiagnosisAndTreatment, {
|
348
|
+
/**
|
349
|
+
* If true, then sort alphabetically the diagnoses, treatments, and drugs shown in their respective select dropdown
|
350
|
+
*/
|
351
|
+
sortNames?: boolean;
|
352
|
+
}>;
|
353
|
+
export declare type PracticeConfigs = PracticeConfigPractitionerSearch | PracticeConfigPractitionerConsultList | PracticeConfigPractitionerChatbox | PracticeConfigPracticeLocaleSwitcher | PracticeConfigPracticeCookieBanner | PracticeConfigPracticeOnlinePharmacy | PracticeConfigPracticeCssVariables | PracticeConfigPracticeFontsLinks | PracticeConfigPracticePrescriptionFields | PracticeConfigPracticeConfigExample | PracticeConfigPracticeConsultTabs | PracticeConfigPatientConsultCard | PracticeConfigPracticeExamsAndResults | PracticeConfigPracticeLayout | PracticeConfigPracticeAddressField | PracticeConfigPracticeDiagnosisAndTreatment;
|
344
354
|
export interface PracticeWorkflow {
|
345
355
|
id?: number;
|
346
356
|
uuidPractice: string;
|
@@ -580,6 +590,7 @@ export interface HydratedPracticeConfigs {
|
|
580
590
|
[PracticeConfigKind.PracticeExamsAndResults]?: PracticeConfigPracticeExamsAndResults;
|
581
591
|
[PracticeConfigKind.PracticeLayout]?: PracticeConfigPracticeLayout;
|
582
592
|
[PracticeConfigKind.PracticeAddressField]?: PracticeConfigPracticeAddressField;
|
593
|
+
[PracticeConfigKind.PracticeDiagnosisAndTreatment]?: PracticeConfigPracticeDiagnosisAndTreatment;
|
583
594
|
}
|
584
595
|
export interface Practice {
|
585
596
|
uuid: string;
|
@@ -233,7 +233,7 @@ export interface HidePlanRule {
|
|
233
233
|
/**
|
234
234
|
* Questions to apply yup rules on in, if rules are met then hide the plan
|
235
235
|
*/
|
236
|
-
rules: QuestionHidePlanRule
|
236
|
+
rules: QuestionHidePlanRule[] | QuestionHidePlanRule[][];
|
237
237
|
}
|
238
238
|
export interface QuestionHidePlanRule {
|
239
239
|
/**
|