@james_jayaraj/test-npm 1.3.1 → 1.3.3

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.
@@ -3720,6 +3720,7 @@ class RxComponent {
3720
3720
  try {
3721
3721
  this.commonServices.selectedFormulation = med;
3722
3722
  this.commonServices.clearMedicalPrescriptionDataOnchangeofMedicine(med);
3723
+ this.changedetect.detectChanges();
3723
3724
  if (!this.commonServices.isMedicineRestrict) {
3724
3725
  this.commonServices.isS8WarningNext = true;
3725
3726
  this.restrictions = med.Restrictions && med.Restrictions.length != 0 ? med.Restrictions[0] : null;
@@ -6370,12 +6371,14 @@ class RxComponent {
6370
6371
  else {
6371
6372
  this.favMedicineLoader = false;
6372
6373
  var selecteddata = null;
6374
+ this.commonServices.favouriteEncryptedId = rxList.encryptedId;
6373
6375
  if (!this.commonServices.IsNullOrEmpty(rxList === null || rxList === void 0 ? void 0 : rxList.productId)) {
6374
6376
  selecteddata = this.commonServices.selectedMedicineList.filter((x) => x.productId == Number(rxList.productId));
6375
6377
  // selecteddata = this.commonServices.selectedMedicineList.splice(index, 1);
6376
6378
  }
6377
6379
  this.commonServices.selectedFormulation = selecteddata[0];
6378
6380
  this.commonServices.clearMedicalPrescriptionDataOnchangeofMedicine(selecteddata[0]);
6381
+ this.assignCombinations(rxList);
6379
6382
  this.changedetect.detectChanges();
6380
6383
  this.commonServices.isFetching = false;
6381
6384
  this.isRtpmNext = true;
@@ -6397,10 +6400,12 @@ class RxComponent {
6397
6400
  return false;
6398
6401
  }
6399
6402
  return this.commonServices.favouriteMedicineList.some((favMed) => {
6400
- var _a;
6403
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
6401
6404
  return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
6402
6405
  (!this.commonServices.IsNullOrEmpty(favMed.pbsCode) ? favMed.pbsCode : "") === (!this.commonServices.IsNullOrEmpty((_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.pbsCode) ? this.commonServices.selectedFormulation.pbsCode : "") &&
6403
- favMed.productName === this.commonServices.selectedFormulation.productName;
6406
+ favMed.productName === this.commonServices.selectedFormulation.productName && ((_b = favMed.quantity) === null || _b === void 0 ? void 0 : _b.toString()) === ((_c = this.commonServices.quantityVal) === null || _c === void 0 ? void 0 : _c.toString()) && ((_d = favMed.repeats) === null || _d === void 0 ? void 0 : _d.toString()) === ((_e = this.commonServices.repeatsVal) === null || _e === void 0 ? void 0 : _e.toString()) &&
6407
+ ((_f = favMed.dose) === null || _f === void 0 ? void 0 : _f.toString()) === ((_g = this.commonServices.doseSearchValue) === null || _g === void 0 ? void 0 : _g.toString()) && ((_h = favMed.frequency) === null || _h === void 0 ? void 0 : _h.toString()) === ((_j = this.commonServices.freqSearchValue) === null || _j === void 0 ? void 0 : _j.toString()) && ((_k = favMed.food) === null || _k === void 0 ? void 0 : _k.toString()) === ((_l = this.commonServices.foodSearchValue) === null || _l === void 0 ? void 0 : _l.toString()) &&
6408
+ ((_m = favMed.instruction) === null || _m === void 0 ? void 0 : _m.toString()) === ((_o = this.commonServices.InstructionSearchValue) === null || _o === void 0 ? void 0 : _o.toString()) && ((_p = favMed.route) === null || _p === void 0 ? void 0 : _p.toString()) === ((_q = this.commonServices.routeSearchValue) === null || _q === void 0 ? void 0 : _q.toString());
6404
6409
  });
6405
6410
  }
6406
6411
  isPbsTypeMatch(itemPbsType, pbsTypeFilter) {