@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.
|
@@ -5007,7 +5007,8 @@ class RxComponent {
|
|
|
5007
5007
|
amtCodeSystem: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation?.amtCodeSystem) ? this.commonServices.selectedFormulation.amtCodeSystem : "",
|
|
5008
5008
|
amtVersion: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation?.amtVersion) ? this.commonServices.selectedFormulation.amtVersion : "",
|
|
5009
5009
|
quantityWithUnit: this.commonServices.quantityWithUnitFlag && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation?.maxQtyUnits) ? this.commonServices.selectedFormulation.maxQtyUnits : "",
|
|
5010
|
-
clientId: this.clientId
|
|
5010
|
+
clientId: this.clientId,
|
|
5011
|
+
productPackId: this.commonServices.selectedFormulation?.productPackId ? this.commonServices.selectedFormulation.productPackId : '',
|
|
5011
5012
|
};
|
|
5012
5013
|
this.commonServices.removeErrToast();
|
|
5013
5014
|
this.changedetect.detectChanges();
|
|
@@ -5314,7 +5315,8 @@ class RxComponent {
|
|
|
5314
5315
|
amtCodeSystem: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation?.amtCodeSystem) ? this.commonServices.selectedFormulation.amtCodeSystem : "",
|
|
5315
5316
|
amtVersion: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation?.amtVersion) ? this.commonServices.selectedFormulation.amtVersion : "",
|
|
5316
5317
|
quantityWithUnit: this.commonServices.quantityWithUnitFlag && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation?.maxQtyUnits) ? this.commonServices.selectedFormulation.maxQtyUnits : "",
|
|
5317
|
-
clientId: this.clientId
|
|
5318
|
+
clientId: this.clientId,
|
|
5319
|
+
productPackId: this.commonServices.selectedFormulation?.productPackId ? this.commonServices.selectedFormulation.productPackId : '',
|
|
5318
5320
|
};
|
|
5319
5321
|
this.commonServices.prescribeMedLoader = true;
|
|
5320
5322
|
this.commonServices.removeErrToast();
|
|
@@ -5440,9 +5442,10 @@ class RxComponent {
|
|
|
5440
5442
|
request_type: "parameter",
|
|
5441
5443
|
productId: rxList.productId,
|
|
5442
5444
|
pbsCode: rxList.pbsItemCodeCode,
|
|
5443
|
-
rxId: this.commonServices.rxid
|
|
5445
|
+
rxId: this.commonServices.rxid,
|
|
5446
|
+
productPackId: rxList.productPackId ? rxList.productPackId : '',
|
|
5444
5447
|
};
|
|
5445
|
-
this.apiService.Get(config.PHYSICIAN.GET_MED_DET_BY_ID + "?productId=" + rxList.productId + "&pbsCode=" +
|
|
5448
|
+
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) => {
|
|
5446
5449
|
try {
|
|
5447
5450
|
if (this.commonServices.IsNullOrEmpty(res)) {
|
|
5448
5451
|
this.PopupScreenLoader = false;
|
|
@@ -6174,6 +6177,7 @@ class RxComponent {
|
|
|
6174
6177
|
instruction: this.commonServices.InstructionSearchValue,
|
|
6175
6178
|
route: this.commonServices.routeSearchValue,
|
|
6176
6179
|
...(!isAdding && { encryptedId: this.commonServices.favouriteEncryptedId }),
|
|
6180
|
+
productPackId: this.commonServices.selectedFormulation?.productPackId ? this.commonServices.selectedFormulation.productPackId : '',
|
|
6177
6181
|
};
|
|
6178
6182
|
this.apiService.Post(body, config.PHYSICIAN.ADD_FAVOURITE_MEDICINE).subscribe((res) => {
|
|
6179
6183
|
try {
|
|
@@ -6307,12 +6311,13 @@ class RxComponent {
|
|
|
6307
6311
|
request_type: "parameter",
|
|
6308
6312
|
productId: rxList.productId,
|
|
6309
6313
|
pbsCode: rxList.pbsCode,
|
|
6310
|
-
rxId: 0
|
|
6314
|
+
rxId: 0,
|
|
6315
|
+
productPackId: rxList.productPackId ? rxList.productPackId : '',
|
|
6311
6316
|
};
|
|
6312
6317
|
this.favMedicineLoader = true;
|
|
6313
6318
|
this.commonServices.favouriteEncryptedId = rxList.encryptedId;
|
|
6314
6319
|
this.changedetect.detectChanges();
|
|
6315
|
-
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) => {
|
|
6316
6321
|
try {
|
|
6317
6322
|
if (this.commonServices.IsNullOrEmpty(res)) {
|
|
6318
6323
|
this.favMedicineLoader = false;
|
|
@@ -6365,12 +6370,14 @@ class RxComponent {
|
|
|
6365
6370
|
else {
|
|
6366
6371
|
this.favMedicineLoader = false;
|
|
6367
6372
|
var selecteddata = null;
|
|
6373
|
+
this.commonServices.favouriteEncryptedId = rxList.encryptedId;
|
|
6368
6374
|
if (!this.commonServices.IsNullOrEmpty(rxList?.productId)) {
|
|
6369
6375
|
selecteddata = this.commonServices.selectedMedicineList.filter((x) => x.productId == Number(rxList.productId));
|
|
6370
6376
|
// selecteddata = this.commonServices.selectedMedicineList.splice(index, 1);
|
|
6371
6377
|
}
|
|
6372
6378
|
this.commonServices.selectedFormulation = selecteddata[0];
|
|
6373
6379
|
this.commonServices.clearMedicalPrescriptionDataOnchangeofMedicine(selecteddata[0]);
|
|
6380
|
+
this.assignCombinations(rxList);
|
|
6374
6381
|
this.changedetect.detectChanges();
|
|
6375
6382
|
this.commonServices.isFetching = false;
|
|
6376
6383
|
this.isRtpmNext = true;
|
|
@@ -6393,7 +6400,9 @@ class RxComponent {
|
|
|
6393
6400
|
}
|
|
6394
6401
|
return this.commonServices.favouriteMedicineList.some((favMed) => favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
|
|
6395
6402
|
(!this.commonServices.IsNullOrEmpty(favMed.pbsCode) ? favMed.pbsCode : "") === (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation?.pbsCode) ? this.commonServices.selectedFormulation.pbsCode : "") &&
|
|
6396
|
-
favMed.productName === this.commonServices.selectedFormulation.productName
|
|
6403
|
+
favMed.productName === this.commonServices.selectedFormulation.productName && favMed.quantity === this.commonServices.quantityVal && favMed.repeats === this.commonServices.repeatsVal &&
|
|
6404
|
+
favMed.dose === this.commonServices.doseSearchValue && favMed.frequency === this.commonServices.freqSearchValue && favMed.food === this.commonServices.foodSearchValue &&
|
|
6405
|
+
favMed.instruction === this.commonServices.InstructionSearchValue && favMed.route === this.commonServices.routeSearchValue);
|
|
6397
6406
|
}
|
|
6398
6407
|
isPbsTypeMatch(itemPbsType, pbsTypeFilter) {
|
|
6399
6408
|
if (!pbsTypeFilter?.trim())
|