oro-sdk-apis 4.3.1 → 4.3.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/models/diagnosis.d.ts +2 -0
- package/dist/oro-sdk-apis.cjs.development.js +19 -0
- 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 +19 -0
- package/dist/oro-sdk-apis.esm.js.map +1 -1
- package/dist/services/diagnosis.d.ts +4 -1
- package/package.json +2 -2
- package/src/models/diagnosis.ts +3 -1
- package/src/services/diagnosis.ts +44 -0
@@ -1290,6 +1290,25 @@ var DiagnosisService = /*#__PURE__*/function () {
|
|
1290
1290
|
refill: refill
|
1291
1291
|
});
|
1292
1292
|
};
|
1293
|
+
_proto.updateTreatmentPlanAndSetAssociatedConsult = function updateTreatmentPlanAndSetAssociatedConsult(uuidPlan, consultAssociated, diagnosisRequest, plan, refill) {
|
1294
|
+
var associatedConsultData = {
|
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);
|
1308
|
+
};
|
1309
|
+
_proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(uuidPlan, arrAssociatedConsults) {
|
1310
|
+
return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/associated-consults", arrAssociatedConsults);
|
1311
|
+
};
|
1293
1312
|
_proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
|
1294
1313
|
return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {
|
1295
1314
|
uuidConsult: uuidConsult
|