oro-sdk-apis 1.4.0 → 1.5.2

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 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.
@@ -32,6 +32,7 @@ export interface TreatmentRequest {
32
32
  export interface Treatment extends TreatmentRequest {
33
33
  uuid: string;
34
34
  uuidDiagnosis: string;
35
+ uuidPractitioner?: string;
35
36
  createdAt: string;
36
37
  }
37
38
  export declare enum DrugType {
@@ -78,6 +79,7 @@ export interface TreatmentPlan {
78
79
  uuidConsult: string;
79
80
  uuidDiagnosis: string;
80
81
  uuidTreatment?: string;
82
+ notes?: string;
81
83
  status: PlanStatus;
82
84
  }
83
85
  export interface DrugPrescription {
@@ -87,6 +89,7 @@ export interface DrugPrescription {
87
89
  export interface TreatmentAndDrugPrescription {
88
90
  treatment?: Treatment;
89
91
  prescriptionsAndDrugs?: DrugPrescription[];
92
+ notes?: string;
90
93
  status: PlanStatus;
91
94
  uuidTreatmentPlan: string;
92
95
  }
@@ -103,6 +106,7 @@ export interface TreatmentAndDrugPrescriptionRequest {
103
106
  trackingId: string;
104
107
  treatment: TreatmentRequest;
105
108
  prescriptionsAndDrugs?: DrugPrescriptionRequest[];
109
+ notes?: string;
106
110
  }
107
111
  export interface TreatmentPlansRequest {
108
112
  uuidConsult: string;
@@ -112,6 +116,7 @@ export interface TreatmentPlansRequest {
112
116
  export interface TreatmentAndDrugPrescriptionUpdateRequest {
113
117
  treatment: Treatment;
114
118
  prescriptionsAndDrugs?: DrugPrescriptionRequest[];
119
+ notes?: string;
115
120
  }
116
121
  export interface TreatmentPlanUpdateRequest extends TreatmentPlansRequest {
117
122
  uuidConsult: string;
@@ -18,6 +18,10 @@ export interface RadioInputData extends ChoiceInputData {
18
18
  export interface RadioCardInputData extends RadioInputData {
19
19
  bodyText: string;
20
20
  }
21
+ export interface LanguagePickerData extends ChoiceInputData {
22
+ flag: string;
23
+ locale: string;
24
+ }
21
25
  export interface EntryData {
22
26
  id?: number;
23
27
  label?: string;
@@ -53,7 +57,7 @@ export interface GroupedGenericQuestionData<T, A = IndexedData<ChoiceInputData>>
53
57
  inlineLabel?: boolean;
54
58
  order?: number;
55
59
  }
56
- export declare type QuestionData = GenericQuestionData<'title' | 'paragraph' | 'checkbox', void> | GenericQuestionData<'text' | 'date' | 'number' | 'images' | 'images-alias' | 'body-parts' | 'pharmacy-picker' | 'place-address'> | GenericQuestionData<'checkbox-group' | 'select' | 'multiple', IndexedData<ChoiceInputData>> | GroupedGenericQuestionData<'radio', IndexedData<RadioInputData>> | GroupedGenericQuestionData<'radio-card', IndexedData<RadioCardInputData>>;
60
+ export declare type QuestionData = GenericQuestionData<'title' | 'paragraph' | 'checkbox', void> | GenericQuestionData<'text' | 'date' | 'number' | 'images' | 'images-alias' | 'body-parts' | 'pharmacy-picker' | 'place-address'> | GenericQuestionData<'checkbox-group' | 'select' | 'multiple', IndexedData<ChoiceInputData>> | GroupedGenericQuestionData<'radio', IndexedData<RadioInputData>> | GroupedGenericQuestionData<'radio-card', IndexedData<RadioCardInputData>> | GroupedGenericQuestionData<'language-picker', IndexedData<LanguagePickerData>>;
57
61
  export interface FieldData {
58
62
  type: 'field';
59
63
  className?: string;