@james_jayaraj/test-npm 0.9.2 → 0.9.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.
|
@@ -2935,7 +2935,7 @@ class RxComponent {
|
|
|
2935
2935
|
rxOnlyPBSFilter() {
|
|
2936
2936
|
try {
|
|
2937
2937
|
if (!this.commonServices.IsNullOrEmpty(this.selectedMedicineListOrginal) && this.selectedMedicineListOrginal.length > 0) {
|
|
2938
|
-
this.commonServices.selectedMedicineList = this.selectedMedicineListOrginal.filter((x) => x.pbsType != 'non PBS');
|
|
2938
|
+
this.commonServices.selectedMedicineList = this.selectedMedicineListOrginal.filter((x) => !this.commonServices.IsNullOrEmpty(x.pbsType) && x.pbsType != 'non PBS');
|
|
2939
2939
|
}
|
|
2940
2940
|
this.changedetect.detectChanges();
|
|
2941
2941
|
}
|
|
@@ -2946,7 +2946,7 @@ class RxComponent {
|
|
|
2946
2946
|
rxOnlyNONPBSFilter() {
|
|
2947
2947
|
try {
|
|
2948
2948
|
if (this.selectedMedicineListOrginal != '' && this.selectedMedicineListOrginal != null && this.selectedMedicineListOrginal.length > 0) {
|
|
2949
|
-
this.commonServices.selectedMedicineList = this.selectedMedicineListOrginal.filter((x) => x.pbsType.toLowerCase() == 'non pbs');
|
|
2949
|
+
this.commonServices.selectedMedicineList = this.selectedMedicineListOrginal.filter((x) => !this.commonServices.IsNullOrEmpty(x.pbsType) && x.pbsType.toLowerCase() == 'non pbs');
|
|
2950
2950
|
}
|
|
2951
2951
|
this.changedetect.detectChanges();
|
|
2952
2952
|
}
|
|
@@ -4384,58 +4384,57 @@ class RxComponent {
|
|
|
4384
4384
|
}
|
|
4385
4385
|
EprescripeSend(flag) {
|
|
4386
4386
|
try {
|
|
4387
|
-
if (!this.ePrescriptionValidation()) {
|
|
4388
|
-
|
|
4389
|
-
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
|
|
4399
|
-
|
|
4400
|
-
}
|
|
4401
|
-
else {
|
|
4402
|
-
this.commonServices.AddressSendToAddType = "";
|
|
4403
|
-
this.commonServices.rxnumber = "";
|
|
4404
|
-
this.commonServices.rxemailId = "";
|
|
4405
|
-
this.commonServices.isPrintAvailable = true;
|
|
4406
|
-
this.changedetect.detectChanges();
|
|
4407
|
-
this.prescribeMed();
|
|
4408
|
-
}
|
|
4409
|
-
}
|
|
4410
|
-
});
|
|
4411
|
-
}
|
|
4412
|
-
else {
|
|
4413
|
-
if (!this.commonServices.sendToPharmacy && !this.commonServices.emergencySupply && flag != 2) {
|
|
4414
|
-
this.ConfirmPatientPopup();
|
|
4415
|
-
}
|
|
4416
|
-
else {
|
|
4417
|
-
this.commonServices.AddressSendToAddType = "";
|
|
4418
|
-
this.commonServices.rxnumber = "";
|
|
4419
|
-
this.commonServices.rxemailId = "";
|
|
4420
|
-
this.commonServices.isPrintAvailable = true;
|
|
4421
|
-
this.changedetect.detectChanges();
|
|
4422
|
-
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] : '') : "";
|
|
4423
|
-
if (!this.commonServices.isMedicineRestrict && scheduleNumber.toLowerCase() == 's8' && this.commonServices.physicianDetails.isPasswordCheck) {
|
|
4424
|
-
this.commonServices.dialogopen(PasswordComponent, this.content, 2).subscribe((res) => {
|
|
4425
|
-
if (res.responseCode == 0) {
|
|
4426
|
-
this.prescribeMed();
|
|
4427
|
-
}
|
|
4428
|
-
});
|
|
4387
|
+
// if (!this.ePrescriptionValidation()) {
|
|
4388
|
+
this.commonServices.scriptType = 'E';
|
|
4389
|
+
this.selectPBTNDropdown = false;
|
|
4390
|
+
this.abortdisable = false;
|
|
4391
|
+
if (flag == 2) {
|
|
4392
|
+
this.isepriscribeprint = true;
|
|
4393
|
+
}
|
|
4394
|
+
this.changedetect.detectChanges();
|
|
4395
|
+
if (this.showAuthorityBox(this.commonServices.selectedFormulation.Restrictions, this.commonServices.PrescribeAS, this.commonServices.rxAuthority, this.commonServices.unlistedRA) && this.commonServices.PrescribeAS.toLowerCase() === "pbs" && this.getStateCodeFromStateName(this.commonServices.patientDetails.state).toUpperCase() == "NSW") {
|
|
4396
|
+
this.commonServices.dialogopen(PasswordComponent, this.content, 1).subscribe((res) => {
|
|
4397
|
+
if (res) {
|
|
4398
|
+
if (!this.commonServices.sendToPharmacy && !this.commonServices.emergencySupply && flag != 2) {
|
|
4399
|
+
this.ConfirmPatientPopup();
|
|
4429
4400
|
}
|
|
4430
4401
|
else {
|
|
4402
|
+
this.commonServices.AddressSendToAddType = "";
|
|
4403
|
+
this.commonServices.rxnumber = "";
|
|
4404
|
+
this.commonServices.rxemailId = "";
|
|
4405
|
+
this.commonServices.isPrintAvailable = true;
|
|
4406
|
+
this.changedetect.detectChanges();
|
|
4431
4407
|
this.prescribeMed();
|
|
4432
4408
|
}
|
|
4433
4409
|
}
|
|
4434
|
-
}
|
|
4410
|
+
});
|
|
4435
4411
|
}
|
|
4436
4412
|
else {
|
|
4437
|
-
|
|
4413
|
+
if (!this.commonServices.sendToPharmacy && !this.commonServices.emergencySupply && flag != 2) {
|
|
4414
|
+
this.ConfirmPatientPopup();
|
|
4415
|
+
}
|
|
4416
|
+
else {
|
|
4417
|
+
this.commonServices.AddressSendToAddType = "";
|
|
4418
|
+
this.commonServices.rxnumber = "";
|
|
4419
|
+
this.commonServices.rxemailId = "";
|
|
4420
|
+
this.commonServices.isPrintAvailable = true;
|
|
4421
|
+
this.changedetect.detectChanges();
|
|
4422
|
+
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] : '') : "";
|
|
4423
|
+
if (!this.commonServices.isMedicineRestrict && scheduleNumber.toLowerCase() == 's8' && this.commonServices.physicianDetails.isPasswordCheck) {
|
|
4424
|
+
this.commonServices.dialogopen(PasswordComponent, this.content, 2).subscribe((res) => {
|
|
4425
|
+
if (res.responseCode == 0) {
|
|
4426
|
+
this.prescribeMed();
|
|
4427
|
+
}
|
|
4428
|
+
});
|
|
4429
|
+
}
|
|
4430
|
+
else {
|
|
4431
|
+
this.prescribeMed();
|
|
4432
|
+
}
|
|
4433
|
+
}
|
|
4438
4434
|
}
|
|
4435
|
+
// } else {
|
|
4436
|
+
// return;
|
|
4437
|
+
// }
|
|
4439
4438
|
}
|
|
4440
4439
|
catch (ex) {
|
|
4441
4440
|
this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "EprescripeSend");
|