oro-sdk-apis 7.3.1 → 7.4.1

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.
@@ -1197,7 +1197,7 @@ var ConsultService = /*#__PURE__*/function () {
1197
1197
  * @param filterIsoLocality the of isoLocality to filter with
1198
1198
  * @returns a list of consult
1199
1199
  */;
1200
- _proto.getConsults = function getConsults(uuidPractice, uuidRequester, statusesMedical, statusesExclude, shortId, columnToSortTo, orderToSortTo, perPage, indexPage, filterAssignedDoctor, filterCurrentPractitioner, filterIsoLocality, filterAssignee, uuidParent, typesConsult) {
1200
+ _proto.getConsults = function getConsults(uuidPractice, uuidRequester, statusesMedical, statusesExclude, shortId, columnToSortTo, orderToSortTo, perPage, indexPage, filterAssignedDoctor, filterCurrentPractitioner, filterIsoLocality, filterAssignee, uuidParent, typesConsult, filterOnlyWithoutTransmission, filterAfterDate) {
1201
1201
  return this.api.get(this.baseURL + "/v1/consults", {
1202
1202
  params: {
1203
1203
  uuidPractice: uuidPractice,
@@ -1213,6 +1213,8 @@ var ConsultService = /*#__PURE__*/function () {
1213
1213
  filterCurrentPractitioner: filterCurrentPractitioner,
1214
1214
  filterIsoLocality: filterIsoLocality,
1215
1215
  filterAssignee: filterAssignee,
1216
+ filterOnlyWithoutTransmission: filterOnlyWithoutTransmission,
1217
+ filterAfterDate: filterAfterDate,
1216
1218
  typesConsult: typesConsult,
1217
1219
  uuidParent: uuidParent
1218
1220
  }
@@ -1360,6 +1362,24 @@ var DiagnosisService = /*#__PURE__*/function () {
1360
1362
  populated: true
1361
1363
  }
1362
1364
  });
1365
+ }
1366
+ /**
1367
+ * This function returns populated treatment plans associated consults in a list
1368
+ * @param arrUuidsConsults the list of consult uuid to fetch the treatments for
1369
+ * @param arrStatusesToInclude the PlanStatus to include
1370
+ * @param dateDecidedAfter the date after which the treatment must have been decided
1371
+ * @param dateDecidedBefore the date before which the treatment must have been decided
1372
+ * @returns a TreatmentPlans object
1373
+ */;
1374
+ _proto.getTreatmentPlansWithStatusDecidedAfterDateForConsultsUuids = function getTreatmentPlansWithStatusDecidedAfterDateForConsultsUuids(arrUuidsConsults, arrStatusesToInclude, dateDecidedAfter, dateDecidedBefore) {
1375
+ return this.api.get(this.baseURL + "/v1/treatment-plans/", {
1376
+ params: {
1377
+ filterByConsultsUuids: arrUuidsConsults,
1378
+ statusesTreatmentPlanIncluded: arrStatusesToInclude,
1379
+ filterDecidedAfterDate: dateDecidedAfter,
1380
+ filterDecidedBeforeDate: dateDecidedBefore
1381
+ }
1382
+ });
1363
1383
  };
1364
1384
  _proto.postPlans = function postPlans(plans) {
1365
1385
  return this.api.post(this.baseURL + "/v1/treatment-plans", plans);
@@ -1385,6 +1405,18 @@ var DiagnosisService = /*#__PURE__*/function () {
1385
1405
  return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan + "/accept", {
1386
1406
  uuidConsult: uuidConsult
1387
1407
  });
1408
+ };
1409
+ _proto.updateTreatmentPlanStatusOnly = function updateTreatmentPlanStatusOnly(uuidPlan, uuidConsult, newStatus) {
1410
+ return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan, {
1411
+ uuidConsult: uuidConsult,
1412
+ status: newStatus
1413
+ });
1414
+ };
1415
+ _proto.updateTreatmentPlanNotesOnly = function updateTreatmentPlanNotesOnly(uuidPlan, uuidConsult, newNotes) {
1416
+ return this.api.put(this.baseURL + "/v1/treatment-plans/" + uuidPlan, {
1417
+ uuidConsult: uuidConsult,
1418
+ notes: newNotes
1419
+ });
1388
1420
  }
1389
1421
  /**
1390
1422
  * retrieves all the drugs of the specified practice