@james_jayaraj/test-npm 0.8.1 → 0.8.3

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.

Potentially problematic release.


This version of @james_jayaraj/test-npm might be problematic. Click here for more details.

@@ -23,8 +23,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
23
23
 
24
24
  const config = {
25
25
  STAGING_URL: "https://cqapi.hlhlth.app/packapill",
26
- LIVE_URL: "https://cdva.hlhlth.app/packapill",
26
+ LIVE_URL: "https://api.hlhlth.app/api/packapill",
27
27
  GET_MEDS_BY_SEARCH: "api/rxwidget/searchMedicines",
28
+ GET_MEDS_BY_SMART_SEARCH: "api/rxwidget/smartSearchMedicines",
28
29
  GET_MEDS_BY_NAME: "api/rxwidget/searchMedicinesByName",
29
30
  CREATE_CONSULTATION: "api/rxwidget/createConsultation",
30
31
  CREATE_LOG_EXCEPTION: "api/audit/saveExceptions",
@@ -2697,7 +2698,9 @@ class RxComponent {
2697
2698
  };
2698
2699
  this.ProductSearchName = getMedicinesValue;
2699
2700
  this.commonServices.searchApiStopFlag = false;
2700
- this.apiService.Get(config.GET_MEDS_BY_SEARCH + '?productName=' + encodeURIComponent(getMedicinesValue) + '&page=1&noOfRec=10').subscribe((res) => {
2701
+ const searchMethod = this.commonServices.smartSearch ? config.GET_MEDS_BY_SMART_SEARCH + '?productName=' + encodeURIComponent(getMedicinesValue) + '&page=1&noOfRec=10'
2702
+ : config.GET_MEDS_BY_SEARCH + '?productName=' + encodeURIComponent(getMedicinesValue) + '&page=1&noOfRec=10';
2703
+ this.apiService.Get(searchMethod).subscribe((res) => {
2701
2704
  try {
2702
2705
  if (this.commonServices.IsNullOrEmpty(res)) {
2703
2706
  this.isStillSearching = false;
@@ -3039,6 +3042,7 @@ class RxComponent {
3039
3042
  this.commonServices.authorityFormNo = refValAuth;
3040
3043
  this.isNonPbsFlag = this.commonServices.IsNullOrEmpty(res.isNonPbsFlag) || res.isNonPbsFlag == 0 ? true : false;
3041
3044
  this.isPrescribeAsPrivateOnly = !this.commonServices.IsNullOrEmpty(res.isPrescribeAsPrivateOnly) ? res.isPrescribeAsPrivateOnly : false;
3045
+ this.commonServices.smartSearch = !this.commonServices.IsNullOrEmpty(res.isEnableSmartSearch) ? res.isEnableSmartSearch : false;
3042
3046
  this.changedetect.detectChanges();
3043
3047
  }
3044
3048
  else {
@@ -4338,7 +4342,17 @@ class RxComponent {
4338
4342
  this.commonServices.rxemailId = "";
4339
4343
  this.commonServices.isPrintAvailable = true;
4340
4344
  this.changedetect.detectChanges();
4341
- this.prescribeMed();
4345
+ var scheduleNumber = !this.commonServices.isMedicineRestrict ? (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation) && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.poisonClassification) && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.poisonClassification.poisonClasses) && this.commonServices.selectedFormulation.poisonClassification.poisonClasses.length != 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0]) ? this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0].toLowerCase() == 'unscheduled' ? '' : this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0] : '') : "";
4346
+ if (!this.commonServices.isMedicineRestrict && scheduleNumber.toLowerCase() == 's8' && this.commonServices.physicianDetails.isPasswordCheck) {
4347
+ this.commonServices.dialogopen(PasswordComponent, this.content, 2).subscribe((res) => {
4348
+ if (res.responseCode == 0) {
4349
+ this.prescribeMed();
4350
+ }
4351
+ });
4352
+ }
4353
+ else {
4354
+ this.prescribeMed();
4355
+ }
4342
4356
  }
4343
4357
  }
4344
4358
  }
@@ -4396,9 +4410,9 @@ class RxComponent {
4396
4410
  this.commonServices.isPrintAvailable = true;
4397
4411
  this.commonServices.AddressSendToAddType = "SMS";
4398
4412
  this.changedetect.detectChanges();
4399
- var scheduleNumber = this.commonServices.isMedicineRestrict ? (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation) && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.poisonClassification) && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.poisonClassification.poisonClasses) && this.commonServices.selectedFormulation.poisonClassification.poisonClasses.length != 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0]) ? this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0].toLowerCase() == 'unscheduled' ? '' : this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0] : '') : "";
4413
+ var scheduleNumber = !this.commonServices.isMedicineRestrict ? (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation) && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.poisonClassification) && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.poisonClassification.poisonClasses) && this.commonServices.selectedFormulation.poisonClassification.poisonClasses.length != 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0]) ? this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0].toLowerCase() == 'unscheduled' ? '' : this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0] : '') : "";
4400
4414
  if (!this.commonServices.isMedicineRestrict && scheduleNumber.toLowerCase() == 's8' && this.commonServices.physicianDetails.isPasswordCheck) {
4401
- this.commonServices.dialogopen(PasswordComponent, this.content).subscribe((res) => {
4415
+ this.commonServices.dialogopen(PasswordComponent, this.content, 2).subscribe((res) => {
4402
4416
  if (res.responseCode == 0) {
4403
4417
  this.prescribeMed();
4404
4418
  }
@@ -6012,6 +6026,7 @@ class CommonServices {
6012
6026
  this.searchApiStopFlag = true;
6013
6027
  this.quantityWithUnitFlag = false;
6014
6028
  this.isMedicineRestrict = false;
6029
+ this.smartSearch = false;
6015
6030
  }
6016
6031
  clearMedicalPrescriptionData() {
6017
6032
  try {