oro-sdk-apis 2.0.0 → 3.0.1
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 +16 -2
- package/dist/models/practice.d.ts +4 -0
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/models/diagnosis.ts +19 -3
- package/src/models/practice.ts +4 -0
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,8 +24,10 @@ 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
32
|
type?: TreatmentType;
|
31
33
|
}
|
@@ -98,8 +100,7 @@ export interface DrugPrescription {
|
|
98
100
|
drug: Drug;
|
99
101
|
}
|
100
102
|
export interface TreatmentAndDrugPrescription {
|
101
|
-
|
102
|
-
prescriptionsAndDrugs?: DrugPrescription[];
|
103
|
+
treatmentsHistory?: TreatmentHistory[];
|
103
104
|
notes?: string;
|
104
105
|
status: PlanStatus;
|
105
106
|
uuidTreatmentPlan: string;
|
@@ -109,6 +110,15 @@ export interface TreatmentAndDrugPrescription {
|
|
109
110
|
decidedAt?: string;
|
110
111
|
createdAt: string;
|
111
112
|
}
|
113
|
+
/**
|
114
|
+
* An entry in the history of the treatments of the patient.
|
115
|
+
* The history entry consists of the treatment and the prescriptions and the drugs
|
116
|
+
* that were prescribed to the patient at that point of history
|
117
|
+
*/
|
118
|
+
export interface TreatmentHistory {
|
119
|
+
treatment: Treatment;
|
120
|
+
prescriptionsAndDrugs: DrugPrescription[];
|
121
|
+
}
|
112
122
|
export interface TreatmentPlans {
|
113
123
|
uuidConsult: string;
|
114
124
|
diagnosis: Diagnosis;
|
@@ -138,6 +148,10 @@ export interface TreatmentPlanUpdateRequest extends TreatmentPlansRequest {
|
|
138
148
|
uuidConsult: string;
|
139
149
|
diagnosis: DiagnosisRequest;
|
140
150
|
plan: TreatmentAndDrugPrescriptionUpdateRequest;
|
151
|
+
/**
|
152
|
+
* request to refill the treatment plan
|
153
|
+
*/
|
154
|
+
refill?: boolean;
|
141
155
|
}
|
142
156
|
export interface TreatmentPlansResponseEntry {
|
143
157
|
trackingId?: string;
|
@@ -238,6 +238,10 @@ export declare type PracticeConfigPracticeOnlinePharmacy = PracticeConfig<Practi
|
|
238
238
|
* The address of the online pharmacy
|
239
239
|
*/
|
240
240
|
onlinePharmacy?: PlaceData;
|
241
|
+
/**
|
242
|
+
* Shows or hides the address input field in the treatment acceptance modal
|
243
|
+
*/
|
244
|
+
showTreatmentAcceptanceAddressInput: boolean;
|
241
245
|
}>;
|
242
246
|
/**
|
243
247
|
* Defines the consultation chatbox configs
|