oro-sdk-apis 5.14.1 → 5.15.1-dev1

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.
@@ -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
  }
@@ -1205,17 +1208,19 @@ var ConsultService = /*#__PURE__*/function () {
1205
1208
  if (txtTransmissionNotes) {
1206
1209
  data.append('txtTransmissionNotes', txtTransmissionNotes);
1207
1210
  }
1208
- return this.api.post(this.baseURL + "/v1/consults/" + uuidConsult + "/transmissions", data, {
1211
+ var res = this.api.post(this.baseURL + "/v1/consults/" + uuidConsult + "/transmissions", data, {
1209
1212
  headers: {
1210
1213
  'Content-Type': 'multipart/form-data;'
1211
1214
  }
1212
1215
  });
1216
+ console.log(res);
1217
+ return res;
1213
1218
  };
1214
- _proto.postConsultFax = function postConsultFax(uuidConsult, addressReceiver, file) {
1215
- return this.postConsultTransmission(uuidConsult, 'Documo', addressReceiver, file);
1219
+ _proto.postConsultFax = function postConsultFax(uuidConsult, addressReceiver, file, uuidPatient) {
1220
+ return this.postConsultTransmission(uuidConsult, 'Documo', addressReceiver, file, undefined, undefined, undefined, uuidPatient);
1216
1221
  };
1217
- _proto.postConsultEmail = function postConsultEmail(uuidConsult, file) {
1218
- return this.postConsultTransmission(uuidConsult, 'Pharmacierge', undefined, file);
1222
+ _proto.postConsultEmail = function postConsultEmail(uuidConsult, file, uuidPatient) {
1223
+ return this.postConsultTransmission(uuidConsult, 'Pharmacierge', undefined, file, undefined, undefined, undefined, uuidPatient);
1219
1224
  };
1220
1225
  _proto.retryConsultFax = function retryConsultFax(uuidConsult, transmissionId) {
1221
1226
  return this.api.put(this.baseURL + "/v1/consults/" + uuidConsult + "/transmissions/" + transmissionId, {
@@ -1309,6 +1314,9 @@ var DiagnosisService = /*#__PURE__*/function () {
1309
1314
  _proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
1310
1315
  return this.api.put(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
1311
1316
  };
1317
+ _proto.getAssociatedConsultsOfTreatment = function getAssociatedConsultsOfTreatment(diagnosisUuid, treatmentUuid) {
1318
+ return this.api.get(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults");
1319
+ };
1312
1320
  _proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
1313
1321
  return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {
1314
1322
  uuidConsult: uuidConsult
@@ -2287,6 +2295,19 @@ var TellerService = /*#__PURE__*/function () {
2287
2295
  patientUuid: patientUuid
2288
2296
  });
2289
2297
  }
2298
+ /**
2299
+ * This function will send an email to the patientUuid, saying that the refill has been completed successfully
2300
+ * @todo - Make service only exposed route
2301
+ * @param consult
2302
+ * @param patientUuid
2303
+ * @returns void
2304
+ */;
2305
+ _proto.sendRefillFaxSucceededEmail = function sendRefillFaxSucceededEmail(consult, patientUuid) {
2306
+ return this.api.post(this.baseURL + "/v1/refill-confirm-email", {
2307
+ consult: consult,
2308
+ patientUuid: patientUuid
2309
+ });
2310
+ }
2290
2311
  /**
2291
2312
  * This function will send an email to patient to allow them to resume the consult.
2292
2313
  * @param req the body of the resume consult request