@james_jayaraj/test-npm 1.3.0 → 1.3.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.
|
@@ -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)) {
|
|
@@ -6308,12 +6311,13 @@ class RxComponent {
|
|
|
6308
6311
|
request_type: "parameter",
|
|
6309
6312
|
productId: rxList.productId,
|
|
6310
6313
|
pbsCode: rxList.pbsCode,
|
|
6311
|
-
rxId: 0
|
|
6314
|
+
rxId: 0,
|
|
6315
|
+
productPackId: rxList.productPackId ? rxList.productPackId : '',
|
|
6312
6316
|
};
|
|
6313
6317
|
this.favMedicineLoader = true;
|
|
6314
6318
|
this.commonServices.favouriteEncryptedId = rxList.encryptedId;
|
|
6315
6319
|
this.changedetect.detectChanges();
|
|
6316
|
-
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) => {
|
|
6317
6321
|
try {
|
|
6318
6322
|
if (this.commonServices.IsNullOrEmpty(res)) {
|
|
6319
6323
|
this.favMedicineLoader = false;
|
|
@@ -6366,12 +6370,14 @@ class RxComponent {
|
|
|
6366
6370
|
else {
|
|
6367
6371
|
this.favMedicineLoader = false;
|
|
6368
6372
|
var selecteddata = null;
|
|
6373
|
+
this.commonServices.favouriteEncryptedId = rxList.encryptedId;
|
|
6369
6374
|
if (!this.commonServices.IsNullOrEmpty(rxList === null || rxList === void 0 ? void 0 : rxList.productId)) {
|
|
6370
6375
|
selecteddata = this.commonServices.selectedMedicineList.filter((x) => x.productId == Number(rxList.productId));
|
|
6371
6376
|
// selecteddata = this.commonServices.selectedMedicineList.splice(index, 1);
|
|
6372
6377
|
}
|
|
6373
6378
|
this.commonServices.selectedFormulation = selecteddata[0];
|
|
6374
6379
|
this.commonServices.clearMedicalPrescriptionDataOnchangeofMedicine(selecteddata[0]);
|
|
6380
|
+
this.assignCombinations(rxList);
|
|
6375
6381
|
this.changedetect.detectChanges();
|
|
6376
6382
|
this.commonServices.isFetching = false;
|
|
6377
6383
|
this.isRtpmNext = true;
|
|
@@ -6396,7 +6402,9 @@ class RxComponent {
|
|
|
6396
6402
|
var _a;
|
|
6397
6403
|
return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
|
|
6398
6404
|
(!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 : "") &&
|
|
6399
|
-
favMed.productName === this.commonServices.selectedFormulation.productName
|
|
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;
|
|
6400
6408
|
});
|
|
6401
6409
|
}
|
|
6402
6410
|
isPbsTypeMatch(itemPbsType, pbsTypeFilter) {
|