oro-sdk-apis 4.3.1 → 4.3.2
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/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
package/dist/oro-sdk-apis.esm.js
CHANGED
@@ -1334,6 +1334,25 @@ var DiagnosisService = /*#__PURE__*/function () {
|
|
1334
1334
|
refill: refill
|
1335
1335
|
});
|
1336
1336
|
};
|
1337
|
+
_proto.updateTreatmentPlanAndSetAssociatedConsult = function updateTreatmentPlanAndSetAssociatedConsult(uuidPlan, consultAssociated, diagnosisRequest, plan, refill) {
|
1338
|
+
var associatedConsultData = {
|
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);
|
1352
|
+
};
|
1353
|
+
_proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(uuidPlan, arrAssociatedConsults) {
|
1354
|
+
return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/associated-consults", arrAssociatedConsults);
|
1355
|
+
};
|
1337
1356
|
_proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
|
1338
1357
|
return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {
|
1339
1358
|
uuidConsult: uuidConsult
|