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.
- package/dist/models/practice.d.ts +2 -1
- package/dist/oro-sdk-apis.cjs.development.js +12 -17
- 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 +12 -17
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/consult.d.ts +1 -0
- package/dist/services/diagnosis.d.ts +3 -4
- package/package.json +1 -1
- package/src/models/practice.ts +1 -0
- package/src/services/consult.ts +9 -3
- package/src/services/diagnosis.ts +6 -26
package/dist/oro-sdk-apis.esm.js
CHANGED
@@ -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.
|
1338
|
-
|
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(
|
1354
|
-
return this.api.put(this.baseURL + "/v1/
|
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", {
|