oro-sdk-apis 1.29.0 → 1.30.0-dev1
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/dist/models/consult.d.ts +9 -0
- package/dist/models/practice.d.ts +7 -3
- package/dist/oro-sdk-apis.cjs.development.js +21 -9
- 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 +24 -10
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/consult.d.ts +5 -3
- package/dist/services/teller.d.ts +2 -2
- package/package.json +1 -1
- package/src/models/consult.ts +10 -0
- package/src/models/practice.ts +7 -3
- package/src/services/consult.ts +11 -0
- package/src/services/teller.ts +5 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { APIService } from './api';
|
|
2
|
-
import { Uuid, Consult, ConsultRequest, MedicalStatus, ConsultTransmission, TransmissionStatus } from '../models';
|
|
2
|
+
import { Uuid, Consult, ConsultRequest, MedicalStatus, ConsultTransmission, ClosedReasonType, 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[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[]): Promise<number>;
|
|
25
|
+
countConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], closedReasonTypes?: ClosedReasonType[], closedReasonMsgs?: string[], 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,10 +39,12 @@ 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[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[]): Promise<Consult[]>;
|
|
42
|
+
getConsults(uuidPractice?: Uuid, uuidRequester?: Uuid, statusesMedical?: MedicalStatus[], statusesExclude?: MedicalStatus[], closedReasonTypes?: ClosedReasonType[], closedReasonMsgs?: string[], 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;
|
|
46
48
|
uuidAssignedDoctor?: Uuid;
|
|
47
49
|
neverExpires?: boolean;
|
|
48
50
|
}, uuidPractice?: Uuid, uuidRequester?: Uuid): Promise<Consult>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { APIService } from './api';
|
|
2
|
-
import { Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, Uuid, ResumeConsultEmailRequest } from '../models';
|
|
2
|
+
import { Consult, DataCreateResponse, LockboxDataRequest, MedicalStatus, Uuid, ResumeConsultEmailRequest, ClosedReasonType } 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, neverExpires?: boolean): Promise<Consult>;
|
|
8
|
+
updateConsultByUUID(patientUuid: Uuid, uuidConsult: Uuid, statusMedical: MedicalStatus, closedReasonType?: ClosedReasonType, closedReasonMsg?: string, 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,6 +82,14 @@ 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
|
+
|
|
85
93
|
export interface ConsultRequest {
|
|
86
94
|
uuidPractice: string
|
|
87
95
|
tagSpecialtyRequired: string
|
|
@@ -102,6 +110,8 @@ export interface Consult {
|
|
|
102
110
|
uuidAssignedDoctor: string
|
|
103
111
|
uuidCurrentAssigned: string
|
|
104
112
|
statusTask?: TaskStatus
|
|
113
|
+
closedReasonType?: ClosedReasonType
|
|
114
|
+
closedReasonMsg?: string
|
|
105
115
|
hasTransmissions?: boolean
|
|
106
116
|
assignedAssistant?: ConsultAssignedAssistant[]
|
|
107
117
|
shortId?: string
|
package/src/models/practice.ts
CHANGED
|
@@ -299,15 +299,19 @@ export type PracticeConfigPractitionerConsultList = PracticeConfig<
|
|
|
299
299
|
PracticeConfigKind.PractitionerConsultList,
|
|
300
300
|
{
|
|
301
301
|
/**
|
|
302
|
-
*
|
|
302
|
+
* Hides the locality column
|
|
303
303
|
*/
|
|
304
304
|
hideLocality?: boolean
|
|
305
305
|
/**
|
|
306
|
-
*
|
|
306
|
+
* Hides the plan name column
|
|
307
|
+
*/
|
|
308
|
+
hidePlan?: boolean
|
|
309
|
+
/**
|
|
310
|
+
* Hides the fax column
|
|
307
311
|
*/
|
|
308
312
|
hideFax?: boolean
|
|
309
313
|
/**
|
|
310
|
-
*
|
|
314
|
+
* Hides the expires at column
|
|
311
315
|
*/
|
|
312
316
|
hideExpiresAt?: boolean
|
|
313
317
|
}
|
package/src/services/consult.ts
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
ConsultRequest,
|
|
6
6
|
MedicalStatus,
|
|
7
7
|
ConsultTransmission,
|
|
8
|
+
ClosedReasonType,
|
|
8
9
|
TransmissionKind,
|
|
9
10
|
TransmissionStatus,
|
|
10
11
|
} from '../models'
|
|
@@ -38,6 +39,8 @@ export class ConsultService {
|
|
|
38
39
|
uuidRequester?: Uuid,
|
|
39
40
|
statusesMedical?: MedicalStatus[],
|
|
40
41
|
statusesExclude?: MedicalStatus[],
|
|
42
|
+
closedReasonTypes?: ClosedReasonType[],
|
|
43
|
+
closedReasonMsgs?: string[],
|
|
41
44
|
shortId?: string,
|
|
42
45
|
columnToSortTo?: string[],
|
|
43
46
|
orderToSortTo?: string[],
|
|
@@ -57,6 +60,8 @@ export class ConsultService {
|
|
|
57
60
|
uuidRequester,
|
|
58
61
|
statusesMedical,
|
|
59
62
|
statusesExclude,
|
|
63
|
+
closedReasonTypes,
|
|
64
|
+
closedReasonMsgs,
|
|
60
65
|
shortId,
|
|
61
66
|
perPage,
|
|
62
67
|
page: indexPage,
|
|
@@ -104,6 +109,8 @@ export class ConsultService {
|
|
|
104
109
|
uuidRequester?: Uuid,
|
|
105
110
|
statusesMedical?: MedicalStatus[],
|
|
106
111
|
statusesExclude?: MedicalStatus[],
|
|
112
|
+
closedReasonTypes?: ClosedReasonType[],
|
|
113
|
+
closedReasonMsgs?: string[],
|
|
107
114
|
shortId?: string,
|
|
108
115
|
columnToSortTo?: string[],
|
|
109
116
|
orderToSortTo?: string[],
|
|
@@ -120,6 +127,8 @@ export class ConsultService {
|
|
|
120
127
|
uuidRequester,
|
|
121
128
|
statusesMedical,
|
|
122
129
|
statusesExclude,
|
|
130
|
+
closedReasonTypes,
|
|
131
|
+
closedReasonMsgs,
|
|
123
132
|
shortId,
|
|
124
133
|
perPage,
|
|
125
134
|
page: indexPage,
|
|
@@ -141,6 +150,8 @@ export class ConsultService {
|
|
|
141
150
|
uuidConsult: Uuid,
|
|
142
151
|
consult: {
|
|
143
152
|
statusMedical?: MedicalStatus
|
|
153
|
+
closedReasonType?: ClosedReasonType
|
|
154
|
+
closedReasonMsg?: string
|
|
144
155
|
uuidAssignedDoctor?: Uuid
|
|
145
156
|
neverExpires?: boolean
|
|
146
157
|
},
|
package/src/services/teller.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
MedicalStatus,
|
|
7
7
|
Uuid,
|
|
8
8
|
ResumeConsultEmailRequest,
|
|
9
|
+
ClosedReasonType,
|
|
9
10
|
} from '../models'
|
|
10
11
|
export class TellerService {
|
|
11
12
|
constructor(private api: APIService, private baseURL: string) {}
|
|
@@ -28,11 +29,15 @@ export class TellerService {
|
|
|
28
29
|
patientUuid: Uuid,
|
|
29
30
|
uuidConsult: Uuid,
|
|
30
31
|
statusMedical: MedicalStatus,
|
|
32
|
+
closedReasonType?: ClosedReasonType,
|
|
33
|
+
closedReasonMsg?: string,
|
|
31
34
|
neverExpires?: boolean
|
|
32
35
|
): Promise<Consult> {
|
|
33
36
|
return this.api.put<Consult>(`${this.baseURL}/v1/consults/${uuidConsult}`, {
|
|
34
37
|
patientUuid,
|
|
35
38
|
statusMedical,
|
|
39
|
+
closedReasonType,
|
|
40
|
+
closedReasonMsg,
|
|
36
41
|
neverExpires,
|
|
37
42
|
})
|
|
38
43
|
}
|