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.
- package/dist/oro-sdk-apis.cjs.development.js +27 -6
- package/dist/oro-sdk-apis.cjs.development.js.map +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js +1 -1
- package/dist/oro-sdk-apis.cjs.production.min.js.map +1 -1
- package/dist/oro-sdk-apis.esm.js +27 -6
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/consult.d.ts +3 -3
- package/dist/services/diagnosis.d.ts +1 -0
- package/dist/services/teller.d.ts +8 -0
- package/package.json +1 -1
- package/src/services/consult.ts +37 -6
- package/src/services/diagnosis.ts +9 -0
- package/src/services/teller.ts +11 -0
package/dist/oro-sdk-apis.esm.js
CHANGED
@@ -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
|
}
|
@@ -1249,17 +1252,19 @@ var ConsultService = /*#__PURE__*/function () {
|
|
1249
1252
|
if (txtTransmissionNotes) {
|
1250
1253
|
data.append('txtTransmissionNotes', txtTransmissionNotes);
|
1251
1254
|
}
|
1252
|
-
|
1255
|
+
var res = this.api.post(this.baseURL + "/v1/consults/" + uuidConsult + "/transmissions", data, {
|
1253
1256
|
headers: {
|
1254
1257
|
'Content-Type': 'multipart/form-data;'
|
1255
1258
|
}
|
1256
1259
|
});
|
1260
|
+
console.log(res);
|
1261
|
+
return res;
|
1257
1262
|
};
|
1258
|
-
_proto.postConsultFax = function postConsultFax(uuidConsult, addressReceiver, file) {
|
1259
|
-
return this.postConsultTransmission(uuidConsult, 'Documo', addressReceiver, file);
|
1263
|
+
_proto.postConsultFax = function postConsultFax(uuidConsult, addressReceiver, file, uuidPatient) {
|
1264
|
+
return this.postConsultTransmission(uuidConsult, 'Documo', addressReceiver, file, undefined, undefined, undefined, uuidPatient);
|
1260
1265
|
};
|
1261
|
-
_proto.postConsultEmail = function postConsultEmail(uuidConsult, file) {
|
1262
|
-
return this.postConsultTransmission(uuidConsult, 'Pharmacierge', undefined, file);
|
1266
|
+
_proto.postConsultEmail = function postConsultEmail(uuidConsult, file, uuidPatient) {
|
1267
|
+
return this.postConsultTransmission(uuidConsult, 'Pharmacierge', undefined, file, undefined, undefined, undefined, uuidPatient);
|
1263
1268
|
};
|
1264
1269
|
_proto.retryConsultFax = function retryConsultFax(uuidConsult, transmissionId) {
|
1265
1270
|
return this.api.put(this.baseURL + "/v1/consults/" + uuidConsult + "/transmissions/" + transmissionId, {
|
@@ -1353,6 +1358,9 @@ var DiagnosisService = /*#__PURE__*/function () {
|
|
1353
1358
|
_proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
|
1354
1359
|
return this.api.put(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
|
1355
1360
|
};
|
1361
|
+
_proto.getAssociatedConsultsOfTreatment = function getAssociatedConsultsOfTreatment(diagnosisUuid, treatmentUuid) {
|
1362
|
+
return this.api.get(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults");
|
1363
|
+
};
|
1356
1364
|
_proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
|
1357
1365
|
return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {
|
1358
1366
|
uuidConsult: uuidConsult
|
@@ -2331,6 +2339,19 @@ var TellerService = /*#__PURE__*/function () {
|
|
2331
2339
|
patientUuid: patientUuid
|
2332
2340
|
});
|
2333
2341
|
}
|
2342
|
+
/**
|
2343
|
+
* This function will send an email to the patientUuid, saying that the refill has been completed successfully
|
2344
|
+
* @todo - Make service only exposed route
|
2345
|
+
* @param consult
|
2346
|
+
* @param patientUuid
|
2347
|
+
* @returns void
|
2348
|
+
*/;
|
2349
|
+
_proto.sendRefillFaxSucceededEmail = function sendRefillFaxSucceededEmail(consult, patientUuid) {
|
2350
|
+
return this.api.post(this.baseURL + "/v1/refill-confirm-email", {
|
2351
|
+
consult: consult,
|
2352
|
+
patientUuid: patientUuid
|
2353
|
+
});
|
2354
|
+
}
|
2334
2355
|
/**
|
2335
2356
|
* This function will send an email to patient to allow them to resume the consult.
|
2336
2357
|
* @param req the body of the resume consult request
|