@james_jayaraj/test-npm 1.3.8 → 1.3.9

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)) {
@@ -6452,7 +6452,7 @@ 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
6458
  return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&