oro-sdk-apis 1.35.0-dev5 → 1.35.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 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.
@@ -74,56 +74,6 @@ export declare enum TaskStatus {
74
74
  Blocked = "Blocked",
75
75
  Done = "Done"
76
76
  }
77
- export declare enum ClosedReasonType {
78
- /**
79
- * A completed consultation
80
- */
81
- Completed = "Completed",
82
- /**
83
- * The conclusion was that what the patient submitted was not a disease
84
- */
85
- NotADisease = "NotADisease",
86
- /**
87
- * The consultation was not appropriate for virtual
88
- */
89
- NotAppropriateForVirtual = "NotAppropriateForVirtual",
90
- /**
91
- * Any other reason why the consultation was closed
92
- */
93
- Other = "Other",
94
- /**
95
- * A consultation that is required to be done in person
96
- */
97
- RequiresInPerson = "RequiresInPerson"
98
- }
99
- export interface ClosedConsultReasonInsertFields {
100
- /**
101
- * The uuid of the consultation
102
- */
103
- consult_uuid: string;
104
- /**
105
- * The reason why the consultation was closed
106
- */
107
- closed_reason_type: ClosedReasonType;
108
- /**
109
- * The description why the consultation was closed
110
- */
111
- closed_reason_description: string;
112
- /**
113
- * When the consultation was closed
114
- */
115
- created_at: string;
116
- }
117
- export interface ConsultClosedReason {
118
- /**
119
- * The reason why the consultation was closed
120
- */
121
- closedReasonType: ClosedReasonType;
122
- /**
123
- * The description why the consultation was closed
124
- */
125
- closedReasonDescription?: string;
126
- }
127
77
  export interface ConsultRequest {
128
78
  uuidPractice: string;
129
79
  tagSpecialtyRequired: string;
@@ -146,7 +96,6 @@ export interface Consult {
146
96
  statusTask?: TaskStatus;
147
97
  hasTransmissions?: boolean;
148
98
  assignedAssistant?: ConsultAssignedAssistant[];
149
- closeConsultReason?: ConsultClosedReason;
150
99
  shortId?: string;
151
100
  createdAt?: string;
152
101
  expiresAt?: string;
@@ -56,6 +56,14 @@ export interface Drug extends DrugRequest {
56
56
  uuidPractitioner?: string;
57
57
  createdAt: string;
58
58
  }
59
+ /**
60
+ * Status of the prescription
61
+ * Right now, it only serves a soft delete flag
62
+ */
63
+ export declare enum PrescriptionStatus {
64
+ Existing = "Existing",
65
+ Deleted = "Deleted"
66
+ }
59
67
  export interface PrescriptionRequest {
60
68
  uuid?: string;
61
69
  uuidTreatment?: string;
@@ -67,6 +75,7 @@ export interface PrescriptionRequest {
67
75
  export interface Prescription extends PrescriptionRequest {
68
76
  uuid: string;
69
77
  uuidTreatment: string;
78
+ status: PrescriptionStatus;
70
79
  createdAt: string;
71
80
  }
72
81
  export declare enum PlanStatus {