oro-sdk-apis 4.3.2 → 5.13.5

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.
@@ -916,6 +916,7 @@ var PaymentStatus;
916
916
  PaymentStatus["Success"] = "Success";
917
917
  PaymentStatus["Failure"] = "Failure";
918
918
  PaymentStatus["Canceled"] = "Canceled";
919
+ PaymentStatus["SuccessAndDelivered"] = "SuccessAndDelivered";
919
920
  })(PaymentStatus || (PaymentStatus = {}));
920
921
  var PractitionerStatus;
921
922
  (function (PractitionerStatus) {
@@ -1200,6 +1201,13 @@ var ConsultService = /*#__PURE__*/function () {
1200
1201
  }
1201
1202
  });
1202
1203
  };
1204
+ _proto.getConsultByPracticePaymentID = function getConsultByPracticePaymentID(idPracticePayment, uuidPractice) {
1205
+ return this.api.get(this.baseURL + "/v1/consults/payment-" + idPracticePayment, {
1206
+ params: {
1207
+ uuidPractice: uuidPractice
1208
+ }
1209
+ });
1210
+ };
1203
1211
  _proto.updateConsultByUUID = function updateConsultByUUID(uuidConsult, consult, uuidPractice, uuidRequester) {
1204
1212
  return this.api.put(this.baseURL + "/v1/consults/" + uuidConsult, consult, {
1205
1213
  params: {
@@ -1334,24 +1342,11 @@ var DiagnosisService = /*#__PURE__*/function () {
1334
1342
  refill: refill
1335
1343
  });
1336
1344
  };
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);
1345
+ _proto.setAssociatedConsultsToTreatment = function setAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
1346
+ return this.api.post(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
1352
1347
  };
1353
- _proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(uuidPlan, arrAssociatedConsults) {
1354
- return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/associated-consults", arrAssociatedConsults);
1348
+ _proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
1349
+ return this.api.put(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
1355
1350
  };
1356
1351
  _proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
1357
1352
  return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {