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
package/dist/oro-sdk-apis.esm.js
CHANGED
@@ -1334,24 +1334,11 @@ var DiagnosisService = /*#__PURE__*/function () {
|
|
1334
1334
|
refill: refill
|
1335
1335
|
});
|
1336
1336
|
};
|
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);
|
1337
|
+
_proto.setAssociatedConsultsToTreatment = function setAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
|
1338
|
+
return this.api.post(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
|
1352
1339
|
};
|
1353
|
-
_proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(
|
1354
|
-
return this.api.put(this.baseURL + "/v1/
|
1340
|
+
_proto.updateAssociatedConsultsToTreatment = function updateAssociatedConsultsToTreatment(diagnosisUuid, treatmentUuid, arrAssociatedConsults) {
|
1341
|
+
return this.api.put(this.baseURL + "/v1/diagnoses/" + diagnosisUuid + "/treatments/" + treatmentUuid + "/associated-consults", arrAssociatedConsults);
|
1355
1342
|
};
|
1356
1343
|
_proto.acceptTreatmentPlan = function acceptTreatmentPlan(uuidPlan, uuidConsult) {
|
1357
1344
|
return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {
|