oro-sdk-apis 4.3.1 → 5.13.4
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/diagnosis.d.ts +2 -0
- package/dist/oro-sdk-apis.cjs.development.js +6 -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 +6 -0
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/diagnosis.d.ts +3 -1
- package/package.json +2 -2
- package/src/models/diagnosis.ts +3 -1
- package/src/services/diagnosis.ts +24 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Drug, TreatmentPlan, TreatmentPlans, TreatmentPlansRequest, TreatmentPlansResponse, Uuid } from '..';
|
1
|
+
import { Drug, TreatmentAssociatedConsultData, TreatmentPlan, TreatmentPlans, TreatmentPlansRequest, TreatmentPlansResponse, Uuid } from '..';
|
2
2
|
import { Diagnosis, Treatment, DiagnosisRequest, TreatmentAndDrugPrescriptionUpdateRequest, TreatmentRequest } from '../models/diagnosis';
|
3
3
|
import { APIService } from './api';
|
4
4
|
export declare class DiagnosisService {
|
@@ -35,6 +35,8 @@ export declare class DiagnosisService {
|
|
35
35
|
getTreatmentPlansPopulatedFromConsultUuid(uuidConsult: Uuid): Promise<TreatmentPlans>;
|
36
36
|
postPlans(plans: TreatmentPlansRequest): Promise<TreatmentPlansResponse>;
|
37
37
|
updateTreatmentPlan(uuidPlan: string, uuidConsult: string, diagnosisRequest: DiagnosisRequest, plan: TreatmentAndDrugPrescriptionUpdateRequest, refill?: boolean): Promise<TreatmentPlan>;
|
38
|
+
setAssociatedConsultsToTreatment(diagnosisUuid: string, treatmentUuid: string, arrAssociatedConsults: TreatmentAssociatedConsultData[]): Promise<TreatmentAssociatedConsultData[]>;
|
39
|
+
updateAssociatedConsultsToTreatment(diagnosisUuid: string, treatmentUuid: string, arrAssociatedConsults: TreatmentAssociatedConsultData[]): Promise<TreatmentAssociatedConsultData[]>;
|
38
40
|
acceptTreatmentPlan(uuidPlan: string, uuidConsult: string): Promise<TreatmentPlan>;
|
39
41
|
/**
|
40
42
|
* retrieves all the drugs of the specified practice
|
package/package.json
CHANGED
package/src/models/diagnosis.ts
CHANGED
@@ -191,4 +191,6 @@ export interface TreatmentPlansResponseEntry {
|
|
191
191
|
treatmentPlan: TreatmentPlan
|
192
192
|
}
|
193
193
|
|
194
|
-
export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
|
194
|
+
export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {}
|
195
|
+
|
196
|
+
export interface TreatmentAssociatedConsultDataResponse extends Array<TreatmentAssociatedConsultData> {}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import {
|
2
|
+
Consult,
|
2
3
|
Drug,
|
4
|
+
TreatmentAssociatedConsultData,
|
3
5
|
TreatmentPlan,
|
4
6
|
TreatmentPlans,
|
5
7
|
TreatmentPlansRequest,
|
@@ -94,6 +96,28 @@ export class DiagnosisService {
|
|
94
96
|
})
|
95
97
|
}
|
96
98
|
|
99
|
+
public setAssociatedConsultsToTreatment(
|
100
|
+
diagnosisUuid: string,
|
101
|
+
treatmentUuid: string,
|
102
|
+
arrAssociatedConsults: TreatmentAssociatedConsultData[]
|
103
|
+
): Promise<TreatmentAssociatedConsultData[]> {
|
104
|
+
return this.api.post<TreatmentAssociatedConsultData[]>(
|
105
|
+
`${this.baseURL}/v1/diagnoses/${diagnosisUuid}/treatments/${treatmentUuid}/associated-consults`,
|
106
|
+
arrAssociatedConsults
|
107
|
+
)
|
108
|
+
}
|
109
|
+
|
110
|
+
public updateAssociatedConsultsToTreatment(
|
111
|
+
diagnosisUuid: string,
|
112
|
+
treatmentUuid: string,
|
113
|
+
arrAssociatedConsults: TreatmentAssociatedConsultData[]
|
114
|
+
): Promise<TreatmentAssociatedConsultData[]> {
|
115
|
+
return this.api.put<TreatmentAssociatedConsultData[]>(
|
116
|
+
`${this.baseURL}/v1/diagnoses/${diagnosisUuid}/treatments/${treatmentUuid}/associated-consults`,
|
117
|
+
arrAssociatedConsults
|
118
|
+
)
|
119
|
+
}
|
120
|
+
|
97
121
|
public acceptTreatmentPlan(uuidPlan: string, uuidConsult: string): Promise<TreatmentPlan> {
|
98
122
|
return this.api.put<TreatmentPlan>(`${this.baseURL}/v1/treatment-plans/${uuidPlan}/accept`, { uuidConsult })
|
99
123
|
}
|