oro-sdk-apis 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE +21 -0
- package/dist/models/diagnosis.d.ts +16 -2
- package/dist/oro-sdk-apis.cjs.development.js +816 -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 +816 -399
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/models/diagnosis.ts +19 -3
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;
|