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
@@ -25,7 +25,8 @@ export declare enum PaymentStatus {
|
|
25
25
|
Pending = "Pending",
|
26
26
|
Success = "Success",
|
27
27
|
Failure = "Failure",
|
28
|
-
Canceled = "Canceled"
|
28
|
+
Canceled = "Canceled",
|
29
|
+
SuccessAndDelivered = "SuccessAndDelivered"
|
29
30
|
}
|
30
31
|
export declare enum PractitionerStatus {
|
31
32
|
Practicing = "Practicing",
|
@@ -902,6 +902,7 @@ var VaultDataMissing = /*#__PURE__*/function (_Error8) {
|
|
902
902
|
PaymentStatus["Success"] = "Success";
|
903
903
|
PaymentStatus["Failure"] = "Failure";
|
904
904
|
PaymentStatus["Canceled"] = "Canceled";
|
905
|
+
PaymentStatus["SuccessAndDelivered"] = "SuccessAndDelivered";
|
905
906
|
})(exports.PaymentStatus || (exports.PaymentStatus = {}));
|
906
907
|
(function (PractitionerStatus) {
|
907
908
|
PractitionerStatus["Practicing"] = "Practicing";
|
@@ -1156,6 +1157,13 @@ var ConsultService = /*#__PURE__*/function () {
|
|
1156
1157
|
}
|
1157
1158
|
});
|
1158
1159
|
};
|
1160
|
+
_proto.getConsultByPracticePaymentID = function getConsultByPracticePaymentID(idPracticePayment, uuidPractice) {
|
1161
|
+
return this.api.get(this.baseURL + "/v1/consults/payment-" + idPracticePayment, {
|
1162
|
+
params: {
|
1163
|
+
uuidPractice: uuidPractice
|
1164
|
+
}
|
1165
|
+
});
|
1166
|
+
};
|
1159
1167
|
_proto.updateConsultByUUID = function updateConsultByUUID(uuidConsult, consult, uuidPractice, uuidRequester) {
|
1160
1168
|
return this.api.put(this.baseURL + "/v1/consults/" + uuidConsult, consult, {
|
1161
1169
|
params: {
|
@@ -1290,24 +1298,11 @@ var DiagnosisService = /*#__PURE__*/function () {
|
|
1290
1298
|
refill: refill
|
1291
1299
|
});
|
1292
1300
|
};
|
1293
|
-
_proto.
|
1294
|
-
|
1295
|
-
uuidConsult: consultAssociated.uuid,
|
1296
|
-
consultKind: consultAssociated.consultType
|
1297
|
-
};
|
1298
|
-
//this is fire and forget and may fail later
|
1299
|
-
try {
|
1300
|
-
this.updateAssociatedConsultsToTreatment(uuidPlan, [associatedConsultData]);
|
1301
|
-
} catch (_unused) {
|
1302
|
-
console.error("[SDK Diagnosis] We failed to updated associated consult to the treatment plan " + uuidPlan);
|
1303
|
-
}
|
1304
|
-
return this.updateTreatmentPlan(uuidPlan, consultAssociated.uuid, diagnosisRequest, plan, refill);
|
1305
|
-
};
|
1306
|
-
_proto.setAssociatedConsultsToTreatment = function setAssociatedConsultsToTreatment(uuidPlan, arrAssociatedConsults) {
|
1307
|
-
return this.api.post(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/associated-consults", arrAssociatedConsults);
|
1301
|
+
_proto.setAssociatedConsultsToTreatment = function setAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
|
1302
|
+
return this.api.post(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
|
1308
1303
|
};
|
1309
|
-
_proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(
|
1310
|
-
return this.api.put(this.baseURL + "/v1/
|
1304
|
+
_proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
|
1305
|
+
return this.api.put(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
|
1311
1306
|
};
|
1312
1307
|
_proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
|
1313
1308
|
return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {
|