@james_jayaraj/test-npm 1.3.8 → 1.4.0

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.
@@ -6180,7 +6180,7 @@ class RxComponent {
6180
6180
  var physicianDetails = this.commonServices.physicianDetails;
6181
6181
  var body = Object.assign(Object.assign({ userIdString: physicianDetails.userId, productId: this.commonServices.selectedFormulation.productId, productName: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.productName) ? this.commonServices.selectedFormulation.productName : "", quantity: this.commonServices.quantityVal, repeats: this.commonServices.repeatsVal, restriction: !this.commonServices.isMedicineRestrict ? (this.commonServices.selectedFormulation.Restrictions != null && this.commonServices.selectedFormulation.Restrictions != ""
6182
6182
  ? this.commonServices.selectedFormulation.pbsType + " (" + this.getRestrictions(this.commonServices.selectedFormulation.Restrictions) + ") "
6183
- : this.commonServices.selectedFormulation.pbsType) : "", genericName: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.genericName) ? this.commonServices.selectedFormulation.genericName : "", pbsCode: !this.commonServices.IsNullOrEmpty((_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.pbsCode) ? (_b = this.commonServices.selectedFormulation) === null || _b === void 0 ? void 0 : _b.pbsCode : "", active: isAdding, restrictedMedicine: this.commonServices.isMedicineRestrict, dose: this.commonServices.doseSearchValue, frequency: this.commonServices.freqSearchValue, food: this.commonServices.foodSearchValue, instruction: this.commonServices.InstructionSearchValue, route: this.commonServices.routeSearchValue }, (!isAdding && { encryptedId: this.showFavouriteMed ? this.commonServices.favouriteEncryptedId : this.getCurrentFavEncryptedId() })), { productPackId: ((_c = this.commonServices.selectedFormulation) === null || _c === void 0 ? void 0 : _c.productPackId) ? this.commonServices.selectedFormulation.productPackId : '' });
6183
+ : this.commonServices.selectedFormulation.pbsType) : "", genericName: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.genericName) ? this.commonServices.selectedFormulation.genericName : "", pbsCode: !this.commonServices.IsNullOrEmpty((_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.pbsCode) ? (_b = this.commonServices.selectedFormulation) === null || _b === void 0 ? void 0 : _b.pbsCode : "", active: isAdding, restrictedMedicine: this.commonServices.isMedicineRestrict, dose: this.commonServices.doseSearchValue, frequency: this.commonServices.freqSearchValue, food: this.commonServices.foodSearchValue, instruction: this.commonServices.InstructionSearchValue, route: this.commonServices.routeSearchValue }, (!isAdding && { encryptedId: this.getCurrentFavEncryptedId() })), { productPackId: ((_c = this.commonServices.selectedFormulation) === null || _c === void 0 ? void 0 : _c.productPackId) ? this.commonServices.selectedFormulation.productPackId : '' });
6184
6184
  this.apiService.Post(body, config.PHYSICIAN.ADD_FAVOURITE_MEDICINE).subscribe((res) => {
6185
6185
  try {
6186
6186
  if (this.commonServices.IsNullOrEmpty(res)) {
@@ -6408,7 +6408,7 @@ class RxComponent {
6408
6408
  }
6409
6409
  return favouritesList.some((favMed) => {
6410
6410
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
6411
- return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
6411
+ return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() && favMed.productPackId.toString() === this.commonServices.selectedFormulation.productPackId.toString() &&
6412
6412
  (!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 : "") &&
6413
6413
  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()) &&
6414
6414
  ((_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()) &&
@@ -6452,10 +6452,10 @@ class RxComponent {
6452
6452
  }
6453
6453
  getCurrentFavEncryptedId() {
6454
6454
  var _a;
6455
- let favouritesList = this.showFavouriteMed ? this.commonServices.favouriteMedicineList : this.commonServices.originalFavouriteMedicineList;
6455
+ let favouritesList = this.commonServices.originalFavouriteMedicineList;
6456
6456
  return ((_a = favouritesList.find((favMed) => {
6457
6457
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
6458
- return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
6458
+ return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() && favMed.productPackId.toString() === this.commonServices.selectedFormulation.productPackId.toString() &&
6459
6459
  (!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 : "") &&
6460
6460
  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()) &&
6461
6461
  ((_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()) &&