@james_jayaraj/test-npm 0.8.6 → 0.8.7
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 +4 -3
- package/esm2020/lib/environments/environment.mjs +2 -2
- package/esm2020/lib/hola-rx.component.mjs +28 -3
- package/esm2020/lib/rx/rx.component.mjs +21 -6
- package/esm2020/lib/services/common.mjs +2 -1
- package/fesm2015/james_jayaraj-test-npm.mjs +52 -10
- package/fesm2015/james_jayaraj-test-npm.mjs.map +1 -1
- package/fesm2020/james_jayaraj-test-npm.mjs +52 -10
- package/fesm2020/james_jayaraj-test-npm.mjs.map +1 -1
- package/lib/environments/config.d.ts +1 -0
- package/lib/hola-rx.component.d.ts +1 -0
- package/lib/services/common.d.ts +1 -0
- package/package.json +1 -1
|
@@ -22,9 +22,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
22
22
|
}], ctorParameters: function () { return []; } });
|
|
23
23
|
|
|
24
24
|
const config = {
|
|
25
|
-
STAGING_URL: "https://
|
|
26
|
-
LIVE_URL: "https://
|
|
25
|
+
STAGING_URL: "https://cqapi.hlhlth.app/packapill",
|
|
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",
|
|
28
29
|
GET_MEDS_BY_NAME: "api/rxwidget/searchMedicinesByName",
|
|
29
30
|
CREATE_CONSULTATION: "api/rxwidget/createConsultation",
|
|
30
31
|
CREATE_LOG_EXCEPTION: "api/audit/saveExceptions",
|
|
@@ -266,7 +267,7 @@ const errorconfig = {
|
|
|
266
267
|
|
|
267
268
|
const environment = {
|
|
268
269
|
production: true,
|
|
269
|
-
apiEndpoint: 'https://
|
|
270
|
+
apiEndpoint: 'https://ica.hlhlth.app/packapill'
|
|
270
271
|
};
|
|
271
272
|
|
|
272
273
|
class ApiService {
|
|
@@ -2697,7 +2698,9 @@ class RxComponent {
|
|
|
2697
2698
|
};
|
|
2698
2699
|
this.ProductSearchName = getMedicinesValue;
|
|
2699
2700
|
this.commonServices.searchApiStopFlag = false;
|
|
2700
|
-
this.
|
|
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.
|
|
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
|
}
|
|
@@ -5562,7 +5576,9 @@ class RxComponent {
|
|
|
5562
5576
|
this.PrimarySearchSpinner = true;
|
|
5563
5577
|
this.changedetect.detectChanges();
|
|
5564
5578
|
this.searchMedicinesPageNumber += 1;
|
|
5565
|
-
this.commonServices.
|
|
5579
|
+
const searchMethod = this.commonServices.smartSearch ? config.GET_MEDS_BY_SMART_SEARCH + '?productName=' + encodeURIComponent(this.ProductSearchName) + '&page=' + this.searchMedicinesPageNumber + '&noOfRec=10'
|
|
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) => {
|
|
5566
5582
|
try {
|
|
5567
5583
|
if (this.isStillSearching) {
|
|
5568
5584
|
this.searchMedicineLoader = true;
|
|
@@ -6012,6 +6028,7 @@ class CommonServices {
|
|
|
6012
6028
|
this.searchApiStopFlag = true;
|
|
6013
6029
|
this.quantityWithUnitFlag = false;
|
|
6014
6030
|
this.isMedicineRestrict = false;
|
|
6031
|
+
this.smartSearch = false;
|
|
6015
6032
|
}
|
|
6016
6033
|
clearMedicalPrescriptionData() {
|
|
6017
6034
|
try {
|
|
@@ -6762,7 +6779,12 @@ class HolaRx {
|
|
|
6762
6779
|
this.tempRxDetails = RxDetails;
|
|
6763
6780
|
if (!this.IsNullOrEmpty(this.commonservice.HolaRxToken)) {
|
|
6764
6781
|
this.auditlog(JSON.stringify(RxDetails), config.CREATE_CONSULTATION);
|
|
6765
|
-
this.
|
|
6782
|
+
if (!this.IsNullOrEmpty(RxDetails.appointmentid)) {
|
|
6783
|
+
this.appointmentValidation(RxDetails, 1);
|
|
6784
|
+
}
|
|
6785
|
+
else {
|
|
6786
|
+
this.validation(RxDetails, 1);
|
|
6787
|
+
}
|
|
6766
6788
|
if (this.message != "") {
|
|
6767
6789
|
this.commonLoaderServices.addLoaderElement(false);
|
|
6768
6790
|
this.Changedetect.detectChanges();
|
|
@@ -6852,7 +6874,12 @@ class HolaRx {
|
|
|
6852
6874
|
this.tempRxDetails = RxDetails;
|
|
6853
6875
|
if (!this.IsNullOrEmpty(this.commonservice.HolaRxToken)) {
|
|
6854
6876
|
this.auditlog(JSON.stringify(RxDetails), config.CREATE_CONSULTATION);
|
|
6855
|
-
this.
|
|
6877
|
+
if (!this.IsNullOrEmpty(RxDetails.appointmentid)) {
|
|
6878
|
+
this.appointmentValidation(RxDetails, 2);
|
|
6879
|
+
}
|
|
6880
|
+
else {
|
|
6881
|
+
this.validation(RxDetails, 2);
|
|
6882
|
+
}
|
|
6856
6883
|
if (this.message != "") {
|
|
6857
6884
|
this.commonLoaderServices.addLoaderElement(false);
|
|
6858
6885
|
this.Changedetect.detectChanges();
|
|
@@ -7196,6 +7223,21 @@ class HolaRx {
|
|
|
7196
7223
|
this.commonservice.setlogvalue(false, ex.message, ex.stack, "HolaRx", "commonDownload");
|
|
7197
7224
|
}
|
|
7198
7225
|
}
|
|
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
|
+
}
|
|
7199
7241
|
validation(RxDetails, flag) {
|
|
7200
7242
|
try {
|
|
7201
7243
|
if (!this.IsNullOrEmpty(RxDetails)) {
|