oro-sdk-apis 4.3.1 → 4.3.2

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.
@@ -166,3 +166,5 @@ export interface TreatmentPlansResponseEntry {
166
166
  }
167
167
  export interface TreatmentPlansResponse extends Array<TreatmentPlansResponseEntry> {
168
168
  }
169
+ export interface TreatmentAssociatedConsultDataResponse extends Array<TreatmentAssociatedConsultData> {
170
+ }
@@ -1290,6 +1290,25 @@ var DiagnosisService = /*#__PURE__*/function () {
1290
1290
  refill: refill
1291
1291
  });
1292
1292
  };
1293
+ _proto.updateTreatmentPlanAndSetAssociatedConsult = function updateTreatmentPlanAndSetAssociatedConsult(uuidPlan, consultAssociated, diagnosisRequest, plan, refill) {
1294
+ var associatedConsultData = {
1295
+ uuidConsult: consultAssociated.uuid,
1296
+ consultKind: consultAssociated.consultType
1297
+ };
1298
+ //this is fire and forget and may fail later
1299
+ try {
1300
+ this.updateAssociatedConsultsToTreatment(uuidPlan, [associatedConsultData]);
1301
+ } catch (_unused) {
1302
+ console.error("[SDK Diagnosis] We failed to updated associated consult to the treatment plan " + uuidPlan);
1303
+ }
1304
+ return this.updateTreatmentPlan(uuidPlan, consultAssociated.uuid, diagnosisRequest, plan, refill);
1305
+ };
1306
+ _proto.setAssociatedConsultsToTreatment = function setAssociatedConsultsToTreatment(uuidPlan, arrAssociatedConsults) {
1307
+ return this.api.post(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/associated-consults", arrAssociatedConsults);
1308
+ };
1309
+ _proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(uuidPlan, arrAssociatedConsults) {
1310
+ return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/associated-consults", arrAssociatedConsults);
1311
+ };
1293
1312
  _proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
1294
1313
  return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {
1295
1314
  uuidConsult: uuidConsult