@james_jayaraj/test-npm 1.4.0 → 1.4.2
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.
- package/esm2020/lib/confirm-patient-contact-details/confirm-patient-contact-details.component.mjs +1 -2
- package/esm2020/lib/rx/rx.component.mjs +11 -3
- package/fesm2015/james_jayaraj-test-npm.mjs +18 -5
- package/fesm2015/james_jayaraj-test-npm.mjs.map +1 -1
- package/fesm2020/james_jayaraj-test-npm.mjs +10 -3
- package/fesm2020/james_jayaraj-test-npm.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -910,7 +910,6 @@ class ConfirmPatientContactDetailsComponent {
|
|
|
910
910
|
this.Email = this.commonServices.isScriptToPharmacy == 1 && ((_a = this.commonServices.scriptType) === null || _a === void 0 ? void 0 : _a.toLocaleLowerCase()) !== 'm' && this.commonServices.pharmacyEmail != null && this.commonServices.pharmacyEmail != "" ? this.commonServices.pharmacyEmail : this.commonServices.patientDetails.email;
|
|
911
911
|
this.commonServices.isScriptToPharmacy == 1 ? this.AddressSendToAddType = "Email" : this.AddressSendToAddType = "SMS";
|
|
912
912
|
this.scriptType = (_b = this.commonServices.scriptType) === null || _b === void 0 ? void 0 : _b.toLocaleLowerCase();
|
|
913
|
-
this.AddressSendToAddType = this.commonServices.scriptType.toLocaleLowerCase() == 'e' ? 'SMS' : 'email';
|
|
914
913
|
}
|
|
915
914
|
ngOnInit() {
|
|
916
915
|
try {
|
|
@@ -6406,7 +6405,14 @@ class RxComponent {
|
|
|
6406
6405
|
if (!this.commonServices.selectedFormulation || !favouritesList || favouritesList.length === 0) {
|
|
6407
6406
|
return false;
|
|
6408
6407
|
}
|
|
6409
|
-
return favouritesList.some((favMed) => {
|
|
6408
|
+
return this.commonServices.isMedicineRestrict ? favouritesList.some((favMed) => {
|
|
6409
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
6410
|
+
return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
|
|
6411
|
+
(!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 : "") &&
|
|
6412
|
+
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()) &&
|
|
6413
|
+
((_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()) &&
|
|
6414
|
+
((_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());
|
|
6415
|
+
}) : favouritesList.some((favMed) => {
|
|
6410
6416
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
6411
6417
|
return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() && favMed.productPackId.toString() === this.commonServices.selectedFormulation.productPackId.toString() &&
|
|
6412
6418
|
(!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 : "") &&
|
|
@@ -6451,16 +6457,23 @@ class RxComponent {
|
|
|
6451
6457
|
}, 200);
|
|
6452
6458
|
}
|
|
6453
6459
|
getCurrentFavEncryptedId() {
|
|
6454
|
-
var _a;
|
|
6460
|
+
var _a, _b;
|
|
6455
6461
|
let favouritesList = this.commonServices.originalFavouriteMedicineList;
|
|
6456
|
-
return ((_a = favouritesList.find((favMed) => {
|
|
6462
|
+
return this.commonServices.isMedicineRestrict ? ((_a = favouritesList.find((favMed) => {
|
|
6463
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
6464
|
+
return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
|
|
6465
|
+
(!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 : "") &&
|
|
6466
|
+
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()) &&
|
|
6467
|
+
((_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()) &&
|
|
6468
|
+
((_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());
|
|
6469
|
+
})) === null || _a === void 0 ? void 0 : _a.encryptedId) || "" : ((_b = favouritesList.find((favMed) => {
|
|
6457
6470
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
6458
6471
|
return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() && favMed.productPackId.toString() === this.commonServices.selectedFormulation.productPackId.toString() &&
|
|
6459
6472
|
(!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
6473
|
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
6474
|
((_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()) &&
|
|
6462
6475
|
((_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());
|
|
6463
|
-
})) === null ||
|
|
6476
|
+
})) === null || _b === void 0 ? void 0 : _b.encryptedId) || "";
|
|
6464
6477
|
}
|
|
6465
6478
|
}
|
|
6466
6479
|
RxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RxComponent, deps: [{ token: ApiService }, { token: CommonServices }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i3.DatePipe }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|