@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.
@@ -3715,6 +3715,7 @@ class RxComponent {
3715
3715
  try {
3716
3716
  this.commonServices.selectedFormulation = med;
3717
3717
  this.commonServices.clearMedicalPrescriptionDataOnchangeofMedicine(med);
3718
+ this.changedetect.detectChanges();
3718
3719
  if (!this.commonServices.isMedicineRestrict) {
3719
3720
  this.commonServices.isS8WarningNext = true;
3720
3721
  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?.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;
@@ -6398,7 +6401,9 @@ class RxComponent {
6398
6401
  }
6399
6402
  return this.commonServices.favouriteMedicineList.some((favMed) => favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
6400
6403
  (!this.commonServices.IsNullOrEmpty(favMed.pbsCode) ? favMed.pbsCode : "") === (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation?.pbsCode) ? this.commonServices.selectedFormulation.pbsCode : "") &&
6401
- favMed.productName === this.commonServices.selectedFormulation.productName);
6404
+ favMed.productName === this.commonServices.selectedFormulation.productName && favMed.quantity?.toString() === this.commonServices.quantityVal?.toString() && favMed.repeats?.toString() === this.commonServices.repeatsVal?.toString() &&
6405
+ favMed.dose?.toString() === this.commonServices.doseSearchValue?.toString() && favMed.frequency?.toString() === this.commonServices.freqSearchValue?.toString() && favMed.food?.toString() === this.commonServices.foodSearchValue?.toString() &&
6406
+ favMed.instruction?.toString() === this.commonServices.InstructionSearchValue?.toString() && favMed.route?.toString() === this.commonServices.routeSearchValue?.toString());
6402
6407
  }
6403
6408
  isPbsTypeMatch(itemPbsType, pbsTypeFilter) {
6404
6409
  if (!pbsTypeFilter?.trim())