oro-sdk-apis 7.4.0 → 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 +12 -0
- 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 +12 -0
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/diagnosis.d.ts +3 -1
- package/package.json +1 -1
- package/src/services/diagnosis.ts +20 -2
@@ -42,13 +42,15 @@ export declare class DiagnosisService {
|
|
42
42
|
* @param dateDecidedBefore the date before which the treatment must have been decided
|
43
43
|
* @returns a TreatmentPlans object
|
44
44
|
*/
|
45
|
-
getTreatmentPlansWithStatusDecidedAfterDateForConsultsUuids(arrUuidsConsults: string[], arrStatusesToInclude?: PlanStatus[], dateDecidedAfter?: Date, dateDecidedBefore?: Date): Promise<
|
45
|
+
getTreatmentPlansWithStatusDecidedAfterDateForConsultsUuids(arrUuidsConsults: string[], arrStatusesToInclude?: PlanStatus[], dateDecidedAfter?: Date, dateDecidedBefore?: Date): Promise<TreatmentPlan[]>;
|
46
46
|
postPlans(plans: TreatmentPlansRequest): Promise<TreatmentPlansResponse>;
|
47
47
|
updateTreatmentPlan(uuidPlan: string, uuidConsult: string, diagnosisRequest: DiagnosisRequest, plan: TreatmentAndDrugPrescriptionUpdateRequest, refill?: boolean): Promise<TreatmentPlan>;
|
48
48
|
setAssociatedConsultsToTreatment(diagnosisUuid: string, treatmentUuid: string, arrAssociatedConsults: TreatmentAssociatedConsultData[]): Promise<TreatmentAssociatedConsultData[]>;
|
49
49
|
updateAssociatedConsultsToTreatment(diagnosisUuid: string, treatmentUuid: string, arrAssociatedConsults: TreatmentAssociatedConsultData[]): Promise<TreatmentAssociatedConsultData[]>;
|
50
50
|
getAssociatedConsultsOfTreatment(diagnosisUuid: string, treatmentUuid: string): Promise<TreatmentAssociatedConsultData[]>;
|
51
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>;
|
52
54
|
/**
|
53
55
|
* retrieves all the drugs of the specified practice
|
54
56
|
* @param uuidPractice
|
package/package.json
CHANGED
@@ -93,8 +93,8 @@ export class DiagnosisService {
|
|
93
93
|
arrStatusesToInclude?: PlanStatus[],
|
94
94
|
dateDecidedAfter?: Date,
|
95
95
|
dateDecidedBefore?: Date,
|
96
|
-
): Promise<
|
97
|
-
return this.api.get<
|
96
|
+
): Promise<TreatmentPlan[]> {
|
97
|
+
return this.api.get<TreatmentPlan[]>(`${this.baseURL}/v1/treatment-plans/`, {
|
98
98
|
params: {
|
99
99
|
filterByConsultsUuids : arrUuidsConsults,
|
100
100
|
statusesTreatmentPlanIncluded: arrStatusesToInclude,
|
@@ -160,6 +160,24 @@ export class DiagnosisService {
|
|
160
160
|
return this.api.put<TreatmentPlan>(`${this.baseURL}/v1/treatment-plans/${uuidPlan}/accept`, { uuidConsult })
|
161
161
|
}
|
162
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
|
+
|
163
181
|
/**
|
164
182
|
* retrieves all the drugs of the specified practice
|
165
183
|
* @param uuidPractice
|