oro-sdk-apis 7.3.1 → 7.4.1
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/oro-sdk-apis.cjs.development.js +33 -1
- 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 +33 -1
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/consult.d.ts +1 -1
- package/dist/services/diagnosis.d.ts +12 -1
- package/package.json +1 -1
- package/src/services/consult.ts +5 -1
- package/src/services/diagnosis.ts +43 -0
@@ -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[], uuidParent?: Uuid, typesConsult?: ConsultType[]): 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[], filterOnlyWithoutTransmission?: boolean, filterAfterDate?: Date): Promise<Consult[]>;
|
43
43
|
getConsultByUUID(uuidConsult: Uuid, uuidPractice?: Uuid): Promise<Consult>;
|
44
44
|
getConsultByPracticePaymentID(idPracticePayment: Number, uuidPractice?: Uuid): Promise<Consult>;
|
45
45
|
updateConsultByUUID(uuidConsult: Uuid, consult: {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Drug, TreatmentAssociatedConsultData, TreatmentPlan, TreatmentPlans, TreatmentPlansRequest, TreatmentPlansResponse, Uuid } from '..';
|
2
|
-
import { Diagnosis, Treatment, DiagnosisRequest, TreatmentAndDrugPrescriptionUpdateRequest, TreatmentRequest } from '../models/diagnosis';
|
2
|
+
import { Diagnosis, Treatment, DiagnosisRequest, TreatmentAndDrugPrescriptionUpdateRequest, TreatmentRequest, PlanStatus } from '../models/diagnosis';
|
3
3
|
import { APIService } from './api';
|
4
4
|
export declare class DiagnosisService {
|
5
5
|
private api;
|
@@ -34,12 +34,23 @@ export declare class DiagnosisService {
|
|
34
34
|
* @returns a TreatmentPlans object
|
35
35
|
*/
|
36
36
|
getTreatmentPlansPopulatedFromConsultUuid(uuidConsult: Uuid): Promise<TreatmentPlans>;
|
37
|
+
/**
|
38
|
+
* This function returns populated treatment plans associated consults in a list
|
39
|
+
* @param arrUuidsConsults the list of consult uuid to fetch the treatments for
|
40
|
+
* @param arrStatusesToInclude the PlanStatus to include
|
41
|
+
* @param dateDecidedAfter the date after which the treatment must have been decided
|
42
|
+
* @param dateDecidedBefore the date before which the treatment must have been decided
|
43
|
+
* @returns a TreatmentPlans object
|
44
|
+
*/
|
45
|
+
getTreatmentPlansWithStatusDecidedAfterDateForConsultsUuids(arrUuidsConsults: string[], arrStatusesToInclude?: PlanStatus[], dateDecidedAfter?: Date, dateDecidedBefore?: Date): Promise<TreatmentPlan[]>;
|
37
46
|
postPlans(plans: TreatmentPlansRequest): Promise<TreatmentPlansResponse>;
|
38
47
|
updateTreatmentPlan(uuidPlan: string, uuidConsult: string, diagnosisRequest: DiagnosisRequest, plan: TreatmentAndDrugPrescriptionUpdateRequest, refill?: boolean): Promise<TreatmentPlan>;
|
39
48
|
setAssociatedConsultsToTreatment(diagnosisUuid: string, treatmentUuid: string, arrAssociatedConsults: TreatmentAssociatedConsultData[]): Promise<TreatmentAssociatedConsultData[]>;
|
40
49
|
updateAssociatedConsultsToTreatment(diagnosisUuid: string, treatmentUuid: string, arrAssociatedConsults: TreatmentAssociatedConsultData[]): Promise<TreatmentAssociatedConsultData[]>;
|
41
50
|
getAssociatedConsultsOfTreatment(diagnosisUuid: string, treatmentUuid: string): Promise<TreatmentAssociatedConsultData[]>;
|
42
51
|
acceptTreatmentPlan(uuidPlan: string, uuidConsult: string): Promise<TreatmentPlan>;
|
52
|
+
updateTreatmentPlanStatusOnly(uuidPlan: string, uuidConsult: string, newStatus: PlanStatus): Promise<TreatmentPlan>;
|
53
|
+
updateTreatmentPlanNotesOnly(uuidPlan: string, uuidConsult: string, newNotes: string): Promise<TreatmentPlan>;
|
43
54
|
/**
|
44
55
|
* retrieves all the drugs of the specified practice
|
45
56
|
* @param uuidPractice
|
package/package.json
CHANGED
package/src/services/consult.ts
CHANGED
@@ -120,7 +120,9 @@ export class ConsultService {
|
|
120
120
|
filterIsoLocality?: string[],
|
121
121
|
filterAssignee?: string[],
|
122
122
|
uuidParent?: Uuid,
|
123
|
-
typesConsult?: ConsultType[]
|
123
|
+
typesConsult?: ConsultType[],
|
124
|
+
filterOnlyWithoutTransmission?: boolean,
|
125
|
+
filterAfterDate?: Date,
|
124
126
|
): Promise<Consult[]> {
|
125
127
|
return this.api.get<Consult[]>(`${this.baseURL}/v1/consults`, {
|
126
128
|
params: {
|
@@ -137,6 +139,8 @@ export class ConsultService {
|
|
137
139
|
filterCurrentPractitioner,
|
138
140
|
filterIsoLocality,
|
139
141
|
filterAssignee,
|
142
|
+
filterOnlyWithoutTransmission,
|
143
|
+
filterAfterDate,
|
140
144
|
typesConsult,
|
141
145
|
uuidParent,
|
142
146
|
},
|
@@ -15,6 +15,7 @@ import {
|
|
15
15
|
DiagnosisRequest,
|
16
16
|
TreatmentAndDrugPrescriptionUpdateRequest,
|
17
17
|
TreatmentRequest,
|
18
|
+
PlanStatus,
|
18
19
|
} from '../models/diagnosis'
|
19
20
|
import { APIService } from './api'
|
20
21
|
|
@@ -79,6 +80,30 @@ export class DiagnosisService {
|
|
79
80
|
})
|
80
81
|
}
|
81
82
|
|
83
|
+
/**
|
84
|
+
* This function returns populated treatment plans associated consults in a list
|
85
|
+
* @param arrUuidsConsults the list of consult uuid to fetch the treatments for
|
86
|
+
* @param arrStatusesToInclude the PlanStatus to include
|
87
|
+
* @param dateDecidedAfter the date after which the treatment must have been decided
|
88
|
+
* @param dateDecidedBefore the date before which the treatment must have been decided
|
89
|
+
* @returns a TreatmentPlans object
|
90
|
+
*/
|
91
|
+
public getTreatmentPlansWithStatusDecidedAfterDateForConsultsUuids(
|
92
|
+
arrUuidsConsults: string[],
|
93
|
+
arrStatusesToInclude?: PlanStatus[],
|
94
|
+
dateDecidedAfter?: Date,
|
95
|
+
dateDecidedBefore?: Date,
|
96
|
+
): Promise<TreatmentPlan[]> {
|
97
|
+
return this.api.get<TreatmentPlan[]>(`${this.baseURL}/v1/treatment-plans/`, {
|
98
|
+
params: {
|
99
|
+
filterByConsultsUuids : arrUuidsConsults,
|
100
|
+
statusesTreatmentPlanIncluded: arrStatusesToInclude,
|
101
|
+
filterDecidedAfterDate: dateDecidedAfter,
|
102
|
+
filterDecidedBeforeDate: dateDecidedBefore,
|
103
|
+
},
|
104
|
+
})
|
105
|
+
}
|
106
|
+
|
82
107
|
public postPlans(plans: TreatmentPlansRequest): Promise<TreatmentPlansResponse> {
|
83
108
|
return this.api.post<TreatmentPlansResponse>(`${this.baseURL}/v1/treatment-plans`, plans)
|
84
109
|
}
|
@@ -135,6 +160,24 @@ export class DiagnosisService {
|
|
135
160
|
return this.api.put<TreatmentPlan>(`${this.baseURL}/v1/treatment-plans/${uuidPlan}/accept`, { uuidConsult })
|
136
161
|
}
|
137
162
|
|
163
|
+
public updateTreatmentPlanStatusOnly(uuidPlan: string, uuidConsult: string, newStatus: PlanStatus): Promise<TreatmentPlan> {
|
164
|
+
return this.api.put<TreatmentPlan>(
|
165
|
+
`${this.baseURL}/v1/treatment-plans/${uuidPlan}`,
|
166
|
+
{
|
167
|
+
uuidConsult,
|
168
|
+
status: newStatus
|
169
|
+
})
|
170
|
+
}
|
171
|
+
|
172
|
+
public updateTreatmentPlanNotesOnly(uuidPlan: string, uuidConsult: string, newNotes: string): Promise<TreatmentPlan> {
|
173
|
+
return this.api.put<TreatmentPlan>(
|
174
|
+
`${this.baseURL}/v1/treatment-plans/${uuidPlan}`,
|
175
|
+
{
|
176
|
+
uuidConsult,
|
177
|
+
notes: newNotes
|
178
|
+
})
|
179
|
+
}
|
180
|
+
|
138
181
|
/**
|
139
182
|
* retrieves all the drugs of the specified practice
|
140
183
|
* @param uuidPractice
|