oro-sdk-apis 4.3.2 → 5.13.4
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 +4 -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 +4 -17
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/diagnosis.d.ts +3 -4
- package/package.json +1 -1
- package/src/services/diagnosis.ts +6 -26
@@ -1290,24 +1290,11 @@ var DiagnosisService = /*#__PURE__*/function () {
|
|
1290
1290
|
refill: refill
|
1291
1291
|
});
|
1292
1292
|
};
|
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);
|
1293
|
+
_proto.setAssociatedConsultsToTreatment = function setAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
|
1294
|
+
return this.api.post(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
|
1308
1295
|
};
|
1309
|
-
_proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(
|
1310
|
-
return this.api.put(this.baseURL + "/v1/
|
1296
|
+
_proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
|
1297
|
+
return this.api.put(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
|
1311
1298
|
};
|
1312
1299
|
_proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
|
1313
1300
|
return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {
|