oro-sdk-apis 5.14.1 → 5.15.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,6 +38,7 @@ export declare class DiagnosisService {
38
38
  updateTreatmentPlan(uuidPlan: string, uuidConsult: string, diagnosisRequest: DiagnosisRequest, plan: TreatmentAndDrugPrescriptionUpdateRequest, refill?: boolean): Promise<TreatmentPlan>;
39
39
  setAssociatedConsultsToTreatment(diagnosisUuid: string, treatmentUuid: string, arrAssociatedConsults: TreatmentAssociatedConsultData[]): Promise<TreatmentAssociatedConsultData[]>;
40
40
  updateAssociatedConsultsToTreatment(diagnosisUuid: string, treatmentUuid: string, arrAssociatedConsults: TreatmentAssociatedConsultData[]): Promise<TreatmentAssociatedConsultData[]>;
41
+ getAssociatedConsultsOfTreatment(diagnosisUuid: string, treatmentUuid: string): Promise<TreatmentAssociatedConsultData[]>;
41
42
  acceptTreatmentPlan(uuidPlan: string, uuidConsult: string): Promise<TreatmentPlan>;
42
43
  /**
43
44
  * retrieves all the drugs of the specified practice
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.14.1",
2
+ "version": "5.15.0",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -122,6 +122,15 @@ export class DiagnosisService {
122
122
  )
123
123
  }
124
124
 
125
+ public getAssociatedConsultsOfTreatment(
126
+ diagnosisUuid: string,
127
+ treatmentUuid: string
128
+ ): Promise<TreatmentAssociatedConsultData[]> {
129
+ return this.api.get<TreatmentAssociatedConsultData[]>(
130
+ `${this.baseURL}/v1/diagnoses/${diagnosisUuid}/treatments/${treatmentUuid}/associated-consults`
131
+ )
132
+ }
133
+
125
134
  public acceptTreatmentPlan(uuidPlan: string, uuidConsult: string): Promise<TreatmentPlan> {
126
135
  return this.api.put<TreatmentPlan>(`${this.baseURL}/v1/treatment-plans/${uuidPlan}/accept`, { uuidConsult })
127
136
  }