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.
@@ -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
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.3.1",
2
+ "version": "5.13.4",
3
3
  "main": "dist/index.js",
4
4
  "typings": "dist/index.d.ts",
5
5
  "files": [
@@ -55,4 +55,4 @@
55
55
  "buffer": "^6.0.3",
56
56
  "hash.js": "^1.1.7"
57
57
  }
58
- }
58
+ }
@@ -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
  }