oro-sdk-apis 1.35.0-dev3 → 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 +21 -0
- package/dist/models/consult.d.ts +0 -55
- package/dist/models/diagnosis.d.ts +9 -0
- package/dist/oro-sdk-apis.cjs.development.js +822 -429
- 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 +830 -432
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/consult.d.ts +1 -3
- package/dist/services/teller.d.ts +2 -2
- package/package.json +1 -1
- package/src/models/consult.ts +0 -58
- package/src/models/diagnosis.ts +11 -1
- package/src/services/consult.ts +0 -3
- package/src/services/teller.ts +1 -6
@@ -1,5 +1,5 @@
|
|
1
1
|
import { APIService } from './api';
|
2
|
-
import { Uuid, Consult, ConsultRequest, MedicalStatus, ConsultTransmission,
|
2
|
+
import { Uuid, Consult, ConsultRequest, MedicalStatus, ConsultTransmission, TransmissionStatus } from '../models';
|
3
3
|
export declare class ConsultService {
|
4
4
|
private api;
|
5
5
|
private baseURL;
|
@@ -43,8 +43,6 @@ export declare class ConsultService {
|
|
43
43
|
getConsultByUUID(uuidConsult: Uuid, uuidPractice?: Uuid): Promise<Consult>;
|
44
44
|
updateConsultByUUID(uuidConsult: Uuid, consult: {
|
45
45
|
statusMedical?: MedicalStatus;
|
46
|
-
closedReasonType?: ClosedReasonType;
|
47
|
-
closedReasonDescription?: string;
|
48
46
|
uuidAssignedDoctor?: Uuid;
|
49
47
|
neverExpires?: boolean;
|
50
48
|
}, uuidPractice?: Uuid, uuidRequester?: Uuid): Promise<Consult>;
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { APIService } from './api';
|
2
|
-
import {
|
2
|
+
import { Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, Uuid, ResumeConsultEmailRequest } from '../models';
|
3
3
|
export declare class TellerService {
|
4
4
|
private api;
|
5
5
|
private baseURL;
|
6
6
|
constructor(api: APIService, baseURL: string);
|
7
7
|
lockboxDataStore(lockboxUuid: Uuid, req: LockboxDataRequest, lockboxOwnerUuid?: Uuid, previousDataUuid?: Uuid): Promise<DataCreateResponse>;
|
8
|
-
updateConsultByUUID(patientUuid: Uuid, uuidConsult: Uuid, statusMedical: MedicalStatus,
|
8
|
+
updateConsultByUUID(patientUuid: Uuid, uuidConsult: Uuid, statusMedical: MedicalStatus, neverExpires?: boolean): Promise<Consult>;
|
9
9
|
/**
|
10
10
|
* This function notifies teller that the fax sent for a specific consult did not get through
|
11
11
|
* @todo - Make service only exposed route
|
package/package.json
CHANGED
package/src/models/consult.ts
CHANGED
@@ -82,63 +82,6 @@ export enum TaskStatus {
|
|
82
82
|
Done = 'Done',
|
83
83
|
}
|
84
84
|
|
85
|
-
export enum ClosedReasonType {
|
86
|
-
/**
|
87
|
-
* A completed consultation
|
88
|
-
*/
|
89
|
-
Completed = "Completed",
|
90
|
-
/**
|
91
|
-
* The conclusion was that what the patient submitted was not a disease
|
92
|
-
*/
|
93
|
-
NotADisease = "NotADisease",
|
94
|
-
/**
|
95
|
-
* The consultation was not appropriate for virtual
|
96
|
-
*/
|
97
|
-
NotAppropriateForVirtual = "NotAppropriateForVirtual",
|
98
|
-
/**
|
99
|
-
* Any other reason why the consultation was closed
|
100
|
-
*/
|
101
|
-
Other = "Other",
|
102
|
-
/**
|
103
|
-
* A consultation that is required to be done in person
|
104
|
-
*/
|
105
|
-
RequiresInPerson = "RequiresInPerson"
|
106
|
-
}
|
107
|
-
|
108
|
-
export interface ClosedConsultReasonInsertFields {
|
109
|
-
/**
|
110
|
-
* The uuid of the consultation
|
111
|
-
*/
|
112
|
-
consult_uuid: string
|
113
|
-
/**
|
114
|
-
* The reason why the consultation was closed
|
115
|
-
*/
|
116
|
-
closed_reason_type: ClosedReasonType
|
117
|
-
/**
|
118
|
-
* The description why the consultation was closed
|
119
|
-
*/
|
120
|
-
closed_reason_description: string
|
121
|
-
/**
|
122
|
-
* When the consultation was closed
|
123
|
-
*/
|
124
|
-
created_at: string
|
125
|
-
}
|
126
|
-
|
127
|
-
export interface ConsultClosedReason {
|
128
|
-
/**
|
129
|
-
* The reason why the consultation was closed
|
130
|
-
*/
|
131
|
-
closedReasonType: ClosedReasonType
|
132
|
-
/**
|
133
|
-
* The description why the consultation was closed
|
134
|
-
*/
|
135
|
-
closedReasonDescription: string
|
136
|
-
/**
|
137
|
-
* When the consultation was closed
|
138
|
-
*/
|
139
|
-
createdAt: string
|
140
|
-
}
|
141
|
-
|
142
85
|
export interface ConsultRequest {
|
143
86
|
uuidPractice: string
|
144
87
|
tagSpecialtyRequired: string
|
@@ -161,7 +104,6 @@ export interface Consult {
|
|
161
104
|
statusTask?: TaskStatus
|
162
105
|
hasTransmissions?: boolean
|
163
106
|
assignedAssistant?: ConsultAssignedAssistant[]
|
164
|
-
closeConsultReason?: ConsultClosedReason[]
|
165
107
|
shortId?: string
|
166
108
|
createdAt?: string
|
167
109
|
expiresAt?: string
|
package/src/models/diagnosis.ts
CHANGED
@@ -66,6 +66,15 @@ export interface Drug extends DrugRequest {
|
|
66
66
|
createdAt: string
|
67
67
|
}
|
68
68
|
|
69
|
+
/**
|
70
|
+
* Status of the prescription
|
71
|
+
* Right now, it only serves a soft delete flag
|
72
|
+
*/
|
73
|
+
export enum PrescriptionStatus {
|
74
|
+
Existing = 'Existing',
|
75
|
+
Deleted = 'Deleted',
|
76
|
+
}
|
77
|
+
|
69
78
|
export interface PrescriptionRequest {
|
70
79
|
uuid?: string
|
71
80
|
uuidTreatment?: string
|
@@ -78,6 +87,7 @@ export interface PrescriptionRequest {
|
|
78
87
|
export interface Prescription extends PrescriptionRequest {
|
79
88
|
uuid: string
|
80
89
|
uuidTreatment: string
|
90
|
+
status: PrescriptionStatus
|
81
91
|
createdAt: string
|
82
92
|
}
|
83
93
|
|
@@ -153,4 +163,4 @@ export interface TreatmentPlansResponseEntry {
|
|
153
163
|
treatmentPlan: TreatmentPlan
|
154
164
|
}
|
155
165
|
|
156
|
-
export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
|
166
|
+
export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
|
package/src/services/consult.ts
CHANGED
@@ -5,7 +5,6 @@ import {
|
|
5
5
|
ConsultRequest,
|
6
6
|
MedicalStatus,
|
7
7
|
ConsultTransmission,
|
8
|
-
ClosedReasonType,
|
9
8
|
TransmissionKind,
|
10
9
|
TransmissionStatus,
|
11
10
|
} from '../models'
|
@@ -142,8 +141,6 @@ export class ConsultService {
|
|
142
141
|
uuidConsult: Uuid,
|
143
142
|
consult: {
|
144
143
|
statusMedical?: MedicalStatus
|
145
|
-
closedReasonType?: ClosedReasonType
|
146
|
-
closedReasonDescription?: string
|
147
144
|
uuidAssignedDoctor?: Uuid
|
148
145
|
neverExpires?: boolean
|
149
146
|
},
|
package/src/services/teller.ts
CHANGED
@@ -1,12 +1,11 @@
|
|
1
1
|
import { APIService } from './api'
|
2
2
|
import {
|
3
|
-
ClosedReasonType,
|
4
3
|
Consult,
|
5
4
|
DataCreateResponse,
|
6
5
|
LockboxDataRequest,
|
7
6
|
MedicalStatus,
|
8
|
-
ResumeConsultEmailRequest,
|
9
7
|
Uuid,
|
8
|
+
ResumeConsultEmailRequest,
|
10
9
|
} from '../models'
|
11
10
|
export class TellerService {
|
12
11
|
constructor(private api: APIService, private baseURL: string) {}
|
@@ -29,15 +28,11 @@ export class TellerService {
|
|
29
28
|
patientUuid: Uuid,
|
30
29
|
uuidConsult: Uuid,
|
31
30
|
statusMedical: MedicalStatus,
|
32
|
-
closedReasonType?: ClosedReasonType,
|
33
|
-
closedReasonDescription?: string,
|
34
31
|
neverExpires?: boolean
|
35
32
|
): Promise<Consult> {
|
36
33
|
return this.api.put<Consult>(`${this.baseURL}/v1/consults/${uuidConsult}`, {
|
37
34
|
patientUuid,
|
38
35
|
statusMedical,
|
39
|
-
closedReasonType,
|
40
|
-
closedReasonDescription,
|
41
36
|
neverExpires,
|
42
37
|
})
|
43
38
|
}
|