@james_jayaraj/test-npm 0.7.5 → 0.7.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 +2 -2
- package/esm2020/lib/environments/environment.mjs +2 -2
- package/esm2020/lib/hola-rx.component.mjs +28 -3
- package/fesm2015/james_jayaraj-test-npm.mjs +29 -4
- package/fesm2015/james_jayaraj-test-npm.mjs.map +1 -1
- package/fesm2020/james_jayaraj-test-npm.mjs +29 -4
- package/fesm2020/james_jayaraj-test-npm.mjs.map +1 -1
- package/lib/hola-rx.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ 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://
|
|
25
|
+
STAGING_URL: "https://cqapi.hlhlth.app/packapill",
|
|
26
26
|
LIVE_URL: "https://cqapi.hlhlth.app/packapill",
|
|
27
27
|
GET_MEDS_BY_SEARCH: "api/rxwidget/searchMedicines",
|
|
28
28
|
GET_MEDS_BY_NAME: "api/rxwidget/searchMedicinesByName",
|
|
@@ -266,7 +266,7 @@ const errorconfig = {
|
|
|
266
266
|
|
|
267
267
|
const environment = {
|
|
268
268
|
production: true,
|
|
269
|
-
apiEndpoint: 'https://
|
|
269
|
+
apiEndpoint: 'https://ica.hlhlth.app/packapill'
|
|
270
270
|
};
|
|
271
271
|
|
|
272
272
|
class ApiService {
|
|
@@ -6762,7 +6762,12 @@ class HolaRx {
|
|
|
6762
6762
|
this.tempRxDetails = RxDetails;
|
|
6763
6763
|
if (!this.IsNullOrEmpty(this.commonservice.HolaRxToken)) {
|
|
6764
6764
|
this.auditlog(JSON.stringify(RxDetails), config.CREATE_CONSULTATION);
|
|
6765
|
-
this.
|
|
6765
|
+
if (!this.IsNullOrEmpty(RxDetails.appointmentid)) {
|
|
6766
|
+
this.appointmentValidation(RxDetails, 1);
|
|
6767
|
+
}
|
|
6768
|
+
else {
|
|
6769
|
+
this.validation(RxDetails, 1);
|
|
6770
|
+
}
|
|
6766
6771
|
if (this.message != "") {
|
|
6767
6772
|
this.commonLoaderServices.addLoaderElement(false);
|
|
6768
6773
|
this.Changedetect.detectChanges();
|
|
@@ -6852,7 +6857,12 @@ class HolaRx {
|
|
|
6852
6857
|
this.tempRxDetails = RxDetails;
|
|
6853
6858
|
if (!this.IsNullOrEmpty(this.commonservice.HolaRxToken)) {
|
|
6854
6859
|
this.auditlog(JSON.stringify(RxDetails), config.CREATE_CONSULTATION);
|
|
6855
|
-
this.
|
|
6860
|
+
if (!this.IsNullOrEmpty(RxDetails.appointmentid)) {
|
|
6861
|
+
this.appointmentValidation(RxDetails, 2);
|
|
6862
|
+
}
|
|
6863
|
+
else {
|
|
6864
|
+
this.validation(RxDetails, 2);
|
|
6865
|
+
}
|
|
6856
6866
|
if (this.message != "") {
|
|
6857
6867
|
this.commonLoaderServices.addLoaderElement(false);
|
|
6858
6868
|
this.Changedetect.detectChanges();
|
|
@@ -7196,6 +7206,21 @@ class HolaRx {
|
|
|
7196
7206
|
this.commonservice.setlogvalue(false, ex.message, ex.stack, "HolaRx", "commonDownload");
|
|
7197
7207
|
}
|
|
7198
7208
|
}
|
|
7209
|
+
appointmentValidation(RxDetails, flag) {
|
|
7210
|
+
try {
|
|
7211
|
+
if (this.IsNullOrEmpty(RxDetails.facilityid)) {
|
|
7212
|
+
this.validationtoast(errorconfig.error_4.message, errorconfig.error_4.code);
|
|
7213
|
+
}
|
|
7214
|
+
if (flag == 2) {
|
|
7215
|
+
if (this.IsNullOrEmpty(RxDetails.rxid)) {
|
|
7216
|
+
this.validationtoast(errorconfig.error_46.message, errorconfig.error_46.code);
|
|
7217
|
+
}
|
|
7218
|
+
}
|
|
7219
|
+
}
|
|
7220
|
+
catch (ex) {
|
|
7221
|
+
this.commonservice.setlogvalue(false, ex.message, ex.stack, "HolaRx", "validation");
|
|
7222
|
+
}
|
|
7223
|
+
}
|
|
7199
7224
|
validation(RxDetails, flag) {
|
|
7200
7225
|
try {
|
|
7201
7226
|
if (!this.IsNullOrEmpty(RxDetails)) {
|