@james_jayaraj/test-npm 0.8.7 → 0.8.8
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.
- package/esm2020/lib/environments/config.mjs +1 -2
- package/esm2020/lib/hola-rx.component.mjs +3 -28
- package/esm2020/lib/rx/rx.component.mjs +6 -21
- package/esm2020/lib/services/common.mjs +1 -2
- package/fesm2015/james_jayaraj-test-npm.mjs +7 -49
- package/fesm2015/james_jayaraj-test-npm.mjs.map +1 -1
- package/fesm2020/james_jayaraj-test-npm.mjs +7 -49
- package/fesm2020/james_jayaraj-test-npm.mjs.map +1 -1
- package/lib/environments/config.d.ts +0 -1
- package/lib/hola-rx.component.d.ts +0 -1
- package/lib/services/common.d.ts +0 -1
- package/package.json +1 -1
|
@@ -25,7 +25,6 @@ const config = {
|
|
|
25
25
|
STAGING_URL: "https://cqapi.hlhlth.app/packapill",
|
|
26
26
|
LIVE_URL: "https://sydcapi.hlhlth.com.au/api/packapill",
|
|
27
27
|
GET_MEDS_BY_SEARCH: "api/rxwidget/searchMedicines",
|
|
28
|
-
GET_MEDS_BY_SMART_SEARCH: "api/rxwidget/smartSearchMedicines",
|
|
29
28
|
GET_MEDS_BY_NAME: "api/rxwidget/searchMedicinesByName",
|
|
30
29
|
CREATE_CONSULTATION: "api/rxwidget/createConsultation",
|
|
31
30
|
CREATE_LOG_EXCEPTION: "api/audit/saveExceptions",
|
|
@@ -2698,9 +2697,7 @@ class RxComponent {
|
|
|
2698
2697
|
};
|
|
2699
2698
|
this.ProductSearchName = getMedicinesValue;
|
|
2700
2699
|
this.commonServices.searchApiStopFlag = false;
|
|
2701
|
-
|
|
2702
|
-
: config.GET_MEDS_BY_SEARCH + '?productName=' + encodeURIComponent(getMedicinesValue) + '&page=1&noOfRec=10';
|
|
2703
|
-
this.apiService.Get(searchMethod).subscribe((res) => {
|
|
2700
|
+
this.apiService.Get(config.GET_MEDS_BY_SEARCH + '?productName=' + encodeURIComponent(getMedicinesValue) + '&page=1&noOfRec=10').subscribe((res) => {
|
|
2704
2701
|
try {
|
|
2705
2702
|
if (this.commonServices.IsNullOrEmpty(res)) {
|
|
2706
2703
|
this.isStillSearching = false;
|
|
@@ -3042,7 +3039,6 @@ class RxComponent {
|
|
|
3042
3039
|
this.commonServices.authorityFormNo = refValAuth;
|
|
3043
3040
|
this.isNonPbsFlag = this.commonServices.IsNullOrEmpty(res.isNonPbsFlag) || res.isNonPbsFlag == 0 ? true : false;
|
|
3044
3041
|
this.isPrescribeAsPrivateOnly = !this.commonServices.IsNullOrEmpty(res.isPrescribeAsPrivateOnly) ? res.isPrescribeAsPrivateOnly : false;
|
|
3045
|
-
this.commonServices.smartSearch = !this.commonServices.IsNullOrEmpty(res.isEnableSmartSearch) ? res.isEnableSmartSearch : false;
|
|
3046
3042
|
this.changedetect.detectChanges();
|
|
3047
3043
|
}
|
|
3048
3044
|
else {
|
|
@@ -4342,17 +4338,7 @@ class RxComponent {
|
|
|
4342
4338
|
this.commonServices.rxemailId = "";
|
|
4343
4339
|
this.commonServices.isPrintAvailable = true;
|
|
4344
4340
|
this.changedetect.detectChanges();
|
|
4345
|
-
|
|
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
|
-
}
|
|
4341
|
+
this.prescribeMed();
|
|
4356
4342
|
}
|
|
4357
4343
|
}
|
|
4358
4344
|
}
|
|
@@ -4410,9 +4396,9 @@ class RxComponent {
|
|
|
4410
4396
|
this.commonServices.isPrintAvailable = true;
|
|
4411
4397
|
this.commonServices.AddressSendToAddType = "SMS";
|
|
4412
4398
|
this.changedetect.detectChanges();
|
|
4413
|
-
var scheduleNumber =
|
|
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] : '') : "";
|
|
4414
4400
|
if (!this.commonServices.isMedicineRestrict && scheduleNumber.toLowerCase() == 's8' && this.commonServices.physicianDetails.isPasswordCheck) {
|
|
4415
|
-
this.commonServices.dialogopen(PasswordComponent, this.content
|
|
4401
|
+
this.commonServices.dialogopen(PasswordComponent, this.content).subscribe((res) => {
|
|
4416
4402
|
if (res.responseCode == 0) {
|
|
4417
4403
|
this.prescribeMed();
|
|
4418
4404
|
}
|
|
@@ -5576,9 +5562,7 @@ class RxComponent {
|
|
|
5576
5562
|
this.PrimarySearchSpinner = true;
|
|
5577
5563
|
this.changedetect.detectChanges();
|
|
5578
5564
|
this.searchMedicinesPageNumber += 1;
|
|
5579
|
-
|
|
5580
|
-
: config.GET_MEDS_BY_SEARCH + '?productName=' + encodeURIComponent(this.ProductSearchName) + '&page=' + this.searchMedicinesPageNumber + '&noOfRec=10';
|
|
5581
|
-
this.commonServices.MIMSPrimaryapi = this.apiService.Get(searchMethod).subscribe((res) => {
|
|
5565
|
+
this.commonServices.MIMSPrimaryapi = this.apiService.Get(config.GET_MEDS_BY_SEARCH + '?productName=' + encodeURIComponent(this.ProductSearchName) + '&page=' + this.searchMedicinesPageNumber + '&noOfRec=10').subscribe((res) => {
|
|
5582
5566
|
try {
|
|
5583
5567
|
if (this.isStillSearching) {
|
|
5584
5568
|
this.searchMedicineLoader = true;
|
|
@@ -6028,7 +6012,6 @@ class CommonServices {
|
|
|
6028
6012
|
this.searchApiStopFlag = true;
|
|
6029
6013
|
this.quantityWithUnitFlag = false;
|
|
6030
6014
|
this.isMedicineRestrict = false;
|
|
6031
|
-
this.smartSearch = false;
|
|
6032
6015
|
}
|
|
6033
6016
|
clearMedicalPrescriptionData() {
|
|
6034
6017
|
try {
|
|
@@ -6779,12 +6762,7 @@ class HolaRx {
|
|
|
6779
6762
|
this.tempRxDetails = RxDetails;
|
|
6780
6763
|
if (!this.IsNullOrEmpty(this.commonservice.HolaRxToken)) {
|
|
6781
6764
|
this.auditlog(JSON.stringify(RxDetails), config.CREATE_CONSULTATION);
|
|
6782
|
-
|
|
6783
|
-
this.appointmentValidation(RxDetails, 1);
|
|
6784
|
-
}
|
|
6785
|
-
else {
|
|
6786
|
-
this.validation(RxDetails, 1);
|
|
6787
|
-
}
|
|
6765
|
+
this.validation(RxDetails, 1);
|
|
6788
6766
|
if (this.message != "") {
|
|
6789
6767
|
this.commonLoaderServices.addLoaderElement(false);
|
|
6790
6768
|
this.Changedetect.detectChanges();
|
|
@@ -6874,12 +6852,7 @@ class HolaRx {
|
|
|
6874
6852
|
this.tempRxDetails = RxDetails;
|
|
6875
6853
|
if (!this.IsNullOrEmpty(this.commonservice.HolaRxToken)) {
|
|
6876
6854
|
this.auditlog(JSON.stringify(RxDetails), config.CREATE_CONSULTATION);
|
|
6877
|
-
|
|
6878
|
-
this.appointmentValidation(RxDetails, 2);
|
|
6879
|
-
}
|
|
6880
|
-
else {
|
|
6881
|
-
this.validation(RxDetails, 2);
|
|
6882
|
-
}
|
|
6855
|
+
this.validation(RxDetails, 2);
|
|
6883
6856
|
if (this.message != "") {
|
|
6884
6857
|
this.commonLoaderServices.addLoaderElement(false);
|
|
6885
6858
|
this.Changedetect.detectChanges();
|
|
@@ -7223,21 +7196,6 @@ class HolaRx {
|
|
|
7223
7196
|
this.commonservice.setlogvalue(false, ex.message, ex.stack, "HolaRx", "commonDownload");
|
|
7224
7197
|
}
|
|
7225
7198
|
}
|
|
7226
|
-
appointmentValidation(RxDetails, flag) {
|
|
7227
|
-
try {
|
|
7228
|
-
if (this.IsNullOrEmpty(RxDetails.facilityid)) {
|
|
7229
|
-
this.validationtoast(errorconfig.error_4.message, errorconfig.error_4.code);
|
|
7230
|
-
}
|
|
7231
|
-
if (flag == 2) {
|
|
7232
|
-
if (this.IsNullOrEmpty(RxDetails.rxid)) {
|
|
7233
|
-
this.validationtoast(errorconfig.error_46.message, errorconfig.error_46.code);
|
|
7234
|
-
}
|
|
7235
|
-
}
|
|
7236
|
-
}
|
|
7237
|
-
catch (ex) {
|
|
7238
|
-
this.commonservice.setlogvalue(false, ex.message, ex.stack, "HolaRx", "validation");
|
|
7239
|
-
}
|
|
7240
|
-
}
|
|
7241
7199
|
validation(RxDetails, flag) {
|
|
7242
7200
|
try {
|
|
7243
7201
|
if (!this.IsNullOrEmpty(RxDetails)) {
|