oro-sdk-apis 3.2.5 → 3.2.7
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/practice.d.ts +1 -1
- package/dist/oro-sdk-apis.cjs.development.js +8 -4
- 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 +8 -4
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/consult.d.ts +3 -3
- package/package.json +1 -1
- package/src/models/practice.ts +1 -1
- package/src/services/consult.ts +12 -3
@@ -1,5 +1,5 @@
|
|
1
1
|
import { APIService } from './api';
|
2
|
-
import { Uuid, Consult, ConsultRequest, MedicalStatus, ConsultTransmission, ClosedReasonType, TransmissionStatus } from '../models';
|
2
|
+
import { Uuid, Consult, ConsultRequest, MedicalStatus, ConsultTransmission, ClosedReasonType, TransmissionStatus, ConsultType } 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[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[], typesConsult?: ConsultType[], uuidParent?: Uuid): Promise<number>;
|
26
26
|
/**
|
27
27
|
* This function get consults using parameters
|
28
28
|
* @param uuidPractice the practice uuid
|
@@ -39,7 +39,7 @@ 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[], shortId?: string, columnToSortTo?: string[], orderToSortTo?: string[], perPage?: number, indexPage?: number, filterAssignedDoctor?: string, filterCurrentPractitioner?: string, filterIsoLocality?: string[], filterAssignee?: string[], uuidParent?: Uuid, typesConsult?: ConsultType[]): Promise<Consult[]>;
|
43
43
|
getConsultByUUID(uuidConsult: Uuid, uuidPractice?: Uuid): Promise<Consult>;
|
44
44
|
updateConsultByUUID(uuidConsult: Uuid, consult: {
|
45
45
|
statusMedical?: MedicalStatus;
|
package/package.json
CHANGED
package/src/models/practice.ts
CHANGED
@@ -534,7 +534,7 @@ export interface PracticePayment {
|
|
534
534
|
id?: number ///optional for insertion
|
535
535
|
uuidPractice: string
|
536
536
|
idPlan: number
|
537
|
-
uuidConsult
|
537
|
+
uuidConsult?: string
|
538
538
|
hoursConsultExpiration: number
|
539
539
|
idStripeInvoiceOrPaymentIntent: string
|
540
540
|
status: PaymentStatus
|
package/src/services/consult.ts
CHANGED
@@ -8,10 +8,11 @@ import {
|
|
8
8
|
ClosedReasonType,
|
9
9
|
TransmissionKind,
|
10
10
|
TransmissionStatus,
|
11
|
+
ConsultType,
|
11
12
|
} from '../models'
|
12
13
|
|
13
14
|
export class ConsultService {
|
14
|
-
constructor(private api: APIService, private baseURL: string) {}
|
15
|
+
constructor(private api: APIService, private baseURL: string) { }
|
15
16
|
|
16
17
|
public consultCreate(c: ConsultRequest): Promise<Consult> {
|
17
18
|
return this.api.post<Consult>(`${this.baseURL}/v1/consults`, c)
|
@@ -47,7 +48,9 @@ export class ConsultService {
|
|
47
48
|
filterAssignedDoctor?: string,
|
48
49
|
filterCurrentPractitioner?: string,
|
49
50
|
filterIsoLocality?: string[],
|
50
|
-
filterAssignee?: string[]
|
51
|
+
filterAssignee?: string[],
|
52
|
+
typesConsult?: ConsultType[],
|
53
|
+
uuidParent?: Uuid
|
51
54
|
): Promise<number> {
|
52
55
|
return this.api
|
53
56
|
.head<any>(
|
@@ -67,6 +70,8 @@ export class ConsultService {
|
|
67
70
|
filterCurrentPractitioner,
|
68
71
|
filterIsoLocality,
|
69
72
|
filterAssignee,
|
73
|
+
typesConsult,
|
74
|
+
uuidParent
|
70
75
|
},
|
71
76
|
},
|
72
77
|
'Content-Range'
|
@@ -113,7 +118,9 @@ export class ConsultService {
|
|
113
118
|
filterAssignedDoctor?: string,
|
114
119
|
filterCurrentPractitioner?: string,
|
115
120
|
filterIsoLocality?: string[],
|
116
|
-
filterAssignee?: string[]
|
121
|
+
filterAssignee?: string[],
|
122
|
+
uuidParent?: Uuid,
|
123
|
+
typesConsult?: ConsultType[],
|
117
124
|
): Promise<Consult[]> {
|
118
125
|
return this.api.get<Consult[]>(`${this.baseURL}/v1/consults`, {
|
119
126
|
params: {
|
@@ -130,6 +137,8 @@ export class ConsultService {
|
|
130
137
|
filterCurrentPractitioner,
|
131
138
|
filterIsoLocality,
|
132
139
|
filterAssignee,
|
140
|
+
typesConsult,
|
141
|
+
uuidParent,
|
133
142
|
},
|
134
143
|
})
|
135
144
|
}
|