oro-sdk-apis 1.30.0-dev1 → 1.32.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 -9
- package/dist/models/practice.d.ts +1 -0
- package/dist/models/workflow.d.ts +1 -0
- package/dist/oro-sdk-apis.cjs.development.js +819 -416
- 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 +820 -419
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/consult.d.ts +3 -5
- package/dist/services/teller.d.ts +2 -2
- package/package.json +2 -2
- package/src/models/consult.ts +0 -10
- package/src/models/practice.ts +2 -1
- package/src/models/workflow.ts +3 -1
- package/src/services/consult.ts +0 -11
- package/src/services/teller.ts +0 -5
@@ -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;
|
@@ -22,7 +22,7 @@ export declare class ConsultService {
|
|
22
22
|
* @param filterAssignee array of practitioner uuids with which you want to filter the consultations
|
23
23
|
* @returns a number of consult
|
24
24
|
*/
|
25
|
-
countConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[],
|
25
|
+
countConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[]): Promise<number>;
|
26
26
|
/**
|
27
27
|
* This function get consults using parameters
|
28
28
|
* @param uuidPractice the practice uuid
|
@@ -39,12 +39,10 @@ export declare class ConsultService {
|
|
39
39
|
* @param filterIsoLocality the of isoLocality to filter with
|
40
40
|
* @returns a list of consult
|
41
41
|
*/
|
42
|
-
getConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[],
|
42
|
+
getConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[]): Promise<Consult[]>;
|
43
43
|
getConsultByUUID(uuidConsult: Uuid, uuidPractice?: Uuid): Promise<Consult>;
|
44
44
|
updateConsultByUUID(uuidConsult: Uuid, consult: {
|
45
45
|
statusMedical?: MedicalStatus;
|
46
|
-
closedReasonType?: ClosedReasonType;
|
47
|
-
closedReasonMsg?: 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 { Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, Uuid, ResumeConsultEmailRequest
|
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,14 +82,6 @@ export enum TaskStatus {
|
|
82
82
|
Done = 'Done',
|
83
83
|
}
|
84
84
|
|
85
|
-
export enum ClosedReasonType {
|
86
|
-
Completed = "Completed",
|
87
|
-
NotADisease = "NotADisease",
|
88
|
-
NotAppropriateForVirtual = "NotAppropriateForVirtual",
|
89
|
-
Other = "Other",
|
90
|
-
RequiresInPerson = "RequiresInPerson"
|
91
|
-
}
|
92
|
-
|
93
85
|
export interface ConsultRequest {
|
94
86
|
uuidPractice: string
|
95
87
|
tagSpecialtyRequired: string
|
@@ -110,8 +102,6 @@ export interface Consult {
|
|
110
102
|
uuidAssignedDoctor: string
|
111
103
|
uuidCurrentAssigned: string
|
112
104
|
statusTask?: TaskStatus
|
113
|
-
closedReasonType?: ClosedReasonType
|
114
|
-
closedReasonMsg?: string
|
115
105
|
hasTransmissions?: boolean
|
116
106
|
assignedAssistant?: ConsultAssignedAssistant[]
|
117
107
|
shortId?: string
|
package/src/models/practice.ts
CHANGED
@@ -550,6 +550,7 @@ export interface Practice {
|
|
550
550
|
keyGoogleTagNonProd: string
|
551
551
|
keyGoogleTagProd: string
|
552
552
|
txtAddress?: string
|
553
|
+
emailBusiness?: string
|
553
554
|
phoneBusiness?: string
|
554
555
|
urlSupport?: string
|
555
556
|
emailSupport?: string
|
@@ -595,4 +596,4 @@ export interface PracticeInvoice {
|
|
595
596
|
subtotal: number
|
596
597
|
currency: string
|
597
598
|
discount: number
|
598
|
-
}
|
599
|
+
}
|
package/src/models/workflow.ts
CHANGED
@@ -85,6 +85,8 @@ export interface EntryData {
|
|
85
85
|
* This field represents a list of `StateTrigger` that must be fulfilled for this entry to be displayed.
|
86
86
|
*/
|
87
87
|
stateTriggers?: StateTrigger[]
|
88
|
+
// represents the modal that it will be rendered as
|
89
|
+
componentKind?: string
|
88
90
|
}
|
89
91
|
|
90
92
|
export interface SlideData {
|
@@ -243,4 +245,4 @@ export interface PopulatedWorkflowData {
|
|
243
245
|
workflowCreatedAt: string // The workflow version
|
244
246
|
locale?: string
|
245
247
|
fields: Record<string, PopulatedWorkflowField> // key corresponds to the QuestionData key in the workflow
|
246
|
-
}
|
248
|
+
}
|
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'
|
@@ -39,8 +38,6 @@ export class ConsultService {
|
|
39
38
|
uuidRequester?: Uuid,
|
40
39
|
statusesMedical?: MedicalStatus[],
|
41
40
|
statusesExclude?: MedicalStatus[],
|
42
|
-
closedReasonTypes?: ClosedReasonType[],
|
43
|
-
closedReasonMsgs?: string[],
|
44
41
|
shortId?: string,
|
45
42
|
columnToSortTo?: string[],
|
46
43
|
orderToSortTo?: string[],
|
@@ -60,8 +57,6 @@ export class ConsultService {
|
|
60
57
|
uuidRequester,
|
61
58
|
statusesMedical,
|
62
59
|
statusesExclude,
|
63
|
-
closedReasonTypes,
|
64
|
-
closedReasonMsgs,
|
65
60
|
shortId,
|
66
61
|
perPage,
|
67
62
|
page: indexPage,
|
@@ -109,8 +104,6 @@ export class ConsultService {
|
|
109
104
|
uuidRequester?: Uuid,
|
110
105
|
statusesMedical?: MedicalStatus[],
|
111
106
|
statusesExclude?: MedicalStatus[],
|
112
|
-
closedReasonTypes?: ClosedReasonType[],
|
113
|
-
closedReasonMsgs?: string[],
|
114
107
|
shortId?: string,
|
115
108
|
columnToSortTo?: string[],
|
116
109
|
orderToSortTo?: string[],
|
@@ -127,8 +120,6 @@ export class ConsultService {
|
|
127
120
|
uuidRequester,
|
128
121
|
statusesMedical,
|
129
122
|
statusesExclude,
|
130
|
-
closedReasonTypes,
|
131
|
-
closedReasonMsgs,
|
132
123
|
shortId,
|
133
124
|
perPage,
|
134
125
|
page: indexPage,
|
@@ -150,8 +141,6 @@ export class ConsultService {
|
|
150
141
|
uuidConsult: Uuid,
|
151
142
|
consult: {
|
152
143
|
statusMedical?: MedicalStatus
|
153
|
-
closedReasonType?: ClosedReasonType
|
154
|
-
closedReasonMsg?: string
|
155
144
|
uuidAssignedDoctor?: Uuid
|
156
145
|
neverExpires?: boolean
|
157
146
|
},
|
package/src/services/teller.ts
CHANGED
@@ -6,7 +6,6 @@ import {
|
|
6
6
|
MedicalStatus,
|
7
7
|
Uuid,
|
8
8
|
ResumeConsultEmailRequest,
|
9
|
-
ClosedReasonType,
|
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
|
-
closedReasonMsg?: 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
|
-
closedReasonMsg,
|
41
36
|
neverExpires,
|
42
37
|
})
|
43
38
|
}
|