@james_jayaraj/test-npm 1.2.5 → 1.2.6
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.
|
@@ -3034,20 +3034,19 @@ class RxComponent {
|
|
|
3034
3034
|
}
|
|
3035
3035
|
}
|
|
3036
3036
|
getClassForFavouriteMed(med) {
|
|
3037
|
-
var _a, _b;
|
|
3038
3037
|
try {
|
|
3039
|
-
var isSelectedFormulation;
|
|
3040
|
-
isSelectedFormulation = this.commonServices.selectedFormulation != null &&
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
return
|
|
3038
|
+
// var isSelectedFormulation;
|
|
3039
|
+
// isSelectedFormulation = this.commonServices.selectedFormulation != null &&
|
|
3040
|
+
// this.commonServices.selectedFormulation.productId != null &&
|
|
3041
|
+
// med.productId == this.commonServices.selectedFormulation.productId &&
|
|
3042
|
+
// (med.pbsCode!=null?med.pbsCode:"") == (this.commonServices.selectedFormulation.pbsCode!=null?this.commonServices.selectedFormulation.pbsCode:"") &&
|
|
3043
|
+
// med.productName == this.commonServices.selectedFormulation.productName &&
|
|
3044
|
+
// med.repeats == this.commonServices.selectedFormulation.repeats &&
|
|
3045
|
+
// med?.encryptedId == this.commonServices.favouriteEncryptedId &&
|
|
3046
|
+
// med.quantity == (this.commonServices.selectedFormulation?.pbsType!=undefined && this.commonServices.selectedFormulation?.pbsType!=null && this.commonServices.selectedFormulation.pbsType.toLowerCase() == "non pbs"
|
|
3047
|
+
// ? (this.commonServices.selectedFormulation.numberOfPack + "x" + this.commonServices.selectedFormulation.unitPerPack)
|
|
3048
|
+
// : this.commonServices.selectedFormulation.maxQtyUnits).toString();
|
|
3049
|
+
return (med === null || med === void 0 ? void 0 : med.encryptedId) == this.commonServices.favouriteEncryptedId
|
|
3051
3050
|
? 'mdl-grid new_rx_popup_box RX_highlight'
|
|
3052
3051
|
: 'mdl-grid new_rx_popup_box';
|
|
3053
3052
|
}
|
|
@@ -6231,6 +6230,7 @@ class RxComponent {
|
|
|
6231
6230
|
rxId: 0
|
|
6232
6231
|
};
|
|
6233
6232
|
this.favMedicineLoader = true;
|
|
6233
|
+
this.commonServices.favouriteEncryptedId = rxList.encryptedId;
|
|
6234
6234
|
this.changedetect.detectChanges();
|
|
6235
6235
|
this.apiService.Get(config.PHYSICIAN.GET_MED_DET_BY_ID + "?productId=" + rxList.productId + "&pbsCode=" + (this.commonServices.isMedicineRestrict ? rxList.pbsCode : "") + "&rxId=" + 0).subscribe((res) => {
|
|
6236
6236
|
try {
|
|
@@ -6336,7 +6336,6 @@ class RxComponent {
|
|
|
6336
6336
|
return itemTypes.some((type) => allowedTypes.includes(type));
|
|
6337
6337
|
}
|
|
6338
6338
|
assignCombinations(med) {
|
|
6339
|
-
this.commonServices.favouriteEncryptedId = med.encryptedId;
|
|
6340
6339
|
this.commonServices.quantityVal = med.quantity;
|
|
6341
6340
|
this.commonServices.repeatsVal = med.repeats;
|
|
6342
6341
|
this.commonServices.doseSearchValue = med.dose;
|