@james_jayaraj/test-npm 1.3.2 → 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;
|
|
@@ -6399,12 +6400,12 @@ class RxComponent {
|
|
|
6399
6400
|
return false;
|
|
6400
6401
|
}
|
|
6401
6402
|
return this.commonServices.favouriteMedicineList.some((favMed) => {
|
|
6402
|
-
var _a;
|
|
6403
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
6403
6404
|
return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
|
|
6404
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 : "") &&
|
|
6405
|
-
favMed.productName === this.commonServices.selectedFormulation.productName && favMed.quantity === this.commonServices.quantityVal && favMed.repeats === this.commonServices.repeatsVal &&
|
|
6406
|
-
favMed.dose === this.commonServices.doseSearchValue && favMed.frequency === this.commonServices.freqSearchValue && favMed.food === this.commonServices.foodSearchValue &&
|
|
6407
|
-
favMed.instruction === this.commonServices.InstructionSearchValue && favMed.route === this.commonServices.routeSearchValue;
|
|
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());
|
|
6408
6409
|
});
|
|
6409
6410
|
}
|
|
6410
6411
|
isPbsTypeMatch(itemPbsType, pbsTypeFilter) {
|