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.
@@ -1334,6 +1334,25 @@ var DiagnosisService = /*#__PURE__*/function () {
1334
1334
  refill: refill
1335
1335
  });
1336
1336
  };
1337
+ _proto.updateTreatmentPlanAndSetAssociatedConsult = function updateTreatmentPlanAndSetAssociatedConsult(uuidPlan, consultAssociated, diagnosisRequest, plan, refill) {
1338
+ var associatedConsultData = {
1339
+ uuidConsult: consultAssociated.uuid,
1340
+ consultKind: consultAssociated.consultType
1341
+ };
1342
+ //this is fire and forget and may fail later
1343
+ try {
1344
+ this.updateAssociatedConsultsToTreatment(uuidPlan, [associatedConsultData]);
1345
+ } catch (_unused) {
1346
+ console.error("[SDK Diagnosis] We failed to updated associated consult to the treatment plan " + uuidPlan);
1347
+ }
1348
+ return this.updateTreatmentPlan(uuidPlan, consultAssociated.uuid, diagnosisRequest, plan, refill);
1349
+ };
1350
+ _proto.setAssociatedConsultsToTreatment = function setAssociatedConsultsToTreatment(uuidPlan, arrAssociatedConsults) {
1351
+ return this.api.post(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/associated-consults", arrAssociatedConsults);
1352
+ };
1353
+ _proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(uuidPlan, arrAssociatedConsults) {
1354
+ return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/associated-consults", arrAssociatedConsults);
1355
+ };
1337
1356
  _proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
1338
1357
  return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {
1339
1358
  uuidConsult: uuidConsult