oro-sdk-apis 5.14.1 → 5.15.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1225,7 +1225,7 @@ var ConsultService = /*#__PURE__*/function () {
1225
1225
  }
1226
1226
  });
1227
1227
  };
1228
- _proto.postConsultTransmission = function postConsultTransmission(uuidConsult, nameDriver, addressOrPhoneToSendTo, file, nameReceiver, txtTransmissionTitle, txtTransmissionNotes
1228
+ _proto.postConsultTransmission = function postConsultTransmission(uuidConsult, nameDriver, addressOrPhoneToSendTo, file, nameReceiver, txtTransmissionTitle, txtTransmissionNotes, uuidPatient
1229
1229
  // numTry ?: number,
1230
1230
  // delay ?: number,
1231
1231
  ) {
@@ -1234,6 +1234,9 @@ var ConsultService = /*#__PURE__*/function () {
1234
1234
  }
1235
1235
  var data = new FormData();
1236
1236
  data.append('nameDriverReceiver', nameDriver);
1237
+ if (uuidPatient) {
1238
+ data.append('uuidPatient', uuidPatient);
1239
+ }
1237
1240
  if (addressOrPhoneToSendTo) {
1238
1241
  data.append('addressReceiver', addressOrPhoneToSendTo);
1239
1242
  }
@@ -1255,11 +1258,11 @@ var ConsultService = /*#__PURE__*/function () {
1255
1258
  }
1256
1259
  });
1257
1260
  };
1258
- _proto.postConsultFax = function postConsultFax(uuidConsult, addressReceiver, file) {
1259
- return this.postConsultTransmission(uuidConsult, 'Documo', addressReceiver, file);
1261
+ _proto.postConsultFax = function postConsultFax(uuidConsult, addressReceiver, file, uuidPatient) {
1262
+ return this.postConsultTransmission(uuidConsult, 'Documo', addressReceiver, file, undefined, undefined, undefined, uuidPatient);
1260
1263
  };
1261
- _proto.postConsultEmail = function postConsultEmail(uuidConsult, file) {
1262
- return this.postConsultTransmission(uuidConsult, 'Pharmacierge', undefined, file);
1264
+ _proto.postConsultEmail = function postConsultEmail(uuidConsult, file, uuidPatient) {
1265
+ return this.postConsultTransmission(uuidConsult, 'Pharmacierge', undefined, file, undefined, undefined, undefined, uuidPatient);
1263
1266
  };
1264
1267
  _proto.retryConsultFax = function retryConsultFax(uuidConsult, transmissionId) {
1265
1268
  return this.api.put(this.baseURL + "/v1/consults/" + uuidConsult + "/transmissions/" + transmissionId, {
@@ -1353,6 +1356,9 @@ var DiagnosisService = /*#__PURE__*/function () {
1353
1356
  _proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
1354
1357
  return this.api.put(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
1355
1358
  };
1359
+ _proto.getAssociatedConsultsOfTreatment = function getAssociatedConsultsOfTreatment(diagnosisUuid, treatmentUuid) {
1360
+ return this.api.get(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults");
1361
+ };
1356
1362
  _proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
1357
1363
  return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {
1358
1364
  uuidConsult: uuidConsult
@@ -2331,6 +2337,19 @@ var TellerService = /*#__PURE__*/function () {
2331
2337
  patientUuid: patientUuid
2332
2338
  });
2333
2339
  }
2340
+ /**
2341
+ * This function will send an email to the patientUuid, saying that the refill has been completed successfully
2342
+ * @todo - Make service only exposed route
2343
+ * @param consult
2344
+ * @param patientUuid
2345
+ * @returns void
2346
+ */;
2347
+ _proto.sendRefillFaxSucceededEmail = function sendRefillFaxSucceededEmail(consult, patientUuid) {
2348
+ return this.api.post(this.baseURL + "/v1/refill-confirm-email", {
2349
+ consult: consult,
2350
+ patientUuid: patientUuid
2351
+ });
2352
+ }
2334
2353
  /**
2335
2354
  * This function will send an email to patient to allow them to resume the consult.
2336
2355
  * @param req the body of the resume consult request