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.
@@ -1181,7 +1181,7 @@ var ConsultService = /*#__PURE__*/function () {
1181
1181
  }
1182
1182
  });
1183
1183
  };
1184
- _proto.postConsultTransmission = function postConsultTransmission(uuidConsult, nameDriver, addressOrPhoneToSendTo, file, nameReceiver, txtTransmissionTitle, txtTransmissionNotes
1184
+ _proto.postConsultTransmission = function postConsultTransmission(uuidConsult, nameDriver, addressOrPhoneToSendTo, file, nameReceiver, txtTransmissionTitle, txtTransmissionNotes, uuidPatient
1185
1185
  // numTry ?: number,
1186
1186
  // delay ?: number,
1187
1187
  ) {
@@ -1190,6 +1190,9 @@ var ConsultService = /*#__PURE__*/function () {
1190
1190
  }
1191
1191
  var data = new FormData();
1192
1192
  data.append('nameDriverReceiver', nameDriver);
1193
+ if (uuidPatient) {
1194
+ data.append('uuidPatient', uuidPatient);
1195
+ }
1193
1196
  if (addressOrPhoneToSendTo) {
1194
1197
  data.append('addressReceiver', addressOrPhoneToSendTo);
1195
1198
  }
@@ -1211,11 +1214,11 @@ var ConsultService = /*#__PURE__*/function () {
1211
1214
  }
1212
1215
  });
1213
1216
  };
1214
- _proto.postConsultFax = function postConsultFax(uuidConsult, addressReceiver, file) {
1215
- return this.postConsultTransmission(uuidConsult, 'Documo', addressReceiver, file);
1217
+ _proto.postConsultFax = function postConsultFax(uuidConsult, addressReceiver, file, uuidPatient) {
1218
+ return this.postConsultTransmission(uuidConsult, 'Documo', addressReceiver, file, undefined, undefined, undefined, uuidPatient);
1216
1219
  };
1217
- _proto.postConsultEmail = function postConsultEmail(uuidConsult, file) {
1218
- return this.postConsultTransmission(uuidConsult, 'Pharmacierge', undefined, file);
1220
+ _proto.postConsultEmail = function postConsultEmail(uuidConsult, file, uuidPatient) {
1221
+ return this.postConsultTransmission(uuidConsult, 'Pharmacierge', undefined, file, undefined, undefined, undefined, uuidPatient);
1219
1222
  };
1220
1223
  _proto.retryConsultFax = function retryConsultFax(uuidConsult, transmissionId) {
1221
1224
  return this.api.put(this.baseURL + "/v1/consults/" + uuidConsult + "/transmissions/" + transmissionId, {
@@ -1309,6 +1312,9 @@ var DiagnosisService = /*#__PURE__*/function () {
1309
1312
  _proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
1310
1313
  return this.api.put(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
1311
1314
  };
1315
+ _proto.getAssociatedConsultsOfTreatment = function getAssociatedConsultsOfTreatment(diagnosisUuid, treatmentUuid) {
1316
+ return this.api.get(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults");
1317
+ };
1312
1318
  _proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
1313
1319
  return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {
1314
1320
  uuidConsult: uuidConsult
@@ -2287,6 +2293,19 @@ var TellerService = /*#__PURE__*/function () {
2287
2293
  patientUuid: patientUuid
2288
2294
  });
2289
2295
  }
2296
+ /**
2297
+ * This function will send an email to the patientUuid, saying that the refill has been completed successfully
2298
+ * @todo - Make service only exposed route
2299
+ * @param consult
2300
+ * @param patientUuid
2301
+ * @returns void
2302
+ */;
2303
+ _proto.sendRefillFaxSucceededEmail = function sendRefillFaxSucceededEmail(consult, patientUuid) {
2304
+ return this.api.post(this.baseURL + "/v1/refill-confirm-email", {
2305
+ consult: consult,
2306
+ patientUuid: patientUuid
2307
+ });
2308
+ }
2290
2309
  /**
2291
2310
  * This function will send an email to patient to allow them to resume the consult.
2292
2311
  * @param req the body of the resume consult request