@james_jayaraj/test-npm 1.2.9 → 1.3.1
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.
|
@@ -4824,7 +4824,7 @@ class RxComponent {
|
|
|
4824
4824
|
}
|
|
4825
4825
|
//the below code will hit the eRX and return the value with barcode
|
|
4826
4826
|
prescribeMed() {
|
|
4827
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
4827
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
|
|
4828
4828
|
var body = {};
|
|
4829
4829
|
try {
|
|
4830
4830
|
if (this.showAuthorityBox(this.commonServices.selectedFormulation.Restrictions, this.commonServices.PrescribeAS, this.commonServices.rxAuthority, this.commonServices.unlistedRA) == true) {
|
|
@@ -5021,7 +5021,8 @@ class RxComponent {
|
|
|
5021
5021
|
amtCodeSystem: !this.commonServices.IsNullOrEmpty((_u = this.commonServices.selectedFormulation) === null || _u === void 0 ? void 0 : _u.amtCodeSystem) ? this.commonServices.selectedFormulation.amtCodeSystem : "",
|
|
5022
5022
|
amtVersion: !this.commonServices.IsNullOrEmpty((_v = this.commonServices.selectedFormulation) === null || _v === void 0 ? void 0 : _v.amtVersion) ? this.commonServices.selectedFormulation.amtVersion : "",
|
|
5023
5023
|
quantityWithUnit: this.commonServices.quantityWithUnitFlag && !this.commonServices.IsNullOrEmpty((_w = this.commonServices.selectedFormulation) === null || _w === void 0 ? void 0 : _w.maxQtyUnits) ? this.commonServices.selectedFormulation.maxQtyUnits : "",
|
|
5024
|
-
clientId: this.clientId
|
|
5024
|
+
clientId: this.clientId,
|
|
5025
|
+
productPackId: ((_x = this.commonServices.selectedFormulation) === null || _x === void 0 ? void 0 : _x.productPackId) ? this.commonServices.selectedFormulation.productPackId : '',
|
|
5025
5026
|
};
|
|
5026
5027
|
this.commonServices.removeErrToast();
|
|
5027
5028
|
this.changedetect.detectChanges();
|
|
@@ -5120,7 +5121,7 @@ class RxComponent {
|
|
|
5120
5121
|
}
|
|
5121
5122
|
}
|
|
5122
5123
|
MprescribeMed(id) {
|
|
5123
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
|
5124
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
|
|
5124
5125
|
var body = {};
|
|
5125
5126
|
try {
|
|
5126
5127
|
if (id == 1) {
|
|
@@ -5329,7 +5330,8 @@ class RxComponent {
|
|
|
5329
5330
|
amtCodeSystem: !this.commonServices.IsNullOrEmpty((_1 = this.commonServices.selectedFormulation) === null || _1 === void 0 ? void 0 : _1.amtCodeSystem) ? this.commonServices.selectedFormulation.amtCodeSystem : "",
|
|
5330
5331
|
amtVersion: !this.commonServices.IsNullOrEmpty((_2 = this.commonServices.selectedFormulation) === null || _2 === void 0 ? void 0 : _2.amtVersion) ? this.commonServices.selectedFormulation.amtVersion : "",
|
|
5331
5332
|
quantityWithUnit: this.commonServices.quantityWithUnitFlag && !this.commonServices.IsNullOrEmpty((_3 = this.commonServices.selectedFormulation) === null || _3 === void 0 ? void 0 : _3.maxQtyUnits) ? this.commonServices.selectedFormulation.maxQtyUnits : "",
|
|
5332
|
-
clientId: this.clientId
|
|
5333
|
+
clientId: this.clientId,
|
|
5334
|
+
productPackId: ((_4 = this.commonServices.selectedFormulation) === null || _4 === void 0 ? void 0 : _4.productPackId) ? this.commonServices.selectedFormulation.productPackId : '',
|
|
5333
5335
|
};
|
|
5334
5336
|
this.commonServices.prescribeMedLoader = true;
|
|
5335
5337
|
this.commonServices.removeErrToast();
|
|
@@ -5455,9 +5457,10 @@ class RxComponent {
|
|
|
5455
5457
|
request_type: "parameter",
|
|
5456
5458
|
productId: rxList.productId,
|
|
5457
5459
|
pbsCode: rxList.pbsItemCodeCode,
|
|
5458
|
-
rxId: this.commonServices.rxid
|
|
5460
|
+
rxId: this.commonServices.rxid,
|
|
5461
|
+
productPackId: rxList.productPackId ? rxList.productPackId : '',
|
|
5459
5462
|
};
|
|
5460
|
-
this.apiService.Get(config.PHYSICIAN.GET_MED_DET_BY_ID + "?productId=" + rxList.productId + "&pbsCode=" +
|
|
5463
|
+
this.apiService.Get(config.PHYSICIAN.GET_MED_DET_BY_ID + "?productId=" + rxList.productId + "&pbsCode=" + rxList.pbsItemCodeCode + "&rxId=" + this.commonServices.rxid + "&productPackId=" + (rxList.productPackId ? rxList.productPackId : '')).subscribe((res) => {
|
|
5461
5464
|
try {
|
|
5462
5465
|
if (this.commonServices.IsNullOrEmpty(res)) {
|
|
5463
5466
|
this.PopupScreenLoader = false;
|
|
@@ -6169,13 +6172,13 @@ class RxComponent {
|
|
|
6169
6172
|
}
|
|
6170
6173
|
}
|
|
6171
6174
|
addToFavourites() {
|
|
6172
|
-
var _a, _b;
|
|
6175
|
+
var _a, _b, _c;
|
|
6173
6176
|
const isInFavourites = this.isCurrentMedicineInFavourites();
|
|
6174
6177
|
const isAdding = !isInFavourites;
|
|
6175
6178
|
var physicianDetails = this.commonServices.physicianDetails;
|
|
6176
|
-
var body = 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 != ""
|
|
6179
|
+
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 != ""
|
|
6177
6180
|
? this.commonServices.selectedFormulation.pbsType + " (" + this.getRestrictions(this.commonServices.selectedFormulation.Restrictions) + ") "
|
|
6178
|
-
: 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.commonServices.favouriteEncryptedId }));
|
|
6181
|
+
: 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.commonServices.favouriteEncryptedId })), { productPackId: ((_c = this.commonServices.selectedFormulation) === null || _c === void 0 ? void 0 : _c.productPackId) ? this.commonServices.selectedFormulation.productPackId : '' });
|
|
6179
6182
|
this.apiService.Post(body, config.PHYSICIAN.ADD_FAVOURITE_MEDICINE).subscribe((res) => {
|
|
6180
6183
|
try {
|
|
6181
6184
|
if (this.commonServices.IsNullOrEmpty(res)) {
|
|
@@ -6209,8 +6212,6 @@ class RxComponent {
|
|
|
6209
6212
|
this.commonServices.setlogvalue(false, res.response_message, res.response_message, "RxComponent", "AddFavourites", body);
|
|
6210
6213
|
this.commonServices.toastopen(res.response_message, 'error', res.error_code);
|
|
6211
6214
|
this.commonServices.errorResponse(res.error_code, res.response_message);
|
|
6212
|
-
this.selectInstructionDropdownList = false;
|
|
6213
|
-
this.selectInstructionDropdown = true;
|
|
6214
6215
|
}
|
|
6215
6216
|
this.changedetect.detectChanges();
|
|
6216
6217
|
}
|
|
@@ -6310,12 +6311,13 @@ class RxComponent {
|
|
|
6310
6311
|
request_type: "parameter",
|
|
6311
6312
|
productId: rxList.productId,
|
|
6312
6313
|
pbsCode: rxList.pbsCode,
|
|
6313
|
-
rxId: 0
|
|
6314
|
+
rxId: 0,
|
|
6315
|
+
productPackId: rxList.productPackId ? rxList.productPackId : '',
|
|
6314
6316
|
};
|
|
6315
6317
|
this.favMedicineLoader = true;
|
|
6316
6318
|
this.commonServices.favouriteEncryptedId = rxList.encryptedId;
|
|
6317
6319
|
this.changedetect.detectChanges();
|
|
6318
|
-
this.apiService.Get(config.PHYSICIAN.GET_MED_DET_BY_ID + "?productId=" + rxList.productId + "&pbsCode=" +
|
|
6320
|
+
this.apiService.Get(config.PHYSICIAN.GET_MED_DET_BY_ID + "?productId=" + rxList.productId + "&pbsCode=" + rxList.pbsCode + "&rxId=" + 0 + "&productPackId=" + (rxList.productPackId ? rxList.productPackId : '')).subscribe((res) => {
|
|
6319
6321
|
try {
|
|
6320
6322
|
if (this.commonServices.IsNullOrEmpty(res)) {
|
|
6321
6323
|
this.favMedicineLoader = false;
|