oro-sdk-apis 4.3.2 → 5.13.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1290,24 +1290,11 @@ 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);
1293
+ _proto.setAssociatedConsultsToTreatment = function setAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
1294
+ return this.api.post(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
1308
1295
  };
1309
- _proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(uuidPlan, arrAssociatedConsults) {
1310
- return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/associated-consults", arrAssociatedConsults);
1296
+ _proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
1297
+ return this.api.put(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
1311
1298
  };
1312
1299
  _proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
1313
1300
  return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {