@james_jayaraj/test-npm 0.5.0 → 0.7.1

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.

@@ -22,8 +22,8 @@ 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://dcapi.hlhlth.app/packapill",
26
- LIVE_URL: "https://capi.hlhlth.app/packapill",
25
+ STAGING_URL: "https://capi.hlhlth.app/packapill",
26
+ LIVE_URL: "https://qatcapi.hlhlth.app/packapill",
27
27
  GET_MEDS_BY_SEARCH: "api/rxwidget/searchMedicines",
28
28
  GET_MEDS_BY_NAME: "api/rxwidget/searchMedicinesByName",
29
29
  CREATE_CONSULTATION: "api/rxwidget/createConsultation",
@@ -40,14 +40,15 @@ const config = {
40
40
  M_PRESCRIBE: "api/rxwidget/save/prescriptions/history",
41
41
  PATHOLOGY_SEND_REFERRAL: "api/rxwidget/send/referral?vendorPatientId=",
42
42
  GET_ALLMIMSVALUE: 'api/rxwidget/getAllMimsConfigs?userId=',
43
- GET_MED_DET_BY_ID: "api/rxwidget/getProductDetailsById",
43
+ GET_MED_DET_BY_ID: "api/rxwidget/getProductDetailsByIdWithRxId",
44
44
  RX_CANCEL: "api/rxwidget/cancel?rxId=",
45
45
  RX_RE_ISSUE: "api/rxwidget/reissue?rxId=",
46
46
  RX_CEASE: "api/rxwidget/cease?rxId=",
47
47
  RX_PRINT: "api/rxwidget/downloadPrescriptionFile?rxid=",
48
48
  REFERRAL_PRINT: "api/rxwidget/downloadReferralFile?referralId=",
49
49
  RX_CANCEL_DRAFT: "api/rxwidget/delete/prescription?rxId=",
50
- RX_PRESCRIBE_ABORT: "api/rxwidget/abort"
50
+ RX_PRESCRIBE_ABORT: "api/rxwidget/abort",
51
+ GET_RESTRICTED_MEDICINE: "api/rxwidget/getRestrictedMedicines"
51
52
  }
52
53
  };
53
54
  const errorconfig = {
@@ -126,9 +127,6 @@ const errorconfig = {
126
127
  error_25: {
127
128
  code: "HRX025", message: "Invalid practitioner state"
128
129
  },
129
- error_26: {
130
- code: "HRX026", message: "Invalid practitioner prescriber number"
131
- },
132
130
  error_27: {
133
131
  code: "HRX027", message: "Invalid practitioner provider number"
134
132
  },
@@ -258,9 +256,6 @@ const errorconfig = {
258
256
  error_72: {
259
257
  code: "HRX072", message: "Invalid practitioner addressline1"
260
258
  },
261
- error_73: {
262
- code: "HRX073", message: "Invalid practitioner entity id"
263
- },
264
259
  error_74: {
265
260
  code: "HRX074", message: "Please enter dispensing pharmacy name"
266
261
  },
@@ -402,6 +397,7 @@ class ReferralRxComponent {
402
397
  this.testsToBeConducted = "";
403
398
  this.clinicalNotes = "";
404
399
  this.PopupScreenLoader = false;
400
+ this.clientId = "";
405
401
  this.closeEvent = new EventEmitter();
406
402
  this.submitEvent = new EventEmitter();
407
403
  }
@@ -415,6 +411,7 @@ class ReferralRxComponent {
415
411
  document.documentElement.style.setProperty('--headerpadding', `8px`);
416
412
  document.documentElement.style.setProperty('--popuph', `350px`);
417
413
  document.documentElement.style.setProperty('--headerfontweight', `700`);
414
+ this.clientId = this.commonServices.getCredetial();
418
415
  }
419
416
  catch (ex) {
420
417
  this.commonServices.setlogvalue(false, ex.message, ex.stack, "ReferralRxComponent", "ngOnInit");
@@ -462,9 +459,10 @@ class ReferralRxComponent {
462
459
  cNotes: String(this.clinicalNotes),
463
460
  reason: String(this.testsToBeConducted),
464
461
  type: "Pathology",
465
- visitId: String(this.commonServices.visitId)
462
+ visitId: String(this.commonServices.visitId),
463
+ clientId: this.clientId
466
464
  };
467
- this.apiService.Get(config.PHYSICIAN.PATHOLOGY_SEND_REFERRAL + this.commonServices.vendorPatientId + "&vendorPhysicianId=" + this.commonServices.vendorPhysicianId + "&vendorFacilityId=" + this.commonServices.vendorFacilityId + "&cNotes=" + String(this.clinicalNotes) + "&reason=" + String(this.testsToBeConducted) + "&type=Pathology&visitId=" + String(this.commonServices.visitId)).subscribe((res) => {
465
+ this.apiService.Get(config.PHYSICIAN.PATHOLOGY_SEND_REFERRAL + this.commonServices.vendorPatientId + "&vendorPhysicianId=" + this.commonServices.vendorPhysicianId + "&vendorFacilityId=" + this.commonServices.vendorFacilityId + "&cNotes=" + String(this.clinicalNotes) + "&reason=" + String(this.testsToBeConducted) + "&type=Pathology&visitId=" + String(this.commonServices.visitId) + "&clientId=" + this.clientId).subscribe((res) => {
468
466
  try {
469
467
  if (this.commonServices.IsNullOrEmpty(res)) {
470
468
  this.PopupScreenLoader = false;
@@ -516,10 +514,10 @@ class ReferralRxComponent {
516
514
  }
517
515
  }
518
516
  ReferralRxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReferralRxComponent, deps: [{ token: i0.ElementRef }, { token: ApiService }, { token: CommonServices }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
519
- ReferralRxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ReferralRxComponent, selector: "lib-referral-rx", outputs: { closeEvent: "closeEvent", submitEvent: "submitEvent" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["rxwidgets"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"overlay\">\r\n <div class=\"popup_referal_pathology\">\r\n <app-splashscreen *ngIf=\"PopupScreenLoader\" [height]=\"'height-referral-spin'\"> </app-splashscreen>\r\n <div *ngIf=\"!PopupScreenLoader\" class=\"page-content\" id=\"qwer\">\r\n <div class=\"new_rx_popup_header_box\">\r\n <div class=\"mdl-grid pathology_header\">\r\n <div>\r\n <h3 class=\"new_rx_popup_header_box_text\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-hola-health-logo-1.png\" alt=\"hola_health\" style=\"width: auto;height: 37px;border-radius: 5px;\">\r\n Pathology Referral Form\r\n </h3>\r\n </div>\r\n <div>\r\n <button (click)=\"close(null)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored backButton\"\r\n [disabled]=\"this.commonServices.prescribeMedLoader\">\r\n Close\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"new_rx_popup_tab_1\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"font_f\"><span class=\"new_rx_popup_label\">Send to:\r\n </span>{{commonServices.patientDetails.email}}</p>\r\n <p class=\"new_rx_popup_label\">Tests to Be Conducted<span style=\"color: red !important;\">*</span></p>\r\n <textarea autocomplete=\"off\" [(ngModel)]=\"testsToBeConducted\" name=\"\" id=\"\" rows=\"4\" maxlength=\"500\"\r\n placeholder=\"Tests to Be Conducted (500 characters maximum)\"\r\n class=\"w-100 new_rx_popup_tab_textarea\"></textarea>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Clinical Notes<span style=\"color: red !important;\">*</span></p>\r\n <textarea autocomplete=\"off\" [(ngModel)]=\"clinicalNotes\" name=\"\" id=\"\" rows=\"3\" maxlength=\"500\"\r\n placeholder=\"Clinical Notes\" class=\"w-100 new_rx_popup_tab_textarea\"></textarea>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--12-col-tablet mdl-cell--12-col-phone new_rx_popup_header_box_col new_rx_popup_header_box_col_padding\">\r\n <!-- <button class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton\" (click)=\"Submit()\">\r\n Send Referral\r\n </button> -->\r\n <button class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton\"\r\n style=\"position: relative;padding: 0;\"\r\n [disabled]=\"this.commonServices.prescribeMedLoader\" (click)=\"Submit()\">\r\n <ng-container *ngIf=\"this.commonServices.prescribeMedLoader \">\r\n <p class=\"rx_loader_button m-v4\"\r\n style=\"position: absolute;margin: 0; top: 8px;left: 45%;width: 20px; height: 20px;\">\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"!this.commonServices.prescribeMedLoader\">\r\n Send Referral\r\n </ng-container><i class=\"fa fa-angle-down\" style=\"margin-left: 5px; color: #fff\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"rx_footer\">\r\n <p class=\"mt-15p\"><span class=\"rx_popup_footer_text\">\u00A9 2024 Hola Health, a brand of Packapill Pty Ltd | v 1.0.7 | <a href=\"https://hola.health/consult-terms\"\r\n target=\"_blank\">Terms</a> | <a href=\"https://hola.health/consult-privacy-policy\" target=\"_blank\">Privacy Policy</a> | <a href=\"mailto:support@hola.health\"\r\n target=\"_blank\">Help</a></span>\r\n </p>\r\n </div>\r\n </div>\r\n</div>\r\n<ng-template #rxwidgets> </ng-template>\r\n", styles: [".rx_loader_button{border:2px solid #f3f3f3;border-radius:50%;border-top:4px solid #005760;width:30px;height:30px;animation:spin 1s linear infinite}.backButton{font-family:Roboto Medium!important;font-weight:500;color:gray!important;text-transform:none!important;border:1.5px solid #808080!important;background-color:transparent!important;box-shadow:none!important;font-size:14px;height:unset!important;border-radius:2px!important;cursor:pointer;margin-left:10px;margin-right:0!important;padding:10px 20px!important}.backButton:hover{background-color:#00000008!important;opacity:.8!important}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SplashscreenComponent, selector: "app-splashscreen", inputs: ["height"] }] });
517
+ ReferralRxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ReferralRxComponent, selector: "lib-referral-rx", outputs: { closeEvent: "closeEvent", submitEvent: "submitEvent" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["rxwidgets"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"overlay\">\r\n <div class=\"popup_referal_pathology\">\r\n <app-splashscreen *ngIf=\"PopupScreenLoader\" [height]=\"'height-referral-spin'\"> </app-splashscreen>\r\n <div *ngIf=\"!PopupScreenLoader\" class=\"page-content\" id=\"qwer\">\r\n <div class=\"new_rx_popup_header_box\">\r\n <div class=\"mdl-grid pathology_header\">\r\n <div>\r\n <h3 class=\"new_rx_popup_header_box_text\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-hola-health-logo-1.png\" alt=\"hola_health\" style=\"width: auto;height: 37px;border-radius: 5px;\">\r\n Pathology Referral Form\r\n </h3>\r\n </div>\r\n <div>\r\n <button (click)=\"close(null)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored backButton\"\r\n [disabled]=\"this.commonServices.prescribeMedLoader\">\r\n Close\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"new_rx_popup_tab_1\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"font_f\"><span class=\"new_rx_popup_label\">Send to:\r\n </span>{{commonServices.patientDetails.email}}</p>\r\n <p class=\"new_rx_popup_label\">Tests to Be Conducted<span style=\"color: red !important;\">*</span></p>\r\n <textarea autocomplete=\"off\" [(ngModel)]=\"testsToBeConducted\" name=\"\" id=\"\" rows=\"4\" maxlength=\"500\"\r\n placeholder=\"Tests to Be Conducted (500 characters maximum)\"\r\n class=\"w-100 new_rx_popup_tab_textarea\"></textarea>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Clinical Notes<span style=\"color: red !important;\">*</span></p>\r\n <textarea autocomplete=\"off\" [(ngModel)]=\"clinicalNotes\" name=\"\" id=\"\" rows=\"3\" maxlength=\"500\"\r\n placeholder=\"Clinical Notes\" class=\"w-100 new_rx_popup_tab_textarea\"></textarea>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--12-col-tablet mdl-cell--12-col-phone new_rx_popup_header_box_col new_rx_popup_header_box_col_padding\">\r\n <!-- <button class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton\" (click)=\"Submit()\">\r\n Send Referral\r\n </button> -->\r\n <button class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton\"\r\n style=\"position: relative;padding: 0;\"\r\n [disabled]=\"this.commonServices.prescribeMedLoader\" (click)=\"Submit()\">\r\n <ng-container *ngIf=\"this.commonServices.prescribeMedLoader \">\r\n <p class=\"rx_loader_button m-v4\"\r\n style=\"position: absolute;margin: 0; top: 8px;left: 45%;width: 20px; height: 20px;\">\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"!this.commonServices.prescribeMedLoader\">\r\n Send Referral\r\n </ng-container><i class=\"fa fa-angle-down\" style=\"margin-left: 5px; color: #fff\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"rx_footer\">\r\n <p class=\"mt-15p\"><span class=\"rx_popup_footer_text\">\u00A9 2024 Hola Health, a brand of Packapill Pty Ltd | v 1.0.9 | <a href=\"https://hola.health/consult-terms\"\r\n target=\"_blank\">Terms</a> | <a href=\"https://hola.health/consult-privacy-policy\" target=\"_blank\">Privacy Policy</a> | <a href=\"mailto:support@hola.health\"\r\n target=\"_blank\">Help</a></span>\r\n </p>\r\n </div>\r\n </div>\r\n</div>\r\n<ng-template #rxwidgets> </ng-template>\r\n", styles: [".rx_loader_button{border:2px solid #f3f3f3;border-radius:50%;border-top:4px solid #005760;width:30px;height:30px;animation:spin 1s linear infinite}.backButton{font-family:Roboto Medium!important;font-weight:500;color:gray!important;text-transform:none!important;border:1.5px solid #808080!important;background-color:transparent!important;box-shadow:none!important;font-size:14px;height:unset!important;border-radius:2px!important;cursor:pointer;margin-left:10px;margin-right:0!important;padding:10px 20px!important}.backButton:hover{background-color:#00000008!important;opacity:.8!important}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SplashscreenComponent, selector: "app-splashscreen", inputs: ["height"] }] });
520
518
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReferralRxComponent, decorators: [{
521
519
  type: Component,
522
- args: [{ selector: 'lib-referral-rx', template: "<div class=\"overlay\">\r\n <div class=\"popup_referal_pathology\">\r\n <app-splashscreen *ngIf=\"PopupScreenLoader\" [height]=\"'height-referral-spin'\"> </app-splashscreen>\r\n <div *ngIf=\"!PopupScreenLoader\" class=\"page-content\" id=\"qwer\">\r\n <div class=\"new_rx_popup_header_box\">\r\n <div class=\"mdl-grid pathology_header\">\r\n <div>\r\n <h3 class=\"new_rx_popup_header_box_text\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-hola-health-logo-1.png\" alt=\"hola_health\" style=\"width: auto;height: 37px;border-radius: 5px;\">\r\n Pathology Referral Form\r\n </h3>\r\n </div>\r\n <div>\r\n <button (click)=\"close(null)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored backButton\"\r\n [disabled]=\"this.commonServices.prescribeMedLoader\">\r\n Close\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"new_rx_popup_tab_1\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"font_f\"><span class=\"new_rx_popup_label\">Send to:\r\n </span>{{commonServices.patientDetails.email}}</p>\r\n <p class=\"new_rx_popup_label\">Tests to Be Conducted<span style=\"color: red !important;\">*</span></p>\r\n <textarea autocomplete=\"off\" [(ngModel)]=\"testsToBeConducted\" name=\"\" id=\"\" rows=\"4\" maxlength=\"500\"\r\n placeholder=\"Tests to Be Conducted (500 characters maximum)\"\r\n class=\"w-100 new_rx_popup_tab_textarea\"></textarea>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Clinical Notes<span style=\"color: red !important;\">*</span></p>\r\n <textarea autocomplete=\"off\" [(ngModel)]=\"clinicalNotes\" name=\"\" id=\"\" rows=\"3\" maxlength=\"500\"\r\n placeholder=\"Clinical Notes\" class=\"w-100 new_rx_popup_tab_textarea\"></textarea>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--12-col-tablet mdl-cell--12-col-phone new_rx_popup_header_box_col new_rx_popup_header_box_col_padding\">\r\n <!-- <button class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton\" (click)=\"Submit()\">\r\n Send Referral\r\n </button> -->\r\n <button class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton\"\r\n style=\"position: relative;padding: 0;\"\r\n [disabled]=\"this.commonServices.prescribeMedLoader\" (click)=\"Submit()\">\r\n <ng-container *ngIf=\"this.commonServices.prescribeMedLoader \">\r\n <p class=\"rx_loader_button m-v4\"\r\n style=\"position: absolute;margin: 0; top: 8px;left: 45%;width: 20px; height: 20px;\">\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"!this.commonServices.prescribeMedLoader\">\r\n Send Referral\r\n </ng-container><i class=\"fa fa-angle-down\" style=\"margin-left: 5px; color: #fff\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"rx_footer\">\r\n <p class=\"mt-15p\"><span class=\"rx_popup_footer_text\">\u00A9 2024 Hola Health, a brand of Packapill Pty Ltd | v 1.0.7 | <a href=\"https://hola.health/consult-terms\"\r\n target=\"_blank\">Terms</a> | <a href=\"https://hola.health/consult-privacy-policy\" target=\"_blank\">Privacy Policy</a> | <a href=\"mailto:support@hola.health\"\r\n target=\"_blank\">Help</a></span>\r\n </p>\r\n </div>\r\n </div>\r\n</div>\r\n<ng-template #rxwidgets> </ng-template>\r\n", styles: [".rx_loader_button{border:2px solid #f3f3f3;border-radius:50%;border-top:4px solid #005760;width:30px;height:30px;animation:spin 1s linear infinite}.backButton{font-family:Roboto Medium!important;font-weight:500;color:gray!important;text-transform:none!important;border:1.5px solid #808080!important;background-color:transparent!important;box-shadow:none!important;font-size:14px;height:unset!important;border-radius:2px!important;cursor:pointer;margin-left:10px;margin-right:0!important;padding:10px 20px!important}.backButton:hover{background-color:#00000008!important;opacity:.8!important}\n"] }]
520
+ args: [{ selector: 'lib-referral-rx', template: "<div class=\"overlay\">\r\n <div class=\"popup_referal_pathology\">\r\n <app-splashscreen *ngIf=\"PopupScreenLoader\" [height]=\"'height-referral-spin'\"> </app-splashscreen>\r\n <div *ngIf=\"!PopupScreenLoader\" class=\"page-content\" id=\"qwer\">\r\n <div class=\"new_rx_popup_header_box\">\r\n <div class=\"mdl-grid pathology_header\">\r\n <div>\r\n <h3 class=\"new_rx_popup_header_box_text\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-hola-health-logo-1.png\" alt=\"hola_health\" style=\"width: auto;height: 37px;border-radius: 5px;\">\r\n Pathology Referral Form\r\n </h3>\r\n </div>\r\n <div>\r\n <button (click)=\"close(null)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored backButton\"\r\n [disabled]=\"this.commonServices.prescribeMedLoader\">\r\n Close\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"new_rx_popup_tab_1\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"font_f\"><span class=\"new_rx_popup_label\">Send to:\r\n </span>{{commonServices.patientDetails.email}}</p>\r\n <p class=\"new_rx_popup_label\">Tests to Be Conducted<span style=\"color: red !important;\">*</span></p>\r\n <textarea autocomplete=\"off\" [(ngModel)]=\"testsToBeConducted\" name=\"\" id=\"\" rows=\"4\" maxlength=\"500\"\r\n placeholder=\"Tests to Be Conducted (500 characters maximum)\"\r\n class=\"w-100 new_rx_popup_tab_textarea\"></textarea>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Clinical Notes<span style=\"color: red !important;\">*</span></p>\r\n <textarea autocomplete=\"off\" [(ngModel)]=\"clinicalNotes\" name=\"\" id=\"\" rows=\"3\" maxlength=\"500\"\r\n placeholder=\"Clinical Notes\" class=\"w-100 new_rx_popup_tab_textarea\"></textarea>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--12-col-tablet mdl-cell--12-col-phone new_rx_popup_header_box_col new_rx_popup_header_box_col_padding\">\r\n <!-- <button class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton\" (click)=\"Submit()\">\r\n Send Referral\r\n </button> -->\r\n <button class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton\"\r\n style=\"position: relative;padding: 0;\"\r\n [disabled]=\"this.commonServices.prescribeMedLoader\" (click)=\"Submit()\">\r\n <ng-container *ngIf=\"this.commonServices.prescribeMedLoader \">\r\n <p class=\"rx_loader_button m-v4\"\r\n style=\"position: absolute;margin: 0; top: 8px;left: 45%;width: 20px; height: 20px;\">\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"!this.commonServices.prescribeMedLoader\">\r\n Send Referral\r\n </ng-container><i class=\"fa fa-angle-down\" style=\"margin-left: 5px; color: #fff\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"rx_footer\">\r\n <p class=\"mt-15p\"><span class=\"rx_popup_footer_text\">\u00A9 2024 Hola Health, a brand of Packapill Pty Ltd | v 1.0.9 | <a href=\"https://hola.health/consult-terms\"\r\n target=\"_blank\">Terms</a> | <a href=\"https://hola.health/consult-privacy-policy\" target=\"_blank\">Privacy Policy</a> | <a href=\"mailto:support@hola.health\"\r\n target=\"_blank\">Help</a></span>\r\n </p>\r\n </div>\r\n </div>\r\n</div>\r\n<ng-template #rxwidgets> </ng-template>\r\n", styles: [".rx_loader_button{border:2px solid #f3f3f3;border-radius:50%;border-top:4px solid #005760;width:30px;height:30px;animation:spin 1s linear infinite}.backButton{font-family:Roboto Medium!important;font-weight:500;color:gray!important;text-transform:none!important;border:1.5px solid #808080!important;background-color:transparent!important;box-shadow:none!important;font-size:14px;height:unset!important;border-radius:2px!important;cursor:pointer;margin-left:10px;margin-right:0!important;padding:10px 20px!important}.backButton:hover{background-color:#00000008!important;opacity:.8!important}\n"] }]
523
521
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: ApiService }, { type: CommonServices }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { closeEvent: [{
524
522
  type: Output
525
523
  }], submitEvent: [{
@@ -918,9 +916,7 @@ class ConfirmPatientContactDetailsComponent {
918
916
  }
919
917
  close(index) {
920
918
  try {
921
- var scheduleNumber = this.commonServices.selectedFormulation != null && this.commonServices.selectedFormulation.poisonClassification != null ?
922
- this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0].toLowerCase() == "unscheduled" ?
923
- "" : this.commonServices.selectedFormulation.poisonClassification.poisonClasses[0] : '';
919
+ var scheduleNumber = this.commonServices.getScheduleNumber(this.commonServices.selectedFormulation);
924
920
  if (index == 2 || index == 3) {
925
921
  if (this.AddressSendToAddType.toLowerCase() == "sms") {
926
922
  if (this.commonServices.IsNullOrEmpty(this.MobileNo.trim())) {
@@ -1597,6 +1593,7 @@ class RxComponent {
1597
1593
  this.tempInstructionDescription = "";
1598
1594
  this.isPrescribeAsPrivateOnly = false;
1599
1595
  this.tempAuthorityFormNo = "";
1596
+ this.clientId = "";
1600
1597
  this.handleClickOutside = (event) => {
1601
1598
  try {
1602
1599
  if (this.wrapperRef != null && this.wrapperRef != undefined && this.wrapperRef.nativeElement &&
@@ -1864,6 +1861,7 @@ class RxComponent {
1864
1861
  }
1865
1862
  ngOnInit() {
1866
1863
  try {
1864
+ this.clientId = this.commonServices.getCredetial();
1867
1865
  if (!this.commonServices.editPrescription) {
1868
1866
  this.commonServices.clearMedicalPrescriptionData();
1869
1867
  }
@@ -1875,6 +1873,8 @@ class RxComponent {
1875
1873
  this.setEditValues(this.commonServices.rxDetails);
1876
1874
  }
1877
1875
  else {
1876
+ if (this.commonServices.isMedicineRestrict)
1877
+ this.getRestrictedMedicine();
1878
1878
  this.commonServices.rxDetails = {};
1879
1879
  this.commonServices.isFetching = true;
1880
1880
  this.changedetect.detectChanges();
@@ -1887,6 +1887,62 @@ class RxComponent {
1887
1887
  this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "ngOnInit");
1888
1888
  }
1889
1889
  }
1890
+ getRestrictedMedicine() {
1891
+ try {
1892
+ this.onclickMedicineLoader = true;
1893
+ this.apiService.Get(config.PHYSICIAN.GET_RESTRICTED_MEDICINE).subscribe((res) => {
1894
+ var _a;
1895
+ try {
1896
+ if (this.commonServices.IsNullOrEmpty(res)) {
1897
+ this.onclickMedicineLoader = false;
1898
+ this.changedetect.detectChanges();
1899
+ this.commonServices.setlogvalue(false, "", "", "RxComponent", "getRestrictedMedicine");
1900
+ this.commonServices.toastopen(errorconfig.error_64.message, 'error', errorconfig.error_64.code);
1901
+ this.commonServices.errorResponse(errorconfig.error_64.code, errorconfig.error_64.message);
1902
+ return;
1903
+ }
1904
+ if (res.response_code == 0) {
1905
+ this.commonServices.selectedMedicineList = this.selectedMedicineListOrginal = res.response;
1906
+ if (!this.commonServices.IsNullOrEmpty((_a = this.commonServices.rxDetails) === null || _a === void 0 ? void 0 : _a.productId)) {
1907
+ var index = this.commonServices.selectedMedicineList.findIndex((x) => x.productId == Number(this.commonServices.rxDetails.productId));
1908
+ var selecteddata = this.commonServices.selectedMedicineList.splice(index, 1);
1909
+ if (!this.commonServices.IsNullOrEmpty(selecteddata) && selecteddata.length > 0) {
1910
+ this.commonServices.selectedMedicineList.unshift(selecteddata[0]);
1911
+ }
1912
+ }
1913
+ this.onclickMedicineLoader = false;
1914
+ this.PopupScreenLoader = false;
1915
+ this.changedetect.detectChanges();
1916
+ }
1917
+ else {
1918
+ this.onclickMedicineLoader = false;
1919
+ this.changedetect.detectChanges();
1920
+ this.commonServices.setlogvalue(false, res.response_message, res.response_message, "RxComponent", "getRestrictedMedicine");
1921
+ this.commonServices.toastopen(res.response_message, 'error', res.error_code);
1922
+ this.commonServices.errorResponse(res.error_code, res.response_message);
1923
+ }
1924
+ }
1925
+ catch (ex) {
1926
+ this.onclickMedicineLoader = false;
1927
+ this.changedetect.detectChanges();
1928
+ this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "getRestrictedMedicine");
1929
+ }
1930
+ }, error => {
1931
+ this.commonServices.selectedMedicineList = [];
1932
+ this.selectedMedicineListOrginal = [];
1933
+ this.onclickMedicineLoader = false;
1934
+ this.changedetect.detectChanges();
1935
+ this.commonServices.setlogvalue(false, error.message, error.stack, "RxComponent", "getRestrictedMedicine");
1936
+ this.commonServices.toastopen(errorconfig.error_65.message + error, "error", errorconfig.error_65.code);
1937
+ this.commonServices.errorResponse(errorconfig.error_65.code, errorconfig.error_65.message + error);
1938
+ });
1939
+ }
1940
+ catch (ex) {
1941
+ this.onclickMedicineLoader = false;
1942
+ this.changedetect.detectChanges();
1943
+ this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "getRestrictedMedicine");
1944
+ }
1945
+ }
1890
1946
  close(data) {
1891
1947
  try {
1892
1948
  this.elementRef.nativeElement.remove();
@@ -1994,9 +2050,10 @@ class RxComponent {
1994
2050
  payload = {
1995
2051
  request_type: "parameter",
1996
2052
  rxId: this.commonServices.rxid,
1997
- type: "1"
2053
+ type: "1",
2054
+ clientId: this.clientId
1998
2055
  };
1999
- this.apiService.Get(config.PHYSICIAN.RX_PRINT + this.commonServices.rxid + "&type=1").subscribe((response) => {
2056
+ this.apiService.Get(config.PHYSICIAN.RX_PRINT + this.commonServices.rxid + "&type=1&clientId=" + this.clientId).subscribe((response) => {
2000
2057
  try {
2001
2058
  if (this.commonServices.IsNullOrEmpty(response)) {
2002
2059
  this.commonServices.setlogvalue(false, "", "", "RxComponent", "printPrescribeMed", payload);
@@ -2128,31 +2185,33 @@ class RxComponent {
2128
2185
  this.changedetect.detectChanges();
2129
2186
  return;
2130
2187
  }
2131
- var scheduleNumber = this.getScheduleNumber(this.commonServices.selectedFormulation);
2132
- let restectedStates = ['NSW', 'ACT', 'WA', 'QLD', 'NT', 'TAS'];
2133
- let patientStates = this.getStateCodeFromStateName(this.commonServices.patientDetails.state).toUpperCase();
2134
- if (scheduleNumber.toLowerCase() == "s8" && restectedStates.indexOf(patientStates) != -1 && parseInt(this.commonServices.repeatsVal) > 0) {
2135
- if ((this.commonServices.IsNullOrEmpty(this.commonServices.daysBtnRepeatsVal) || parseInt(this.commonServices.daysBtnRepeatsVal) == 0)) {
2136
- var message = errorconfig.error_56.message.replace("$0", patientStates);
2137
- this.commonServices.toastopen(message, "error", errorconfig.error_56.code);
2138
- this.commonServices.errorResponse(errorconfig.error_56.code, message);
2139
- return;
2140
- }
2141
- }
2142
- var stateScheduleNumber = this.getStateScheduleNumber(this.commonServices.selectedFormulation);
2143
- if (!this.commonServices.IsNullOrEmpty(stateScheduleNumber) != null && stateScheduleNumber.length > 0) {
2144
- if (patientStates.toLowerCase() == "tas" && stateScheduleNumber[0].indexOf("S4D") != -1 && parseInt(this.commonServices.repeatsVal) > 0) {
2145
- if (this.commonServices.daysBtnRepeatsVal == "" || this.commonServices.daysBtnRepeatsVal == null || parseInt(this.commonServices.daysBtnRepeatsVal) == 0) {
2146
- this.commonServices.toastopen(errorconfig.error_68.message, "error", errorconfig.error_68.code);
2147
- this.commonServices.errorResponse(errorconfig.error_68.code, errorconfig.error_68.message);
2188
+ if (!this.commonServices.isMedicineRestrict) {
2189
+ var scheduleNumber = this.commonServices.getScheduleNumber(this.commonServices.selectedFormulation);
2190
+ let restectedStates = ['NSW', 'ACT', 'WA', 'QLD', 'NT', 'TAS'];
2191
+ let patientStates = this.getStateCodeFromStateName(this.commonServices.patientDetails.state).toUpperCase();
2192
+ if (scheduleNumber.toLowerCase() == "s8" && restectedStates.indexOf(patientStates) != -1 && parseInt(this.commonServices.repeatsVal) > 0) {
2193
+ if ((this.commonServices.IsNullOrEmpty(this.commonServices.daysBtnRepeatsVal) || parseInt(this.commonServices.daysBtnRepeatsVal) == 0)) {
2194
+ var message = errorconfig.error_56.message.replace("$0", patientStates);
2195
+ this.commonServices.toastopen(message, "error", errorconfig.error_56.code);
2196
+ this.commonServices.errorResponse(errorconfig.error_56.code, message);
2148
2197
  return;
2149
2198
  }
2150
2199
  }
2151
- else if (patientStates.toLowerCase() == "nsw" && stateScheduleNumber[0].indexOf("S4B") != -1 && parseInt(this.commonServices.repeatsVal) > 0) {
2152
- if (this.commonServices.daysBtnRepeatsVal == "" || this.commonServices.daysBtnRepeatsVal == null || parseInt(this.commonServices.daysBtnRepeatsVal) == 0) {
2153
- this.commonServices.toastopen(errorconfig.error_69.message, "error", errorconfig.error_69.code);
2154
- this.commonServices.errorResponse(errorconfig.error_69.code, errorconfig.error_69.message);
2155
- return;
2200
+ var stateScheduleNumber = this.getStateScheduleNumber(this.commonServices.selectedFormulation);
2201
+ if (!this.commonServices.IsNullOrEmpty(stateScheduleNumber) != null && stateScheduleNumber.length > 0) {
2202
+ if (patientStates.toLowerCase() == "tas" && stateScheduleNumber[0].indexOf("S4D") != -1 && parseInt(this.commonServices.repeatsVal) > 0) {
2203
+ if (this.commonServices.daysBtnRepeatsVal == "" || this.commonServices.daysBtnRepeatsVal == null || parseInt(this.commonServices.daysBtnRepeatsVal) == 0) {
2204
+ this.commonServices.toastopen(errorconfig.error_68.message, "error", errorconfig.error_68.code);
2205
+ this.commonServices.errorResponse(errorconfig.error_68.code, errorconfig.error_68.message);
2206
+ return;
2207
+ }
2208
+ }
2209
+ else if (patientStates.toLowerCase() == "nsw" && stateScheduleNumber[0].indexOf("S4B") != -1 && parseInt(this.commonServices.repeatsVal) > 0) {
2210
+ if (this.commonServices.daysBtnRepeatsVal == "" || this.commonServices.daysBtnRepeatsVal == null || parseInt(this.commonServices.daysBtnRepeatsVal) == 0) {
2211
+ this.commonServices.toastopen(errorconfig.error_69.message, "error", errorconfig.error_69.code);
2212
+ this.commonServices.errorResponse(errorconfig.error_69.code, errorconfig.error_69.message);
2213
+ return;
2214
+ }
2156
2215
  }
2157
2216
  }
2158
2217
  }
@@ -2194,19 +2253,36 @@ class RxComponent {
2194
2253
  // } else {
2195
2254
  // this.commonServices.prescribedItemReservedThree = prescribedItemReservedThree.trim() + ' ' + this.commonServices.selectedFormulation.dosageForm + ' ' + (this.commonServices.selectedFormulation.moleculeStrength == null ? '' : this.commonServices.selectedFormulation.moleculeStrength.trim() + this.rxStrengthcalculationNew(this.commonServices.selectedFormulation));
2196
2255
  // }
2197
- if (this.commonServices.selectedFormulation.pbsType.toLowerCase() != 'non pbs' && this.commonServices.PrescribeAS.toLowerCase() != 'private' && ((!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.maxQtyUnits) && !this.commonServices.quantityWithUnitFlag ? parseFloat(this.commonServices.selectedFormulation.maxQtyUnits) + 0.5 : 1) < parseInt(this.commonServices.quantityVal) || parseInt(this.commonServices.selectedFormulation.repeats) < parseInt(this.commonServices.repeatsVal))) {
2198
- if (this.commonServices.rxAuthority == false) {
2199
- this.commonServices.dialogopen(IsAuthorityComponent, this.content).subscribe((res) => {
2200
- if (res) {
2201
- this.commonServices.rxAuthority = true;
2202
- this.commonServices.approvalNo = "";
2203
- this.commonServices.pbsListInstructions = "";
2204
- this.commonServices.pbsListInstructionsId = null;
2205
- this.changedetect.detectChanges();
2206
- if (this.commonServices.isBrandName == false) {
2207
- this.molecule(this.commonServices.selectedFormulation.acgs, this.commonServices.selectedFormulation.moleculeStrength);
2208
- if (this.commonServices.isBrandName == false && this.commonServices.lmbc == true) {
2209
- this.includebrandpopopen();
2256
+ if (!this.commonServices.isMedicineRestrict) {
2257
+ if (this.commonServices.selectedFormulation.pbsType.toLowerCase() != 'non pbs' && this.commonServices.PrescribeAS.toLowerCase() != 'private' && ((!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.maxQtyUnits) && !this.commonServices.quantityWithUnitFlag ? parseFloat(this.commonServices.selectedFormulation.maxQtyUnits) + 0.5 : 1) < parseInt(this.commonServices.quantityVal) || parseInt(this.commonServices.selectedFormulation.repeats) < parseInt(this.commonServices.repeatsVal))) {
2258
+ if (this.commonServices.rxAuthority == false) {
2259
+ this.commonServices.dialogopen(IsAuthorityComponent, this.content).subscribe((res) => {
2260
+ if (res) {
2261
+ this.commonServices.rxAuthority = true;
2262
+ this.commonServices.approvalNo = "";
2263
+ this.commonServices.pbsListInstructions = "";
2264
+ this.commonServices.pbsListInstructionsId = null;
2265
+ this.changedetect.detectChanges();
2266
+ if (this.commonServices.isBrandName == false) {
2267
+ this.molecule(this.commonServices.selectedFormulation.acgs, this.commonServices.selectedFormulation.moleculeStrength);
2268
+ if (this.commonServices.isBrandName == false && this.commonServices.lmbc == true) {
2269
+ this.includebrandpopopen();
2270
+ }
2271
+ else {
2272
+ if (this.doseFreqValidation()) {
2273
+ this.validateWaringPopOpen(scheduleNumber);
2274
+ }
2275
+ else {
2276
+ if (scheduleNumber.toLowerCase() == "s8" && this.commonServices.isS8WarningNext == true) {
2277
+ this.S8WaringPopOpen();
2278
+ }
2279
+ else {
2280
+ this.commonServices.removeErrToast();
2281
+ this.page = this.page + 1;
2282
+ this.changedetect.detectChanges();
2283
+ }
2284
+ }
2285
+ }
2210
2286
  }
2211
2287
  else {
2212
2288
  if (this.doseFreqValidation()) {
@@ -2217,6 +2293,7 @@ class RxComponent {
2217
2293
  this.S8WaringPopOpen();
2218
2294
  }
2219
2295
  else {
2296
+ this.commonServices.rxAuthority = true;
2220
2297
  this.commonServices.removeErrToast();
2221
2298
  this.page = this.page + 1;
2222
2299
  this.changedetect.detectChanges();
@@ -2225,58 +2302,52 @@ class RxComponent {
2225
2302
  }
2226
2303
  }
2227
2304
  else {
2228
- if (this.doseFreqValidation()) {
2229
- this.validateWaringPopOpen(scheduleNumber);
2230
- }
2231
- else {
2232
- if (scheduleNumber.toLowerCase() == "s8" && this.commonServices.isS8WarningNext == true) {
2233
- this.S8WaringPopOpen();
2234
- }
2235
- else {
2236
- this.commonServices.rxAuthority = true;
2237
- this.commonServices.removeErrToast();
2238
- this.page = this.page + 1;
2239
- this.changedetect.detectChanges();
2240
- }
2241
- }
2305
+ this.commonServices.quantityVal = !this.commonServices.quantityWithUnitFlag ? this.commonServices.selectedFormulation.maxQtyUnits : 1;
2306
+ this.commonServices.repeatsVal = this.commonServices.selectedFormulation.repeats;
2307
+ this.commonServices.rxAuthority = false;
2308
+ this.commonServices.rxEndDateCalculater();
2309
+ this.changedetect.detectChanges();
2242
2310
  }
2311
+ });
2312
+ }
2313
+ else {
2314
+ if (this.doseFreqValidation()) {
2315
+ this.validateWaringPopOpen(scheduleNumber);
2243
2316
  }
2244
2317
  else {
2245
- this.commonServices.quantityVal = !this.commonServices.quantityWithUnitFlag ? this.commonServices.selectedFormulation.maxQtyUnits : 1;
2246
- this.commonServices.repeatsVal = this.commonServices.selectedFormulation.repeats;
2247
- this.commonServices.rxAuthority = false;
2248
- this.commonServices.rxEndDateCalculater();
2318
+ this.commonServices.removeErrToast();
2319
+ this.page = this.page + 1;
2249
2320
  this.changedetect.detectChanges();
2250
2321
  }
2251
- });
2322
+ }
2323
+ }
2324
+ else if (this.commonServices.isBrandName == false && this.commonServices.lmbc == true) {
2325
+ this.includebrandpopopen();
2252
2326
  }
2253
2327
  else {
2254
2328
  if (this.doseFreqValidation()) {
2255
2329
  this.validateWaringPopOpen(scheduleNumber);
2256
2330
  }
2257
2331
  else {
2258
- this.commonServices.removeErrToast();
2259
- this.page = this.page + 1;
2260
- this.changedetect.detectChanges();
2332
+ if (scheduleNumber.toLowerCase() == "s8" && this.commonServices.isS8WarningNext == true) {
2333
+ this.S8WaringPopOpen();
2334
+ }
2335
+ else {
2336
+ this.commonServices.removeErrToast();
2337
+ this.page = this.page + 1;
2338
+ this.changedetect.detectChanges();
2339
+ }
2261
2340
  }
2262
2341
  }
2263
2342
  }
2264
- else if (this.commonServices.isBrandName == false && this.commonServices.lmbc == true) {
2265
- this.includebrandpopopen();
2266
- }
2267
2343
  else {
2268
2344
  if (this.doseFreqValidation()) {
2269
- this.validateWaringPopOpen(scheduleNumber);
2345
+ this.validateWaringPopOpen("");
2270
2346
  }
2271
2347
  else {
2272
- if (scheduleNumber.toLowerCase() == "s8" && this.commonServices.isS8WarningNext == true) {
2273
- this.S8WaringPopOpen();
2274
- }
2275
- else {
2276
- this.commonServices.removeErrToast();
2277
- this.page = this.page + 1;
2278
- this.changedetect.detectChanges();
2279
- }
2348
+ this.commonServices.removeErrToast();
2349
+ this.page = this.page + 1;
2350
+ this.changedetect.detectChanges();
2280
2351
  }
2281
2352
  }
2282
2353
  }
@@ -2328,7 +2399,7 @@ class RxComponent {
2328
2399
  });
2329
2400
  }
2330
2401
  else {
2331
- var scheduleNumber = this.getScheduleNumber(this.commonServices.selectedFormulation);
2402
+ var scheduleNumber = this.commonServices.getScheduleNumber(this.commonServices.selectedFormulation);
2332
2403
  if (this.doseFreqValidation()) {
2333
2404
  this.validateWaringPopOpen(scheduleNumber);
2334
2405
  }
@@ -2383,7 +2454,7 @@ class RxComponent {
2383
2454
  var data = "Ensure all necessary fields are filled to avoid pharmacy rejection due to incomplete information - Dose, Frequency, Route etc.";
2384
2455
  this.commonServices.dialogopen(RealTimePrescriptionMonitoringComponent, this.content, data).subscribe((res) => {
2385
2456
  if (res) {
2386
- if (scheduleNumber.toLowerCase() == "s8" && this.commonServices.isS8WarningNext == true) {
2457
+ if (!this.commonServices.isMedicineRestrict && !this.commonServices.IsNullOrEmpty(scheduleNumber) && scheduleNumber.toLowerCase() == "s8" && this.commonServices.isS8WarningNext == true) {
2387
2458
  this.S8WaringPopOpen();
2388
2459
  }
2389
2460
  else {
@@ -2577,13 +2648,13 @@ class RxComponent {
2577
2648
  this.changedetect.detectChanges();
2578
2649
  this.mediSearchValue = e.target.value;
2579
2650
  if (e.target.value.trim().length < 3) {
2580
- this.commonServices.selectedMedicineList = null;
2651
+ this.commonServices.selectedMedicineList = [];
2581
2652
  this.selectedMedicineListOrginal = [];
2582
2653
  this.commonServices.selectedFormulation = null;
2583
2654
  this.changedetect.detectChanges();
2584
2655
  }
2585
2656
  if (e.target.value.length >= 3) {
2586
- this.commonServices.selectedMedicineList = null;
2657
+ this.commonServices.selectedMedicineList = [];
2587
2658
  this.selectedMedicineListOrginal = [];
2588
2659
  this.commonServices.selectedFormulation = null;
2589
2660
  this.searchMedicineLoader = true;
@@ -2735,7 +2806,7 @@ class RxComponent {
2735
2806
  try {
2736
2807
  if (this.commonServices.IsNullOrEmpty(res)) {
2737
2808
  this.searchBynameLength = 0;
2738
- this.commonServices.selectedMedicineList = null;
2809
+ this.commonServices.selectedMedicineList = [];
2739
2810
  this.selectedMedicineListOrginal = [];
2740
2811
  this.onclickMedicineLoader = false;
2741
2812
  this.SecondarySearchSpinner = false;
@@ -2780,10 +2851,14 @@ class RxComponent {
2780
2851
  if (!this.commonServices.IsNullOrEmpty(res.response) && res.response.length != 0) {
2781
2852
  this.MIMSSecondarySearch();
2782
2853
  }
2854
+ else {
2855
+ this.onclickMedicineLoader = false;
2856
+ this.changedetect.detectChanges();
2857
+ }
2783
2858
  }
2784
2859
  else {
2785
2860
  this.searchBynameLength = 0;
2786
- this.commonServices.selectedMedicineList = null;
2861
+ this.commonServices.selectedMedicineList = [];
2787
2862
  this.selectedMedicineListOrginal = [];
2788
2863
  this.onclickMedicineLoader = false;
2789
2864
  this.SecondarySearchSpinner = false;
@@ -2795,7 +2870,7 @@ class RxComponent {
2795
2870
  }
2796
2871
  catch (ex) {
2797
2872
  this.searchBynameLength = 0;
2798
- this.commonServices.selectedMedicineList = null;
2873
+ this.commonServices.selectedMedicineList = [];
2799
2874
  this.selectedMedicineListOrginal = [];
2800
2875
  this.onclickMedicineLoader = false;
2801
2876
  this.SecondarySearchSpinner = false;
@@ -2804,7 +2879,7 @@ class RxComponent {
2804
2879
  }
2805
2880
  }, error => {
2806
2881
  this.searchBynameLength = 0;
2807
- this.commonServices.selectedMedicineList = null;
2882
+ this.commonServices.selectedMedicineList = [];
2808
2883
  this.selectedMedicineListOrginal = [];
2809
2884
  this.onclickMedicineLoader = false;
2810
2885
  this.SecondarySearchSpinner = false;
@@ -2864,13 +2939,19 @@ class RxComponent {
2864
2939
  }
2865
2940
  getClassForMed(med) {
2866
2941
  try {
2867
- const isSelectedFormulation = this.commonServices.selectedFormulation != null &&
2868
- this.commonServices.selectedFormulation.productId != null &&
2869
- med.productId == this.commonServices.selectedFormulation.productId &&
2870
- med.pbsCode == this.commonServices.selectedFormulation.pbsCode &&
2871
- med.productName == this.commonServices.selectedFormulation.productName &&
2872
- med.repeats == this.commonServices.selectedFormulation.repeats &&
2873
- med.maxQtyUnits == this.commonServices.selectedFormulation.maxQtyUnits;
2942
+ var isSelectedFormulation;
2943
+ if (this.commonServices.isMedicineRestrict) {
2944
+ isSelectedFormulation = this.IsSelectFormulation(med);
2945
+ }
2946
+ else {
2947
+ isSelectedFormulation = this.commonServices.selectedFormulation != null &&
2948
+ this.commonServices.selectedFormulation.productId != null &&
2949
+ med.productId == this.commonServices.selectedFormulation.productId &&
2950
+ med.pbsCode == this.commonServices.selectedFormulation.pbsCode &&
2951
+ med.productName == this.commonServices.selectedFormulation.productName &&
2952
+ med.repeats == this.commonServices.selectedFormulation.repeats &&
2953
+ med.maxQtyUnits == this.commonServices.selectedFormulation.maxQtyUnits;
2954
+ }
2874
2955
  return isSelectedFormulation
2875
2956
  ? 'mdl-grid new_rx_popup_box RX_highlight'
2876
2957
  : 'mdl-grid new_rx_popup_box';
@@ -2880,6 +2961,30 @@ class RxComponent {
2880
2961
  return "mdl-grid new_rx_popup_box";
2881
2962
  }
2882
2963
  }
2964
+ IsSelectFormulation(med) {
2965
+ var _a, _b, _c, _d;
2966
+ try {
2967
+ if ((!this.commonServices.IsNullOrEmpty(med.genericName) ? med.genericName : "") ==
2968
+ (!this.commonServices.IsNullOrEmpty((_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.genericName) ?
2969
+ this.commonServices.selectedFormulation.genericName : "") &&
2970
+ (!this.commonServices.IsNullOrEmpty(med.productId) ? med.productId : "") ==
2971
+ (!this.commonServices.IsNullOrEmpty((_b = this.commonServices.selectedFormulation) === null || _b === void 0 ? void 0 : _b.productId) ?
2972
+ this.commonServices.selectedFormulation.productId : "") && (!this.commonServices.IsNullOrEmpty(med.repeats) ?
2973
+ med.repeats : "") == (!this.commonServices.IsNullOrEmpty((_c = this.commonServices.selectedFormulation) === null || _c === void 0 ? void 0 : _c.repeats) ?
2974
+ this.commonServices.selectedFormulation.repeats : "") && (!this.commonServices.IsNullOrEmpty(med.maxQtyUnits) ?
2975
+ med.maxQtyUnits : "") == (!this.commonServices.IsNullOrEmpty((_d = this.commonServices.selectedFormulation) === null || _d === void 0 ? void 0 : _d.maxQtyUnits)
2976
+ ? this.commonServices.selectedFormulation.maxQtyUnits : "")) {
2977
+ return true;
2978
+ }
2979
+ else {
2980
+ return false;
2981
+ }
2982
+ }
2983
+ catch (ex) {
2984
+ this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "IsSelectFormulation");
2985
+ return false;
2986
+ }
2987
+ }
2883
2988
  getcurrentid(med) {
2884
2989
  try {
2885
2990
  return this.mediSearchValue != null && med.prodDisplayValue == this.mediSearchValue ? 'heighlight' : '';
@@ -2911,9 +3016,10 @@ class RxComponent {
2911
3016
  try {
2912
3017
  payload = {
2913
3018
  request_type: "parameter",
2914
- userId: this.commonServices.physicianDetails.userId
3019
+ userId: this.commonServices.physicianDetails.userId,
3020
+ clientId: this.clientId
2915
3021
  };
2916
- this.apiService.Get(config.PHYSICIAN.GET_ALLMIMSVALUE + this.commonServices.physicianDetails.userId).subscribe((res) => {
3022
+ this.apiService.Get(config.PHYSICIAN.GET_ALLMIMSVALUE + this.commonServices.physicianDetails.userId + "&clientId=" + this.clientId).subscribe((res) => {
2917
3023
  var _a;
2918
3024
  try {
2919
3025
  if (this.commonServices.IsNullOrEmpty(res)) {
@@ -3436,26 +3542,28 @@ class RxComponent {
3436
3542
  try {
3437
3543
  this.commonServices.selectedFormulation = med;
3438
3544
  this.commonServices.clearMedicalPrescriptionDataOnchangeofMedicine(med);
3439
- this.commonServices.isS8WarningNext = true;
3440
- this.restrictions = med.Restrictions && med.Restrictions.length != 0 ? med.Restrictions[0] : null;
3441
- this.commonServices.lemi = med.aip != null ? med.aip.lemi : false;
3442
- this.commonServices.lmbc = med.aip != null ? med.aip.lmbc : false;
3443
- this.commonServices.isBrandName = med.aip != null ? med.aip.lemi : false;
3444
- if (med.Restrictions && med.Restrictions.length != 0) {
3445
- var restrictionLists = med.Restrictions.filter((e) => e.restrictionPreview != null &&
3446
- e.restrictionText != null &&
3447
- e.restrictionPreview != '' &&
3448
- e.restrictionText != '');
3449
- if (restrictionLists.length > 0) {
3450
- this.isShowRestrictions = true;
3545
+ if (!this.commonServices.isMedicineRestrict) {
3546
+ this.commonServices.isS8WarningNext = true;
3547
+ this.restrictions = med.Restrictions && med.Restrictions.length != 0 ? med.Restrictions[0] : null;
3548
+ this.commonServices.lemi = med.aip != null ? med.aip.lemi : false;
3549
+ this.commonServices.lmbc = med.aip != null ? med.aip.lmbc : false;
3550
+ this.commonServices.isBrandName = med.aip != null ? med.aip.lemi : false;
3551
+ if (med.Restrictions && med.Restrictions.length != 0) {
3552
+ var restrictionLists = med.Restrictions.filter((e) => e.restrictionPreview != null &&
3553
+ e.restrictionText != null &&
3554
+ e.restrictionPreview != '' &&
3555
+ e.restrictionText != '');
3556
+ if (restrictionLists.length > 0) {
3557
+ this.isShowRestrictions = true;
3558
+ }
3559
+ else {
3560
+ this.isShowRestrictions = false;
3561
+ }
3451
3562
  }
3452
3563
  else {
3453
3564
  this.isShowRestrictions = false;
3454
3565
  }
3455
3566
  }
3456
- else {
3457
- this.isShowRestrictions = false;
3458
- }
3459
3567
  // if (this.state.selectedIndex != index) {
3460
3568
  // this.clearMedicalPrescriptionDataOnchangeofMedicine(med);
3461
3569
  // }
@@ -3502,7 +3610,7 @@ class RxComponent {
3502
3610
  // this.prescribeAS_RPBS = true;
3503
3611
  // this.commonServices.PrescribeAS = 'Private';
3504
3612
  // } else
3505
- if (!this.commonServices.IsNullOrEmpty(med === null || med === void 0 ? void 0 : med.pbsType) && med.pbsType.toUpperCase() == "PBS/RPBS" && !this.isPrescribeAsPrivateOnly) {
3613
+ if (!this.commonServices.IsNullOrEmpty(med === null || med === void 0 ? void 0 : med.pbsType) && med.pbsType.toUpperCase() == "PBS/RPBS" && !this.isPrescribeAsPrivateOnly && !this.commonServices.isMedicineRestrict) {
3506
3614
  if (!this.commonServices.IsNullOrEmpty((_a = this.commonServices.patientDetails) === null || _a === void 0 ? void 0 : _a.medicareNumber) && !this.commonServices.IsNullOrEmpty((_b = this.commonServices.patientDetails) === null || _b === void 0 ? void 0 : _b.dvaNumber)) {
3507
3615
  this.prescribeAS_PBS = false;
3508
3616
  this.prescribeAS_RPBS = false;
@@ -3526,7 +3634,7 @@ class RxComponent {
3526
3634
  }
3527
3635
  }
3528
3636
  }
3529
- else if (!this.commonServices.IsNullOrEmpty(med === null || med === void 0 ? void 0 : med.pbsType) && med.pbsType.toUpperCase() == "RPBS" && !this.isPrescribeAsPrivateOnly) {
3637
+ else if (!this.commonServices.IsNullOrEmpty(med === null || med === void 0 ? void 0 : med.pbsType) && med.pbsType.toUpperCase() == "RPBS" && !this.isPrescribeAsPrivateOnly && !this.commonServices.isMedicineRestrict) {
3530
3638
  if (!this.commonServices.IsNullOrEmpty((_e = this.commonServices.patientDetails) === null || _e === void 0 ? void 0 : _e.dvaNumber)) {
3531
3639
  this.prescribeAS_RPBS = false;
3532
3640
  this.prescribeAS_PBS = true;
@@ -3538,7 +3646,7 @@ class RxComponent {
3538
3646
  this.commonServices.PrescribeAS = 'Private';
3539
3647
  }
3540
3648
  }
3541
- else if (!this.commonServices.IsNullOrEmpty(med === null || med === void 0 ? void 0 : med.pbsType) && med.pbsType.toUpperCase() == "PBS" && !this.isPrescribeAsPrivateOnly) {
3649
+ else if (!this.commonServices.IsNullOrEmpty(med === null || med === void 0 ? void 0 : med.pbsType) && med.pbsType.toUpperCase() == "PBS" && !this.isPrescribeAsPrivateOnly && !this.commonServices.isMedicineRestrict) {
3542
3650
  if (!this.commonServices.IsNullOrEmpty((_f = this.commonServices.patientDetails) === null || _f === void 0 ? void 0 : _f.medicareNumber) || !this.commonServices.IsNullOrEmpty((_g = this.commonServices.patientDetails) === null || _g === void 0 ? void 0 : _g.dvaNumber)) {
3543
3651
  this.prescribeAS_PBS = false;
3544
3652
  this.prescribeAS_RPBS = true;
@@ -3550,7 +3658,7 @@ class RxComponent {
3550
3658
  this.commonServices.PrescribeAS = 'Private';
3551
3659
  }
3552
3660
  }
3553
- else if (!this.commonServices.IsNullOrEmpty(med === null || med === void 0 ? void 0 : med.pbsType) && (med.pbsType.toUpperCase() == "EXTEMPORANEOUS PREPARATIONS" || med.pbsType.toUpperCase() == "SECTION 100") && !this.isPrescribeAsPrivateOnly) {
3661
+ else if (!this.commonServices.IsNullOrEmpty(med === null || med === void 0 ? void 0 : med.pbsType) && (med.pbsType.toUpperCase() == "EXTEMPORANEOUS PREPARATIONS" || med.pbsType.toUpperCase() == "SECTION 100") && !this.isPrescribeAsPrivateOnly && !this.commonServices.isMedicineRestrict) {
3554
3662
  if ((!this.commonServices.IsNullOrEmpty((_h = this.commonServices.patientDetails) === null || _h === void 0 ? void 0 : _h.medicareNumber) || !this.commonServices.IsNullOrEmpty((_j = this.commonServices.patientDetails) === null || _j === void 0 ? void 0 : _j.dvaNumber)) && !this.commonServices.IsNullOrEmpty(med === null || med === void 0 ? void 0 : med.pbsCode) && med.pbsCode != "") {
3555
3663
  this.prescribeAS_PBS = false;
3556
3664
  this.prescribeAS_RPBS = true;
@@ -3562,7 +3670,7 @@ class RxComponent {
3562
3670
  this.commonServices.PrescribeAS = 'Private';
3563
3671
  }
3564
3672
  }
3565
- else if (!this.commonServices.IsNullOrEmpty(med === null || med === void 0 ? void 0 : med.pbsType) && med.pbsType.toUpperCase() == "PALLIATIVE CARE" && !this.isPrescribeAsPrivateOnly) {
3673
+ else if (!this.commonServices.IsNullOrEmpty(med === null || med === void 0 ? void 0 : med.pbsType) && med.pbsType.toUpperCase() == "PALLIATIVE CARE" && !this.isPrescribeAsPrivateOnly && !this.commonServices.isMedicineRestrict) {
3566
3674
  if (this.commonServices.patientDetails.dvaNumber != null && this.commonServices.patientDetails.dvaNumber != '' && med.pbsCode != "") {
3567
3675
  this.prescribeAS_PBS = false;
3568
3676
  this.prescribeAS_RPBS = false;
@@ -3604,50 +3712,55 @@ class RxComponent {
3604
3712
  }
3605
3713
  }
3606
3714
  getTradeName() {
3607
- var _a, _b, _c, _d, _e;
3715
+ var _a, _b, _c, _d, _e, _f, _g;
3608
3716
  try {
3609
3717
  // var selectedFormulation:any = this.commonServices.selectedFormulation;
3610
- var tradeName = '';
3611
- var amt_tpName = this.getBrandName(this.commonServices.selectedFormulation);
3612
- var tBrandName = !this.commonServices.IsNullOrEmpty(amt_tpName) ? amt_tpName : !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.brand.brandName) ? this.commonServices.selectedFormulation.brand.brandName : "";
3613
- //var amt_tppName = !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt) && this.commonServices.selectedFormulation.amt.length != 0 && this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt[0].tpps) && this.commonServices.selectedFormulation.amt[0].tpps.length != 0 ? this.commonServices.selectedFormulation.amt[0].tpps[0].tppName : '';
3614
- if (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation)) {
3615
- if (this.commonServices.IsNullOrEmpty((_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.genericName) || !this.commonServices.IsNullOrEmpty((_b = this.commonServices.selectedFormulation) === null || _b === void 0 ? void 0 : _b.dosageForm) && this.commonServices.selectedFormulation.dosageForm.toLowerCase() == 'gauze') {
3616
- return !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.productName) ? this.commonServices.selectedFormulation.productName : "";
3617
- }
3618
- else {
3619
- if (this.commonServices.isBrandName == false && this.commonServices.lemi == false && this.commonServices.selectedFormulation.IsExtemp == false) {
3620
- tradeName = !this.commonServices.IsNullOrEmpty((_c = this.commonServices.selectedFormulation) === null || _c === void 0 ? void 0 : _c.genericName) ? this.commonServices.selectedFormulation.genericName : "";
3621
- return tradeName;
3622
- }
3623
- else if (this.commonServices.isBrandName == true && this.commonServices.lemi == false && this.commonServices.selectedFormulation.IsExtemp == false) {
3624
- tradeName = !this.commonServices.IsNullOrEmpty((_d = this.commonServices.selectedFormulation) === null || _d === void 0 ? void 0 : _d.genericName) ? this.commonServices.selectedFormulation.genericName + '(' + tBrandName + ')' : "";
3625
- return tradeName;
3626
- }
3627
- else if (this.commonServices.isBrandName == false && this.commonServices.lemi == true && this.commonServices.selectedFormulation.IsExtemp == false) {
3628
- tradeName = !this.commonServices.IsNullOrEmpty((_e = this.commonServices.selectedFormulation) === null || _e === void 0 ? void 0 : _e.genericName) ? this.commonServices.selectedFormulation.genericName : "";
3629
- return tradeName;
3630
- }
3631
- else if (this.commonServices.isBrandName == true && this.commonServices.lemi == true && this.commonServices.selectedFormulation.IsExtemp == false) {
3632
- tradeName = tBrandName;
3633
- return tradeName;
3718
+ if (!this.commonServices.isMedicineRestrict) {
3719
+ var tradeName = '';
3720
+ var amt_tpName = this.getBrandName(this.commonServices.selectedFormulation);
3721
+ var tBrandName = !this.commonServices.IsNullOrEmpty(amt_tpName) ? amt_tpName : !this.commonServices.IsNullOrEmpty((_b = (_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.brand) === null || _b === void 0 ? void 0 : _b.brandName) ? this.commonServices.selectedFormulation.brand.brandName : "";
3722
+ //var amt_tppName = !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt) && this.commonServices.selectedFormulation.amt.length != 0 && this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt[0].tpps) && this.commonServices.selectedFormulation.amt[0].tpps.length != 0 ? this.commonServices.selectedFormulation.amt[0].tpps[0].tppName : '';
3723
+ if (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation)) {
3724
+ if (this.commonServices.IsNullOrEmpty((_c = this.commonServices.selectedFormulation) === null || _c === void 0 ? void 0 : _c.genericName) || !this.commonServices.IsNullOrEmpty((_d = this.commonServices.selectedFormulation) === null || _d === void 0 ? void 0 : _d.dosageForm) && this.commonServices.selectedFormulation.dosageForm.toLowerCase() == 'gauze') {
3725
+ return !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.productName) ? this.commonServices.selectedFormulation.productName : "";
3634
3726
  }
3635
- // else if (IsExtemp == true && lemi == true) {
3636
- // tradeName = amt_tppName != null && amt_tppName != "" ? amt_tppName : this.state.selectedFormulation.productName.trim();
3637
- // return tradeName.trim();
3638
- // }
3639
- // else if (IsExtemp == true) {
3640
- // tradeName = this.state.selectedFormulation.formula == null ? this.state.selectedFormulation.productName.trim() : this.state.selectedFormulation.formula;
3641
- // return tradeName.trim();
3642
- // }
3643
- else if (this.commonServices.selectedFormulation.IsExtemp == true) {
3644
- tradeName = this.getExtempTTPName(this.commonServices.selectedFormulation);
3645
- return tradeName;
3727
+ else {
3728
+ if (this.commonServices.isBrandName == false && this.commonServices.lemi == false && this.commonServices.selectedFormulation.IsExtemp == false) {
3729
+ tradeName = !this.commonServices.IsNullOrEmpty((_e = this.commonServices.selectedFormulation) === null || _e === void 0 ? void 0 : _e.genericName) ? this.commonServices.selectedFormulation.genericName : "";
3730
+ return tradeName;
3731
+ }
3732
+ else if (this.commonServices.isBrandName == true && this.commonServices.lemi == false && this.commonServices.selectedFormulation.IsExtemp == false) {
3733
+ tradeName = !this.commonServices.IsNullOrEmpty((_f = this.commonServices.selectedFormulation) === null || _f === void 0 ? void 0 : _f.genericName) ? this.commonServices.selectedFormulation.genericName + '(' + tBrandName + ')' : "";
3734
+ return tradeName;
3735
+ }
3736
+ else if (this.commonServices.isBrandName == false && this.commonServices.lemi == true && this.commonServices.selectedFormulation.IsExtemp == false) {
3737
+ tradeName = !this.commonServices.IsNullOrEmpty((_g = this.commonServices.selectedFormulation) === null || _g === void 0 ? void 0 : _g.genericName) ? this.commonServices.selectedFormulation.genericName : "";
3738
+ return tradeName;
3739
+ }
3740
+ else if (this.commonServices.isBrandName == true && this.commonServices.lemi == true && this.commonServices.selectedFormulation.IsExtemp == false) {
3741
+ tradeName = tBrandName;
3742
+ return tradeName;
3743
+ }
3744
+ // else if (IsExtemp == true && lemi == true) {
3745
+ // tradeName = amt_tppName != null && amt_tppName != "" ? amt_tppName : this.state.selectedFormulation.productName.trim();
3746
+ // return tradeName.trim();
3747
+ // }
3748
+ // else if (IsExtemp == true) {
3749
+ // tradeName = this.state.selectedFormulation.formula == null ? this.state.selectedFormulation.productName.trim() : this.state.selectedFormulation.formula;
3750
+ // return tradeName.trim();
3751
+ // }
3752
+ else if (this.commonServices.selectedFormulation.IsExtemp == true) {
3753
+ tradeName = this.getExtempTTPName(this.commonServices.selectedFormulation);
3754
+ return tradeName;
3755
+ }
3646
3756
  }
3647
3757
  }
3758
+ else {
3759
+ return tradeName;
3760
+ }
3648
3761
  }
3649
3762
  else {
3650
- return tradeName;
3763
+ return "";
3651
3764
  }
3652
3765
  }
3653
3766
  catch (ex) {
@@ -3656,56 +3769,61 @@ class RxComponent {
3656
3769
  }
3657
3770
  }
3658
3771
  getTradeNameDisplay() {
3659
- var _a, _b, _c, _d, _e;
3660
- try {
3661
- var amt_tpName = this.getBrandName(this.commonServices.selectedFormulation);
3662
- var tBrandName = !this.commonServices.IsNullOrEmpty(amt_tpName) ? amt_tpName : !this.commonServices.IsNullOrEmpty((_b = (_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.brand) === null || _b === void 0 ? void 0 : _b.brandName) ? this.commonServices.selectedFormulation.brand.brandName : "";
3663
- if (this.commonServices.IsNullOrEmpty((_c = this.commonServices.selectedFormulation) === null || _c === void 0 ? void 0 : _c.genericName)) {
3664
- // let PItemThree2 = prescribedItemReservedThree.lastIndexOf("[");
3665
- // let PItemThree3 = prescribedItemReservedThree.slice(0, PItemThree2);
3666
- // this.commonServices.prescribedItemReservedThree = PItemThree2 >= 0 ? PItemThree3.trim() : prescribedItemReservedThree;
3667
- this.commonServices.rxDisplayName = this.commonServices.eopDisplayName = !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.productName) ? this.commonServices.selectedFormulation.productName : "";
3668
- }
3669
- else if (this.commonServices.selectedFormulation.IsExtemp == true || this.commonServices.lemi == true || (this.commonServices.selectedFormulation.dosageForm != null && this.commonServices.selectedFormulation.dosageForm.toLowerCase() == "gauze")) {
3670
- if (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.dosageForm) && this.commonServices.selectedFormulation.dosageForm.toLowerCase() == "gauze") {
3772
+ var _a, _b, _c, _d, _e, _f;
3773
+ try {
3774
+ if (!this.commonServices.isMedicineRestrict) {
3775
+ var amt_tpName = this.getBrandName(this.commonServices.selectedFormulation);
3776
+ var tBrandName = !this.commonServices.IsNullOrEmpty(amt_tpName) ? amt_tpName : !this.commonServices.IsNullOrEmpty((_b = (_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.brand) === null || _b === void 0 ? void 0 : _b.brandName) ? this.commonServices.selectedFormulation.brand.brandName : "";
3777
+ if (this.commonServices.IsNullOrEmpty((_c = this.commonServices.selectedFormulation) === null || _c === void 0 ? void 0 : _c.genericName)) {
3671
3778
  // let PItemThree2 = prescribedItemReservedThree.lastIndexOf("[");
3672
3779
  // let PItemThree3 = prescribedItemReservedThree.slice(0, PItemThree2);
3673
3780
  // this.commonServices.prescribedItemReservedThree = PItemThree2 >= 0 ? PItemThree3.trim() : prescribedItemReservedThree;
3674
- this.commonServices.eopDisplayName = this.commonServices.rxDisplayName = !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.productName) ? this.commonServices.selectedFormulation.productName : "";
3675
- }
3676
- else {
3677
- // let PItemThree = extempTTPName.lastIndexOf("[");
3678
- // let PItemThree1 = extempTTPName.slice(0, PItemThree);
3679
- this.commonServices.eopDisplayName = this.commonServices.rxDisplayName = this.getExtempTTPName(this.commonServices.selectedFormulation).trim();
3680
- // this.commonServices.prescribedItemReservedThree = PItemThree >= 0 ? PItemThree1.trim() : extempTTPName;
3781
+ this.commonServices.rxDisplayName = this.commonServices.eopDisplayName = !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.productName) ? this.commonServices.selectedFormulation.productName : "";
3681
3782
  }
3682
- }
3683
- else {
3684
- var mppName = this.getMPPName(this.commonServices.selectedFormulation);
3685
- var SachetOrPump = !this.commonServices.IsNullOrEmpty((_d = this.commonServices.selectedFormulation) === null || _d === void 0 ? void 0 : _d.strSachetOrPump) ? " " + this.commonServices.selectedFormulation.strSachetOrPump : "";
3686
- if (!this.commonServices.IsNullOrEmpty(mppName)) {
3687
- if (this.commonServices.isBrandName == true) {
3688
- this.commonServices.eopDisplayName = this.commonServices.rxDisplayName = (mppName.trim() + "" + SachetOrPump + ' (' + tBrandName + ')').trim();
3783
+ else if (this.commonServices.selectedFormulation.IsExtemp == true || this.commonServices.lemi == true || (this.commonServices.selectedFormulation.dosageForm != null && this.commonServices.selectedFormulation.dosageForm.toLowerCase() == "gauze")) {
3784
+ if (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.dosageForm) && this.commonServices.selectedFormulation.dosageForm.toLowerCase() == "gauze") {
3785
+ // let PItemThree2 = prescribedItemReservedThree.lastIndexOf("[");
3786
+ // let PItemThree3 = prescribedItemReservedThree.slice(0, PItemThree2);
3787
+ // this.commonServices.prescribedItemReservedThree = PItemThree2 >= 0 ? PItemThree3.trim() : prescribedItemReservedThree;
3788
+ this.commonServices.eopDisplayName = this.commonServices.rxDisplayName = !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.productName) ? this.commonServices.selectedFormulation.productName : "";
3689
3789
  }
3690
3790
  else {
3691
- this.commonServices.eopDisplayName = this.commonServices.rxDisplayName = (mppName.trim() + "" + SachetOrPump).trim();
3791
+ // let PItemThree = extempTTPName.lastIndexOf("[");
3792
+ // let PItemThree1 = extempTTPName.slice(0, PItemThree);
3793
+ this.commonServices.eopDisplayName = this.commonServices.rxDisplayName = this.getExtempTTPName(this.commonServices.selectedFormulation).trim();
3794
+ // this.commonServices.prescribedItemReservedThree = PItemThree >= 0 ? PItemThree1.trim() : extempTTPName;
3692
3795
  }
3693
3796
  }
3694
3797
  else {
3695
- var strength = this.rxStrengthcalculation(this.commonServices.selectedFormulation);
3696
- var dispName = !this.commonServices.IsNullOrEmpty((_e = this.commonServices.selectedFormulation) === null || _e === void 0 ? void 0 : _e.DispName) ? this.commonServices.selectedFormulation.DispName.trim() : "";
3697
- if (this.commonServices.isBrandName == true) {
3698
- this.commonServices.rxDisplayName = (dispName + " " + (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.dosageForm) ? this.commonServices.selectedFormulation.dosageForm.trim() + " " : "") + (!this.commonServices.IsNullOrEmpty(tBrandName) ? '(' + tBrandName + ') ' : "") + strength).trim();
3699
- this.commonServices.eopDisplayName = (dispName + " " + (!this.commonServices.IsNullOrEmpty(tBrandName) ? '(' + tBrandName + ') ' : "") + strength).trim();
3700
- // this.commonServices.prescribedItemReservedThree = dispName + " " + (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.dosageForm) ? this.commonServices.selectedFormulation.dosageForm.trim() + " " : "") + (!this.commonServices.IsNullOrEmpty(tBrandName) ? '(' + tBrandName + ') ' : "") + this.rxStrengthcalculationNew(this.commonServices.selectedBrandFormulation);
3798
+ var mppName = this.getMPPName(this.commonServices.selectedFormulation);
3799
+ var SachetOrPump = !this.commonServices.IsNullOrEmpty((_d = this.commonServices.selectedFormulation) === null || _d === void 0 ? void 0 : _d.strSachetOrPump) ? " " + this.commonServices.selectedFormulation.strSachetOrPump : "";
3800
+ if (!this.commonServices.IsNullOrEmpty(mppName)) {
3801
+ if (this.commonServices.isBrandName == true) {
3802
+ this.commonServices.eopDisplayName = this.commonServices.rxDisplayName = (mppName.trim() + "" + SachetOrPump + ' (' + tBrandName + ')').trim();
3803
+ }
3804
+ else {
3805
+ this.commonServices.eopDisplayName = this.commonServices.rxDisplayName = (mppName.trim() + "" + SachetOrPump).trim();
3806
+ }
3701
3807
  }
3702
3808
  else {
3703
- this.commonServices.rxDisplayName = (dispName + " " + (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.dosageForm) ? this.commonServices.selectedFormulation.dosageForm.trim() : "") + " " + strength).trim();
3704
- this.commonServices.eopDisplayName = (dispName + " " + strength).trim();
3705
- // this.commonServices.prescribedItemReservedThree = dispName + " " + (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.dosageForm) ? this.commonServices.selectedFormulation.dosageForm.trim() : "") + " " + this.rxStrengthcalculationNew(this.commonServices.selectedBrandFormulation);
3809
+ var strength = this.rxStrengthcalculation(this.commonServices.selectedFormulation);
3810
+ var dispName = !this.commonServices.IsNullOrEmpty((_e = this.commonServices.selectedFormulation) === null || _e === void 0 ? void 0 : _e.DispName) ? this.commonServices.selectedFormulation.DispName.trim() : "";
3811
+ if (this.commonServices.isBrandName == true) {
3812
+ this.commonServices.rxDisplayName = (dispName + " " + (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.dosageForm) ? this.commonServices.selectedFormulation.dosageForm.trim() + " " : "") + (!this.commonServices.IsNullOrEmpty(tBrandName) ? '(' + tBrandName + ') ' : "") + strength).trim();
3813
+ this.commonServices.eopDisplayName = (dispName + " " + (!this.commonServices.IsNullOrEmpty(tBrandName) ? '(' + tBrandName + ') ' : "") + strength).trim();
3814
+ // this.commonServices.prescribedItemReservedThree = dispName + " " + (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.dosageForm) ? this.commonServices.selectedFormulation.dosageForm.trim() + " " : "") + (!this.commonServices.IsNullOrEmpty(tBrandName) ? '(' + tBrandName + ') ' : "") + this.rxStrengthcalculationNew(this.commonServices.selectedBrandFormulation);
3815
+ }
3816
+ else {
3817
+ this.commonServices.rxDisplayName = (dispName + " " + (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.dosageForm) ? this.commonServices.selectedFormulation.dosageForm.trim() : "") + " " + strength).trim();
3818
+ this.commonServices.eopDisplayName = (dispName + " " + strength).trim();
3819
+ // this.commonServices.prescribedItemReservedThree = dispName + " " + (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.dosageForm) ? this.commonServices.selectedFormulation.dosageForm.trim() : "") + " " + this.rxStrengthcalculationNew(this.commonServices.selectedBrandFormulation);
3820
+ }
3706
3821
  }
3707
3822
  }
3708
3823
  }
3824
+ else {
3825
+ this.commonServices.rxDisplayName = this.commonServices.eopDisplayName = !this.commonServices.IsNullOrEmpty((_f = this.commonServices.selectedFormulation) === null || _f === void 0 ? void 0 : _f.productName) ? this.commonServices.selectedFormulation.productName : "";
3826
+ }
3709
3827
  }
3710
3828
  catch (ex) {
3711
3829
  this.commonServices.rxDisplayName = this.commonServices.eopDisplayName = "";
@@ -4159,7 +4277,7 @@ class RxComponent {
4159
4277
  this.commonServices.errorResponse(errorconfig.error_50.code, errorconfig.error_50.message);
4160
4278
  return;
4161
4279
  }
4162
- if (!this.commonServices.IsNullOrEmpty(this.commonServices.patientDetails)) {
4280
+ if (!this.commonServices.isMedicineRestrict && !this.commonServices.IsNullOrEmpty(this.commonServices.patientDetails)) {
4163
4281
  if (!this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation) && Array.isArray(this.commonServices.selectedFormulation['rtpmStates']) && this.commonServices.selectedFormulation['rtpmStates'].length > 0) {
4164
4282
  let isRtpmStates = this.commonServices.selectedFormulation['rtpmStates'].includes(this.commonServices.patientDetails.state);
4165
4283
  if (isRtpmStates) {
@@ -4287,8 +4405,8 @@ class RxComponent {
4287
4405
  this.commonServices.isPrintAvailable = true;
4288
4406
  this.commonServices.AddressSendToAddType = "SMS";
4289
4407
  this.changedetect.detectChanges();
4290
- var scheduleNumber = !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] : '';
4291
- if (scheduleNumber.toLowerCase() == 's8' && this.commonServices.physicianDetails.isPasswordCheck) {
4408
+ 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] : '') : "";
4409
+ if (!this.commonServices.isMedicineRestrict && scheduleNumber.toLowerCase() == 's8' && this.commonServices.physicianDetails.isPasswordCheck) {
4292
4410
  this.commonServices.dialogopen(PasswordComponent, this.content).subscribe((res) => {
4293
4411
  if (res.responseCode == 0) {
4294
4412
  this.prescribeMed();
@@ -4331,6 +4449,43 @@ class RxComponent {
4331
4449
  this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "indicationAuthority");
4332
4450
  }
4333
4451
  }
4452
+ getMaxQuantity() {
4453
+ var _a, _b, _c, _d;
4454
+ try {
4455
+ if (!this.commonServices.IsNullOrEmpty((_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.pbsType) && this.commonServices.selectedFormulation.pbsType.toLowerCase() == "non pbs") {
4456
+ return this.commonServices.selectedFormulation.numberOfPack + "x" + this.commonServices.selectedFormulation.unitPerPack;
4457
+ }
4458
+ else {
4459
+ if (this.commonServices.isMedicineRestrict && !this.commonServices.IsNullOrEmpty((_b = this.commonServices.selectedFormulation) === null || _b === void 0 ? void 0 : _b.numberOfPack) && ((_c = this.commonServices.selectedFormulation) === null || _c === void 0 ? void 0 : _c.numberOfPack) != 0) {
4460
+ return this.commonServices.selectedFormulation.numberOfPack;
4461
+ }
4462
+ if (!this.commonServices.IsNullOrEmpty((_d = this.commonServices.selectedFormulation) === null || _d === void 0 ? void 0 : _d.maxQtyUnits))
4463
+ return (this.commonServices.quantityWithUnitFlag ? "1 x " : "") + this.commonServices.selectedFormulation.maxQtyUnits;
4464
+ else
4465
+ return "";
4466
+ }
4467
+ }
4468
+ catch (ex) {
4469
+ this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "getMaxQuantity");
4470
+ return "";
4471
+ }
4472
+ }
4473
+ getDefaultQuantity() {
4474
+ var _a, _b, _c;
4475
+ try {
4476
+ if (this.commonServices.isMedicineRestrict && !this.commonServices.IsNullOrEmpty((_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.numberOfPack) && ((_b = this.commonServices.selectedFormulation) === null || _b === void 0 ? void 0 : _b.numberOfPack) != 0) {
4477
+ return this.commonServices.selectedFormulation.numberOfPack;
4478
+ }
4479
+ if (!this.commonServices.IsNullOrEmpty((_c = this.commonServices.selectedFormulation) === null || _c === void 0 ? void 0 : _c.maxQtyUnits)) {
4480
+ return (this.commonServices.quantityWithUnitFlag ? "1 x " : "") + this.commonServices.selectedFormulation.maxQtyUnits;
4481
+ }
4482
+ return "";
4483
+ }
4484
+ catch (ex) {
4485
+ this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "getDefaultQuantity");
4486
+ return "";
4487
+ }
4488
+ }
4334
4489
  onInputChange(newValue) {
4335
4490
  try {
4336
4491
  this.commonServices.pbsListInstructions = newValue;
@@ -4383,7 +4538,7 @@ class RxComponent {
4383
4538
  }
4384
4539
  //the below code will hit the eRX and return the value with barcode
4385
4540
  prescribeMed() {
4386
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
4541
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
4387
4542
  var body = {};
4388
4543
  try {
4389
4544
  if (this.showAuthorityBox(this.commonServices.selectedFormulation.Restrictions, this.commonServices.PrescribeAS, this.commonServices.rxAuthority, this.commonServices.unlistedRA) == true) {
@@ -4413,7 +4568,7 @@ class RxComponent {
4413
4568
  medNo1 = medNo1.replace(/-/g, '');
4414
4569
  medicareCard = medNo1;
4415
4570
  }
4416
- let pbsManufacturerCodeSet = !this.commonServices.IsNullOrEmpty(selectedFormulation) && !this.commonServices.IsNullOrEmpty(selectedFormulation.pbsManufacturerCodes) && selectedFormulation.pbsManufacturerCodes.length != 0 && !this.commonServices.IsNullOrEmpty(selectedFormulation.pbsManufacturerCodes[0]) ? selectedFormulation.pbsManufacturerCodes[0] : '';
4571
+ let pbsManufacturerCodeSet = !this.commonServices.IsNullOrEmpty(selectedFormulation) && !this.commonServices.IsNullOrEmpty(selectedFormulation === null || selectedFormulation === void 0 ? void 0 : selectedFormulation.pbsManufacturerCodes) && selectedFormulation.pbsManufacturerCodes.length != 0 && !this.commonServices.IsNullOrEmpty(selectedFormulation.pbsManufacturerCodes[0]) ? selectedFormulation.pbsManufacturerCodes[0] : '';
4417
4572
  let checkAuthorityBox = this.showAuthorityBox(selectedFormulation.Restrictions, this.commonServices.PrescribeAS, this.commonServices.rxAuthority, this.commonServices.unlistedRA);
4418
4573
  body = {
4419
4574
  isShowAuthority: this.commonServices.isShowAuthority,
@@ -4460,7 +4615,7 @@ class RxComponent {
4460
4615
  addressState: this.getStateCodeFromStateName(patientDetails.state),
4461
4616
  prescriptionWrittenDate: !this.commonServices.IsNullOrEmpty(this.commonServices.scriptDate) ? this.datePipe.transform(this.commonServices.scriptDate, 'YYYY-MM-dd') : "",
4462
4617
  formText: !this.commonServices.IsNullOrEmpty(selectedFormulation === null || selectedFormulation === void 0 ? void 0 : selectedFormulation.dosageForm) ? selectedFormulation.dosageForm : "",
4463
- strength: !this.commonServices.IsNullOrEmpty(selectedFormulation.moleculeStrength) ? selectedFormulation.moleculeStrength : " ",
4618
+ strength: !this.commonServices.IsNullOrEmpty(selectedFormulation === null || selectedFormulation === void 0 ? void 0 : selectedFormulation.moleculeStrength) ? selectedFormulation.moleculeStrength : " ",
4464
4619
  directions: this.getDirections(),
4465
4620
  brandSubstitutesNotAllowed: this.commonServices.BrandSubstitutesNotAllow == true ? 0 : 1,
4466
4621
  maximumNumberOfRepeats: this.commonServices.repeatsVal,
@@ -4514,10 +4669,10 @@ class RxComponent {
4514
4669
  prescriberType: physicianDetails.prescriberType,
4515
4670
  medicineName: !this.commonServices.IsNullOrEmpty((_k = this.commonServices.selectedFormulation) === null || _k === void 0 ? void 0 : _k.productName) ? this.commonServices.selectedFormulation.productName : "",
4516
4671
  brandName: this.getBrandName(this.commonServices.selectedFormulation),
4517
- genericName: this.htmlToTextConvert(this.commonServices.selectedFormulation.IsExtemp == true ? this.getExtempTTPName(this.commonServices.selectedFormulation) : !this.commonServices.IsNullOrEmpty((_l = this.commonServices.selectedFormulation) === null || _l === void 0 ? void 0 : _l.genericName) ? this.commonServices.selectedFormulation.genericName : this.getExtempMPPName()),
4672
+ genericName: this.htmlToTextConvert(!this.commonServices.IsNullOrEmpty((_l = this.commonServices.selectedFormulation) === null || _l === void 0 ? void 0 : _l.IsExtemp) && this.commonServices.selectedFormulation.IsExtemp == true ? this.getExtempTTPName(this.commonServices.selectedFormulation) : !this.commonServices.IsNullOrEmpty((_m = this.commonServices.selectedFormulation) === null || _m === void 0 ? void 0 : _m.genericName) ? this.commonServices.selectedFormulation.genericName : this.getExtempMPPName()),
4518
4673
  //itemGenericIntention: getItemGenericIntention(this.state.lemi,this.state.isBrandName,this.state.selectedFormulation.IsExtemp == true ? true : false),
4519
4674
  itemGenericIntention: this.commonServices.lemi == true && this.commonServices.selectedFormulation.IsExtemp != true ? 'B' : 'G',
4520
- scheduleNumber: this.payLoadStateScheduleNumber(this.commonServices.selectedFormulation) != "" ? this.payLoadStateScheduleNumber(this.commonServices.selectedFormulation) : this.getScheduleNumber(this.commonServices.selectedFormulation),
4675
+ scheduleNumber: this.payLoadStateScheduleNumber(this.commonServices.selectedFormulation) != "" ? this.payLoadStateScheduleNumber(this.commonServices.selectedFormulation) : this.commonServices.getScheduleNumber(this.commonServices.selectedFormulation),
4521
4676
  doctorNotes: !this.commonServices.IsNullOrEmpty(this.commonServices.doctorNotes) ? this.commonServices.doctorNotes.trim() : "",
4522
4677
  regulation24: this.commonServices.regulation24 == false ? 1 : 0,
4523
4678
  isExtemp: this.commonServices.selectedFormulation != null && this.commonServices.selectedFormulation.IsExtemp != null ? this.commonServices.selectedFormulation.IsExtemp == true ? 0 : 1 : 1,
@@ -4542,10 +4697,10 @@ class RxComponent {
4542
4697
  purpose: this.commonServices.purposeSearchValue.trim(),
4543
4698
  pbsNotes: this.commonServices.pbsNotes,
4544
4699
  isActive: 0,
4545
- productId: !this.commonServices.IsNullOrEmpty((_m = this.commonServices.selectedFormulation) === null || _m === void 0 ? void 0 : _m.productId) ? this.commonServices.selectedFormulation.productId : "",
4546
- amtText: !this.commonServices.IsNullOrEmpty((_o = this.commonServices.selectedFormulation) === null || _o === void 0 ? void 0 : _o.formula) ? this.commonServices.selectedFormulation.formula : "",
4547
- quantityOfTherapeuticGoodDoseUnitCode: !this.commonServices.IsNullOrEmpty((_p = this.commonServices.selectedFormulation) === null || _p === void 0 ? void 0 : _p.dosageForm) ? this.commonServices.selectedFormulation.dosageForm : "",
4548
- quantityOfTherapeuticGoodDoseUnitText: !this.commonServices.IsNullOrEmpty((_q = this.commonServices.selectedFormulation) === null || _q === void 0 ? void 0 : _q.dosageForm) ? this.commonServices.selectedFormulation.dosageForm : "",
4700
+ productId: !this.commonServices.IsNullOrEmpty((_o = this.commonServices.selectedFormulation) === null || _o === void 0 ? void 0 : _o.productId) ? this.commonServices.selectedFormulation.productId : "",
4701
+ amtText: !this.commonServices.IsNullOrEmpty((_p = this.commonServices.selectedFormulation) === null || _p === void 0 ? void 0 : _p.formula) ? this.commonServices.selectedFormulation.formula : "",
4702
+ quantityOfTherapeuticGoodDoseUnitCode: !this.commonServices.IsNullOrEmpty((_q = this.commonServices.selectedFormulation) === null || _q === void 0 ? void 0 : _q.dosageForm) ? this.commonServices.selectedFormulation.dosageForm : "",
4703
+ quantityOfTherapeuticGoodDoseUnitText: !this.commonServices.IsNullOrEmpty((_r = this.commonServices.selectedFormulation) === null || _r === void 0 ? void 0 : _r.dosageForm) ? this.commonServices.selectedFormulation.dosageForm : "",
4549
4704
  prescriberRoleCode: '',
4550
4705
  prescriberRoleText: '',
4551
4706
  orgHicLocationId: !this.commonServices.IsNullOrEmpty(this.commonServices.facilityDetails) && !this.commonServices.IsNullOrEmpty(this.commonServices.facilityDetails.orgHicLocationId) ? this.commonServices.facilityDetails.orgHicLocationId : '',
@@ -4562,24 +4717,25 @@ class RxComponent {
4562
4717
  //scriptNumber: "",
4563
4718
  displayName: this.shrinkSuperScriptCode(this.commonServices.rxDisplayName),
4564
4719
  eopDisplayName: this.commonServices.scriptType.toLowerCase() == "e" ? this.shrinkSuperScriptCode(this.commonServices.eopDisplayName) : this.shrinkSuperScriptCode(this.commonServices.rxDisplayName),
4565
- itemStrengthXml: !this.commonServices.IsNullOrEmpty((_r = this.commonServices.selectedFormulation) === null || _r === void 0 ? void 0 : _r.ItemStrengthXml) ? this.commonServices.selectedFormulation.ItemStrengthXml : " ",
4720
+ itemStrengthXml: !this.commonServices.IsNullOrEmpty((_s = this.commonServices.selectedFormulation) === null || _s === void 0 ? void 0 : _s.ItemStrengthXml) ? this.commonServices.selectedFormulation.ItemStrengthXml : " ",
4566
4721
  //authorityValue
4567
4722
  pbsDvaAuthorityNumber: checkAuthorityBox ? this.commonServices.authorityFormNo : 0,
4568
4723
  prescribedItemReservedThree: this.htmlToTextConvert(this.commonServices.rxDisplayName),
4569
4724
  prescribedItemReservedFour: 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" && this.commonServices.scriptType.toLowerCase() === "e" ? this.commonServices.prescribedItemReservedFour : '',
4570
4725
  unlistedItemRepatAuthority: this.commonServices.unlistedRA == true ? true : false,
4571
4726
  isPrintAvailable: this.commonServices.isPrintAvailable,
4572
- prescribedItemReservedOne: this.getScheduleNumber(this.commonServices.selectedFormulation).toLowerCase() == "s8" ? this.numberToWord(parseInt(this.commonServices.quantityVal)) : '',
4727
+ prescribedItemReservedOne: this.commonServices.getScheduleNumber(this.commonServices.selectedFormulation).toLowerCase() == "s8" ? this.numberToWord(parseInt(this.commonServices.quantityVal)) : '',
4573
4728
  mySLConsent: this.commonServices.mySLConsent,
4574
4729
  sendToPharmacy: this.commonServices.sendToPharmacy,
4575
4730
  sendToPharmacyValue: this.commonServices.sendToPharmacyValue,
4576
4731
  emergencySupply: this.commonServices.emergencySupply,
4577
- moleculeStrengthGrid: !this.commonServices.IsNullOrEmpty((_s = this.commonServices.selectedFormulation) === null || _s === void 0 ? void 0 : _s.moleculeStrengthGrid) ? this.commonServices.selectedFormulation.moleculeStrengthGrid : '',
4732
+ moleculeStrengthGrid: !this.commonServices.IsNullOrEmpty((_t = this.commonServices.selectedFormulation) === null || _t === void 0 ? void 0 : _t.moleculeStrengthGrid) ? this.commonServices.selectedFormulation.moleculeStrengthGrid : '',
4578
4733
  entityId: this.commonServices.physicianDetails.entityId,
4579
4734
  isPrescribeAndPrint: this.isepriscribeprint,
4580
- amtCodeSystem: !this.commonServices.IsNullOrEmpty((_t = this.commonServices.selectedFormulation) === null || _t === void 0 ? void 0 : _t.amtCodeSystem) ? this.commonServices.selectedFormulation.amtCodeSystem : "",
4581
- amtVersion: !this.commonServices.IsNullOrEmpty((_u = this.commonServices.selectedFormulation) === null || _u === void 0 ? void 0 : _u.amtVersion) ? this.commonServices.selectedFormulation.amtVersion : "",
4582
- quantityWithUnit: this.commonServices.quantityWithUnitFlag && !this.commonServices.IsNullOrEmpty((_v = this.commonServices.selectedFormulation) === null || _v === void 0 ? void 0 : _v.maxQtyUnits) ? this.commonServices.selectedFormulation.maxQtyUnits : ""
4735
+ amtCodeSystem: !this.commonServices.IsNullOrEmpty((_u = this.commonServices.selectedFormulation) === null || _u === void 0 ? void 0 : _u.amtCodeSystem) ? this.commonServices.selectedFormulation.amtCodeSystem : "",
4736
+ amtVersion: !this.commonServices.IsNullOrEmpty((_v = this.commonServices.selectedFormulation) === null || _v === void 0 ? void 0 : _v.amtVersion) ? this.commonServices.selectedFormulation.amtVersion : "",
4737
+ quantityWithUnit: this.commonServices.quantityWithUnitFlag && !this.commonServices.IsNullOrEmpty((_w = this.commonServices.selectedFormulation) === null || _w === void 0 ? void 0 : _w.maxQtyUnits) ? this.commonServices.selectedFormulation.maxQtyUnits : "",
4738
+ clientId: this.clientId
4583
4739
  };
4584
4740
  this.commonServices.removeErrToast();
4585
4741
  this.changedetect.detectChanges();
@@ -4678,7 +4834,7 @@ class RxComponent {
4678
4834
  }
4679
4835
  }
4680
4836
  MprescribeMed(id) {
4681
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
4837
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
4682
4838
  var body = {};
4683
4839
  try {
4684
4840
  if (id == 1) {
@@ -4723,7 +4879,7 @@ class RxComponent {
4723
4879
  medNo1 = medNo1.replace(/-/g, '');
4724
4880
  medicareCard = medNo1;
4725
4881
  }
4726
- let pbsManufacturerCodeSet = selectedFormulation != null && selectedFormulation.pbsManufacturerCodes != null && selectedFormulation.pbsManufacturerCodes.length != 0 ? selectedFormulation.pbsManufacturerCodes[0] : '';
4882
+ let pbsManufacturerCodeSet = !this.commonServices.IsNullOrEmpty(selectedFormulation === null || selectedFormulation === void 0 ? void 0 : selectedFormulation.pbsManufacturerCodes) && selectedFormulation.pbsManufacturerCodes.length != 0 ? selectedFormulation.pbsManufacturerCodes[0] : '';
4727
4883
  let checkAuthorityBox = this.showAuthorityBox(selectedFormulation.Restrictions, this.commonServices.PrescribeAS, this.commonServices.rxAuthority, this.commonServices.unlistedRA);
4728
4884
  body = {
4729
4885
  rxId: !this.commonServices.IsNullOrEmpty(this.commonServices.rxid) ? this.commonServices.rxid : '',
@@ -4769,32 +4925,32 @@ class RxComponent {
4769
4925
  addressPostCode: patientDetails.postCode,
4770
4926
  addressState: this.getStateCodeFromStateName(patientDetails.state),
4771
4927
  prescriptionWrittenDate: !this.commonServices.IsNullOrEmpty(this.commonServices.scriptDate) ? this.datePipe.transform(this.commonServices.scriptDate, 'YYYY-MM-dd') : "",
4772
- formText: !this.commonServices.IsNullOrEmpty(selectedFormulation.dosageForm) ? selectedFormulation.dosageForm : "",
4773
- strength: !this.commonServices.IsNullOrEmpty(selectedFormulation.moleculeStrength) ? selectedFormulation.moleculeStrength : " ",
4928
+ formText: !this.commonServices.IsNullOrEmpty(selectedFormulation === null || selectedFormulation === void 0 ? void 0 : selectedFormulation.dosageForm) ? selectedFormulation.dosageForm : "",
4929
+ strength: !this.commonServices.IsNullOrEmpty(selectedFormulation === null || selectedFormulation === void 0 ? void 0 : selectedFormulation.moleculeStrength) ? selectedFormulation.moleculeStrength : " ",
4774
4930
  directions: this.getDirections(),
4775
4931
  brandSubstitutesNotAllowed: this.commonServices.BrandSubstitutesNotAllow == true ? 0 : 1,
4776
4932
  maximumNumberOfRepeats: this.commonServices.repeatsVal,
4777
4933
  minimumIntervalBetweenRepeats: this.commonServices.daysBtnRepeatsVal != undefined && this.commonServices.daysBtnRepeatsVal != null && this.commonServices.daysBtnRepeatsVal != "" ? parseInt(this.commonServices.daysBtnRepeatsVal) : "-1",
4778
4934
  patientCtgFlag: this.commonServices.CTGCoPayment == true ? 0 : 1,
4779
- pbsItemCodeCode: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.pbsCode) ? this.commonServices.selectedFormulation.pbsCode : "",
4780
- pbsItemCodeText: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.pbsCodeText) ? this.commonServices.selectedFormulation.pbsCodeText : "",
4935
+ pbsItemCodeCode: !this.commonServices.IsNullOrEmpty((_d = this.commonServices.selectedFormulation) === null || _d === void 0 ? void 0 : _d.pbsCode) ? this.commonServices.selectedFormulation.pbsCode : "",
4936
+ pbsItemCodeText: !this.commonServices.IsNullOrEmpty((_e = this.commonServices.selectedFormulation) === null || _e === void 0 ? void 0 : _e.pbsCodeText) ? this.commonServices.selectedFormulation.pbsCodeText : "",
4781
4937
  pbsItemManufacturer: this.commonServices.isBrandName ? pbsManufacturerCodeSet : '',
4782
4938
  stateAuthorityNumber: !this.commonServices.IsNullOrEmpty(this.commonServices.StateAuthorityNumber) ? this.commonServices.StateAuthorityNumber.trim() : "",
4783
4939
  reasonForTherapeuticGood: !this.commonServices.IsNullOrEmpty(this.commonServices.prescriptionReason) ? this.commonServices.prescriptionReason.trim() : "",
4784
4940
  unusualQtyFlag: this.setUnusualQtyFlag(this.commonServices.selectedFormulation, this.commonServices.quantityVal, this.commonServices.PrescribeAS),
4785
4941
  quantityOfTherapeuticGoodQuantity: parseInt(this.commonServices.quantityVal),
4786
4942
  complexInstructions: !this.commonServices.IsNullOrEmpty(this.commonServices.InstructionSearchValue) ? this.commonServices.InstructionSearchValue.trim() : "",
4787
- amtMppCode: !this.commonServices.IsNullOrEmpty((_d = this.commonServices.selectedFormulation) === null || _d === void 0 ? void 0 : _d.AMTMPPCode) ? this.commonServices.selectedFormulation.AMTMPPCode : "",
4788
- amtMppName: !this.commonServices.IsNullOrEmpty((_e = this.commonServices.selectedFormulation) === null || _e === void 0 ? void 0 : _e.amt) && this.commonServices.selectedFormulation.amt.length > 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt[0].mpps) && this.commonServices.selectedFormulation.amt[0].mpps.length > 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt[0].mpps[0].mppName) ? this.commonServices.selectedFormulation.amt[0].mpps[0].mppName : '',
4789
- amtTppCode: !this.commonServices.IsNullOrEmpty((_f = this.commonServices.selectedFormulation) === null || _f === void 0 ? void 0 : _f.AMTTPPCode) ? this.commonServices.selectedFormulation.AMTTPPCode : "",
4790
- amtTppName: !this.commonServices.IsNullOrEmpty((_g = this.commonServices.selectedFormulation) === null || _g === void 0 ? void 0 : _g.amt) && this.commonServices.selectedFormulation.amt.length > 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt[0].tpps) && this.commonServices.selectedFormulation.amt[0].tpps.length > 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt[0].tpps[0].tppName) ? this.commonServices.selectedFormulation.amt[0].tpps[0].tppName : '',
4791
- amtTpCode: !this.commonServices.IsNullOrEmpty((_h = this.commonServices.selectedFormulation) === null || _h === void 0 ? void 0 : _h.AMTTPCode) ? this.commonServices.selectedFormulation.AMTTPCode : "",
4792
- amtTpName: !this.commonServices.IsNullOrEmpty((_j = this.commonServices.selectedFormulation) === null || _j === void 0 ? void 0 : _j.amt) && this.commonServices.selectedFormulation.amt.length > 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt[0].tpName) ? this.commonServices.selectedFormulation.amt[0].tpName : '',
4793
- amtCode: !this.commonServices.IsNullOrEmpty((_k = this.commonServices.selectedFormulation) === null || _k === void 0 ? void 0 : _k.amt) ? this.commonServices.selectedFormulation.amt.amtcode : '',
4943
+ amtMppCode: !this.commonServices.IsNullOrEmpty((_f = this.commonServices.selectedFormulation) === null || _f === void 0 ? void 0 : _f.AMTMPPCode) ? this.commonServices.selectedFormulation.AMTMPPCode : "",
4944
+ amtMppName: !this.commonServices.IsNullOrEmpty((_g = this.commonServices.selectedFormulation) === null || _g === void 0 ? void 0 : _g.amt) && this.commonServices.selectedFormulation.amt.length > 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt[0].mpps) && this.commonServices.selectedFormulation.amt[0].mpps.length > 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt[0].mpps[0].mppName) ? this.commonServices.selectedFormulation.amt[0].mpps[0].mppName : '',
4945
+ amtTppCode: !this.commonServices.IsNullOrEmpty((_h = this.commonServices.selectedFormulation) === null || _h === void 0 ? void 0 : _h.AMTTPPCode) ? this.commonServices.selectedFormulation.AMTTPPCode : "",
4946
+ amtTppName: !this.commonServices.IsNullOrEmpty((_j = this.commonServices.selectedFormulation) === null || _j === void 0 ? void 0 : _j.amt) && this.commonServices.selectedFormulation.amt.length > 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt[0].tpps) && this.commonServices.selectedFormulation.amt[0].tpps.length > 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt[0].tpps[0].tppName) ? this.commonServices.selectedFormulation.amt[0].tpps[0].tppName : '',
4947
+ amtTpCode: !this.commonServices.IsNullOrEmpty((_k = this.commonServices.selectedFormulation) === null || _k === void 0 ? void 0 : _k.AMTTPCode) ? this.commonServices.selectedFormulation.AMTTPCode : "",
4948
+ amtTpName: !this.commonServices.IsNullOrEmpty((_l = this.commonServices.selectedFormulation) === null || _l === void 0 ? void 0 : _l.amt) && this.commonServices.selectedFormulation.amt.length > 0 && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.amt[0].tpName) ? this.commonServices.selectedFormulation.amt[0].tpName : '',
4949
+ amtCode: !this.commonServices.IsNullOrEmpty((_m = this.commonServices.selectedFormulation) === null || _m === void 0 ? void 0 : _m.amt) ? this.commonServices.selectedFormulation.amt.amtcode : '',
4794
4950
  therepeuticGoodIdentificationMimsCode: '',
4795
4951
  therepeuticGoodIdentificationLocalCode: '',
4796
4952
  // therepeuticGoodIdentificationEanCode: "",
4797
- therepeuticGoodIdentificationEanText: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.pbsType) && this.commonServices.selectedFormulation.pbsType.toLowerCase() == 'non pbs' && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.productName) ? this.commonServices.selectedFormulation.productName : '',
4953
+ therepeuticGoodIdentificationEanText: !this.commonServices.IsNullOrEmpty((_o = this.commonServices.selectedFormulation) === null || _o === void 0 ? void 0 : _o.pbsType) && this.commonServices.selectedFormulation.pbsType.toLowerCase() == 'non pbs' && !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.productName) ? this.commonServices.selectedFormulation.productName : '',
4798
4954
  prescriberOccupationCode: physicianDetails.occupationCode,
4799
4955
  prescriberOccupationText: physicianDetails.occupationText,
4800
4956
  prescriberPersonTitle: physicianDetails.prefix,
@@ -4810,9 +4966,9 @@ class RxComponent {
4810
4966
  prescriptionWrittenUtcTime: '01-01-1970 09:06:09',
4811
4967
  prescriptionWrittenUtcOffset: this.getOffset(),
4812
4968
  prescriptionExpiresValue: !this.commonServices.IsNullOrEmpty(this.commonServices.endDate) ? this.datePipe.transform(this.commonServices.endDate, 'MM/dd/YYYY') : "",
4813
- activeIngredient: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.genericName) ? this.commonServices.selectedFormulation.genericName : "",
4814
- formCode: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.dosageForm) ? this.commonServices.selectedFormulation.dosageForm : "",
4815
- formula: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.formula) ? this.commonServices.selectedFormulation.formula : "",
4969
+ activeIngredient: !this.commonServices.IsNullOrEmpty((_p = this.commonServices.selectedFormulation) === null || _p === void 0 ? void 0 : _p.genericName) ? this.commonServices.selectedFormulation.genericName : "",
4970
+ formCode: !this.commonServices.IsNullOrEmpty((_q = this.commonServices.selectedFormulation) === null || _q === void 0 ? void 0 : _q.dosageForm) ? this.commonServices.selectedFormulation.dosageForm : "",
4971
+ formula: !this.commonServices.IsNullOrEmpty((_r = this.commonServices.selectedFormulation) === null || _r === void 0 ? void 0 : _r.formula) ? this.commonServices.selectedFormulation.formula : "",
4816
4972
  additionalComments: !this.commonServices.IsNullOrEmpty(this.commonServices.doctorNotes) ? this.commonServices.doctorNotes.trim() : "",
4817
4973
  aslConsent: 1,
4818
4974
  prescriptionNoteDetailNote: this.commonServices.purposeSearchValue,
@@ -4822,12 +4978,12 @@ class RxComponent {
4822
4978
  route: this.commonServices.routeSearchValue != '-' ? this.commonServices.routeSearchValue : '',
4823
4979
  //providerNumber:'',
4824
4980
  prescriberType: physicianDetails.prescriberType,
4825
- medicineName: !this.commonServices.IsNullOrEmpty((_l = this.commonServices.selectedFormulation) === null || _l === void 0 ? void 0 : _l.productName) ? this.commonServices.selectedFormulation.productName : "",
4981
+ medicineName: !this.commonServices.IsNullOrEmpty((_s = this.commonServices.selectedFormulation) === null || _s === void 0 ? void 0 : _s.productName) ? this.commonServices.selectedFormulation.productName : "",
4826
4982
  brandName: this.getBrandName(this.commonServices.selectedFormulation),
4827
- genericName: this.htmlToTextConvert(this.commonServices.selectedFormulation.IsExtemp == true ? this.getExtempTTPName(this.commonServices.selectedFormulation) : this.commonServices.IsNullOrEmpty((_m = this.commonServices.selectedFormulation) === null || _m === void 0 ? void 0 : _m.genericName) ? this.commonServices.selectedFormulation.genericName : this.getExtempMPPName()),
4983
+ genericName: this.htmlToTextConvert(!this.commonServices.IsNullOrEmpty((_t = this.commonServices.selectedFormulation) === null || _t === void 0 ? void 0 : _t.IsExtemp) && this.commonServices.selectedFormulation.IsExtemp == true ? this.getExtempTTPName(this.commonServices.selectedFormulation) : !this.commonServices.IsNullOrEmpty((_u = this.commonServices.selectedFormulation) === null || _u === void 0 ? void 0 : _u.genericName) ? this.commonServices.selectedFormulation.genericName : this.getExtempMPPName()),
4828
4984
  //itemGenericIntention: getItemGenericIntention(this.state.lemi,this.state.isBrandName,this.state.selectedFormulation.IsExtemp == true ? true : false),
4829
4985
  itemGenericIntention: this.commonServices.lemi == true && this.commonServices.selectedFormulation.IsExtemp != true ? 'B' : 'G',
4830
- scheduleNumber: this.payLoadStateScheduleNumber(this.commonServices.selectedFormulation) != "" ? this.payLoadStateScheduleNumber(this.commonServices.selectedFormulation) : this.getScheduleNumber(this.commonServices.selectedFormulation),
4986
+ scheduleNumber: this.payLoadStateScheduleNumber(this.commonServices.selectedFormulation) != "" ? this.payLoadStateScheduleNumber(this.commonServices.selectedFormulation) : this.commonServices.getScheduleNumber(this.commonServices.selectedFormulation),
4831
4987
  doctorNotes: !this.commonServices.IsNullOrEmpty(this.commonServices.doctorNotes) ? this.commonServices.doctorNotes.trim() : "",
4832
4988
  regulation24: this.commonServices.regulation24 == false ? 1 : 0,
4833
4989
  isExtemp: this.commonServices.selectedFormulation != null && this.commonServices.selectedFormulation.IsExtemp != null ? this.commonServices.selectedFormulation.IsExtemp == true ? 0 : 1 : 1,
@@ -4852,10 +5008,10 @@ class RxComponent {
4852
5008
  purpose: this.commonServices.purposeSearchValue.trim(),
4853
5009
  pbsNotes: this.commonServices.pbsNotes,
4854
5010
  isActive: 0,
4855
- productId: !this.commonServices.IsNullOrEmpty((_o = this.commonServices.selectedFormulation) === null || _o === void 0 ? void 0 : _o.productId) ? this.commonServices.selectedFormulation.productId : "",
4856
- amtText: !this.commonServices.IsNullOrEmpty((_p = this.commonServices.selectedFormulation) === null || _p === void 0 ? void 0 : _p.formula) ? this.commonServices.selectedFormulation.formula : "",
4857
- quantityOfTherapeuticGoodDoseUnitCode: !this.commonServices.IsNullOrEmpty((_q = this.commonServices.selectedFormulation) === null || _q === void 0 ? void 0 : _q.dosageForm) ? this.commonServices.selectedFormulation.dosageForm : "",
4858
- quantityOfTherapeuticGoodDoseUnitText: !this.commonServices.IsNullOrEmpty((_r = this.commonServices.selectedFormulation) === null || _r === void 0 ? void 0 : _r.dosageForm) ? this.commonServices.selectedFormulation.dosageForm : "",
5011
+ productId: !this.commonServices.IsNullOrEmpty((_v = this.commonServices.selectedFormulation) === null || _v === void 0 ? void 0 : _v.productId) ? this.commonServices.selectedFormulation.productId : "",
5012
+ amtText: !this.commonServices.IsNullOrEmpty((_w = this.commonServices.selectedFormulation) === null || _w === void 0 ? void 0 : _w.formula) ? this.commonServices.selectedFormulation.formula : "",
5013
+ quantityOfTherapeuticGoodDoseUnitCode: !this.commonServices.IsNullOrEmpty((_x = this.commonServices.selectedFormulation) === null || _x === void 0 ? void 0 : _x.dosageForm) ? this.commonServices.selectedFormulation.dosageForm : "",
5014
+ quantityOfTherapeuticGoodDoseUnitText: !this.commonServices.IsNullOrEmpty((_y = this.commonServices.selectedFormulation) === null || _y === void 0 ? void 0 : _y.dosageForm) ? this.commonServices.selectedFormulation.dosageForm : "",
4859
5015
  prescriberRoleCode: '',
4860
5016
  prescriberRoleText: '',
4861
5017
  orgHicLocationId: !this.commonServices.IsNullOrEmpty(this.commonServices.facilityDetails) && !this.commonServices.IsNullOrEmpty(this.commonServices.facilityDetails.orgHicLocationId) ? this.commonServices.facilityDetails.orgHicLocationId : '',
@@ -4871,22 +5027,23 @@ class RxComponent {
4871
5027
  //scriptNumber: "",
4872
5028
  displayName: this.shrinkSuperScriptCode(this.commonServices.rxDisplayName),
4873
5029
  eopDisplayName: this.commonServices.scriptType.toLowerCase() == "e" ? this.shrinkSuperScriptCode(this.commonServices.eopDisplayName) : this.shrinkSuperScriptCode(this.commonServices.rxDisplayName),
4874
- itemStrengthXml: !this.commonServices.IsNullOrEmpty((_s = this.commonServices.selectedFormulation) === null || _s === void 0 ? void 0 : _s.ItemStrengthXml) ? this.commonServices.selectedFormulation.ItemStrengthXml : " ",
5030
+ itemStrengthXml: !this.commonServices.IsNullOrEmpty((_z = this.commonServices.selectedFormulation) === null || _z === void 0 ? void 0 : _z.ItemStrengthXml) ? this.commonServices.selectedFormulation.ItemStrengthXml : " ",
4875
5031
  //authorityValue
4876
5032
  pbsDvaAuthorityNumber: checkAuthorityBox ? this.commonServices.authorityFormNo : 0,
4877
5033
  prescribedItemReservedThree: this.htmlToTextConvert(this.commonServices.rxDisplayName),
4878
5034
  unlistedItemRepatAuthority: this.commonServices.unlistedRA == true ? true : false,
4879
- prescribedItemReservedOne: this.getScheduleNumber(this.commonServices.selectedFormulation).toLowerCase() == "s8" ? this.numberToWord(parseInt(this.commonServices.quantityVal)) : '',
5035
+ prescribedItemReservedOne: this.commonServices.getScheduleNumber(this.commonServices.selectedFormulation).toLowerCase() == "s8" ? this.numberToWord(parseInt(this.commonServices.quantityVal)) : '',
4880
5036
  mySLConsent: this.commonServices.mySLConsent,
4881
5037
  sendToPharmacy: this.commonServices.sendToPharmacy,
4882
5038
  sendToPharmacyValue: this.commonServices.sendToPharmacyValue,
4883
5039
  emergencySupply: this.commonServices.emergencySupply,
4884
- moleculeStrengthGrid: !this.commonServices.IsNullOrEmpty((_t = this.commonServices.selectedFormulation) === null || _t === void 0 ? void 0 : _t.moleculeStrengthGrid) ? this.commonServices.selectedFormulation.moleculeStrengthGrid : '',
5040
+ moleculeStrengthGrid: !this.commonServices.IsNullOrEmpty((_0 = this.commonServices.selectedFormulation) === null || _0 === void 0 ? void 0 : _0.moleculeStrengthGrid) ? this.commonServices.selectedFormulation.moleculeStrengthGrid : '',
4885
5041
  entityId: this.commonServices.physicianDetails.entityId,
4886
5042
  isPrescribeAndPrint: this.isepriscribeprint,
4887
- amtCodeSystem: !this.commonServices.IsNullOrEmpty((_u = this.commonServices.selectedFormulation) === null || _u === void 0 ? void 0 : _u.amtCodeSystem) ? this.commonServices.selectedFormulation.amtCodeSystem : "",
4888
- amtVersion: !this.commonServices.IsNullOrEmpty((_v = this.commonServices.selectedFormulation) === null || _v === void 0 ? void 0 : _v.amtVersion) ? this.commonServices.selectedFormulation.amtVersion : "",
4889
- quantityWithUnit: this.commonServices.quantityWithUnitFlag && !this.commonServices.IsNullOrEmpty((_w = this.commonServices.selectedFormulation) === null || _w === void 0 ? void 0 : _w.maxQtyUnits) ? this.commonServices.selectedFormulation.maxQtyUnits : ""
5043
+ amtCodeSystem: !this.commonServices.IsNullOrEmpty((_1 = this.commonServices.selectedFormulation) === null || _1 === void 0 ? void 0 : _1.amtCodeSystem) ? this.commonServices.selectedFormulation.amtCodeSystem : "",
5044
+ amtVersion: !this.commonServices.IsNullOrEmpty((_2 = this.commonServices.selectedFormulation) === null || _2 === void 0 ? void 0 : _2.amtVersion) ? this.commonServices.selectedFormulation.amtVersion : "",
5045
+ quantityWithUnit: this.commonServices.quantityWithUnitFlag && !this.commonServices.IsNullOrEmpty((_3 = this.commonServices.selectedFormulation) === null || _3 === void 0 ? void 0 : _3.maxQtyUnits) ? this.commonServices.selectedFormulation.maxQtyUnits : "",
5046
+ clientId: this.clientId
4890
5047
  };
4891
5048
  this.commonServices.prescribeMedLoader = true;
4892
5049
  this.commonServices.removeErrToast();
@@ -5011,9 +5168,10 @@ class RxComponent {
5011
5168
  payload = {
5012
5169
  request_type: "parameter",
5013
5170
  productId: rxList.productId,
5014
- pbsCode: rxList.pbsItemCodeCode
5171
+ pbsCode: rxList.pbsItemCodeCode,
5172
+ rxId: this.commonServices.rxid
5015
5173
  };
5016
- this.apiService.Get(config.PHYSICIAN.GET_MED_DET_BY_ID + "?productId=" + rxList.productId + "&pbsCode=" + rxList.pbsItemCodeCode).subscribe((res) => {
5174
+ this.apiService.Get(config.PHYSICIAN.GET_MED_DET_BY_ID + "?productId=" + rxList.productId + "&pbsCode=" + (this.commonServices.isMedicineRestrict ? rxList.pbsItemCodeCode : "") + "&rxId=" + this.commonServices.rxid).subscribe((res) => {
5017
5175
  try {
5018
5176
  if (this.commonServices.IsNullOrEmpty(res)) {
5019
5177
  this.PopupScreenLoader = false;
@@ -5024,10 +5182,16 @@ class RxComponent {
5024
5182
  return;
5025
5183
  }
5026
5184
  if (res.response_code == 0) {
5027
- var Med = [];
5028
- Med.push(res.response);
5029
- this.commonServices.selectedMedicineList = Med;
5030
- this.selectedMedicineListOrginal = Med;
5185
+ var editRestrictFlag = (this.commonServices.isMedicineRestrict && !this.commonServices.IsNullOrEmpty(rxList === null || rxList === void 0 ? void 0 : rxList.status) && rxList.status.toLowerCase() != "draft") || !this.commonServices.isMedicineRestrict ? true : false;
5186
+ if (editRestrictFlag) {
5187
+ var Med = [];
5188
+ Med.push(res.response);
5189
+ this.commonServices.selectedMedicineList = Med;
5190
+ this.selectedMedicineListOrginal = Med;
5191
+ }
5192
+ else {
5193
+ this.getRestrictedMedicine();
5194
+ }
5031
5195
  this.selectFormulation(res.response, 0);
5032
5196
  this.commonServices.isFetching = false;
5033
5197
  this.commonServices.mediSearchValue = "";
@@ -5106,8 +5270,10 @@ class RxComponent {
5106
5270
  else {
5107
5271
  this.commonServices.editPrescribedPrescription = false;
5108
5272
  }
5109
- this.PopupScreenLoader = false;
5110
- this.changedetect.detectChanges();
5273
+ if (editRestrictFlag) {
5274
+ this.PopupScreenLoader = false;
5275
+ this.changedetect.detectChanges();
5276
+ }
5111
5277
  }
5112
5278
  else {
5113
5279
  this.PopupScreenLoader = false;
@@ -5221,26 +5387,6 @@ class RxComponent {
5221
5387
  return "";
5222
5388
  }
5223
5389
  }
5224
- getScheduleNumber(selectedFormulation) {
5225
- var _a;
5226
- try {
5227
- if (!this.commonServices.IsNullOrEmpty((_a = selectedFormulation === null || selectedFormulation === void 0 ? void 0 : selectedFormulation.poisonClassification) === null || _a === void 0 ? void 0 : _a.poisonClasses) && selectedFormulation.poisonClassification.poisonClasses.length > 0) {
5228
- if (selectedFormulation.poisonClassification.poisonClasses[0].toLowerCase() == "unscheduled") {
5229
- return "";
5230
- }
5231
- else {
5232
- return selectedFormulation.poisonClassification.poisonClasses[0];
5233
- }
5234
- }
5235
- else {
5236
- return "";
5237
- }
5238
- }
5239
- catch (ex) {
5240
- this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "getScheduleNumber");
5241
- return "";
5242
- }
5243
- }
5244
5390
  prescripeAbort() {
5245
5391
  try {
5246
5392
  var payload = {
@@ -5734,10 +5880,10 @@ class RxComponent {
5734
5880
  }
5735
5881
  }
5736
5882
  RxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RxComponent, deps: [{ token: ApiService }, { token: CommonServices }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i3.DatePipe }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
5737
- RxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: RxComponent, selector: "app-rx", outputs: { closeEvent: "closeEvent", submitEvent: "submitEvent" }, host: { listeners: { "click": "onclick($event)" } }, viewQueries: [{ propertyName: "wrapperRef", first: true, predicate: ["MedicineDropdown"], descendants: true }, { propertyName: "prescribeDropdownRef", first: true, predicate: ["PrescribeDropdown"], descendants: true }, { propertyName: "doseRef", first: true, predicate: ["DoseDropdown"], descendants: true }, { propertyName: "freqRef", first: true, predicate: ["FreqDropdown"], descendants: true }, { propertyName: "stpRef", first: true, predicate: ["stpDropdown"], descendants: true }, { propertyName: "foodRef", first: true, predicate: ["FoodDropdown"], descendants: true }, { propertyName: "InstructionRef", first: true, predicate: ["InstructionDropdown"], descendants: true }, { propertyName: "routeRef", first: true, predicate: ["RouteDropdown"], descendants: true }, { propertyName: "purposeRef", first: true, predicate: ["PurposeDropdown"], descendants: true }, { propertyName: "selectActionDropdownRef", first: true, predicate: ["selectActionDropdown"], descendants: true }, { propertyName: "content", first: true, predicate: ["rxwidgets"], descendants: true, static: true }, { propertyName: "myTemplate", first: true, predicate: ["tooltipdemo"], descendants: true }, { propertyName: "tooltip", first: true, predicate: ["test"], descendants: true, static: true }], ngImport: i0, template: "<ng-template #rxwidgets> </ng-template>\r\n<div class=\"new_rx_popup_mims\">\r\n <div\r\n class=\"ReactModal__Overlay ReactModal__Overlay--after-open React__Overlay_Open_Popup new_rx_mims_Overlay_Open_Popup\">\r\n <div class=\"ReactModal__Content ReactModal__Content--after-open React__Content new_rx_mims_React__Content\">\r\n <div class=\"popup new_rx_mims_ReactModal_popup\">\r\n <div>\r\n <app-splashscreen *ngIf=\"PopupScreenLoader\" [height]=\"'height-rx-spin'\"> </app-splashscreen>\r\n <div class=\"page-content\" *ngIf=\"!PopupScreenLoader\">\r\n <div class=\"new_rx_popup_header_box\">\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--2-col-tablet mdl-cell--3-col-phone new_rx_mobile_fullwidth rx_ipad_header_box_1\"\r\n [class]=\"commonServices.rxid != null && commonServices.rxid !=''?'mdl-cell--2-col':'mdl-cell--3-col'\"\r\n style=\"align-self: center\">\r\n <h3 class=\"new_rx_popup_header_box_text\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-hola-health-logo-1.png\" alt=\"hola_health\"\r\n style=\"width: auto;height: 37px;border-radius: 5px;\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-header-logo.png\" alt=\"\" />\r\n {{commonServices.editPrescription === true ? 'Edit Script' : 'New Script'}}\r\n </h3>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_desktop_title new_rx_mobile_fullwidth\"\r\n style=\"align-self: center;\">\r\n <p class=\"new_rx_popup_header_box_text\" style=\"justify-content: center;\">\r\n <span style=\"font-weight: 600;\">{{\r\n commonServices.patientDetails.firstName +\r\n \" \" +\r\n commonServices.patientDetails.lastName\r\n }}</span>/<span style=\"width: 100px;\">{{\r\n this.datePipe.transform(\r\n commonServices.patientDetails.dob,\r\n \"dd-MM-YYYY\"\r\n )\r\n }}</span>\r\n </p>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--5-col-tablet mdl-cell--4-col-phone new_rx_popup_header_box_col new_rx_mobile_fullwidth rx_ipad_header_box_2 new_mobile_rx_top_bottom_0\"\r\n style=\"position: relative\"\r\n [class]=\"commonServices.rxid != null && commonServices.rxid !=''?'mdl-cell--6-col':'mdl-cell--5-col'\">\r\n <div class=\"new_rx_popup_btns\">\r\n <button (click)=\"close(null)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored backButton new_mobile_rx_btn\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\">\r\n Close\r\n </button>\r\n <div style=\"display: inline-block;position: relative\"\r\n *ngIf=\"commonServices.rxid != null && commonServices.rxid !=''\">\r\n <button\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton select-action-btn new_mobile_rx_btn\"\r\n style=\"position: relative;width: 140px;display: flex;flex-direction: row;align-items: center;justify-content: center;padding: 10px !important\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\"\r\n (click)=\"selectActionDropdownopen()\">\r\n <ng-container *ngIf=\"selectionbtnLoader\">\r\n <p class=\"rx_loader_button m-v4\"\r\n style=\"width: 20px;height: 20px;margin: 0px !important;margin-right: 0px !important;margin-left: 0px !important;\">\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"!selectionbtnLoader\">\r\n Select Action <i class=\"material-icons drp-icon\">expand_more</i>\r\n </ng-container>\r\n </button>\r\n <div #selectActionDropdown class=\"new_rx_Prescribe_btn_dropdown_list_box select-action-ul\"\r\n *ngIf=\"selectActionBtnDropdown == true\"\r\n [class]=\"{ M_list_box_show: selectActionBtnDropdown === true }\">\r\n <ul class=\"new_rx_Prescribe_btn_dropdown_list_ul\">\r\n <li (click)=\"commonServices.rxDetails.status.toLowerCase() == 'draft'?cancelDraft():cancelPrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,4)?'':'edit-disable-data'\">\r\n Cancel</li>\r\n <li (click)=\"printPrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,1)?'':'edit-disable-data'\">\r\n Print</li>\r\n <li (click)=\"reissuePrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,3)?'':'edit-disable-data'\">\r\n Re-Issue</li>\r\n <li (click)=\"ceasePrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,2)?'':'edit-disable-data'\">\r\n Cease</li>\r\n </ul>\r\n </div>\r\n </div>\r\n <button *ngIf=\"page != 1\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored backButton new_mobile_rx_btn\"\r\n (click)=\"back()\" [disabled]=\"this.commonServices.prescribeMedLoader || selectionbtnLoader\">\r\n Back\r\n </button>\r\n <button *ngIf=\"page == 1\" (click)=\"pageNumberOneToNext()\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton new_mobile_rx_btn\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\">\r\n Next\r\n </button>\r\n <button class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored new_mobile_rx_btn\"\r\n [class]=\"abortdisable?'nextButton':'abortbutton'\"\r\n *ngIf=\"abortBtnFlag\"\r\n [disabled]=\"abortdisable\" (click)=\"prescripeAbort()\"><span *ngIf=\"abortdisable\" class=\"rx_loader\">\r\n <p class=\"rx_loader_button m-v4 rx_btn_spin\">\r\n </p>\r\n </span><span *ngIf=\"!abortdisable\">Abort</span></button>\r\n <div style=\"display: inline-block\" *ngIf=\"page == 2\">\r\n <button\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton new_mobile_rx_btn\"\r\n style=\"position: relative;width: 135px;display: flex;flex-direction: row;align-items: center;justify-content: center\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\"\r\n (click)=\"includeRtpmModal()\">\r\n <ng-container *ngIf=\"commonServices.prescribeMedLoader \">\r\n <p class=\"rx_loader_button m-v4\"\r\n style=\"width: 20px;height: 20px;margin: 0px !important;margin-right: 0px !important;margin-left: 0px !important;\">\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"!this.commonServices.prescribeMedLoader\">\r\n Prescribe <i class=\"material-icons drp-icon\">expand_more</i>\r\n </ng-container>\r\n </button>\r\n <div #PrescribeDropdown class=\"new_rx_Prescribe_btn_dropdown_list_box\"\r\n *ngIf=\"selectPBTNDropdown == true\" [class]=\"{ M_list_box_show: selectPBTNDropdown === true }\">\r\n <ul class=\"new_rx_Prescribe_btn_dropdown_list_ul\">\r\n <li [class]=\"{'edit-disable-data': ePrescriptionValidation()}\"\r\n (click)=\"MprescribeMed(1)\">E-Prescribe (Draft)</li>\r\n <li [class]=\"{'edit-disable-data': ePrescriptionValidation()}\" (click)=\"EprescripeSend(1)\" *ngIf=\"!this.commonServices.sendToPharmacy && !this.commonServices.emergencySupply\">E-Prescribe and Send</li>\r\n <li [class]=\"{'edit-disable-data': ePrescriptionValidation()}\" (click)=\"EprescripeSend(2)\">E-Prescribe and Print</li>\r\n <li [class]=\"{'edit-disable-data': (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase()== 'M'&& this.commonServices.rxDetails.status.toLowerCase() != 'draft')|| (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase()== 'E')}\"\r\n (click)=\"MprescribeMed(2)\">Prescribe (Draft)</li>\r\n <li [class]=\"{'edit-disable-data': (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase() == 'M'&& this.commonServices.rxDetails.status.toLowerCase() != 'draft') || (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase()== 'E')}\"\r\n (click)=\"prescripePrint()\">\r\n Prescribe and Print</li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth rx_ipad_header_box_3 new_rx_mobile_title\"\r\n style=\"align-self: center\">\r\n <p class=\"new_rx_popup_header_box_text new_mobile_rx_popup_header_text\">\r\n <span style=\"font-weight: 600\">{{\r\n commonServices.patientDetails.firstName +\r\n \" \" +\r\n commonServices.patientDetails.lastName\r\n }}</span>/<span>{{\r\n this.datePipe.transform(\r\n commonServices.patientDetails.dob,\r\n \"dd-MM-YYYY\"\r\n )\r\n }}</span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"page == 1\" class=\"new_rx_popup_tab_1\">\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--5-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div #MedicineDropdown style=\"position: relative\">\r\n <div style=\"position: relative\">\r\n <input autocomplete=\"off\" type=\"text\" name=\"medicine search\" placeholder=\"Search Medicines\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" class=\"new_rx_popup_tab_1_input\"\r\n value=\"{{ mediSearchValue }}\" (input)=\"searchHandler($event)\"\r\n (click)=\"MedicineDropdownList()\" />\r\n <i class=\"material-icons md-24 new_rx_popup_tab_1_input_search\">search</i>\r\n <!-- <mat-icon class=\"new_rx_popup_tab_1_input_search\"></mat-icon> -->\r\n </div>\r\n <div class=\"new_rx_popup_tab_1_list_box\" [class]=\"{\r\n M_list_box_show: selectedMedicineDropdown === true\r\n }\">\r\n <div *ngIf=\"searchMedicineLoader\" class=\"loader\"></div>\r\n <div *ngIf=\"!searchMedicineLoader\" style=\"margin-bottom: 10px;\">\r\n <ul class=\"new_rx_popup_tab_1_list\">\r\n <li *ngFor=\"let medicineList of searchedMedicineList\" [class]=\"getcurrentid(medicineList)\"\r\n (click)=\"\r\n getProductListByName(\r\n medicineList['prodHiddenValue'],\r\n medicineList['prodDisplayValue'],\r\n medicineList['searchBase']\r\n )\r\n \" [innerHTML]=\"medicineList['prodDisplayValue']\"></li>\r\n <li *ngIf=\"searchedMedicineList.length == 0\">No Data</li>\r\n </ul>\r\n </div>\r\n <div *ngIf=\"PrimarySearchSpinner\" class=\"loader ml-load-45\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--4-col mdl-cell--2-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth new_mobile_rx_top_bottom_0\"\r\n [class]=\"{'disabledRxContent':this.isNonPbsFlag||(commonServices.rxDetails!=null && commonServices.rxDetails!='' && commonServices.rxDetails.status!=null && commonServices.rxDetails.status!='' && commonServices.rxDetails.status.toLowerCase()!='draft')}\">\r\n <div class=\"rx_new_popup_checkbox new_mobile_rx_top_bottom_0\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox1\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"rxOnlyPBS\"\r\n (change)=\"onCheckboxChange()\" value=\"PBS/RPBS\" [disabled]=\"this.isNonPbsFlag\" /><span\r\n class=\"mdl-checkbox__label\" style=\"font-weight: 400; font-size: 16px\">PBS/RPBS</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--2-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth new_mobile_rx_top_bottom_0\">\r\n <div style=\"text-align: right\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-mims.png\" alt=\"MIMS logo\"\r\n style=\"width: 80px; height: auto\" />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--7-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div class=\"new_rx_popup_table_box\">\r\n <p class=\"new_rx_popup_tab_title\" style=\"padding: 5px 10px; margin: 0px\">\r\n Available Formulations:\r\n </p>\r\n <div *ngIf=\"onclickMedicineLoader\" class=\"loader m-v4\"></div>\r\n <div *ngIf=\"!onclickMedicineLoader\">\r\n <div *ngIf=\"\r\n commonServices.selectedMedicineList == null ||\r\n commonServices.selectedMedicineList.length == 0\r\n \" class=\"noDataPrescribe\">\r\n <span>No Data</span>\r\n </div>\r\n <div class=\"new_rx_popup_box_container\" *ngFor=\"\r\n let med of commonServices.selectedMedicineList;\r\n index as i\r\n \">\r\n\r\n <div class=\"mdl-grid new_rx_popup_box\" [class]=\"getClassForMed(med)\"\r\n (click)=\"selectFormulation(med, i)\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_box_header\" [innerHTML]=\"med.productName\"></p>\r\n <p class=\"new_rx_popup_box_text\">\r\n <span><b>Quantity:</b>\r\n {{\r\n med.pbsType.toLowerCase() == \"non pbs\"\r\n ? med.numberOfPack + \"x\" + med.unitPerPack\r\n : med.maxQtyUnits\r\n }}</span><span><b>Rpts:</b> {{ med.repeats }}</span><span><b>Restriction:</b>\r\n {{\r\n med.Restrictions != null && med.Restrictions != \"\"\r\n ? med.pbsType +\r\n \" (\" +\r\n getRestrictions(med.Restrictions) +\r\n \") \"\r\n : med.pbsType\r\n }} </span><span><b>Generic Name: </b>\r\n <span [innerHTML]=\"med.genericName\"></span></span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"SecondarySearchSpinner\" class=\"loader ml-load-45\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--5-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div class=\"mdl-grid new_rx_popup_tab_1_grid new_rx_popup_tab_1_box\"\r\n *ngIf=\"commonServices.selectedFormulation != null\">\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_tab_title\" style=\"margin-bottom: 5px\" [innerHTML]=\"commonServices.selectedFormulation != null? commonServices.selectedFormulation.productName: ''\">\r\n {{commonServices.selectedFormulation != null? commonServices.selectedFormulation.productName: \"\"}}\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col\">\r\n <p class=\"new_rx_popup_label\">\r\n Generic Name:<span [innerHTML]=\"\r\n commonServices.selectedFormulation != null\r\n ? commonServices.selectedFormulation.genericName\r\n : ''\r\n \"></span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col\">\r\n <p class=\"new_rx_popup_label\" *ngIf=\"commonServices.isBrandName\">\r\n Brand Name:<span [innerHTML]=\"\r\n getBrandName(commonServices.selectedFormulation)\r\n \">\r\n </span>\r\n </p>\r\n <p class=\"new_rx_popup_label\">\r\n Schedule:<span>{{\r\n commonServices.selectedFormulation != null &&\r\n commonServices.selectedFormulation.poisonClassification !=\r\n null\r\n ? commonServices.selectedFormulation.poisonClassification\r\n .poisonClasses[0]\r\n : \"No Scheduled Information Available\"\r\n }}</span>\r\n </p>\r\n <p class=\"new_rx_popup_label\">\r\n PBS Listing:<span>{{ commonServices.selectedFormulation.pbsType }}\r\n {{\r\n commonServices.selectedFormulation.pbsCode\r\n ? \" (\" +\r\n commonServices.selectedFormulation.pbsCode +\r\n \")\"\r\n : \"\"\r\n }}</span>\r\n </p>\r\n <p class=\"new_rx_popup_label\">\r\n <span style=\"margin:0px ;\">\r\n Max Quantity =\r\n {{commonServices.selectedFormulation!=null?commonServices.selectedFormulation.pbsType.toLowerCase() == \"non pbs\"? commonServices.selectedFormulation.numberOfPack +\"x\" +commonServices.selectedFormulation.unitPerPack: (commonServices.quantityWithUnitFlag?\"1 x \":\"\")+commonServices.selectedFormulation.maxQtyUnits:\"\"}}\r\n and Repeats =\r\n {{commonServices.selectedFormulation!=null? commonServices.selectedFormulation.repeats\r\n :\"\"}}</span>\r\n </p>\r\n\r\n <p class=\"new_rx_popup_label\" *ngIf=\"\r\n commonServices.selectedFormulation != null &&\r\n commonServices.selectedFormulation.pregnancyCategory != null\r\n \">\r\n Pregnancy Category:<span>{{\r\n commonServices.selectedFormulation.pregnancyCategory\r\n .categoryCode\r\n }}\r\n </span>\r\n <span *ngIf=\"\r\n commonServices.selectedFormulation.pregnancyCategory\r\n .additionalNote != null &&\r\n commonServices.selectedFormulation.pregnancyCategory\r\n .additionalNote != ''\r\n \">\r\n AdditionalNote:\r\n <span *ngFor=\"\r\n let item of commonServices.selectedFormulation\r\n .pregnancyCategory.additionalNote\r\n \" [innerHTML]=\"item\">\r\n </span>\r\n </span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col\" *ngIf=\"\r\n this.isShowRestrictions == true &&\r\n commonServices.selectedFormulation.Restrictions != null &&\r\n commonServices.selectedFormulation.Restrictions != ''\r\n \">\r\n <p class=\"new_rx_popup_label\">Restrictions:</p>\r\n <ol style=\"margin: 0px; padding-left: 15px\" *ngIf=\"\r\n commonServices.selectedFormulation.Restrictions != null &&\r\n commonServices.selectedFormulation.Restrictions != ''\r\n \">\r\n <li class=\"new_rx_pop_aut_int\" *ngFor=\"\r\n let restriction of commonServices.selectedFormulation\r\n .Restrictions\r\n \">\r\n <p style=\"\r\n margin: 0px;\r\n display: flex;\r\n align-content: center;\r\n margin-bottom: 10px;\r\n \" *ngIf=\"\r\n restriction.restrictionPreview != null &&\r\n restriction.restrictionPreview != '' &&\r\n restriction.restrictionText != null &&\r\n restriction.restrictionText != ''\r\n \">\r\n <span class=\"rx_restrictionText\" *ngIf=\"restriction.restrictionText.length < 60\"><b>{{\r\n restriction.restrictionType }}</b> -\r\n <span [innerHTML]=\"\r\n this.htmlToFormattedText(\r\n restriction.restrictionPreview\r\n )\r\n \"></span></span>\r\n <span class=\"rx_restrictionText\" *ngIf=\"restriction.restrictionText.length > 60\"><b>{{\r\n restriction.restrictionType }}</b> -\r\n <span [innerHTML]=\"\r\n this.htmlToFormattedText(\r\n restriction.restrictionPreview\r\n ).substring(0, 60)\r\n \"></span>...\r\n <span>\r\n <a style=\"cursor: pointer; color: #ff9978\" id=\"show-tooltip-id\">Show More</a></span></span>\r\n <ng-template #tooltipdemo>\r\n <p class=\"rx_tooltip_inner_box\" [innerHTML]=\"restriction.restrictionText\"></p>\r\n </ng-template>\r\n </p>\r\n </li>\r\n </ol>\r\n </div>\r\n </div>\r\n\r\n <div class=\"new_rx_popup_tab_3_small_box\" *ngIf=\"commonServices.selectedFormulation != null\">\r\n <div style=\"display: inline-block; margin-right: 10px\">\r\n <span class=\"new_rx_popup_label\">Quantity: </span><input autocomplete=\"off\" type=\"number\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" name=\"qty\"\r\n placeholder=\"\" class=\"new_rx_popup_tab_input\" step=\"1\" [min]=\"0\"\r\n [(ngModel)]=\"commonServices.quantityVal\" (keypress)=\"checkMobile($event)\"\r\n (input)=\"quantityChange()\" (paste)=\"$event.preventDefault()\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" />\r\n </div>\r\n <div style=\"display: inline-block\">\r\n <span class=\"new_rx_popup_label\">Repeats: </span><input autocomplete=\"off\" type=\"number\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" name=\"rpts\"\r\n placeholder=\"\" [min]=\"0\" (input)=\"repeatsChange()\" class=\"new_rx_popup_tab_input\"\r\n [(ngModel)]=\"commonServices.repeatsVal\" (paste)=\"$event.preventDefault()\"\r\n (keypress)=\"checkMobile($event)\" [disabled]=\"commonServices.editPrescribedPrescription\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\"\r\n [class]=\"{ disabledRxContent: commonServices.isFetching}\">\r\n <div\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\"></div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">\r\n Dose:\r\n <span>\r\n <div class=\"rx_new_popup_checkbox\" style=\"margin-top: 0px\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\"><input autocomplete=\"off\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\" type=\"checkbox\"\r\n id=\"checkbox1\" class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.unUsualDoseFlag\" /><span class=\"mdl-checkbox__label\" style=\"font-weight: 400;font-size: 16px;margin-top: -7px;\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Unusual Dose</span></label>\r\n </div>\r\n </span>\r\n </p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selecteddose\" placeholder=\"Select Dose\"\r\n [(ngModel)]=\"commonServices.doseSearchValue\" (click)=\"doseDropdown()\" />\r\n <div #DoseDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectDoseDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\" style=\"margin-bottom: 0px\">\r\n <li (click)=\"selectDoseValue(null)\" class=\"p-12\"> </li>\r\n <li *ngFor=\"let dose of doseData\" (click)=\"selectDoseValue(dose)\" [class]=\"{\r\n heighlight: dose['text'] == commonServices.doseSearchValue\r\n }\">\r\n {{ dose[\"text\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Frequency:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedFrequency:\"\r\n placeholder=\"Select Frequency\" readOnly [(ngModel)]=\"commonServices.freqSearchValue\"\r\n (click)=\"freqDropdown()\" />\r\n <div #FreqDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectFreqDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\">\r\n <li (click)=\"selectFrequencyValue(null)\" class=\"p-12\"> </li>\r\n <li *ngFor=\"let frequency of frequencyData\" (click)=\"selectFrequencyValue(frequency)\" [class]=\"{\r\n heighlight:\r\n frequency['text'] == commonServices.freqSearchValue\r\n }\">\r\n {{ frequency[\"text\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Food:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedFrequency:\"\r\n placeholder=\"Select Food\" readOnly [(ngModel)]=\"commonServices.foodSearchValue\"\r\n (click)=\"foodDropdown()\" />\r\n <div #FoodDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectFoodDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\">\r\n <li (click)=\"selectFoodValue(null)\" class=\"p-12\"> </li>\r\n <li *ngFor=\"let food of foodData\" (click)=\"selectFoodValue(food)\" [class]=\"{\r\n heighlight: food['text'] == commonServices.foodSearchValue\r\n }\">\r\n {{ food[\"text\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Instruction:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"Instruction\"\r\n placeholder=\"Select Instruction\" [(ngModel)]=\"commonServices.InstructionSearchValue\"\r\n (click)=\"instructionDropdown()\" (change)=\"instructionOnChange()\" (keypress)=\"alphaRestriction($event)\"/>\r\n <div #InstructionDropdown class=\"new_rx_popup_tab_dropdown_list_box\" [class]=\"{M_list_box_show: selectInstructionDropdown === true}\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\" style=\"margin-bottom: 0px\">\r\n <ng-container *ngIf=\"selectInstructionDropdownList\">\r\n <li (click)=\"ChangeInstruction(null)\" class=\"p-12\"> </li>\r\n <li [class]=\"item.id == commonServices.complexId && item.text == commonServices.InstructionSearchValue ? 'heighlight' : ''\" *ngFor=\"let item of instructionData; index as i\" (click)=\"ChangeInstruction(item)\">\r\n {{ item.text }}\r\n <span *ngIf=\"item.userid !== 0\" class=\"span_icon\" style=\"float: right\">\r\n <i class=\"material-icons\" style=\"padding: 5px\"\r\n (click)=\"editInstruction(item.id, item)\">create</i><i class=\"material-icons\"\r\n style=\"margin-left: 10px; padding: 5px\"\r\n (click)=\"deleteInstruction(item.id)\">clear</i></span>\r\n </li>\r\n <li class=\"RX_ADD_dropdown_btn\" (click)=\"addNewInstruction()\">\r\n + Add Complex Instructions\r\n </li>\r\n </ng-container>\r\n <ng-container *ngIf=\"selectInstructionDropdownList == false\">\r\n <div class=\"complex_instruction_box\">\r\n <p class=\"new_rx_popup_label\" style=\"font-size: 12px; margin: 0\">\r\n Complex Instruction:\r\n </p>\r\n <input autocomplete=\"off\" class=\"instruction_field_clr mdl-textfield__input new_rx_popup_tab_input \" type=\"text\"\r\n id=\"Instruction\" [(ngModel)]=\"commonServices.Instructiontiltle\"\r\n placeholder=\"Enter Complex Instruction\" />\r\n <p class=\"new_rx_popup_label\" style=\"font-size: 12px; margin: 0\">\r\n Complex Instruction Description:\r\n </p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"2\" maxLength=\"500\"\r\n [(ngModel)]=\"tempInstructionDescription\"\r\n placeholder=\"Enter Complex Instruction Description\"\r\n class=\"instruction_field_clr w-100 new_rx_popup_tab_textarea\"></textarea>\r\n <div class=\"RX_ADD_dropdown_btn_1\">\r\n <button (click)=\"clearInstruction()\" class=\"rx-instruction-btn\">Cancel</button>\r\n <button (click)=\"saveInstruction()\" class=\"rx-instruction-btn\">Save</button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Route:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedRoute:\"\r\n placeholder=\"Select Route\" [(ngModel)]=\"commonServices.routeSearchValue\" maxlength=\"50\"\r\n (click)=\"routeDropdown()\" (keypress)=\"alphaRestriction($event)\"/>\r\n <div #RouteDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectRouteDropdown === true }\">\r\n <div style=\"padding: 10px; position: relative\">\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_route__input\" type=\"text\"\r\n placeholder=\"Search...\" [value]=\"routeDataFilter ? routeDataFilter : ''\"\r\n (keyup)=\"routeFilter($event)\" />\r\n <i class=\"material-icons md-24 new_rx_popup_tab_1_input_search rx-search-icon\">search</i>\r\n </div>\r\n <ul *ngIf=\"filterRouteItems(routeData, routeDataFilter).length != 0\"\r\n class=\"new_rx_popup_tab_1_list rx_dropdown rx_dropdown_route\">\r\n <li *ngFor=\"\r\n let route of filterRouteItems(routeData, routeDataFilter)\r\n \" (click)=\"selectRoutesearcValue(route)\" [class]=\"{\r\n heighlight:\r\n route['routeName'] == commonServices.routeSearchValue\r\n }\">\r\n {{ route[\"routeName\"] }}\r\n </li>\r\n </ul>\r\n <ul *ngIf=\"filterRouteItems(routeData, routeDataFilter).length == 0\"\r\n class=\"new_rx_popup_tab_1_list rx_dropdown rx_dropdown_route\">\r\n <li>no data</li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">Pro Re Nata Prescription:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox1\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"commonServices.rxPRN\"\r\n (ngModelChange)=\"PRNChange(commonServices.rxPRN)\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Pro Re Nata\r\n Prescription</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Prescribe As:</p>\r\n <div class=\"rx_new_popup_checkbox\">\r\n <div class=\"rx_new_radiobox_button rx_radio_overall\">\r\n <label class=\"rx_radio_label\">\r\n <input autocomplete=\"off\" type=\"radio\" class=\"mdl-radio__button custom-radio-button\"\r\n name=\"PrescribeAs\" [value]=\"'Private'\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription === true\"\r\n [checked]=\"commonServices.PrescribeAS.toLowerCase() === 'private'\" (click)=\"private()\"\r\n [(ngModel)]=\"commonServices.PrescribeAS\" /><span class=\"mdl-radio__label radio_txt\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Private</span></label>\r\n\r\n <label class=\"rx_radio_label\">\r\n <input autocomplete=\"off\" type=\"radio\" checked=\"\"\r\n class=\"mdl-radio__button d-inline radio custom-radio-button\" name=\"PrescribeAs\"\r\n [value]=\"'PBS'\"\r\n [disabled]=\"prescribeAS_PBS || commonServices.isFetching || commonServices.editPrescribedPrescription === true\"\r\n [checked]=\"commonServices.PrescribeAS.toLowerCase() === 'pbs'\" (click)=\"PBS()\"\r\n [(ngModel)]=\"commonServices.PrescribeAS\" /><span class=\"mdl-radio__label radio_txt\"\r\n [class]=\"{ 'disabled-style': prescribeAS_PBS == true|| commonServices.isFetching || commonServices.editPrescribedPrescription === true}\">PBS</span>\r\n </label>\r\n <label class=\"rx_radio_label\">\r\n <input autocomplete=\"off\" type=\"radio\" checked=\"\"\r\n class=\"mdl-radio__button d-inline radio custom-radio-button\" name=\"PrescribeAs\"\r\n [value]=\"'RPBS'\"\r\n [disabled]=\"prescribeAS_RPBS || commonServices.isFetching || commonServices.editPrescribedPrescription === true\"\r\n [checked]=\"commonServices.PrescribeAS.toLowerCase() === 'rpbs'\" (click)=\"RPBS()\"\r\n [(ngModel)]=\"commonServices.PrescribeAS\" /><span class=\"mdl-radio__label radio_txt\"\r\n [class]=\"{ 'disabled-style': prescribeAS_RPBS == true|| commonServices.isFetching || commonServices.editPrescribedPrescription === true}\">RPBS</span>\r\n </label>\r\n </div>\r\n </div>\r\n <div class=\"rx_new_popup_checkbox\" *ngIf=\"\r\n commonServices.selectedFormulation != null &&\r\n commonServices.selectedFormulation['pbsType'].toLowerCase() === 'non pbs' &&\r\n commonServices.patientDetails.dvaNumber != null &&\r\n commonServices.patientDetails.dvaNumber != '' && isNonPbsFlag == false && !isPrescribeAsPrivateOnly\r\n \">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox\" class=\"check_box\"\r\n [checked]=\"commonServices.unlistedRA\" (click)=\"unlistedRA()\"\r\n [(ngModel)]=\"commonServices.unlistedRA\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\" />\r\n <span class=\"mdl-checkbox__label check_box_label\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">\r\n Unlisted RA\r\n </span>\r\n </label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{\r\n M_CTG_box_hide: !(\r\n commonServices.patientDetails &&\r\n commonServices.patientDetails.patientCtgFlag == 0 &&\r\n commonServices.patientDetails.patientCtgCoPayment == 0 &&\r\n commonServices.PrescribeAS.toLowerCase() == 'pbs'\r\n )\r\n }\">\r\n <!-- <p class=\"new_rx_popup_label\">CTG/PBS Co Payment:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"commonServices.CTGCoPayment\"\r\n [checked]=\"commonServices.CTGCoPayment == true\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">CTG/PBS Co Payment</span></label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\"\r\n [class]=\"{ disabledRxContent: commonServices.isFetching}\">\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Script Date:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"date\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n id=\"RxScriptDate\" placeholder=\" ../../....\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.scriptDate\" />\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Start Date:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"date\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" id=\"RxStartDate\"\r\n placeholder=\" ../../....\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.startDate\" (ngModelChange)=\"commonServices.rxEndDateCalculater()\"/>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">End Date:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"date\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" id=\"RxEndDate\"\r\n placeholder=\"../../....\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.endDate\" />\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Days Between Repeats:</p>\r\n <input autocomplete=\"off\" (paste)=\"$event.preventDefault()\" placeholder=\"Enter Days Between Repeats\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"number\" id=\"Daybetweenrepeats\" [min]=\"0\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.daysBtnRepeatsVal\" (keypress)=\"checkMobile($event)\"\r\n (input)=\"dayschange()\" />\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <div>\r\n <p class=\"new_rx_popup_label\">Purpose:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedPurpose:\"\r\n placeholder=\"Select Purpose\" readOnly [(ngModel)]=\"commonServices.purposeSearchValue\"\r\n (click)=\"purposeDropdown()\" />\r\n <div #PurposeDropdown class=\"new_rx_popup_tab_dropdown_list_box new_rx_popup_tab_purpose_box h-160p\"\r\n [class]=\"{ M_list_box_show: selectPurposeDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\">\r\n <li (click)=\"selectPurposeValue(null)\" class=\"p-12\"></li>\r\n <li *ngFor=\"let purpose of purposeData\" (click)=\"selectPurposeValue(purpose)\" [class]=\"{\r\n heighlight:\r\n purpose['lookupText'] ==\r\n commonServices.purposeSearchValue\r\n }\">\r\n {{ purpose[\"lookupText\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{ M_CTG_box_hide: commonServices.isBrandName != true }\">\r\n <!-- <p class=\"new_rx_popup_label\">Substitution:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox1\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true || commonServices.isBrandName == false\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.BrandSubstitutesNotAllow\"\r\n (change)=\"this.brandSubstitutesNotAllow(commonServices.BrandSubstitutesNotAllow)\" [checked]=\"\r\n commonServices.BrandSubstitutesNotAllow\r\n ? commonServices.BrandSubstitutesNotAllow\r\n : false\r\n \" /><span class=\"mdl-checkbox__label\" style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Brand Substitution\r\n Not Permitted</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{ M_CTG_box_hide_brand: commonServices.lemi == true }\" id=\"brandnametooltip\"\r\n (mouseleave)=\"hideToolTip()\" (mouseenter)=\"showtooltip(commonServices.lemi,brandtooltip)\">\r\n <!-- <p class=\"new_rx_popup_label\">Brand Name:</p> -->\r\n <ng-template #brandtooltip><span class=\"include_brand_tooltip\">The selected product is LEMI\r\n identified. Therefore it may be\r\n prescribed by the brand name only.</span></ng-template>\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\" [class]=\"{\r\n M_CTG_box_hide_brand_name: commonServices.lemi == true || commonServices.isFetching == true || commonServices.editPrescribedPrescription === true\r\n }\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [checked]=\"commonServices.isBrandName\"\r\n [(ngModel)]=\"commonServices.isBrandName\"\r\n (change)=\"this.isChangeBrandName(commonServices.isBrandName)\" /><span\r\n class=\"mdl-checkbox__label\" style=\"font-weight: 400; font-size: 16px\">Include Brand\r\n Name</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">Regulation 24:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"commonServices.regulation24\"\r\n [checked]=\"commonServices.regulation24\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Regulation 24</span></label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\"\r\n [class]=\"{ disabledRxContent: commonServices.isFetching}\">\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">DO NOT send to MySL:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.mySLConsent\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">DO NOT send to MySL</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">\r\n <!-- Pharmacy: -->\r\n <span>\r\n <div class=\"rx_new_popup_checkbox\" style=\"margin-top: 0px\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\"><input autocomplete=\"off\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\" type=\"checkbox\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.sendToPharmacy\" (change)=\"sendToPharmacyChange()\" /><span\r\n class=\"mdl-checkbox__label\" style=\"font-weight: 400;font-size: 16px;margin-top: -7px;\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Send to Pharmacy</span></label>\r\n </div>\r\n </span>\r\n </p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\" readonly\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selecteddose\" placeholder=\"Select Value\"\r\n [(ngModel)]=\"commonServices.sendToPharmacyValue\" (click)=\"stpValueDropdown()\"\r\n [class]=\"{ M_CTG_box_hide: commonServices.sendToPharmacy != true }\" />\r\n <div #stpDropdown class=\"new_rx_popup_tab_dropdown_list_box new_rx_popup_tab_stp_box h-93p\"\r\n [class]=\"{ M_list_box_show: selectstpDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\" style=\"margin-bottom: 0px\">\r\n <li (click)=\"selectStpValue(null)\" class=\"p-12\"></li>\r\n <li *ngFor=\"let sendtopharmacy of sendtopharmacyData\" (click)=\"selectStpValue(sendtopharmacy)\">\r\n {{ sendtopharmacy.name }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">Emergency Supply:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.emergencySupply\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Emergency Supply</span></label>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"page == 2\" class=\"new_rx_popup_tab_2\">\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px; opacity: 1\">\r\n <div\r\n class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div style=\"width: 100%; padding: 0px\" class=\"mdl-grid\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <div class=\"mdl-grid new_rx_popup_tab_1_grid\">\r\n <div class=\"mdl-cell mdl-cell--12-col\">\r\n <p class=\"new_rx_popup_label\">RX</p>\r\n <p class=\"new_rx_popup_label_p\">\r\n <b [innerHTML]=\"commonServices.rxDisplayName\"></b>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\" style=\"margin: 0px\">Quantity: <span\r\n style=\"color: rgb(45, 45, 45); font-weight: 600\">{{ commonServices.quantityVal }}\r\n </span> Repeats: <span style=\"color: rgb(45, 45, 45); font-weight: 600\">\r\n {{ commonServices.repeatsVal }}</span> Default Quantity:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.maxQtyUnits!=null?(commonServices.quantityWithUnitFlag?\"1 x \":\"\")+commonServices.selectedFormulation.maxQtyUnits:\"\"}}\r\n Default Repeats: {{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.repeats!=null?commonServices.selectedFormulation.repeats:\"\" }}\r\n </p>\r\n <p *ngIf=\"commonServices.doseSearchValue != '' ||commonServices.freqSearchValue != ''\"\r\n class=\"new_rx_popup_label_p\">\r\n <span>{{ commonServices.doseSearchValue }} </span><span>{{ commonServices.freqSearchValue\r\n }}</span>\r\n </p>\r\n <p *ngIf=\"commonServices.foodSearchValue != ''\" class=\"new_rx_popup_label_p\">\r\n {{ commonServices.foodSearchValue }}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n {{InstructionDescription !=\"\" && InstructionDescription!=null? InstructionDescription:commonServices.InstructionSearchValue!=\"\" && commonServices.InstructionSearchValue!=null?commonServices.InstructionSearchValue:\"\"}}\r\n </p>\r\n <p *ngIf=\"commonServices.routeSearchValue != ''\" class=\"new_rx_popup_label_p\">\r\n {{ commonServices.routeSearchValue }}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n P.R.N :\r\n <i *ngIf=\"commonServices.rxPRN\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.rxPRN\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Days Between Repeats:\r\n <span *ngIf=\"!commonServices.IsNullOrEmpty(commonServices.daysBtnRepeatsVal)\">{{commonServices.daysBtnRepeatsVal}}</span>\r\n <span *ngIf=\"commonServices.IsNullOrEmpty(commonServices.daysBtnRepeatsVal)\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Unusual Dose:\r\n <i *ngIf=\"commonServices.unUsualDoseFlag\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.unUsualDoseFlag\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Script Date:\r\n <span>{{this.commonServices.scriptDate|date:'dd-MM-YYYY'}}</span>\r\n \r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Start Date: \r\n <span>{{this.commonServices.startDate|date:'dd-MM-YYYY'}}</span>, End Date: {{this.commonServices.endDate|date:'dd-MM-YYYY'}}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Prescribe As:\r\n <span *ngIf=\"!commonServices.IsNullOrEmpty(commonServices.PrescribeAS)\">{{commonServices.PrescribeAS}}</span>\r\n <span *ngIf=\"commonServices.IsNullOrEmpty(commonServices.PrescribeAS)\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Purpose:\r\n <span *ngIf=\"!commonServices.IsNullOrEmpty(commonServices.purposeSearchValue)\">{{commonServices.purposeSearchValue}}</span>\r\n <span *ngIf=\"commonServices.IsNullOrEmpty(commonServices.purposeSearchValue)\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Include Brand Name:\r\n <i *ngIf=\"commonServices.isBrandName\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.isBrandName\">-</span>,\r\n Brand Substitution Not Permitted:\r\n <i *ngIf=\"commonServices.BrandSubstitutesNotAllow\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.BrandSubstitutesNotAllow\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Regulation 24:\r\n <i *ngIf=\"commonServices.regulation24\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.regulation24\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n CTG/PBS Co Payment:\r\n <i *ngIf=\"commonServices.CTGCoPayment\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.CTGCoPayment\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n DO NOT send to MySL:\r\n <i *ngIf=\"commonServices.mySLConsent\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.mySLConsent\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Send to Pharmacy:\r\n <i *ngIf=\"commonServices.sendToPharmacy\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.sendToPharmacy\">-</span>, Send to Pharmacy Value: {{!commonServices.IsNullOrEmpty(commonServices.sendToPharmacyValue)?commonServices.sendToPharmacyValue:'-'}}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Emergency Supply:\r\n <i *ngIf=\"commonServices.emergencySupply\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.emergencySupply\">-</span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Note To Pharmacy:</p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"3\" maxlength=\"50\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"this.commonServices.doctorNotes\"\r\n class=\"w-100 new_rx_popup_tab_textarea rx-m-w-535p\"></textarea>\r\n </div>\r\n\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Annotation:</p>\r\n\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"3\" maxlength=\"500\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"this.commonServices.annotation\" class=\"w-100 new_rx_popup_tab_textarea rx-m-w-535p\"></textarea>\r\n </div>\r\n\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Reason For Prescription:</p>\r\n\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"3\" maxlength=\"50\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"this.commonServices.prescriptionReason\"\r\n class=\"w-100 new_rx_popup_tab_textarea rx-m-w-535p\"></textarea>\r\n </div>\r\n\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\" style=\"text-transform: capitalize;\">\r\n {{\r\n this.getStateAuthorityLabel(\r\n commonServices.patientDetails.state\r\n )\r\n }}\r\n </p>\r\n\r\n <p style=\"margin: 0px;margin-top: -8px;margin-bottom: 10px;\">\r\n <span class=\"state-txt-color new_rx_popup_label_p\">(Relevant to\r\n {{ commonServices.patientDetails.state }})</span>\r\n </p>\r\n\r\n <input autocomplete=\"off\" type=\"text\" name=\"approval\" placeholder=\"\" \r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" class=\"new_rx_popup_tab_input\"\r\n [(ngModel)]=\"commonServices.StateAuthorityNumber\" maxlength=\"25\" (keypress)=\"authorityNoValidation($event)\" (ngModelChange)=\"authorityNoChange($event)\"/>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{\r\n 'new_rx_no_authority':!showAuthorityBox(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.Restrictions:'',commonServices.PrescribeAS,commonServices.rxAuthority,commonServices.unlistedRA)\r\n }\">\r\n <div *ngIf=\"\r\n showAuthorityBox(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.Restrictions:'',\r\n commonServices.PrescribeAS,\r\n commonServices.rxAuthority,\r\n commonServices.unlistedRA\r\n )\r\n \">\r\n <div style=\"padding: 0px\" class=\"mdl-grid\">\r\n <div class=\"mdl-cell mdl-cell--8-col mdl-cell--6-col-tablet mdl-cell--4-col-phone\">\r\n <span class=\"new_rx_popup_label_New\">HOTLINE: <span\r\n class=\"new_rx_popup_label_span\">{{commonServices.PrescribeAS ==\r\n 'RPBS'?'1800552580':'1800888333'}}</span></span>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--4-col mdl-cell--2-col-tablet mdl-cell--4-col-phone\">\r\n <div style=\"text-align: right\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-mims.png\" alt=\"MIMS logo\"\r\n style=\"width: 80px; height: auto\" />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"padding: 0px\">\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Prescriber Name:<span>{{\r\n commonServices.patientDetails.firstName +\r\n \" \" +\r\n commonServices.patientDetails.lastName\r\n }}</span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Prescriber Number:<span>{{\r\n commonServices.physicianDetails.prescriberNumber\r\n }}</span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Patient Medicare Number:<span>{{\r\n commonServices.patientDetails.medicareNumber\r\n ? commonServices.patientDetails.medicareNumber\r\n : \"\"\r\n }}</span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Authority Form No:\r\n <span>{{\r\n commonServices.authorityFormNo\r\n ? commonServices.authorityFormNo\r\n : \"\"\r\n }}</span>\r\n </p>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Authority Item:</p>\r\n <p class=\"authority_item_text\" [innerHTML]=\"commonServices.rxDisplayName\"></p>\r\n\r\n <p class=\"new_rx_popup_label_p new_rx_popup_tab_smallBoxes\" style=\"margin: 0px\">\r\n Quantity:<span style=\"color: rgb(45, 45, 45); font-weight: 600\"> {{ commonServices.quantityVal\r\n }}</span> Repeats:<span style=\"color: rgb(45, 45, 45); font-weight: 600\">\r\n {{ commonServices.repeatsVal }}</span> Default Quantity:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.maxQtyUnits!=null?(commonServices.quantityWithUnitFlag?\"1 x \":\"\")+commonServices.selectedFormulation.maxQtyUnits:\"\"}}\r\n Default Repeats:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.repeats!=null? commonServices.selectedFormulation.repeats:\"\"}}\r\n </p>\r\n\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"padding: 0px\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n PBS Listed Indication Authority:\r\n </p>\r\n <div class=\"w-100 new_rx_popup_tab_textarea\"\r\n style=\"min-height: 70px; max-height: 150px; overflow: auto\">\r\n <ul style=\"margin: 0px; padding-left: 15px;list-style: none;padding: 0px;\" *ngIf=\"\r\n this.isShowRestrictions == true &&\r\n commonServices.selectedFormulation.Restrictions !=\r\n null &&\r\n commonServices.selectedFormulation.Restrictions != ''\r\n \">\r\n <li style=\"font-size: 12px;padding: 0px 10px;margin-bottom: 10px;\"\r\n class=\"new_rx_pop_aut_int cursor\" *ngFor=\"\r\n let restriction of commonServices.selectedFormulation\r\n .Restrictions;\r\n index as i\r\n \" [class]=\"{\r\n new_rx_pop_aut_ins_select:\r\n commonServices.pbsListInstructionsId == i\r\n }\">\r\n <p style=\"\r\n margin: 0px;\r\n display: flex;\r\n align-content: center;\r\n margin-bottom: 10px;\r\n \" *ngIf=\"\r\n restriction.restrictionPreview != null &&\r\n restriction.restrictionPreview != '' &&\r\n restriction.restrictionText != null &&\r\n restriction.restrictionText != ''\r\n \">\r\n <span\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n (click)=\"\r\n indicationAuthority(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.maxQtyUnits:'',\r\n commonServices.quantityVal,\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.repeats:'',\r\n commonServices.repeatsVal,\r\n i,\r\n restriction\r\n )\r\n \">\r\n <span class=\"rx_restrictionText\" style=\"font-size: 12px;\"\r\n *ngIf=\"restriction.restrictionText.length < 80\"><b>{{\r\n restriction.restrictionType }}</b> -\r\n <span [innerHTML]=\"\r\n htmlToFormattedText(\r\n restriction.restrictionPreview\r\n )\r\n \"></span></span></span>\r\n <span class=\"rx_restrictionText\" style=\"font-size: 12px;\"\r\n *ngIf=\"restriction.restrictionText.length > 80\"><b (click)=\"\r\n indicationAuthority(\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.maxQtyUnits:'',\r\n commonServices.quantityVal,\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.repeats:'',\r\n commonServices.repeatsVal,\r\n i,\r\n restriction\r\n )\r\n \">{{\r\n restriction.restrictionType }}</b> -\r\n <span (click)=\"\r\n indicationAuthority(\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.maxQtyUnits:'',\r\n commonServices.quantityVal,\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.repeats:'',\r\n commonServices.repeatsVal,\r\n i,\r\n restriction\r\n )\r\n \" [innerHTML]=\"\r\n htmlToFormattedText(\r\n restriction.restrictionPreview\r\n ).substring(0, 80)\r\n \"></span>...\r\n <span>\r\n </span>\r\n <a style=\"cursor: pointer; color: #ff9978\" id=\"show-tooltip-id\">Show\r\n More</a></span>\r\n <ng-template #tooltipdemo>\r\n <p class=\"rx_tooltip_inner_box\" [innerHTML]=\"restriction.restrictionText\"></p>\r\n </ng-template>\r\n </p>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\"\r\n style=\"padding: 0px\">\r\n <!-- <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">PBS Notes:</p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"2\" maxlength=\"500\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n class=\"w-100 new_rx_popup_tab_textarea\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.pbsNotes\"></textarea>\r\n </div> -->\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Indication For This Authority:\r\n </p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"2\" placeholder=\"\"\r\n [class]=\"{'edit-dsable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.pbsListInstructions\" (ngModelChange)=\"onInputChange($event)\"\r\n class=\"w-100 new_rx_popup_tab_textarea rx-m-w-100\"></textarea>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n {{\r\n getAuthorityLabel(commonServices.patientDetails.state)\r\n }}\r\n </p>\r\n <input autocomplete=\"off\" type=\"text\" name=\"approval\" placeholder=\"\"\r\n [class]=\"{'edit-dsable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" class=\"new_rx_popup_tab_input\" [(ngModel)]=\"commonServices.approvalNo\" (ngModelChange)=\"onInputchangeApprovalNo($event)\" (keypress)=\"authorityNoValidation($event)\"/>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"\r\n !showAuthorityBox(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.Restrictions:'',\r\n commonServices.PrescribeAS,\r\n commonServices.rxAuthority,\r\n commonServices.unlistedRA\r\n )\r\n \" style=\"width: 100%;\">\r\n <div style=\"text-align: right\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-mims.png\" alt=\"MIMS logo\"\r\n style=\"width: 80px; height: auto\" />\r\n </div>\r\n <div class=\"No_Authority_box\">\r\n <p>No Authority Required</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"rx_footer\">\r\n <div class=\"rx_footer_brand\">\r\n <p class=\"ml-10\"><span>Hola Consult | 1.0 <span *ngIf=\"commonServices.sandbox\">| <span\r\n class=\"rx_staging\">This is a sandbox environment</span></span></span></p>\r\n <p class=\"mt-15p\">\r\n <span class=\"rx_popup_footer_text\">\u00A9 2024 Hola Health, a brand of Packapill Pty Ltd | v\r\n 1.0.7 |\r\n <a href=\"https://hola.health/consult-terms\" target=\"_blank\">Terms</a> |\r\n <a href=\"https://hola.health/consult-privacy-policy\" target=\"_blank\">Privacy Policy</a> |\r\n <a href=\"mailto:support@hola.health\" target=\"_blank\">Help</a></span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".loader{border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #020202;width:30px;height:30px;animation:spin 1s linear infinite;margin-left:18px;margin-top:18px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m-v4{margin-left:4vh}.rx_loader_button{border:2px solid #f3f3f3;border-radius:50%;border-top:4px solid #005760;width:30px;height:30px;animation:spin 1s linear infinite}.drp-icon{color:#fff;font-size:19px;margin-left:5px}.select-action-btn{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center}.select-action-ul{width:80%}.new_rx_popup_mims .React__Overlay_Open_Popup{position:fixed;inset:0;background-color:#00000080!important}.new_rx_popup_mims .new_rx_mims_Overlay_Open_Popup{z-index:9999999!important}.new_rx_popup_mims .ReactModal__Overlay{overflow-y:auto!important}.new_rx_popup_mims .ReactModal_popup{width:100%;padding:0;margin:20px 0 0}.new_rx_popup_mims .ReactModal__Content{margin:auto}.edit-disable-data{pointer-events:none;opacity:.6}.new_rx_popup_btns{position:relative;display:flex;justify-content:flex-end;align-items:center}@media only screen and (max-width: 1023px){.rx_ipad_header_box_1{width:calc(35% - 16px)}.rx_ipad_header_box_2{width:calc(65% - 16px)}.rx_ipad_header_box_3{width:calc(100% - 16px)}.new_mobile_rx_popup_header_text{display:block;text-align:center}}@media screen and (max-width: 767px){.new_rx_popup_btns,.new_mobile_rx_popup_header_text{display:block;text-align:center}.new_mobile_rx_top_bottom_0{margin-top:0;margin-bottom:0}.new_mobile_rx_btn{margin-bottom:5px}}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i4.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i4.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i4.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SplashscreenComponent, selector: "app-splashscreen", inputs: ["height"] }, { kind: "pipe", type: i3.DatePipe, name: "date" }] });
5883
+ RxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: RxComponent, selector: "app-rx", outputs: { closeEvent: "closeEvent", submitEvent: "submitEvent" }, host: { listeners: { "click": "onclick($event)" } }, viewQueries: [{ propertyName: "wrapperRef", first: true, predicate: ["MedicineDropdown"], descendants: true }, { propertyName: "prescribeDropdownRef", first: true, predicate: ["PrescribeDropdown"], descendants: true }, { propertyName: "doseRef", first: true, predicate: ["DoseDropdown"], descendants: true }, { propertyName: "freqRef", first: true, predicate: ["FreqDropdown"], descendants: true }, { propertyName: "stpRef", first: true, predicate: ["stpDropdown"], descendants: true }, { propertyName: "foodRef", first: true, predicate: ["FoodDropdown"], descendants: true }, { propertyName: "InstructionRef", first: true, predicate: ["InstructionDropdown"], descendants: true }, { propertyName: "routeRef", first: true, predicate: ["RouteDropdown"], descendants: true }, { propertyName: "purposeRef", first: true, predicate: ["PurposeDropdown"], descendants: true }, { propertyName: "selectActionDropdownRef", first: true, predicate: ["selectActionDropdown"], descendants: true }, { propertyName: "content", first: true, predicate: ["rxwidgets"], descendants: true, static: true }, { propertyName: "myTemplate", first: true, predicate: ["tooltipdemo"], descendants: true }, { propertyName: "tooltip", first: true, predicate: ["test"], descendants: true, static: true }], ngImport: i0, template: "<ng-template #rxwidgets> </ng-template>\r\n<div class=\"new_rx_popup_mims\">\r\n <div\r\n class=\"ReactModal__Overlay ReactModal__Overlay--after-open React__Overlay_Open_Popup new_rx_mims_Overlay_Open_Popup\">\r\n <div class=\"ReactModal__Content ReactModal__Content--after-open React__Content new_rx_mims_React__Content\">\r\n <div class=\"popup new_rx_mims_ReactModal_popup\">\r\n <div>\r\n <app-splashscreen *ngIf=\"PopupScreenLoader\" [height]=\"'height-rx-spin'\"> </app-splashscreen>\r\n <div class=\"page-content\" *ngIf=\"!PopupScreenLoader\">\r\n <div class=\"new_rx_popup_header_box\">\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--2-col-tablet mdl-cell--3-col-phone new_rx_mobile_fullwidth rx_ipad_header_box_1\"\r\n [class]=\"commonServices.rxid != null && commonServices.rxid !=''?'mdl-cell--2-col':'mdl-cell--3-col'\"\r\n style=\"align-self: center\">\r\n <h3 class=\"new_rx_popup_header_box_text\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-hola-health-logo-1.png\" alt=\"hola_health\"\r\n style=\"width: auto;height: 37px;border-radius: 5px;\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-header-logo.png\" alt=\"\" />\r\n {{commonServices.editPrescription === true ? 'Edit Script' : 'New Script'}}\r\n </h3>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_desktop_title new_rx_mobile_fullwidth\"\r\n style=\"align-self: center;\">\r\n <p class=\"new_rx_popup_header_box_text\" style=\"justify-content: center;\">\r\n <span style=\"font-weight: 600;\">{{\r\n commonServices.patientDetails.firstName +\r\n \" \" +\r\n commonServices.patientDetails.lastName\r\n }}</span>/<span style=\"width: 100px;\">{{\r\n this.datePipe.transform(\r\n commonServices.patientDetails.dob,\r\n \"dd-MM-YYYY\"\r\n )\r\n }}</span>\r\n </p>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--5-col-tablet mdl-cell--4-col-phone new_rx_popup_header_box_col new_rx_mobile_fullwidth rx_ipad_header_box_2 new_mobile_rx_top_bottom_0\"\r\n style=\"position: relative\"\r\n [class]=\"commonServices.rxid != null && commonServices.rxid !=''?'mdl-cell--6-col':'mdl-cell--5-col'\">\r\n <div class=\"new_rx_popup_btns\">\r\n <button (click)=\"close(null)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored backButton new_mobile_rx_btn\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\">\r\n Close\r\n </button>\r\n <div style=\"display: inline-block;position: relative\"\r\n *ngIf=\"commonServices.rxid != null && commonServices.rxid !=''\">\r\n <button\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton select-action-btn new_mobile_rx_btn\"\r\n style=\"position: relative;width: 140px;display: flex;flex-direction: row;align-items: center;justify-content: center;padding: 10px !important\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\"\r\n (click)=\"selectActionDropdownopen()\">\r\n <ng-container *ngIf=\"selectionbtnLoader\">\r\n <p class=\"rx_loader_button m-v4\"\r\n style=\"width: 20px;height: 20px;margin: 0px !important;margin-right: 0px !important;margin-left: 0px !important;\">\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"!selectionbtnLoader\">\r\n Select Action <i class=\"material-icons drp-icon\">expand_more</i>\r\n </ng-container>\r\n </button>\r\n <div #selectActionDropdown class=\"new_rx_Prescribe_btn_dropdown_list_box select-action-ul\"\r\n *ngIf=\"selectActionBtnDropdown == true\"\r\n [class]=\"{ M_list_box_show: selectActionBtnDropdown === true }\">\r\n <ul class=\"new_rx_Prescribe_btn_dropdown_list_ul\">\r\n <li (click)=\"commonServices.rxDetails.status.toLowerCase() == 'draft'?cancelDraft():cancelPrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,4)?'':'edit-disable-data'\">\r\n Cancel</li>\r\n <li (click)=\"printPrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,1)?'':'edit-disable-data'\">\r\n Print</li>\r\n <li (click)=\"reissuePrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,3)?'':'edit-disable-data'\">\r\n Re-Issue</li>\r\n <li (click)=\"ceasePrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,2)?'':'edit-disable-data'\">\r\n Cease</li>\r\n </ul>\r\n </div>\r\n </div>\r\n <button *ngIf=\"page != 1\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored backButton new_mobile_rx_btn\"\r\n (click)=\"back()\" [disabled]=\"this.commonServices.prescribeMedLoader || selectionbtnLoader\">\r\n Back\r\n </button>\r\n <button *ngIf=\"page == 1\" (click)=\"pageNumberOneToNext()\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton new_mobile_rx_btn\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\">\r\n Next\r\n </button>\r\n <button class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored new_mobile_rx_btn\"\r\n [class]=\"abortdisable?'nextButton':'abortbutton'\"\r\n *ngIf=\"abortBtnFlag\"\r\n [disabled]=\"abortdisable\" (click)=\"prescripeAbort()\"><span *ngIf=\"abortdisable\" class=\"rx_loader\">\r\n <p class=\"rx_loader_button m-v4 rx_btn_spin\">\r\n </p>\r\n </span><span *ngIf=\"!abortdisable\">Abort</span></button>\r\n <div style=\"display: inline-block\" *ngIf=\"page == 2\">\r\n <button\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton new_mobile_rx_btn\"\r\n style=\"position: relative;width: 135px;display: flex;flex-direction: row;align-items: center;justify-content: center\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\"\r\n (click)=\"includeRtpmModal()\">\r\n <ng-container *ngIf=\"commonServices.prescribeMedLoader \">\r\n <p class=\"rx_loader_button m-v4\"\r\n style=\"width: 20px;height: 20px;margin: 0px !important;margin-right: 0px !important;margin-left: 0px !important;\">\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"!this.commonServices.prescribeMedLoader\">\r\n Prescribe <i class=\"material-icons drp-icon\">expand_more</i>\r\n </ng-container>\r\n </button>\r\n <div #PrescribeDropdown class=\"new_rx_Prescribe_btn_dropdown_list_box\"\r\n *ngIf=\"selectPBTNDropdown == true\" [class]=\"{ M_list_box_show: selectPBTNDropdown === true }\">\r\n <ul class=\"new_rx_Prescribe_btn_dropdown_list_ul\">\r\n <li [class]=\"{'edit-disable-data': ePrescriptionValidation()}\"\r\n (click)=\"MprescribeMed(1)\">E-Prescribe (Draft)</li>\r\n <li [class]=\"{'edit-disable-data': ePrescriptionValidation()}\" (click)=\"EprescripeSend(1)\" *ngIf=\"!this.commonServices.sendToPharmacy && !this.commonServices.emergencySupply\">E-Prescribe and Send</li>\r\n <li [class]=\"{'edit-disable-data': ePrescriptionValidation()}\" (click)=\"EprescripeSend(2)\">E-Prescribe and Print</li>\r\n <li [class]=\"{'edit-disable-data': (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase()== 'M'&& this.commonServices.rxDetails.status.toLowerCase() != 'draft')|| (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase()== 'E')}\"\r\n (click)=\"MprescribeMed(2)\">Prescribe (Draft)</li>\r\n <li [class]=\"{'edit-disable-data': (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase() == 'M'&& this.commonServices.rxDetails.status.toLowerCase() != 'draft') || (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase()== 'E')}\"\r\n (click)=\"prescripePrint()\">\r\n Prescribe and Print</li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth rx_ipad_header_box_3 new_rx_mobile_title\"\r\n style=\"align-self: center\">\r\n <p class=\"new_rx_popup_header_box_text new_mobile_rx_popup_header_text\">\r\n <span style=\"font-weight: 600\">{{\r\n commonServices.patientDetails.firstName +\r\n \" \" +\r\n commonServices.patientDetails.lastName\r\n }}</span>/<span>{{\r\n this.datePipe.transform(\r\n commonServices.patientDetails.dob,\r\n \"dd-MM-YYYY\"\r\n )\r\n }}</span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"page == 1\" class=\"new_rx_popup_tab_1\">\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\" *ngIf=\"!commonServices.isMedicineRestrict\">\r\n <div\r\n class=\"mdl-cell mdl-cell--5-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div #MedicineDropdown style=\"position: relative\">\r\n <div style=\"position: relative\">\r\n <input autocomplete=\"off\" type=\"text\" name=\"medicine search\" placeholder=\"Search Medicines\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" class=\"new_rx_popup_tab_1_input\"\r\n value=\"{{ mediSearchValue }}\" (input)=\"searchHandler($event)\"\r\n (click)=\"MedicineDropdownList()\" />\r\n <i class=\"material-icons md-24 new_rx_popup_tab_1_input_search\">search</i>\r\n <!-- <mat-icon class=\"new_rx_popup_tab_1_input_search\"></mat-icon> -->\r\n </div>\r\n <div class=\"new_rx_popup_tab_1_list_box\" [class]=\"{\r\n M_list_box_show: selectedMedicineDropdown === true\r\n }\">\r\n <div *ngIf=\"searchMedicineLoader\" class=\"loader\"></div>\r\n <div *ngIf=\"!searchMedicineLoader\" style=\"margin-bottom: 10px;\">\r\n <ul class=\"new_rx_popup_tab_1_list\">\r\n <li *ngFor=\"let medicineList of searchedMedicineList\" [class]=\"getcurrentid(medicineList)\"\r\n (click)=\"\r\n getProductListByName(\r\n medicineList['prodHiddenValue'],\r\n medicineList['prodDisplayValue'],\r\n medicineList['searchBase']\r\n )\r\n \" [innerHTML]=\"medicineList['prodDisplayValue']\"></li>\r\n <li *ngIf=\"searchedMedicineList.length == 0\">No Data</li>\r\n </ul>\r\n </div>\r\n <div *ngIf=\"PrimarySearchSpinner\" class=\"loader ml-load-45\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--4-col mdl-cell--2-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth new_mobile_rx_top_bottom_0\"\r\n [class]=\"{'disabledRxContent':this.isNonPbsFlag||(commonServices.rxDetails!=null && commonServices.rxDetails!='' && commonServices.rxDetails.status!=null && commonServices.rxDetails.status!='' && commonServices.rxDetails.status.toLowerCase()!='draft')}\">\r\n <div class=\"rx_new_popup_checkbox new_mobile_rx_top_bottom_0\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox1\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"rxOnlyPBS\"\r\n (change)=\"onCheckboxChange()\" value=\"PBS/RPBS\" [disabled]=\"this.isNonPbsFlag\" /><span\r\n class=\"mdl-checkbox__label\" style=\"font-weight: 400; font-size: 16px\">PBS/RPBS</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--2-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth new_mobile_rx_top_bottom_0\">\r\n <div style=\"text-align: right\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-mims.png\" alt=\"MIMS logo\"\r\n style=\"width: 80px; height: auto\" />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--7-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div class=\"new_rx_popup_table_box\">\r\n <p class=\"new_rx_popup_tab_title\" style=\"padding: 5px 10px; margin: 0px\">\r\n Available Formulations:\r\n </p>\r\n <div *ngIf=\"onclickMedicineLoader\" class=\"loader m-v4\"></div>\r\n <div *ngIf=\"!onclickMedicineLoader\">\r\n <div *ngIf=\"\r\n commonServices.selectedMedicineList == null ||\r\n commonServices.selectedMedicineList.length == 0\r\n \" class=\"noDataPrescribe\">\r\n <span>No Data</span>\r\n </div>\r\n <div class=\"new_rx_popup_box_container\" *ngFor=\"\r\n let med of commonServices.selectedMedicineList;\r\n index as i\r\n \">\r\n\r\n <div class=\"mdl-grid new_rx_popup_box\" [class]=\"getClassForMed(med)\"\r\n (click)=\"selectFormulation(med, i)\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_box_header\" [innerHTML]=\"med.productName\"></p>\r\n <p class=\"new_rx_popup_box_text\">\r\n <span><b>Quantity:</b>\r\n {{med.pbsType!=undefined && med.pbsType!=null && med.pbsType.toLowerCase() == \"non pbs\"\r\n ? med.numberOfPack + \"x\" + med.unitPerPack\r\n : med.maxQtyUnits\r\n }}</span><span><b>Rpts:</b> {{ med.repeats }}</span><span *ngIf=\"!commonServices.isMedicineRestrict\"><b>Restriction:</b>\r\n {{med.Restrictions!=undefined &&\r\n med.Restrictions != null && med.Restrictions != \"\"\r\n ? med.pbsType +\r\n \" (\" +\r\n getRestrictions(med.Restrictions) +\r\n \") \"\r\n : (med.pbsType!=undefined&&med.pbsType!=null?med.pbsType:\"\")\r\n }} </span><span><b>Generic Name: </b>\r\n <span [innerHTML]=\"med.genericName\"></span></span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"SecondarySearchSpinner\" class=\"loader ml-load-45\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--5-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div class=\"mdl-grid new_rx_popup_tab_1_grid new_rx_popup_tab_1_box\"\r\n *ngIf=\"commonServices.selectedFormulation != null\">\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_tab_title\" style=\"margin-bottom: 5px\" [innerHTML]=\"commonServices.selectedFormulation != null&&commonServices.selectedFormulation.productName!=undefined && commonServices.selectedFormulation.productName!=null? commonServices.selectedFormulation.productName: ''\"></p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col\">\r\n <p class=\"new_rx_popup_label\">\r\n Generic Name:<span [innerHTML]=\"commonServices.selectedFormulation != null&&commonServices.selectedFormulation.genericName!=undefined && commonServices.selectedFormulation.genericName!=null? commonServices.selectedFormulation.genericName : ''\"></span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col\">\r\n <p class=\"new_rx_popup_label\" *ngIf=\"commonServices.isBrandName\">\r\n Brand Name:<span [innerHTML]=\"\r\n getBrandName(commonServices.selectedFormulation)\r\n \">\r\n </span>\r\n </p>\r\n <p class=\"new_rx_popup_label\">\r\n Schedule:<span>{{\r\n commonServices.selectedFormulation != null &&\r\n commonServices.selectedFormulation.poisonClassification !=\r\n undefined && commonServices.selectedFormulation.poisonClassification!=null && commonServices.selectedFormulation.poisonClassification\r\n .poisonClasses!=undefined && commonServices.selectedFormulation.poisonClassification\r\n .poisonClasses!=null && commonServices.selectedFormulation.poisonClassification\r\n .poisonClasses.length>0\r\n ? commonServices.selectedFormulation.poisonClassification\r\n .poisonClasses[0]\r\n : \"No Scheduled Information Available\"\r\n }}</span>\r\n </p>\r\n <p class=\"new_rx_popup_label\">\r\n PBS Listing:<span>{{commonServices.selectedFormulation.pbsType!=undefined && commonServices.selectedFormulation.pbsType!=null? commonServices.selectedFormulation.pbsType : '' }}\r\n {{\r\n commonServices.selectedFormulation.pbsCode!=undefined && commonServices.selectedFormulation.pbsCode!=null\r\n ? \" (\" +\r\n commonServices.selectedFormulation.pbsCode +\r\n \")\"\r\n : \"\"\r\n }}</span>\r\n </p>\r\n <p class=\"new_rx_popup_label\">\r\n <span style=\"margin:0px ;\">\r\n Max Quantity =\r\n {{getMaxQuantity()}}\r\n and Repeats =\r\n {{commonServices.selectedFormulation!=null? commonServices.selectedFormulation.repeats\r\n :\"\"}}</span>\r\n </p>\r\n\r\n <p class=\"new_rx_popup_label\" *ngIf=\"\r\n commonServices.selectedFormulation != null && commonServices.selectedFormulation.pregnancyCategory!=undefined && \r\n commonServices.selectedFormulation.pregnancyCategory != null && commonServices.selectedFormulation.pregnancyCategory\r\n .categoryCode!=undefined && commonServices.selectedFormulation.pregnancyCategory\r\n .categoryCode!=null\r\n \">\r\n Pregnancy Category:<span>{{\r\n commonServices.selectedFormulation.pregnancyCategory\r\n .categoryCode\r\n }}\r\n </span>\r\n <span *ngIf=\"commonServices.selectedFormulation.pregnancyCategory\r\n .additionalNote !=undefined && \r\n commonServices.selectedFormulation.pregnancyCategory\r\n .additionalNote != null &&\r\n commonServices.selectedFormulation.pregnancyCategory\r\n .additionalNote != ''\r\n \">\r\n AdditionalNote:\r\n <span *ngFor=\"\r\n let item of commonServices.selectedFormulation\r\n .pregnancyCategory.additionalNote\r\n \" [innerHTML]=\"item\">\r\n </span>\r\n </span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col\" *ngIf=\"\r\n this.isShowRestrictions == true && commonServices.selectedFormulation.Restrictions!=undefined && \r\n commonServices.selectedFormulation.Restrictions != null &&\r\n commonServices.selectedFormulation.Restrictions != ''\r\n \">\r\n <p class=\"new_rx_popup_label\">Restrictions:</p>\r\n <ol style=\"margin: 0px; padding-left: 15px\" *ngIf=\"commonServices.selectedFormulation.Restrictions!=undefined && \r\n commonServices.selectedFormulation.Restrictions != null &&\r\n commonServices.selectedFormulation.Restrictions != ''\r\n \">\r\n <li class=\"new_rx_pop_aut_int\" *ngFor=\"\r\n let restriction of commonServices.selectedFormulation\r\n .Restrictions\r\n \">\r\n <p style=\"\r\n margin: 0px;\r\n display: flex;\r\n align-content: center;\r\n margin-bottom: 10px;\r\n \" *ngIf=\"\r\n restriction.restrictionPreview != null &&\r\n restriction.restrictionPreview != '' &&\r\n restriction.restrictionText != null &&\r\n restriction.restrictionText != ''\r\n \">\r\n <span class=\"rx_restrictionText\" *ngIf=\"restriction.restrictionText.length < 60\"><b>{{\r\n restriction.restrictionType }}</b> -\r\n <span [innerHTML]=\"\r\n this.htmlToFormattedText(\r\n restriction.restrictionPreview\r\n )\r\n \"></span></span>\r\n <span class=\"rx_restrictionText\" *ngIf=\"restriction.restrictionText.length > 60\"><b>{{\r\n restriction.restrictionType }}</b> -\r\n <span [innerHTML]=\"\r\n this.htmlToFormattedText(\r\n restriction.restrictionPreview\r\n ).substring(0, 60)\r\n \"></span>...\r\n <span>\r\n <a style=\"cursor: pointer; color: #ff9978\" id=\"show-tooltip-id\">Show More</a></span></span>\r\n <ng-template #tooltipdemo>\r\n <p class=\"rx_tooltip_inner_box\" [innerHTML]=\"restriction.restrictionText\"></p>\r\n </ng-template>\r\n </p>\r\n </li>\r\n </ol>\r\n </div>\r\n </div>\r\n\r\n <div class=\"new_rx_popup_tab_3_small_box\" *ngIf=\"commonServices.selectedFormulation != null\">\r\n <div style=\"display: inline-block; margin-right: 10px\">\r\n <span class=\"new_rx_popup_label\">Quantity: </span><input autocomplete=\"off\" type=\"number\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" name=\"qty\"\r\n placeholder=\"\" class=\"new_rx_popup_tab_input\" step=\"1\" [min]=\"0\"\r\n [(ngModel)]=\"commonServices.quantityVal\" (keypress)=\"checkMobile($event)\"\r\n (input)=\"quantityChange()\" (paste)=\"$event.preventDefault()\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" />\r\n </div>\r\n <div style=\"display: inline-block\">\r\n <span class=\"new_rx_popup_label\">Repeats: </span><input autocomplete=\"off\" type=\"number\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true || commonServices.isMedicineRestrict}\" name=\"rpts\"\r\n placeholder=\"\" [min]=\"0\" (input)=\"repeatsChange()\" class=\"new_rx_popup_tab_input\"\r\n [(ngModel)]=\"commonServices.repeatsVal\" (paste)=\"$event.preventDefault()\"\r\n (keypress)=\"checkMobile($event)\" [disabled]=\"commonServices.editPrescribedPrescription || commonServices.isMedicineRestrict\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\"\r\n [class]=\"{ disabledRxContent: commonServices.isFetching}\">\r\n <div\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\"></div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">\r\n Dose:\r\n <span>\r\n <div class=\"rx_new_popup_checkbox\" style=\"margin-top: 0px\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\"><input autocomplete=\"off\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\" type=\"checkbox\"\r\n id=\"checkbox1\" class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.unUsualDoseFlag\" /><span class=\"mdl-checkbox__label\" style=\"font-weight: 400;font-size: 16px;margin-top: -7px;\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Unusual Dose</span></label>\r\n </div>\r\n </span>\r\n </p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selecteddose\" placeholder=\"Select Dose\"\r\n [(ngModel)]=\"commonServices.doseSearchValue\" (click)=\"doseDropdown()\" />\r\n <div #DoseDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectDoseDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\" style=\"margin-bottom: 0px\">\r\n <li (click)=\"selectDoseValue(null)\" class=\"p-12\"> </li>\r\n <li *ngFor=\"let dose of doseData\" (click)=\"selectDoseValue(dose)\" [class]=\"{\r\n heighlight: dose['text'] == commonServices.doseSearchValue\r\n }\">\r\n {{ dose[\"text\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Frequency:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedFrequency:\"\r\n placeholder=\"Select Frequency\" readOnly [(ngModel)]=\"commonServices.freqSearchValue\"\r\n (click)=\"freqDropdown()\" />\r\n <div #FreqDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectFreqDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\">\r\n <li (click)=\"selectFrequencyValue(null)\" class=\"p-12\"> </li>\r\n <li *ngFor=\"let frequency of frequencyData\" (click)=\"selectFrequencyValue(frequency)\" [class]=\"{\r\n heighlight:\r\n frequency['text'] == commonServices.freqSearchValue\r\n }\">\r\n {{ frequency[\"text\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Food:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedFrequency:\"\r\n placeholder=\"Select Food\" readOnly [(ngModel)]=\"commonServices.foodSearchValue\"\r\n (click)=\"foodDropdown()\" />\r\n <div #FoodDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectFoodDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\">\r\n <li (click)=\"selectFoodValue(null)\" class=\"p-12\"> </li>\r\n <li *ngFor=\"let food of foodData\" (click)=\"selectFoodValue(food)\" [class]=\"{\r\n heighlight: food['text'] == commonServices.foodSearchValue\r\n }\">\r\n {{ food[\"text\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Instruction:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"Instruction\"\r\n placeholder=\"Select Instruction\" [(ngModel)]=\"commonServices.InstructionSearchValue\"\r\n (click)=\"instructionDropdown()\" (change)=\"instructionOnChange()\" (keypress)=\"alphaRestriction($event)\"/>\r\n <div #InstructionDropdown class=\"new_rx_popup_tab_dropdown_list_box\" [class]=\"{M_list_box_show: selectInstructionDropdown === true}\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\" style=\"margin-bottom: 0px\">\r\n <ng-container *ngIf=\"selectInstructionDropdownList\">\r\n <li (click)=\"ChangeInstruction(null)\" class=\"p-12\"> </li>\r\n <li [class]=\"item.id == commonServices.complexId && item.text == commonServices.InstructionSearchValue ? 'heighlight' : ''\" *ngFor=\"let item of instructionData; index as i\" (click)=\"ChangeInstruction(item)\">\r\n {{ item.text }}\r\n <span *ngIf=\"item.userid !== 0\" class=\"span_icon\" style=\"float: right\">\r\n <i class=\"material-icons\" style=\"padding: 5px\"\r\n (click)=\"editInstruction(item.id, item)\">create</i><i class=\"material-icons\"\r\n style=\"margin-left: 10px; padding: 5px\"\r\n (click)=\"deleteInstruction(item.id)\">clear</i></span>\r\n </li>\r\n <li class=\"RX_ADD_dropdown_btn\" (click)=\"addNewInstruction()\">\r\n + Add Complex Instructions\r\n </li>\r\n </ng-container>\r\n <ng-container *ngIf=\"selectInstructionDropdownList == false\">\r\n <div class=\"complex_instruction_box\">\r\n <p class=\"new_rx_popup_label\" style=\"font-size: 12px; margin: 0\">\r\n Complex Instruction:\r\n </p>\r\n <input autocomplete=\"off\" class=\"instruction_field_clr mdl-textfield__input new_rx_popup_tab_input \" type=\"text\"\r\n id=\"Instruction\" [(ngModel)]=\"commonServices.Instructiontiltle\"\r\n placeholder=\"Enter Complex Instruction\" />\r\n <p class=\"new_rx_popup_label\" style=\"font-size: 12px; margin: 0\">\r\n Complex Instruction Description:\r\n </p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"2\" maxLength=\"500\"\r\n [(ngModel)]=\"tempInstructionDescription\"\r\n placeholder=\"Enter Complex Instruction Description\"\r\n class=\"instruction_field_clr w-100 new_rx_popup_tab_textarea\"></textarea>\r\n <div class=\"RX_ADD_dropdown_btn_1\">\r\n <button (click)=\"clearInstruction()\" class=\"rx-instruction-btn\">Cancel</button>\r\n <button (click)=\"saveInstruction()\" class=\"rx-instruction-btn\">Save</button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Route:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedRoute:\"\r\n placeholder=\"Select Route\" [(ngModel)]=\"commonServices.routeSearchValue\" maxlength=\"50\"\r\n (click)=\"routeDropdown()\" (keypress)=\"alphaRestriction($event)\"/>\r\n <div #RouteDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectRouteDropdown === true }\">\r\n <div style=\"padding: 10px; position: relative\">\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_route__input\" type=\"text\"\r\n placeholder=\"Search...\" [value]=\"routeDataFilter ? routeDataFilter : ''\"\r\n (keyup)=\"routeFilter($event)\" />\r\n <i class=\"material-icons md-24 new_rx_popup_tab_1_input_search rx-search-icon\">search</i>\r\n </div>\r\n <ul *ngIf=\"filterRouteItems(routeData, routeDataFilter).length != 0\"\r\n class=\"new_rx_popup_tab_1_list rx_dropdown rx_dropdown_route\">\r\n <li *ngFor=\"\r\n let route of filterRouteItems(routeData, routeDataFilter)\r\n \" (click)=\"selectRoutesearcValue(route)\" [class]=\"{\r\n heighlight:\r\n route['routeName'] == commonServices.routeSearchValue\r\n }\">\r\n {{ route[\"routeName\"] }}\r\n </li>\r\n </ul>\r\n <ul *ngIf=\"filterRouteItems(routeData, routeDataFilter).length == 0\"\r\n class=\"new_rx_popup_tab_1_list rx_dropdown rx_dropdown_route\">\r\n <li>no data</li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">Pro Re Nata Prescription:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox1\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"commonServices.rxPRN\"\r\n (ngModelChange)=\"PRNChange(commonServices.rxPRN)\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Pro Re Nata\r\n Prescription</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Prescribe As:</p>\r\n <div class=\"rx_new_popup_checkbox\">\r\n <div class=\"rx_new_radiobox_button rx_radio_overall\">\r\n <label class=\"rx_radio_label\">\r\n <input autocomplete=\"off\" type=\"radio\" class=\"mdl-radio__button custom-radio-button\"\r\n name=\"PrescribeAs\" [value]=\"'Private'\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription === true\"\r\n [checked]=\"commonServices.PrescribeAS.toLowerCase() === 'private'\" (click)=\"private()\"\r\n [(ngModel)]=\"commonServices.PrescribeAS\" /><span class=\"mdl-radio__label radio_txt\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Private</span></label>\r\n\r\n <label class=\"rx_radio_label\">\r\n <input autocomplete=\"off\" type=\"radio\" checked=\"\"\r\n class=\"mdl-radio__button d-inline radio custom-radio-button\" name=\"PrescribeAs\"\r\n [value]=\"'PBS'\"\r\n [disabled]=\"prescribeAS_PBS || commonServices.isFetching || commonServices.editPrescribedPrescription === true\"\r\n [checked]=\"commonServices.PrescribeAS.toLowerCase() === 'pbs'\" (click)=\"PBS()\"\r\n [(ngModel)]=\"commonServices.PrescribeAS\" /><span class=\"mdl-radio__label radio_txt\"\r\n [class]=\"{ 'disabled-style': prescribeAS_PBS == true|| commonServices.isFetching || commonServices.editPrescribedPrescription === true}\">PBS</span>\r\n </label>\r\n <label class=\"rx_radio_label\">\r\n <input autocomplete=\"off\" type=\"radio\" checked=\"\"\r\n class=\"mdl-radio__button d-inline radio custom-radio-button\" name=\"PrescribeAs\"\r\n [value]=\"'RPBS'\"\r\n [disabled]=\"prescribeAS_RPBS || commonServices.isFetching || commonServices.editPrescribedPrescription === true\"\r\n [checked]=\"commonServices.PrescribeAS.toLowerCase() === 'rpbs'\" (click)=\"RPBS()\"\r\n [(ngModel)]=\"commonServices.PrescribeAS\" /><span class=\"mdl-radio__label radio_txt\"\r\n [class]=\"{ 'disabled-style': prescribeAS_RPBS == true|| commonServices.isFetching || commonServices.editPrescribedPrescription === true}\">RPBS</span>\r\n </label>\r\n </div>\r\n </div>\r\n <div class=\"rx_new_popup_checkbox\" *ngIf=\"\r\n commonServices.selectedFormulation != null && commonServices.selectedFormulation.pbsType!=undefined && commonServices.selectedFormulation.pbsType!=null &&\r\n commonServices.selectedFormulation.pbsType.toLowerCase() === 'non pbs' &&\r\n commonServices.patientDetails.dvaNumber != null &&\r\n commonServices.patientDetails.dvaNumber != '' && isNonPbsFlag == false && !isPrescribeAsPrivateOnly\r\n \">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox\" class=\"check_box\"\r\n [checked]=\"commonServices.unlistedRA\" (click)=\"unlistedRA()\"\r\n [(ngModel)]=\"commonServices.unlistedRA\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\" />\r\n <span class=\"mdl-checkbox__label check_box_label\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">\r\n Unlisted RA\r\n </span>\r\n </label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{\r\n M_CTG_box_hide: !(\r\n commonServices.patientDetails &&\r\n commonServices.patientDetails.patientCtgFlag == 0 &&\r\n commonServices.patientDetails.patientCtgCoPayment == 0 &&\r\n commonServices.PrescribeAS.toLowerCase() == 'pbs'\r\n )\r\n }\">\r\n <!-- <p class=\"new_rx_popup_label\">CTG/PBS Co Payment:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"commonServices.CTGCoPayment\"\r\n [checked]=\"commonServices.CTGCoPayment == true\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">CTG/PBS Co Payment</span></label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\"\r\n [class]=\"{ disabledRxContent: commonServices.isFetching}\">\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Script Date:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"date\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n id=\"RxScriptDate\" placeholder=\" ../../....\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.scriptDate\" />\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Start Date:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"date\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" id=\"RxStartDate\"\r\n placeholder=\" ../../....\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.startDate\" (ngModelChange)=\"commonServices.rxEndDateCalculater()\"/>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">End Date:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"date\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" id=\"RxEndDate\"\r\n placeholder=\"../../....\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.endDate\" />\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Days Between Repeats:</p>\r\n <input autocomplete=\"off\" (paste)=\"$event.preventDefault()\" placeholder=\"Enter Days Between Repeats\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true||commonServices.isMedicineRestrict}\"\r\n class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"number\" id=\"Daybetweenrepeats\" [min]=\"0\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription||commonServices.isMedicineRestrict\"\r\n [(ngModel)]=\"commonServices.daysBtnRepeatsVal\" (keypress)=\"checkMobile($event)\"\r\n (input)=\"dayschange()\" />\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <div>\r\n <p class=\"new_rx_popup_label\">Purpose:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedPurpose:\"\r\n placeholder=\"Select Purpose\" readOnly [(ngModel)]=\"commonServices.purposeSearchValue\"\r\n (click)=\"purposeDropdown()\" />\r\n <div #PurposeDropdown class=\"new_rx_popup_tab_dropdown_list_box new_rx_popup_tab_purpose_box h-160p\"\r\n [class]=\"{ M_list_box_show: selectPurposeDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\">\r\n <li (click)=\"selectPurposeValue(null)\" class=\"p-12\"></li>\r\n <li *ngFor=\"let purpose of purposeData\" (click)=\"selectPurposeValue(purpose)\" [class]=\"{\r\n heighlight:\r\n purpose['lookupText'] ==\r\n commonServices.purposeSearchValue\r\n }\">\r\n {{ purpose[\"lookupText\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{ M_CTG_box_hide: commonServices.isBrandName != true }\">\r\n <!-- <p class=\"new_rx_popup_label\">Substitution:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox1\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true || commonServices.isBrandName == false\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.BrandSubstitutesNotAllow\"\r\n (change)=\"this.brandSubstitutesNotAllow(commonServices.BrandSubstitutesNotAllow)\" [checked]=\"\r\n commonServices.BrandSubstitutesNotAllow\r\n ? commonServices.BrandSubstitutesNotAllow\r\n : false\r\n \" /><span class=\"mdl-checkbox__label\" style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Brand Substitution\r\n Not Permitted</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{ M_CTG_box_hide_brand: commonServices.lemi == true }\" id=\"brandnametooltip\"\r\n (mouseleave)=\"hideToolTip()\" (mouseenter)=\"showtooltip(commonServices.lemi,brandtooltip)\">\r\n <!-- <p class=\"new_rx_popup_label\">Brand Name:</p> -->\r\n <ng-template #brandtooltip><span class=\"include_brand_tooltip\">The selected product is LEMI\r\n identified. Therefore it may be\r\n prescribed by the brand name only.</span></ng-template>\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\" [class]=\"{\r\n M_CTG_box_hide_brand_name: commonServices.lemi == true || commonServices.isFetching == true || commonServices.editPrescribedPrescription === true\r\n }\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [checked]=\"commonServices.isBrandName\"\r\n [(ngModel)]=\"commonServices.isBrandName\"\r\n (change)=\"this.isChangeBrandName(commonServices.isBrandName)\" /><span\r\n class=\"mdl-checkbox__label\" style=\"font-weight: 400; font-size: 16px\">Include Brand\r\n Name</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">Regulation 24:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"commonServices.regulation24\"\r\n [checked]=\"commonServices.regulation24\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Regulation 24</span></label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\"\r\n [class]=\"{ disabledRxContent: commonServices.isFetching}\">\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">DO NOT send to MySL:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.mySLConsent\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">DO NOT send to MySL</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">\r\n <!-- Pharmacy: -->\r\n <span>\r\n <div class=\"rx_new_popup_checkbox\" style=\"margin-top: 0px\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\"><input autocomplete=\"off\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\" type=\"checkbox\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.sendToPharmacy\" (change)=\"sendToPharmacyChange()\" /><span\r\n class=\"mdl-checkbox__label\" style=\"font-weight: 400;font-size: 16px;margin-top: -7px;\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Send to Pharmacy</span></label>\r\n </div>\r\n </span>\r\n </p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\" readonly\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selecteddose\" placeholder=\"Select Value\"\r\n [(ngModel)]=\"commonServices.sendToPharmacyValue\" (click)=\"stpValueDropdown()\"\r\n [class]=\"{ M_CTG_box_hide: commonServices.sendToPharmacy != true }\" />\r\n <div #stpDropdown class=\"new_rx_popup_tab_dropdown_list_box new_rx_popup_tab_stp_box h-93p\"\r\n [class]=\"{ M_list_box_show: selectstpDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\" style=\"margin-bottom: 0px\">\r\n <li (click)=\"selectStpValue(null)\" class=\"p-12\"></li>\r\n <li *ngFor=\"let sendtopharmacy of sendtopharmacyData\" (click)=\"selectStpValue(sendtopharmacy)\">\r\n {{ sendtopharmacy.name }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">Emergency Supply:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.emergencySupply\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Emergency Supply</span></label>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"page == 2\" class=\"new_rx_popup_tab_2\">\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px; opacity: 1\">\r\n <div\r\n class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div style=\"width: 100%; padding: 0px\" class=\"mdl-grid\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <div class=\"mdl-grid new_rx_popup_tab_1_grid\">\r\n <div class=\"mdl-cell mdl-cell--12-col\">\r\n <p class=\"new_rx_popup_label\">RX</p>\r\n <p class=\"new_rx_popup_label_p\">\r\n <b [innerHTML]=\"commonServices.rxDisplayName\"></b>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\" style=\"margin: 0px\">Quantity: <span\r\n style=\"color: rgb(45, 45, 45); font-weight: 600\">{{ commonServices.quantityVal }}\r\n </span> Repeats: <span style=\"color: rgb(45, 45, 45); font-weight: 600\">\r\n {{ commonServices.repeatsVal }}</span> Default Quantity:{{getDefaultQuantity()}}\r\n Default Repeats: {{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.repeats!=null?commonServices.selectedFormulation.repeats:\"\" }}\r\n </p>\r\n <p *ngIf=\"commonServices.doseSearchValue != '' ||commonServices.freqSearchValue != ''\"\r\n class=\"new_rx_popup_label_p\">\r\n <span>{{ commonServices.doseSearchValue }} </span><span>{{ commonServices.freqSearchValue\r\n }}</span>\r\n </p>\r\n <p *ngIf=\"commonServices.foodSearchValue != ''\" class=\"new_rx_popup_label_p\">\r\n {{ commonServices.foodSearchValue }}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n {{InstructionDescription !=\"\" && InstructionDescription!=null? InstructionDescription:commonServices.InstructionSearchValue!=\"\" && commonServices.InstructionSearchValue!=null?commonServices.InstructionSearchValue:\"\"}}\r\n </p>\r\n <p *ngIf=\"commonServices.routeSearchValue != ''\" class=\"new_rx_popup_label_p\">\r\n {{ commonServices.routeSearchValue }}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n P.R.N :\r\n <i *ngIf=\"commonServices.rxPRN\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.rxPRN\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Days Between Repeats:\r\n <span *ngIf=\"!commonServices.IsNullOrEmpty(commonServices.daysBtnRepeatsVal)\">{{commonServices.daysBtnRepeatsVal}}</span>\r\n <span *ngIf=\"commonServices.IsNullOrEmpty(commonServices.daysBtnRepeatsVal)\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Unusual Dose:\r\n <i *ngIf=\"commonServices.unUsualDoseFlag\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.unUsualDoseFlag\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Script Date:\r\n <span>{{this.commonServices.scriptDate|date:'dd-MM-YYYY'}}</span>\r\n \r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Start Date: \r\n <span>{{this.commonServices.startDate|date:'dd-MM-YYYY'}}</span>, End Date: {{this.commonServices.endDate|date:'dd-MM-YYYY'}}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Prescribe As:\r\n <span *ngIf=\"!commonServices.IsNullOrEmpty(commonServices.PrescribeAS)\">{{commonServices.PrescribeAS}}</span>\r\n <span *ngIf=\"commonServices.IsNullOrEmpty(commonServices.PrescribeAS)\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Purpose:\r\n <span *ngIf=\"!commonServices.IsNullOrEmpty(commonServices.purposeSearchValue)\">{{commonServices.purposeSearchValue}}</span>\r\n <span *ngIf=\"commonServices.IsNullOrEmpty(commonServices.purposeSearchValue)\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Include Brand Name:\r\n <i *ngIf=\"commonServices.isBrandName\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.isBrandName\">-</span>,\r\n Brand Substitution Not Permitted:\r\n <i *ngIf=\"commonServices.BrandSubstitutesNotAllow\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.BrandSubstitutesNotAllow\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Regulation 24:\r\n <i *ngIf=\"commonServices.regulation24\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.regulation24\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n CTG/PBS Co Payment:\r\n <i *ngIf=\"commonServices.CTGCoPayment\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.CTGCoPayment\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n DO NOT send to MySL:\r\n <i *ngIf=\"commonServices.mySLConsent\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.mySLConsent\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Send to Pharmacy:\r\n <i *ngIf=\"commonServices.sendToPharmacy\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.sendToPharmacy\">-</span>, Send to Pharmacy Value: {{!commonServices.IsNullOrEmpty(commonServices.sendToPharmacyValue)?commonServices.sendToPharmacyValue:'-'}}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Emergency Supply:\r\n <i *ngIf=\"commonServices.emergencySupply\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.emergencySupply\">-</span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Note To Pharmacy:</p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"3\" maxlength=\"50\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"this.commonServices.doctorNotes\"\r\n class=\"w-100 new_rx_popup_tab_textarea rx-m-w-535p\"></textarea>\r\n </div>\r\n\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Annotation:</p>\r\n\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"3\" maxlength=\"500\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"this.commonServices.annotation\" class=\"w-100 new_rx_popup_tab_textarea rx-m-w-535p\"></textarea>\r\n </div>\r\n\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Reason For Prescription:</p>\r\n\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"3\" maxlength=\"50\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"this.commonServices.prescriptionReason\"\r\n class=\"w-100 new_rx_popup_tab_textarea rx-m-w-535p\"></textarea>\r\n </div>\r\n\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\" style=\"text-transform: capitalize;\">\r\n {{this.getStateAuthorityLabel(commonServices.patientDetails.state)}}\r\n </p>\r\n\r\n <p style=\"margin: 0px;margin-top: -8px;margin-bottom: 10px;\">\r\n <span class=\"state-txt-color new_rx_popup_label_p\">(Relevant to\r\n {{ commonServices.patientDetails.state }})</span>\r\n </p>\r\n\r\n <input autocomplete=\"off\" type=\"text\" name=\"approval\" placeholder=\"\" \r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" class=\"new_rx_popup_tab_input\"\r\n [(ngModel)]=\"commonServices.StateAuthorityNumber\" maxlength=\"25\" (keypress)=\"authorityNoValidation($event)\" (ngModelChange)=\"authorityNoChange($event)\"/>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{\r\n 'new_rx_no_authority':!showAuthorityBox(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.Restrictions:'',commonServices.PrescribeAS,commonServices.rxAuthority,commonServices.unlistedRA)\r\n }\">\r\n <div *ngIf=\"\r\n showAuthorityBox(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.Restrictions:'',\r\n commonServices.PrescribeAS,\r\n commonServices.rxAuthority,\r\n commonServices.unlistedRA\r\n )\r\n \">\r\n <div style=\"padding: 0px\" class=\"mdl-grid\">\r\n <div class=\"mdl-cell mdl-cell--8-col mdl-cell--6-col-tablet mdl-cell--4-col-phone\">\r\n <span class=\"new_rx_popup_label_New\">HOTLINE: <span\r\n class=\"new_rx_popup_label_span\">{{commonServices.PrescribeAS ==\r\n 'RPBS'?'1800552580':'1800888333'}}</span></span>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--4-col mdl-cell--2-col-tablet mdl-cell--4-col-phone\">\r\n <div style=\"text-align: right\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-mims.png\" alt=\"MIMS logo\"\r\n style=\"width: 80px; height: auto\" />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"padding: 0px\">\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Prescriber Name:<span>{{\r\n commonServices.patientDetails.firstName +\r\n \" \" +\r\n commonServices.patientDetails.lastName\r\n }}</span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Prescriber Number:<span>{{\r\n commonServices.physicianDetails.prescriberNumber\r\n }}</span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Patient Medicare Number:<span>{{\r\n commonServices.patientDetails.medicareNumber\r\n ? commonServices.patientDetails.medicareNumber\r\n : \"\"\r\n }}</span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Authority Form No:\r\n <span>{{\r\n commonServices.authorityFormNo\r\n ? commonServices.authorityFormNo\r\n : \"\"\r\n }}</span>\r\n </p>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Authority Item:</p>\r\n <p class=\"authority_item_text\" [innerHTML]=\"commonServices.rxDisplayName\"></p>\r\n\r\n <p class=\"new_rx_popup_label_p new_rx_popup_tab_smallBoxes\" style=\"margin: 0px\">\r\n Quantity:<span style=\"color: rgb(45, 45, 45); font-weight: 600\"> {{ commonServices.quantityVal\r\n }}</span> Repeats:<span style=\"color: rgb(45, 45, 45); font-weight: 600\">\r\n {{ commonServices.repeatsVal }}</span> Default Quantity:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.maxQtyUnits!=null?(commonServices.quantityWithUnitFlag?\"1 x \":\"\")+commonServices.selectedFormulation.maxQtyUnits:\"\"}}\r\n Default Repeats:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.repeats!=null? commonServices.selectedFormulation.repeats:\"\"}}\r\n </p>\r\n\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"padding: 0px\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n PBS Listed Indication Authority:\r\n </p>\r\n <div class=\"w-100 new_rx_popup_tab_textarea\"\r\n style=\"min-height: 70px; max-height: 150px; overflow: auto\">\r\n <ul style=\"margin: 0px; padding-left: 15px;list-style: none;padding: 0px;\" *ngIf=\"\r\n this.isShowRestrictions == true &&\r\n commonServices.selectedFormulation.Restrictions !=\r\n null &&\r\n commonServices.selectedFormulation.Restrictions != ''\r\n \">\r\n <li style=\"font-size: 12px;padding: 0px 10px;margin-bottom: 10px;\"\r\n class=\"new_rx_pop_aut_int cursor\" *ngFor=\"\r\n let restriction of commonServices.selectedFormulation\r\n .Restrictions;\r\n index as i\r\n \" [class]=\"{\r\n new_rx_pop_aut_ins_select:\r\n commonServices.pbsListInstructionsId == i\r\n }\">\r\n <p style=\"\r\n margin: 0px;\r\n display: flex;\r\n align-content: center;\r\n margin-bottom: 10px;\r\n \" *ngIf=\"\r\n restriction.restrictionPreview != null &&\r\n restriction.restrictionPreview != '' &&\r\n restriction.restrictionText != null &&\r\n restriction.restrictionText != ''\r\n \">\r\n <span\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n (click)=\"\r\n indicationAuthority(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.maxQtyUnits:'',\r\n commonServices.quantityVal,\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.repeats:'',\r\n commonServices.repeatsVal,\r\n i,\r\n restriction\r\n )\r\n \">\r\n <span class=\"rx_restrictionText\" style=\"font-size: 12px;\"\r\n *ngIf=\"restriction.restrictionText.length < 80\"><b>{{\r\n restriction.restrictionType }}</b> -\r\n <span [innerHTML]=\"\r\n htmlToFormattedText(\r\n restriction.restrictionPreview\r\n )\r\n \"></span></span></span>\r\n <span class=\"rx_restrictionText\" style=\"font-size: 12px;\"\r\n *ngIf=\"restriction.restrictionText.length > 80\"><b (click)=\"\r\n indicationAuthority(\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.maxQtyUnits:'',\r\n commonServices.quantityVal,\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.repeats:'',\r\n commonServices.repeatsVal,\r\n i,\r\n restriction\r\n )\r\n \">{{\r\n restriction.restrictionType }}</b> -\r\n <span (click)=\"\r\n indicationAuthority(\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.maxQtyUnits:'',\r\n commonServices.quantityVal,\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.repeats:'',\r\n commonServices.repeatsVal,\r\n i,\r\n restriction\r\n )\r\n \" [innerHTML]=\"\r\n htmlToFormattedText(\r\n restriction.restrictionPreview\r\n ).substring(0, 80)\r\n \"></span>...\r\n <span>\r\n </span>\r\n <a style=\"cursor: pointer; color: #ff9978\" id=\"show-tooltip-id\">Show\r\n More</a></span>\r\n <ng-template #tooltipdemo>\r\n <p class=\"rx_tooltip_inner_box\" [innerHTML]=\"restriction.restrictionText\"></p>\r\n </ng-template>\r\n </p>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\"\r\n style=\"padding: 0px\">\r\n <!-- <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">PBS Notes:</p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"2\" maxlength=\"500\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n class=\"w-100 new_rx_popup_tab_textarea\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.pbsNotes\"></textarea>\r\n </div> -->\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Indication For This Authority:\r\n </p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"2\" placeholder=\"\"\r\n [class]=\"{'edit-dsable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.pbsListInstructions\" (ngModelChange)=\"onInputChange($event)\"\r\n class=\"w-100 new_rx_popup_tab_textarea rx-m-w-100\"></textarea>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n {{\r\n getAuthorityLabel(commonServices.patientDetails.state)\r\n }}\r\n </p>\r\n <input autocomplete=\"off\" type=\"text\" name=\"approval\" placeholder=\"\"\r\n [class]=\"{'edit-dsable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" class=\"new_rx_popup_tab_input\" [(ngModel)]=\"commonServices.approvalNo\" (ngModelChange)=\"onInputchangeApprovalNo($event)\" (keypress)=\"authorityNoValidation($event)\"/>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"\r\n !showAuthorityBox(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.Restrictions:'',\r\n commonServices.PrescribeAS,\r\n commonServices.rxAuthority,\r\n commonServices.unlistedRA\r\n )\r\n \" style=\"width: 100%;\">\r\n <div style=\"text-align: right\" *ngIf=\"!commonServices.isMedicineRestrict\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-mims.png\" alt=\"MIMS logo\"\r\n style=\"width: 80px; height: auto\" />\r\n </div>\r\n <div class=\"No_Authority_box\">\r\n <p>No Authority Required</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"rx_footer\">\r\n <div class=\"rx_footer_brand\">\r\n <p class=\"ml-10\"><span>Hola Consult | 1.0 <span *ngIf=\"commonServices.sandbox\">| <span\r\n class=\"rx_staging\">This is a sandbox environment</span></span></span></p>\r\n <p class=\"mt-15p\">\r\n <span class=\"rx_popup_footer_text\">\u00A9 2024 Hola Health, a brand of Packapill Pty Ltd | v\r\n 1.0.9 |\r\n <a href=\"https://hola.health/consult-terms\" target=\"_blank\">Terms</a> |\r\n <a href=\"https://hola.health/consult-privacy-policy\" target=\"_blank\">Privacy Policy</a> |\r\n <a href=\"mailto:support@hola.health\" target=\"_blank\">Help</a></span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".loader{border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #020202;width:30px;height:30px;animation:spin 1s linear infinite;margin-left:18px;margin-top:18px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m-v4{margin-left:4vh}.rx_loader_button{border:2px solid #f3f3f3;border-radius:50%;border-top:4px solid #005760;width:30px;height:30px;animation:spin 1s linear infinite}.drp-icon{color:#fff;font-size:19px;margin-left:5px}.select-action-btn{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center}.select-action-ul{width:80%}.new_rx_popup_mims .React__Overlay_Open_Popup{position:fixed;inset:0;background-color:#00000080!important}.new_rx_popup_mims .new_rx_mims_Overlay_Open_Popup{z-index:9999999!important}.new_rx_popup_mims .ReactModal__Overlay{overflow-y:auto!important}.new_rx_popup_mims .ReactModal_popup{width:100%;padding:0;margin:20px 0 0}.new_rx_popup_mims .ReactModal__Content{margin:auto}.edit-disable-data{pointer-events:none;opacity:.6}.new_rx_popup_btns{position:relative;display:flex;justify-content:flex-end;align-items:center}@media only screen and (max-width: 1023px){.rx_ipad_header_box_1{width:calc(35% - 16px)}.rx_ipad_header_box_2{width:calc(65% - 16px)}.rx_ipad_header_box_3{width:calc(100% - 16px)}.new_mobile_rx_popup_header_text{display:block;text-align:center}}@media screen and (max-width: 767px){.new_rx_popup_btns,.new_mobile_rx_popup_header_text{display:block;text-align:center}.new_mobile_rx_top_bottom_0{margin-top:0;margin-bottom:0}.new_mobile_rx_btn{margin-bottom:5px}}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i4.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i4.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { kind: "directive", type: i4.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: SplashscreenComponent, selector: "app-splashscreen", inputs: ["height"] }, { kind: "pipe", type: i3.DatePipe, name: "date" }] });
5738
5884
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RxComponent, decorators: [{
5739
5885
  type: Component,
5740
- args: [{ selector: 'app-rx', template: "<ng-template #rxwidgets> </ng-template>\r\n<div class=\"new_rx_popup_mims\">\r\n <div\r\n class=\"ReactModal__Overlay ReactModal__Overlay--after-open React__Overlay_Open_Popup new_rx_mims_Overlay_Open_Popup\">\r\n <div class=\"ReactModal__Content ReactModal__Content--after-open React__Content new_rx_mims_React__Content\">\r\n <div class=\"popup new_rx_mims_ReactModal_popup\">\r\n <div>\r\n <app-splashscreen *ngIf=\"PopupScreenLoader\" [height]=\"'height-rx-spin'\"> </app-splashscreen>\r\n <div class=\"page-content\" *ngIf=\"!PopupScreenLoader\">\r\n <div class=\"new_rx_popup_header_box\">\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--2-col-tablet mdl-cell--3-col-phone new_rx_mobile_fullwidth rx_ipad_header_box_1\"\r\n [class]=\"commonServices.rxid != null && commonServices.rxid !=''?'mdl-cell--2-col':'mdl-cell--3-col'\"\r\n style=\"align-self: center\">\r\n <h3 class=\"new_rx_popup_header_box_text\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-hola-health-logo-1.png\" alt=\"hola_health\"\r\n style=\"width: auto;height: 37px;border-radius: 5px;\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-header-logo.png\" alt=\"\" />\r\n {{commonServices.editPrescription === true ? 'Edit Script' : 'New Script'}}\r\n </h3>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_desktop_title new_rx_mobile_fullwidth\"\r\n style=\"align-self: center;\">\r\n <p class=\"new_rx_popup_header_box_text\" style=\"justify-content: center;\">\r\n <span style=\"font-weight: 600;\">{{\r\n commonServices.patientDetails.firstName +\r\n \" \" +\r\n commonServices.patientDetails.lastName\r\n }}</span>/<span style=\"width: 100px;\">{{\r\n this.datePipe.transform(\r\n commonServices.patientDetails.dob,\r\n \"dd-MM-YYYY\"\r\n )\r\n }}</span>\r\n </p>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--5-col-tablet mdl-cell--4-col-phone new_rx_popup_header_box_col new_rx_mobile_fullwidth rx_ipad_header_box_2 new_mobile_rx_top_bottom_0\"\r\n style=\"position: relative\"\r\n [class]=\"commonServices.rxid != null && commonServices.rxid !=''?'mdl-cell--6-col':'mdl-cell--5-col'\">\r\n <div class=\"new_rx_popup_btns\">\r\n <button (click)=\"close(null)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored backButton new_mobile_rx_btn\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\">\r\n Close\r\n </button>\r\n <div style=\"display: inline-block;position: relative\"\r\n *ngIf=\"commonServices.rxid != null && commonServices.rxid !=''\">\r\n <button\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton select-action-btn new_mobile_rx_btn\"\r\n style=\"position: relative;width: 140px;display: flex;flex-direction: row;align-items: center;justify-content: center;padding: 10px !important\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\"\r\n (click)=\"selectActionDropdownopen()\">\r\n <ng-container *ngIf=\"selectionbtnLoader\">\r\n <p class=\"rx_loader_button m-v4\"\r\n style=\"width: 20px;height: 20px;margin: 0px !important;margin-right: 0px !important;margin-left: 0px !important;\">\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"!selectionbtnLoader\">\r\n Select Action <i class=\"material-icons drp-icon\">expand_more</i>\r\n </ng-container>\r\n </button>\r\n <div #selectActionDropdown class=\"new_rx_Prescribe_btn_dropdown_list_box select-action-ul\"\r\n *ngIf=\"selectActionBtnDropdown == true\"\r\n [class]=\"{ M_list_box_show: selectActionBtnDropdown === true }\">\r\n <ul class=\"new_rx_Prescribe_btn_dropdown_list_ul\">\r\n <li (click)=\"commonServices.rxDetails.status.toLowerCase() == 'draft'?cancelDraft():cancelPrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,4)?'':'edit-disable-data'\">\r\n Cancel</li>\r\n <li (click)=\"printPrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,1)?'':'edit-disable-data'\">\r\n Print</li>\r\n <li (click)=\"reissuePrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,3)?'':'edit-disable-data'\">\r\n Re-Issue</li>\r\n <li (click)=\"ceasePrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,2)?'':'edit-disable-data'\">\r\n Cease</li>\r\n </ul>\r\n </div>\r\n </div>\r\n <button *ngIf=\"page != 1\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored backButton new_mobile_rx_btn\"\r\n (click)=\"back()\" [disabled]=\"this.commonServices.prescribeMedLoader || selectionbtnLoader\">\r\n Back\r\n </button>\r\n <button *ngIf=\"page == 1\" (click)=\"pageNumberOneToNext()\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton new_mobile_rx_btn\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\">\r\n Next\r\n </button>\r\n <button class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored new_mobile_rx_btn\"\r\n [class]=\"abortdisable?'nextButton':'abortbutton'\"\r\n *ngIf=\"abortBtnFlag\"\r\n [disabled]=\"abortdisable\" (click)=\"prescripeAbort()\"><span *ngIf=\"abortdisable\" class=\"rx_loader\">\r\n <p class=\"rx_loader_button m-v4 rx_btn_spin\">\r\n </p>\r\n </span><span *ngIf=\"!abortdisable\">Abort</span></button>\r\n <div style=\"display: inline-block\" *ngIf=\"page == 2\">\r\n <button\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton new_mobile_rx_btn\"\r\n style=\"position: relative;width: 135px;display: flex;flex-direction: row;align-items: center;justify-content: center\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\"\r\n (click)=\"includeRtpmModal()\">\r\n <ng-container *ngIf=\"commonServices.prescribeMedLoader \">\r\n <p class=\"rx_loader_button m-v4\"\r\n style=\"width: 20px;height: 20px;margin: 0px !important;margin-right: 0px !important;margin-left: 0px !important;\">\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"!this.commonServices.prescribeMedLoader\">\r\n Prescribe <i class=\"material-icons drp-icon\">expand_more</i>\r\n </ng-container>\r\n </button>\r\n <div #PrescribeDropdown class=\"new_rx_Prescribe_btn_dropdown_list_box\"\r\n *ngIf=\"selectPBTNDropdown == true\" [class]=\"{ M_list_box_show: selectPBTNDropdown === true }\">\r\n <ul class=\"new_rx_Prescribe_btn_dropdown_list_ul\">\r\n <li [class]=\"{'edit-disable-data': ePrescriptionValidation()}\"\r\n (click)=\"MprescribeMed(1)\">E-Prescribe (Draft)</li>\r\n <li [class]=\"{'edit-disable-data': ePrescriptionValidation()}\" (click)=\"EprescripeSend(1)\" *ngIf=\"!this.commonServices.sendToPharmacy && !this.commonServices.emergencySupply\">E-Prescribe and Send</li>\r\n <li [class]=\"{'edit-disable-data': ePrescriptionValidation()}\" (click)=\"EprescripeSend(2)\">E-Prescribe and Print</li>\r\n <li [class]=\"{'edit-disable-data': (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase()== 'M'&& this.commonServices.rxDetails.status.toLowerCase() != 'draft')|| (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase()== 'E')}\"\r\n (click)=\"MprescribeMed(2)\">Prescribe (Draft)</li>\r\n <li [class]=\"{'edit-disable-data': (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase() == 'M'&& this.commonServices.rxDetails.status.toLowerCase() != 'draft') || (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase()== 'E')}\"\r\n (click)=\"prescripePrint()\">\r\n Prescribe and Print</li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth rx_ipad_header_box_3 new_rx_mobile_title\"\r\n style=\"align-self: center\">\r\n <p class=\"new_rx_popup_header_box_text new_mobile_rx_popup_header_text\">\r\n <span style=\"font-weight: 600\">{{\r\n commonServices.patientDetails.firstName +\r\n \" \" +\r\n commonServices.patientDetails.lastName\r\n }}</span>/<span>{{\r\n this.datePipe.transform(\r\n commonServices.patientDetails.dob,\r\n \"dd-MM-YYYY\"\r\n )\r\n }}</span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"page == 1\" class=\"new_rx_popup_tab_1\">\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--5-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div #MedicineDropdown style=\"position: relative\">\r\n <div style=\"position: relative\">\r\n <input autocomplete=\"off\" type=\"text\" name=\"medicine search\" placeholder=\"Search Medicines\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" class=\"new_rx_popup_tab_1_input\"\r\n value=\"{{ mediSearchValue }}\" (input)=\"searchHandler($event)\"\r\n (click)=\"MedicineDropdownList()\" />\r\n <i class=\"material-icons md-24 new_rx_popup_tab_1_input_search\">search</i>\r\n <!-- <mat-icon class=\"new_rx_popup_tab_1_input_search\"></mat-icon> -->\r\n </div>\r\n <div class=\"new_rx_popup_tab_1_list_box\" [class]=\"{\r\n M_list_box_show: selectedMedicineDropdown === true\r\n }\">\r\n <div *ngIf=\"searchMedicineLoader\" class=\"loader\"></div>\r\n <div *ngIf=\"!searchMedicineLoader\" style=\"margin-bottom: 10px;\">\r\n <ul class=\"new_rx_popup_tab_1_list\">\r\n <li *ngFor=\"let medicineList of searchedMedicineList\" [class]=\"getcurrentid(medicineList)\"\r\n (click)=\"\r\n getProductListByName(\r\n medicineList['prodHiddenValue'],\r\n medicineList['prodDisplayValue'],\r\n medicineList['searchBase']\r\n )\r\n \" [innerHTML]=\"medicineList['prodDisplayValue']\"></li>\r\n <li *ngIf=\"searchedMedicineList.length == 0\">No Data</li>\r\n </ul>\r\n </div>\r\n <div *ngIf=\"PrimarySearchSpinner\" class=\"loader ml-load-45\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--4-col mdl-cell--2-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth new_mobile_rx_top_bottom_0\"\r\n [class]=\"{'disabledRxContent':this.isNonPbsFlag||(commonServices.rxDetails!=null && commonServices.rxDetails!='' && commonServices.rxDetails.status!=null && commonServices.rxDetails.status!='' && commonServices.rxDetails.status.toLowerCase()!='draft')}\">\r\n <div class=\"rx_new_popup_checkbox new_mobile_rx_top_bottom_0\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox1\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"rxOnlyPBS\"\r\n (change)=\"onCheckboxChange()\" value=\"PBS/RPBS\" [disabled]=\"this.isNonPbsFlag\" /><span\r\n class=\"mdl-checkbox__label\" style=\"font-weight: 400; font-size: 16px\">PBS/RPBS</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--2-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth new_mobile_rx_top_bottom_0\">\r\n <div style=\"text-align: right\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-mims.png\" alt=\"MIMS logo\"\r\n style=\"width: 80px; height: auto\" />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--7-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div class=\"new_rx_popup_table_box\">\r\n <p class=\"new_rx_popup_tab_title\" style=\"padding: 5px 10px; margin: 0px\">\r\n Available Formulations:\r\n </p>\r\n <div *ngIf=\"onclickMedicineLoader\" class=\"loader m-v4\"></div>\r\n <div *ngIf=\"!onclickMedicineLoader\">\r\n <div *ngIf=\"\r\n commonServices.selectedMedicineList == null ||\r\n commonServices.selectedMedicineList.length == 0\r\n \" class=\"noDataPrescribe\">\r\n <span>No Data</span>\r\n </div>\r\n <div class=\"new_rx_popup_box_container\" *ngFor=\"\r\n let med of commonServices.selectedMedicineList;\r\n index as i\r\n \">\r\n\r\n <div class=\"mdl-grid new_rx_popup_box\" [class]=\"getClassForMed(med)\"\r\n (click)=\"selectFormulation(med, i)\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_box_header\" [innerHTML]=\"med.productName\"></p>\r\n <p class=\"new_rx_popup_box_text\">\r\n <span><b>Quantity:</b>\r\n {{\r\n med.pbsType.toLowerCase() == \"non pbs\"\r\n ? med.numberOfPack + \"x\" + med.unitPerPack\r\n : med.maxQtyUnits\r\n }}</span><span><b>Rpts:</b> {{ med.repeats }}</span><span><b>Restriction:</b>\r\n {{\r\n med.Restrictions != null && med.Restrictions != \"\"\r\n ? med.pbsType +\r\n \" (\" +\r\n getRestrictions(med.Restrictions) +\r\n \") \"\r\n : med.pbsType\r\n }} </span><span><b>Generic Name: </b>\r\n <span [innerHTML]=\"med.genericName\"></span></span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"SecondarySearchSpinner\" class=\"loader ml-load-45\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--5-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div class=\"mdl-grid new_rx_popup_tab_1_grid new_rx_popup_tab_1_box\"\r\n *ngIf=\"commonServices.selectedFormulation != null\">\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_tab_title\" style=\"margin-bottom: 5px\" [innerHTML]=\"commonServices.selectedFormulation != null? commonServices.selectedFormulation.productName: ''\">\r\n {{commonServices.selectedFormulation != null? commonServices.selectedFormulation.productName: \"\"}}\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col\">\r\n <p class=\"new_rx_popup_label\">\r\n Generic Name:<span [innerHTML]=\"\r\n commonServices.selectedFormulation != null\r\n ? commonServices.selectedFormulation.genericName\r\n : ''\r\n \"></span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col\">\r\n <p class=\"new_rx_popup_label\" *ngIf=\"commonServices.isBrandName\">\r\n Brand Name:<span [innerHTML]=\"\r\n getBrandName(commonServices.selectedFormulation)\r\n \">\r\n </span>\r\n </p>\r\n <p class=\"new_rx_popup_label\">\r\n Schedule:<span>{{\r\n commonServices.selectedFormulation != null &&\r\n commonServices.selectedFormulation.poisonClassification !=\r\n null\r\n ? commonServices.selectedFormulation.poisonClassification\r\n .poisonClasses[0]\r\n : \"No Scheduled Information Available\"\r\n }}</span>\r\n </p>\r\n <p class=\"new_rx_popup_label\">\r\n PBS Listing:<span>{{ commonServices.selectedFormulation.pbsType }}\r\n {{\r\n commonServices.selectedFormulation.pbsCode\r\n ? \" (\" +\r\n commonServices.selectedFormulation.pbsCode +\r\n \")\"\r\n : \"\"\r\n }}</span>\r\n </p>\r\n <p class=\"new_rx_popup_label\">\r\n <span style=\"margin:0px ;\">\r\n Max Quantity =\r\n {{commonServices.selectedFormulation!=null?commonServices.selectedFormulation.pbsType.toLowerCase() == \"non pbs\"? commonServices.selectedFormulation.numberOfPack +\"x\" +commonServices.selectedFormulation.unitPerPack: (commonServices.quantityWithUnitFlag?\"1 x \":\"\")+commonServices.selectedFormulation.maxQtyUnits:\"\"}}\r\n and Repeats =\r\n {{commonServices.selectedFormulation!=null? commonServices.selectedFormulation.repeats\r\n :\"\"}}</span>\r\n </p>\r\n\r\n <p class=\"new_rx_popup_label\" *ngIf=\"\r\n commonServices.selectedFormulation != null &&\r\n commonServices.selectedFormulation.pregnancyCategory != null\r\n \">\r\n Pregnancy Category:<span>{{\r\n commonServices.selectedFormulation.pregnancyCategory\r\n .categoryCode\r\n }}\r\n </span>\r\n <span *ngIf=\"\r\n commonServices.selectedFormulation.pregnancyCategory\r\n .additionalNote != null &&\r\n commonServices.selectedFormulation.pregnancyCategory\r\n .additionalNote != ''\r\n \">\r\n AdditionalNote:\r\n <span *ngFor=\"\r\n let item of commonServices.selectedFormulation\r\n .pregnancyCategory.additionalNote\r\n \" [innerHTML]=\"item\">\r\n </span>\r\n </span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col\" *ngIf=\"\r\n this.isShowRestrictions == true &&\r\n commonServices.selectedFormulation.Restrictions != null &&\r\n commonServices.selectedFormulation.Restrictions != ''\r\n \">\r\n <p class=\"new_rx_popup_label\">Restrictions:</p>\r\n <ol style=\"margin: 0px; padding-left: 15px\" *ngIf=\"\r\n commonServices.selectedFormulation.Restrictions != null &&\r\n commonServices.selectedFormulation.Restrictions != ''\r\n \">\r\n <li class=\"new_rx_pop_aut_int\" *ngFor=\"\r\n let restriction of commonServices.selectedFormulation\r\n .Restrictions\r\n \">\r\n <p style=\"\r\n margin: 0px;\r\n display: flex;\r\n align-content: center;\r\n margin-bottom: 10px;\r\n \" *ngIf=\"\r\n restriction.restrictionPreview != null &&\r\n restriction.restrictionPreview != '' &&\r\n restriction.restrictionText != null &&\r\n restriction.restrictionText != ''\r\n \">\r\n <span class=\"rx_restrictionText\" *ngIf=\"restriction.restrictionText.length < 60\"><b>{{\r\n restriction.restrictionType }}</b> -\r\n <span [innerHTML]=\"\r\n this.htmlToFormattedText(\r\n restriction.restrictionPreview\r\n )\r\n \"></span></span>\r\n <span class=\"rx_restrictionText\" *ngIf=\"restriction.restrictionText.length > 60\"><b>{{\r\n restriction.restrictionType }}</b> -\r\n <span [innerHTML]=\"\r\n this.htmlToFormattedText(\r\n restriction.restrictionPreview\r\n ).substring(0, 60)\r\n \"></span>...\r\n <span>\r\n <a style=\"cursor: pointer; color: #ff9978\" id=\"show-tooltip-id\">Show More</a></span></span>\r\n <ng-template #tooltipdemo>\r\n <p class=\"rx_tooltip_inner_box\" [innerHTML]=\"restriction.restrictionText\"></p>\r\n </ng-template>\r\n </p>\r\n </li>\r\n </ol>\r\n </div>\r\n </div>\r\n\r\n <div class=\"new_rx_popup_tab_3_small_box\" *ngIf=\"commonServices.selectedFormulation != null\">\r\n <div style=\"display: inline-block; margin-right: 10px\">\r\n <span class=\"new_rx_popup_label\">Quantity: </span><input autocomplete=\"off\" type=\"number\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" name=\"qty\"\r\n placeholder=\"\" class=\"new_rx_popup_tab_input\" step=\"1\" [min]=\"0\"\r\n [(ngModel)]=\"commonServices.quantityVal\" (keypress)=\"checkMobile($event)\"\r\n (input)=\"quantityChange()\" (paste)=\"$event.preventDefault()\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" />\r\n </div>\r\n <div style=\"display: inline-block\">\r\n <span class=\"new_rx_popup_label\">Repeats: </span><input autocomplete=\"off\" type=\"number\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" name=\"rpts\"\r\n placeholder=\"\" [min]=\"0\" (input)=\"repeatsChange()\" class=\"new_rx_popup_tab_input\"\r\n [(ngModel)]=\"commonServices.repeatsVal\" (paste)=\"$event.preventDefault()\"\r\n (keypress)=\"checkMobile($event)\" [disabled]=\"commonServices.editPrescribedPrescription\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\"\r\n [class]=\"{ disabledRxContent: commonServices.isFetching}\">\r\n <div\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\"></div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">\r\n Dose:\r\n <span>\r\n <div class=\"rx_new_popup_checkbox\" style=\"margin-top: 0px\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\"><input autocomplete=\"off\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\" type=\"checkbox\"\r\n id=\"checkbox1\" class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.unUsualDoseFlag\" /><span class=\"mdl-checkbox__label\" style=\"font-weight: 400;font-size: 16px;margin-top: -7px;\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Unusual Dose</span></label>\r\n </div>\r\n </span>\r\n </p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selecteddose\" placeholder=\"Select Dose\"\r\n [(ngModel)]=\"commonServices.doseSearchValue\" (click)=\"doseDropdown()\" />\r\n <div #DoseDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectDoseDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\" style=\"margin-bottom: 0px\">\r\n <li (click)=\"selectDoseValue(null)\" class=\"p-12\"> </li>\r\n <li *ngFor=\"let dose of doseData\" (click)=\"selectDoseValue(dose)\" [class]=\"{\r\n heighlight: dose['text'] == commonServices.doseSearchValue\r\n }\">\r\n {{ dose[\"text\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Frequency:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedFrequency:\"\r\n placeholder=\"Select Frequency\" readOnly [(ngModel)]=\"commonServices.freqSearchValue\"\r\n (click)=\"freqDropdown()\" />\r\n <div #FreqDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectFreqDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\">\r\n <li (click)=\"selectFrequencyValue(null)\" class=\"p-12\"> </li>\r\n <li *ngFor=\"let frequency of frequencyData\" (click)=\"selectFrequencyValue(frequency)\" [class]=\"{\r\n heighlight:\r\n frequency['text'] == commonServices.freqSearchValue\r\n }\">\r\n {{ frequency[\"text\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Food:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedFrequency:\"\r\n placeholder=\"Select Food\" readOnly [(ngModel)]=\"commonServices.foodSearchValue\"\r\n (click)=\"foodDropdown()\" />\r\n <div #FoodDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectFoodDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\">\r\n <li (click)=\"selectFoodValue(null)\" class=\"p-12\"> </li>\r\n <li *ngFor=\"let food of foodData\" (click)=\"selectFoodValue(food)\" [class]=\"{\r\n heighlight: food['text'] == commonServices.foodSearchValue\r\n }\">\r\n {{ food[\"text\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Instruction:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"Instruction\"\r\n placeholder=\"Select Instruction\" [(ngModel)]=\"commonServices.InstructionSearchValue\"\r\n (click)=\"instructionDropdown()\" (change)=\"instructionOnChange()\" (keypress)=\"alphaRestriction($event)\"/>\r\n <div #InstructionDropdown class=\"new_rx_popup_tab_dropdown_list_box\" [class]=\"{M_list_box_show: selectInstructionDropdown === true}\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\" style=\"margin-bottom: 0px\">\r\n <ng-container *ngIf=\"selectInstructionDropdownList\">\r\n <li (click)=\"ChangeInstruction(null)\" class=\"p-12\"> </li>\r\n <li [class]=\"item.id == commonServices.complexId && item.text == commonServices.InstructionSearchValue ? 'heighlight' : ''\" *ngFor=\"let item of instructionData; index as i\" (click)=\"ChangeInstruction(item)\">\r\n {{ item.text }}\r\n <span *ngIf=\"item.userid !== 0\" class=\"span_icon\" style=\"float: right\">\r\n <i class=\"material-icons\" style=\"padding: 5px\"\r\n (click)=\"editInstruction(item.id, item)\">create</i><i class=\"material-icons\"\r\n style=\"margin-left: 10px; padding: 5px\"\r\n (click)=\"deleteInstruction(item.id)\">clear</i></span>\r\n </li>\r\n <li class=\"RX_ADD_dropdown_btn\" (click)=\"addNewInstruction()\">\r\n + Add Complex Instructions\r\n </li>\r\n </ng-container>\r\n <ng-container *ngIf=\"selectInstructionDropdownList == false\">\r\n <div class=\"complex_instruction_box\">\r\n <p class=\"new_rx_popup_label\" style=\"font-size: 12px; margin: 0\">\r\n Complex Instruction:\r\n </p>\r\n <input autocomplete=\"off\" class=\"instruction_field_clr mdl-textfield__input new_rx_popup_tab_input \" type=\"text\"\r\n id=\"Instruction\" [(ngModel)]=\"commonServices.Instructiontiltle\"\r\n placeholder=\"Enter Complex Instruction\" />\r\n <p class=\"new_rx_popup_label\" style=\"font-size: 12px; margin: 0\">\r\n Complex Instruction Description:\r\n </p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"2\" maxLength=\"500\"\r\n [(ngModel)]=\"tempInstructionDescription\"\r\n placeholder=\"Enter Complex Instruction Description\"\r\n class=\"instruction_field_clr w-100 new_rx_popup_tab_textarea\"></textarea>\r\n <div class=\"RX_ADD_dropdown_btn_1\">\r\n <button (click)=\"clearInstruction()\" class=\"rx-instruction-btn\">Cancel</button>\r\n <button (click)=\"saveInstruction()\" class=\"rx-instruction-btn\">Save</button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Route:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedRoute:\"\r\n placeholder=\"Select Route\" [(ngModel)]=\"commonServices.routeSearchValue\" maxlength=\"50\"\r\n (click)=\"routeDropdown()\" (keypress)=\"alphaRestriction($event)\"/>\r\n <div #RouteDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectRouteDropdown === true }\">\r\n <div style=\"padding: 10px; position: relative\">\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_route__input\" type=\"text\"\r\n placeholder=\"Search...\" [value]=\"routeDataFilter ? routeDataFilter : ''\"\r\n (keyup)=\"routeFilter($event)\" />\r\n <i class=\"material-icons md-24 new_rx_popup_tab_1_input_search rx-search-icon\">search</i>\r\n </div>\r\n <ul *ngIf=\"filterRouteItems(routeData, routeDataFilter).length != 0\"\r\n class=\"new_rx_popup_tab_1_list rx_dropdown rx_dropdown_route\">\r\n <li *ngFor=\"\r\n let route of filterRouteItems(routeData, routeDataFilter)\r\n \" (click)=\"selectRoutesearcValue(route)\" [class]=\"{\r\n heighlight:\r\n route['routeName'] == commonServices.routeSearchValue\r\n }\">\r\n {{ route[\"routeName\"] }}\r\n </li>\r\n </ul>\r\n <ul *ngIf=\"filterRouteItems(routeData, routeDataFilter).length == 0\"\r\n class=\"new_rx_popup_tab_1_list rx_dropdown rx_dropdown_route\">\r\n <li>no data</li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">Pro Re Nata Prescription:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox1\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"commonServices.rxPRN\"\r\n (ngModelChange)=\"PRNChange(commonServices.rxPRN)\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Pro Re Nata\r\n Prescription</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Prescribe As:</p>\r\n <div class=\"rx_new_popup_checkbox\">\r\n <div class=\"rx_new_radiobox_button rx_radio_overall\">\r\n <label class=\"rx_radio_label\">\r\n <input autocomplete=\"off\" type=\"radio\" class=\"mdl-radio__button custom-radio-button\"\r\n name=\"PrescribeAs\" [value]=\"'Private'\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription === true\"\r\n [checked]=\"commonServices.PrescribeAS.toLowerCase() === 'private'\" (click)=\"private()\"\r\n [(ngModel)]=\"commonServices.PrescribeAS\" /><span class=\"mdl-radio__label radio_txt\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Private</span></label>\r\n\r\n <label class=\"rx_radio_label\">\r\n <input autocomplete=\"off\" type=\"radio\" checked=\"\"\r\n class=\"mdl-radio__button d-inline radio custom-radio-button\" name=\"PrescribeAs\"\r\n [value]=\"'PBS'\"\r\n [disabled]=\"prescribeAS_PBS || commonServices.isFetching || commonServices.editPrescribedPrescription === true\"\r\n [checked]=\"commonServices.PrescribeAS.toLowerCase() === 'pbs'\" (click)=\"PBS()\"\r\n [(ngModel)]=\"commonServices.PrescribeAS\" /><span class=\"mdl-radio__label radio_txt\"\r\n [class]=\"{ 'disabled-style': prescribeAS_PBS == true|| commonServices.isFetching || commonServices.editPrescribedPrescription === true}\">PBS</span>\r\n </label>\r\n <label class=\"rx_radio_label\">\r\n <input autocomplete=\"off\" type=\"radio\" checked=\"\"\r\n class=\"mdl-radio__button d-inline radio custom-radio-button\" name=\"PrescribeAs\"\r\n [value]=\"'RPBS'\"\r\n [disabled]=\"prescribeAS_RPBS || commonServices.isFetching || commonServices.editPrescribedPrescription === true\"\r\n [checked]=\"commonServices.PrescribeAS.toLowerCase() === 'rpbs'\" (click)=\"RPBS()\"\r\n [(ngModel)]=\"commonServices.PrescribeAS\" /><span class=\"mdl-radio__label radio_txt\"\r\n [class]=\"{ 'disabled-style': prescribeAS_RPBS == true|| commonServices.isFetching || commonServices.editPrescribedPrescription === true}\">RPBS</span>\r\n </label>\r\n </div>\r\n </div>\r\n <div class=\"rx_new_popup_checkbox\" *ngIf=\"\r\n commonServices.selectedFormulation != null &&\r\n commonServices.selectedFormulation['pbsType'].toLowerCase() === 'non pbs' &&\r\n commonServices.patientDetails.dvaNumber != null &&\r\n commonServices.patientDetails.dvaNumber != '' && isNonPbsFlag == false && !isPrescribeAsPrivateOnly\r\n \">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox\" class=\"check_box\"\r\n [checked]=\"commonServices.unlistedRA\" (click)=\"unlistedRA()\"\r\n [(ngModel)]=\"commonServices.unlistedRA\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\" />\r\n <span class=\"mdl-checkbox__label check_box_label\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">\r\n Unlisted RA\r\n </span>\r\n </label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{\r\n M_CTG_box_hide: !(\r\n commonServices.patientDetails &&\r\n commonServices.patientDetails.patientCtgFlag == 0 &&\r\n commonServices.patientDetails.patientCtgCoPayment == 0 &&\r\n commonServices.PrescribeAS.toLowerCase() == 'pbs'\r\n )\r\n }\">\r\n <!-- <p class=\"new_rx_popup_label\">CTG/PBS Co Payment:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"commonServices.CTGCoPayment\"\r\n [checked]=\"commonServices.CTGCoPayment == true\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">CTG/PBS Co Payment</span></label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\"\r\n [class]=\"{ disabledRxContent: commonServices.isFetching}\">\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Script Date:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"date\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n id=\"RxScriptDate\" placeholder=\" ../../....\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.scriptDate\" />\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Start Date:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"date\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" id=\"RxStartDate\"\r\n placeholder=\" ../../....\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.startDate\" (ngModelChange)=\"commonServices.rxEndDateCalculater()\"/>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">End Date:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"date\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" id=\"RxEndDate\"\r\n placeholder=\"../../....\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.endDate\" />\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Days Between Repeats:</p>\r\n <input autocomplete=\"off\" (paste)=\"$event.preventDefault()\" placeholder=\"Enter Days Between Repeats\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"number\" id=\"Daybetweenrepeats\" [min]=\"0\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.daysBtnRepeatsVal\" (keypress)=\"checkMobile($event)\"\r\n (input)=\"dayschange()\" />\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <div>\r\n <p class=\"new_rx_popup_label\">Purpose:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedPurpose:\"\r\n placeholder=\"Select Purpose\" readOnly [(ngModel)]=\"commonServices.purposeSearchValue\"\r\n (click)=\"purposeDropdown()\" />\r\n <div #PurposeDropdown class=\"new_rx_popup_tab_dropdown_list_box new_rx_popup_tab_purpose_box h-160p\"\r\n [class]=\"{ M_list_box_show: selectPurposeDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\">\r\n <li (click)=\"selectPurposeValue(null)\" class=\"p-12\"></li>\r\n <li *ngFor=\"let purpose of purposeData\" (click)=\"selectPurposeValue(purpose)\" [class]=\"{\r\n heighlight:\r\n purpose['lookupText'] ==\r\n commonServices.purposeSearchValue\r\n }\">\r\n {{ purpose[\"lookupText\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{ M_CTG_box_hide: commonServices.isBrandName != true }\">\r\n <!-- <p class=\"new_rx_popup_label\">Substitution:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox1\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true || commonServices.isBrandName == false\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.BrandSubstitutesNotAllow\"\r\n (change)=\"this.brandSubstitutesNotAllow(commonServices.BrandSubstitutesNotAllow)\" [checked]=\"\r\n commonServices.BrandSubstitutesNotAllow\r\n ? commonServices.BrandSubstitutesNotAllow\r\n : false\r\n \" /><span class=\"mdl-checkbox__label\" style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Brand Substitution\r\n Not Permitted</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{ M_CTG_box_hide_brand: commonServices.lemi == true }\" id=\"brandnametooltip\"\r\n (mouseleave)=\"hideToolTip()\" (mouseenter)=\"showtooltip(commonServices.lemi,brandtooltip)\">\r\n <!-- <p class=\"new_rx_popup_label\">Brand Name:</p> -->\r\n <ng-template #brandtooltip><span class=\"include_brand_tooltip\">The selected product is LEMI\r\n identified. Therefore it may be\r\n prescribed by the brand name only.</span></ng-template>\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\" [class]=\"{\r\n M_CTG_box_hide_brand_name: commonServices.lemi == true || commonServices.isFetching == true || commonServices.editPrescribedPrescription === true\r\n }\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [checked]=\"commonServices.isBrandName\"\r\n [(ngModel)]=\"commonServices.isBrandName\"\r\n (change)=\"this.isChangeBrandName(commonServices.isBrandName)\" /><span\r\n class=\"mdl-checkbox__label\" style=\"font-weight: 400; font-size: 16px\">Include Brand\r\n Name</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">Regulation 24:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"commonServices.regulation24\"\r\n [checked]=\"commonServices.regulation24\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Regulation 24</span></label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\"\r\n [class]=\"{ disabledRxContent: commonServices.isFetching}\">\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">DO NOT send to MySL:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.mySLConsent\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">DO NOT send to MySL</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">\r\n <!-- Pharmacy: -->\r\n <span>\r\n <div class=\"rx_new_popup_checkbox\" style=\"margin-top: 0px\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\"><input autocomplete=\"off\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\" type=\"checkbox\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.sendToPharmacy\" (change)=\"sendToPharmacyChange()\" /><span\r\n class=\"mdl-checkbox__label\" style=\"font-weight: 400;font-size: 16px;margin-top: -7px;\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Send to Pharmacy</span></label>\r\n </div>\r\n </span>\r\n </p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\" readonly\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selecteddose\" placeholder=\"Select Value\"\r\n [(ngModel)]=\"commonServices.sendToPharmacyValue\" (click)=\"stpValueDropdown()\"\r\n [class]=\"{ M_CTG_box_hide: commonServices.sendToPharmacy != true }\" />\r\n <div #stpDropdown class=\"new_rx_popup_tab_dropdown_list_box new_rx_popup_tab_stp_box h-93p\"\r\n [class]=\"{ M_list_box_show: selectstpDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\" style=\"margin-bottom: 0px\">\r\n <li (click)=\"selectStpValue(null)\" class=\"p-12\"></li>\r\n <li *ngFor=\"let sendtopharmacy of sendtopharmacyData\" (click)=\"selectStpValue(sendtopharmacy)\">\r\n {{ sendtopharmacy.name }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">Emergency Supply:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.emergencySupply\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Emergency Supply</span></label>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"page == 2\" class=\"new_rx_popup_tab_2\">\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px; opacity: 1\">\r\n <div\r\n class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div style=\"width: 100%; padding: 0px\" class=\"mdl-grid\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <div class=\"mdl-grid new_rx_popup_tab_1_grid\">\r\n <div class=\"mdl-cell mdl-cell--12-col\">\r\n <p class=\"new_rx_popup_label\">RX</p>\r\n <p class=\"new_rx_popup_label_p\">\r\n <b [innerHTML]=\"commonServices.rxDisplayName\"></b>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\" style=\"margin: 0px\">Quantity: <span\r\n style=\"color: rgb(45, 45, 45); font-weight: 600\">{{ commonServices.quantityVal }}\r\n </span> Repeats: <span style=\"color: rgb(45, 45, 45); font-weight: 600\">\r\n {{ commonServices.repeatsVal }}</span> Default Quantity:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.maxQtyUnits!=null?(commonServices.quantityWithUnitFlag?\"1 x \":\"\")+commonServices.selectedFormulation.maxQtyUnits:\"\"}}\r\n Default Repeats: {{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.repeats!=null?commonServices.selectedFormulation.repeats:\"\" }}\r\n </p>\r\n <p *ngIf=\"commonServices.doseSearchValue != '' ||commonServices.freqSearchValue != ''\"\r\n class=\"new_rx_popup_label_p\">\r\n <span>{{ commonServices.doseSearchValue }} </span><span>{{ commonServices.freqSearchValue\r\n }}</span>\r\n </p>\r\n <p *ngIf=\"commonServices.foodSearchValue != ''\" class=\"new_rx_popup_label_p\">\r\n {{ commonServices.foodSearchValue }}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n {{InstructionDescription !=\"\" && InstructionDescription!=null? InstructionDescription:commonServices.InstructionSearchValue!=\"\" && commonServices.InstructionSearchValue!=null?commonServices.InstructionSearchValue:\"\"}}\r\n </p>\r\n <p *ngIf=\"commonServices.routeSearchValue != ''\" class=\"new_rx_popup_label_p\">\r\n {{ commonServices.routeSearchValue }}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n P.R.N :\r\n <i *ngIf=\"commonServices.rxPRN\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.rxPRN\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Days Between Repeats:\r\n <span *ngIf=\"!commonServices.IsNullOrEmpty(commonServices.daysBtnRepeatsVal)\">{{commonServices.daysBtnRepeatsVal}}</span>\r\n <span *ngIf=\"commonServices.IsNullOrEmpty(commonServices.daysBtnRepeatsVal)\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Unusual Dose:\r\n <i *ngIf=\"commonServices.unUsualDoseFlag\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.unUsualDoseFlag\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Script Date:\r\n <span>{{this.commonServices.scriptDate|date:'dd-MM-YYYY'}}</span>\r\n \r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Start Date: \r\n <span>{{this.commonServices.startDate|date:'dd-MM-YYYY'}}</span>, End Date: {{this.commonServices.endDate|date:'dd-MM-YYYY'}}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Prescribe As:\r\n <span *ngIf=\"!commonServices.IsNullOrEmpty(commonServices.PrescribeAS)\">{{commonServices.PrescribeAS}}</span>\r\n <span *ngIf=\"commonServices.IsNullOrEmpty(commonServices.PrescribeAS)\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Purpose:\r\n <span *ngIf=\"!commonServices.IsNullOrEmpty(commonServices.purposeSearchValue)\">{{commonServices.purposeSearchValue}}</span>\r\n <span *ngIf=\"commonServices.IsNullOrEmpty(commonServices.purposeSearchValue)\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Include Brand Name:\r\n <i *ngIf=\"commonServices.isBrandName\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.isBrandName\">-</span>,\r\n Brand Substitution Not Permitted:\r\n <i *ngIf=\"commonServices.BrandSubstitutesNotAllow\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.BrandSubstitutesNotAllow\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Regulation 24:\r\n <i *ngIf=\"commonServices.regulation24\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.regulation24\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n CTG/PBS Co Payment:\r\n <i *ngIf=\"commonServices.CTGCoPayment\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.CTGCoPayment\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n DO NOT send to MySL:\r\n <i *ngIf=\"commonServices.mySLConsent\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.mySLConsent\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Send to Pharmacy:\r\n <i *ngIf=\"commonServices.sendToPharmacy\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.sendToPharmacy\">-</span>, Send to Pharmacy Value: {{!commonServices.IsNullOrEmpty(commonServices.sendToPharmacyValue)?commonServices.sendToPharmacyValue:'-'}}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Emergency Supply:\r\n <i *ngIf=\"commonServices.emergencySupply\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.emergencySupply\">-</span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Note To Pharmacy:</p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"3\" maxlength=\"50\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"this.commonServices.doctorNotes\"\r\n class=\"w-100 new_rx_popup_tab_textarea rx-m-w-535p\"></textarea>\r\n </div>\r\n\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Annotation:</p>\r\n\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"3\" maxlength=\"500\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"this.commonServices.annotation\" class=\"w-100 new_rx_popup_tab_textarea rx-m-w-535p\"></textarea>\r\n </div>\r\n\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Reason For Prescription:</p>\r\n\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"3\" maxlength=\"50\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"this.commonServices.prescriptionReason\"\r\n class=\"w-100 new_rx_popup_tab_textarea rx-m-w-535p\"></textarea>\r\n </div>\r\n\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\" style=\"text-transform: capitalize;\">\r\n {{\r\n this.getStateAuthorityLabel(\r\n commonServices.patientDetails.state\r\n )\r\n }}\r\n </p>\r\n\r\n <p style=\"margin: 0px;margin-top: -8px;margin-bottom: 10px;\">\r\n <span class=\"state-txt-color new_rx_popup_label_p\">(Relevant to\r\n {{ commonServices.patientDetails.state }})</span>\r\n </p>\r\n\r\n <input autocomplete=\"off\" type=\"text\" name=\"approval\" placeholder=\"\" \r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" class=\"new_rx_popup_tab_input\"\r\n [(ngModel)]=\"commonServices.StateAuthorityNumber\" maxlength=\"25\" (keypress)=\"authorityNoValidation($event)\" (ngModelChange)=\"authorityNoChange($event)\"/>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{\r\n 'new_rx_no_authority':!showAuthorityBox(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.Restrictions:'',commonServices.PrescribeAS,commonServices.rxAuthority,commonServices.unlistedRA)\r\n }\">\r\n <div *ngIf=\"\r\n showAuthorityBox(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.Restrictions:'',\r\n commonServices.PrescribeAS,\r\n commonServices.rxAuthority,\r\n commonServices.unlistedRA\r\n )\r\n \">\r\n <div style=\"padding: 0px\" class=\"mdl-grid\">\r\n <div class=\"mdl-cell mdl-cell--8-col mdl-cell--6-col-tablet mdl-cell--4-col-phone\">\r\n <span class=\"new_rx_popup_label_New\">HOTLINE: <span\r\n class=\"new_rx_popup_label_span\">{{commonServices.PrescribeAS ==\r\n 'RPBS'?'1800552580':'1800888333'}}</span></span>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--4-col mdl-cell--2-col-tablet mdl-cell--4-col-phone\">\r\n <div style=\"text-align: right\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-mims.png\" alt=\"MIMS logo\"\r\n style=\"width: 80px; height: auto\" />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"padding: 0px\">\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Prescriber Name:<span>{{\r\n commonServices.patientDetails.firstName +\r\n \" \" +\r\n commonServices.patientDetails.lastName\r\n }}</span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Prescriber Number:<span>{{\r\n commonServices.physicianDetails.prescriberNumber\r\n }}</span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Patient Medicare Number:<span>{{\r\n commonServices.patientDetails.medicareNumber\r\n ? commonServices.patientDetails.medicareNumber\r\n : \"\"\r\n }}</span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Authority Form No:\r\n <span>{{\r\n commonServices.authorityFormNo\r\n ? commonServices.authorityFormNo\r\n : \"\"\r\n }}</span>\r\n </p>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Authority Item:</p>\r\n <p class=\"authority_item_text\" [innerHTML]=\"commonServices.rxDisplayName\"></p>\r\n\r\n <p class=\"new_rx_popup_label_p new_rx_popup_tab_smallBoxes\" style=\"margin: 0px\">\r\n Quantity:<span style=\"color: rgb(45, 45, 45); font-weight: 600\"> {{ commonServices.quantityVal\r\n }}</span> Repeats:<span style=\"color: rgb(45, 45, 45); font-weight: 600\">\r\n {{ commonServices.repeatsVal }}</span> Default Quantity:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.maxQtyUnits!=null?(commonServices.quantityWithUnitFlag?\"1 x \":\"\")+commonServices.selectedFormulation.maxQtyUnits:\"\"}}\r\n Default Repeats:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.repeats!=null? commonServices.selectedFormulation.repeats:\"\"}}\r\n </p>\r\n\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"padding: 0px\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n PBS Listed Indication Authority:\r\n </p>\r\n <div class=\"w-100 new_rx_popup_tab_textarea\"\r\n style=\"min-height: 70px; max-height: 150px; overflow: auto\">\r\n <ul style=\"margin: 0px; padding-left: 15px;list-style: none;padding: 0px;\" *ngIf=\"\r\n this.isShowRestrictions == true &&\r\n commonServices.selectedFormulation.Restrictions !=\r\n null &&\r\n commonServices.selectedFormulation.Restrictions != ''\r\n \">\r\n <li style=\"font-size: 12px;padding: 0px 10px;margin-bottom: 10px;\"\r\n class=\"new_rx_pop_aut_int cursor\" *ngFor=\"\r\n let restriction of commonServices.selectedFormulation\r\n .Restrictions;\r\n index as i\r\n \" [class]=\"{\r\n new_rx_pop_aut_ins_select:\r\n commonServices.pbsListInstructionsId == i\r\n }\">\r\n <p style=\"\r\n margin: 0px;\r\n display: flex;\r\n align-content: center;\r\n margin-bottom: 10px;\r\n \" *ngIf=\"\r\n restriction.restrictionPreview != null &&\r\n restriction.restrictionPreview != '' &&\r\n restriction.restrictionText != null &&\r\n restriction.restrictionText != ''\r\n \">\r\n <span\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n (click)=\"\r\n indicationAuthority(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.maxQtyUnits:'',\r\n commonServices.quantityVal,\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.repeats:'',\r\n commonServices.repeatsVal,\r\n i,\r\n restriction\r\n )\r\n \">\r\n <span class=\"rx_restrictionText\" style=\"font-size: 12px;\"\r\n *ngIf=\"restriction.restrictionText.length < 80\"><b>{{\r\n restriction.restrictionType }}</b> -\r\n <span [innerHTML]=\"\r\n htmlToFormattedText(\r\n restriction.restrictionPreview\r\n )\r\n \"></span></span></span>\r\n <span class=\"rx_restrictionText\" style=\"font-size: 12px;\"\r\n *ngIf=\"restriction.restrictionText.length > 80\"><b (click)=\"\r\n indicationAuthority(\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.maxQtyUnits:'',\r\n commonServices.quantityVal,\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.repeats:'',\r\n commonServices.repeatsVal,\r\n i,\r\n restriction\r\n )\r\n \">{{\r\n restriction.restrictionType }}</b> -\r\n <span (click)=\"\r\n indicationAuthority(\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.maxQtyUnits:'',\r\n commonServices.quantityVal,\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.repeats:'',\r\n commonServices.repeatsVal,\r\n i,\r\n restriction\r\n )\r\n \" [innerHTML]=\"\r\n htmlToFormattedText(\r\n restriction.restrictionPreview\r\n ).substring(0, 80)\r\n \"></span>...\r\n <span>\r\n </span>\r\n <a style=\"cursor: pointer; color: #ff9978\" id=\"show-tooltip-id\">Show\r\n More</a></span>\r\n <ng-template #tooltipdemo>\r\n <p class=\"rx_tooltip_inner_box\" [innerHTML]=\"restriction.restrictionText\"></p>\r\n </ng-template>\r\n </p>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\"\r\n style=\"padding: 0px\">\r\n <!-- <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">PBS Notes:</p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"2\" maxlength=\"500\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n class=\"w-100 new_rx_popup_tab_textarea\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.pbsNotes\"></textarea>\r\n </div> -->\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Indication For This Authority:\r\n </p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"2\" placeholder=\"\"\r\n [class]=\"{'edit-dsable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.pbsListInstructions\" (ngModelChange)=\"onInputChange($event)\"\r\n class=\"w-100 new_rx_popup_tab_textarea rx-m-w-100\"></textarea>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n {{\r\n getAuthorityLabel(commonServices.patientDetails.state)\r\n }}\r\n </p>\r\n <input autocomplete=\"off\" type=\"text\" name=\"approval\" placeholder=\"\"\r\n [class]=\"{'edit-dsable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" class=\"new_rx_popup_tab_input\" [(ngModel)]=\"commonServices.approvalNo\" (ngModelChange)=\"onInputchangeApprovalNo($event)\" (keypress)=\"authorityNoValidation($event)\"/>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"\r\n !showAuthorityBox(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.Restrictions:'',\r\n commonServices.PrescribeAS,\r\n commonServices.rxAuthority,\r\n commonServices.unlistedRA\r\n )\r\n \" style=\"width: 100%;\">\r\n <div style=\"text-align: right\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-mims.png\" alt=\"MIMS logo\"\r\n style=\"width: 80px; height: auto\" />\r\n </div>\r\n <div class=\"No_Authority_box\">\r\n <p>No Authority Required</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"rx_footer\">\r\n <div class=\"rx_footer_brand\">\r\n <p class=\"ml-10\"><span>Hola Consult | 1.0 <span *ngIf=\"commonServices.sandbox\">| <span\r\n class=\"rx_staging\">This is a sandbox environment</span></span></span></p>\r\n <p class=\"mt-15p\">\r\n <span class=\"rx_popup_footer_text\">\u00A9 2024 Hola Health, a brand of Packapill Pty Ltd | v\r\n 1.0.7 |\r\n <a href=\"https://hola.health/consult-terms\" target=\"_blank\">Terms</a> |\r\n <a href=\"https://hola.health/consult-privacy-policy\" target=\"_blank\">Privacy Policy</a> |\r\n <a href=\"mailto:support@hola.health\" target=\"_blank\">Help</a></span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".loader{border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #020202;width:30px;height:30px;animation:spin 1s linear infinite;margin-left:18px;margin-top:18px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m-v4{margin-left:4vh}.rx_loader_button{border:2px solid #f3f3f3;border-radius:50%;border-top:4px solid #005760;width:30px;height:30px;animation:spin 1s linear infinite}.drp-icon{color:#fff;font-size:19px;margin-left:5px}.select-action-btn{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center}.select-action-ul{width:80%}.new_rx_popup_mims .React__Overlay_Open_Popup{position:fixed;inset:0;background-color:#00000080!important}.new_rx_popup_mims .new_rx_mims_Overlay_Open_Popup{z-index:9999999!important}.new_rx_popup_mims .ReactModal__Overlay{overflow-y:auto!important}.new_rx_popup_mims .ReactModal_popup{width:100%;padding:0;margin:20px 0 0}.new_rx_popup_mims .ReactModal__Content{margin:auto}.edit-disable-data{pointer-events:none;opacity:.6}.new_rx_popup_btns{position:relative;display:flex;justify-content:flex-end;align-items:center}@media only screen and (max-width: 1023px){.rx_ipad_header_box_1{width:calc(35% - 16px)}.rx_ipad_header_box_2{width:calc(65% - 16px)}.rx_ipad_header_box_3{width:calc(100% - 16px)}.new_mobile_rx_popup_header_text{display:block;text-align:center}}@media screen and (max-width: 767px){.new_rx_popup_btns,.new_mobile_rx_popup_header_text{display:block;text-align:center}.new_mobile_rx_top_bottom_0{margin-top:0;margin-bottom:0}.new_mobile_rx_btn{margin-bottom:5px}}\n"] }]
5886
+ args: [{ selector: 'app-rx', template: "<ng-template #rxwidgets> </ng-template>\r\n<div class=\"new_rx_popup_mims\">\r\n <div\r\n class=\"ReactModal__Overlay ReactModal__Overlay--after-open React__Overlay_Open_Popup new_rx_mims_Overlay_Open_Popup\">\r\n <div class=\"ReactModal__Content ReactModal__Content--after-open React__Content new_rx_mims_React__Content\">\r\n <div class=\"popup new_rx_mims_ReactModal_popup\">\r\n <div>\r\n <app-splashscreen *ngIf=\"PopupScreenLoader\" [height]=\"'height-rx-spin'\"> </app-splashscreen>\r\n <div class=\"page-content\" *ngIf=\"!PopupScreenLoader\">\r\n <div class=\"new_rx_popup_header_box\">\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--2-col-tablet mdl-cell--3-col-phone new_rx_mobile_fullwidth rx_ipad_header_box_1\"\r\n [class]=\"commonServices.rxid != null && commonServices.rxid !=''?'mdl-cell--2-col':'mdl-cell--3-col'\"\r\n style=\"align-self: center\">\r\n <h3 class=\"new_rx_popup_header_box_text\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-hola-health-logo-1.png\" alt=\"hola_health\"\r\n style=\"width: auto;height: 37px;border-radius: 5px;\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-header-logo.png\" alt=\"\" />\r\n {{commonServices.editPrescription === true ? 'Edit Script' : 'New Script'}}\r\n </h3>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--4-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_desktop_title new_rx_mobile_fullwidth\"\r\n style=\"align-self: center;\">\r\n <p class=\"new_rx_popup_header_box_text\" style=\"justify-content: center;\">\r\n <span style=\"font-weight: 600;\">{{\r\n commonServices.patientDetails.firstName +\r\n \" \" +\r\n commonServices.patientDetails.lastName\r\n }}</span>/<span style=\"width: 100px;\">{{\r\n this.datePipe.transform(\r\n commonServices.patientDetails.dob,\r\n \"dd-MM-YYYY\"\r\n )\r\n }}</span>\r\n </p>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--5-col-tablet mdl-cell--4-col-phone new_rx_popup_header_box_col new_rx_mobile_fullwidth rx_ipad_header_box_2 new_mobile_rx_top_bottom_0\"\r\n style=\"position: relative\"\r\n [class]=\"commonServices.rxid != null && commonServices.rxid !=''?'mdl-cell--6-col':'mdl-cell--5-col'\">\r\n <div class=\"new_rx_popup_btns\">\r\n <button (click)=\"close(null)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored backButton new_mobile_rx_btn\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\">\r\n Close\r\n </button>\r\n <div style=\"display: inline-block;position: relative\"\r\n *ngIf=\"commonServices.rxid != null && commonServices.rxid !=''\">\r\n <button\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton select-action-btn new_mobile_rx_btn\"\r\n style=\"position: relative;width: 140px;display: flex;flex-direction: row;align-items: center;justify-content: center;padding: 10px !important\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\"\r\n (click)=\"selectActionDropdownopen()\">\r\n <ng-container *ngIf=\"selectionbtnLoader\">\r\n <p class=\"rx_loader_button m-v4\"\r\n style=\"width: 20px;height: 20px;margin: 0px !important;margin-right: 0px !important;margin-left: 0px !important;\">\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"!selectionbtnLoader\">\r\n Select Action <i class=\"material-icons drp-icon\">expand_more</i>\r\n </ng-container>\r\n </button>\r\n <div #selectActionDropdown class=\"new_rx_Prescribe_btn_dropdown_list_box select-action-ul\"\r\n *ngIf=\"selectActionBtnDropdown == true\"\r\n [class]=\"{ M_list_box_show: selectActionBtnDropdown === true }\">\r\n <ul class=\"new_rx_Prescribe_btn_dropdown_list_ul\">\r\n <li (click)=\"commonServices.rxDetails.status.toLowerCase() == 'draft'?cancelDraft():cancelPrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,4)?'':'edit-disable-data'\">\r\n Cancel</li>\r\n <li (click)=\"printPrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,1)?'':'edit-disable-data'\">\r\n Print</li>\r\n <li (click)=\"reissuePrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,3)?'':'edit-disable-data'\">\r\n Re-Issue</li>\r\n <li (click)=\"ceasePrescribeMed()\"\r\n [class]=\"checkStatusAndScripttype(this.commonServices.rxDetails.scriptType,this.commonServices.rxDetails.status,2)?'':'edit-disable-data'\">\r\n Cease</li>\r\n </ul>\r\n </div>\r\n </div>\r\n <button *ngIf=\"page != 1\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored backButton new_mobile_rx_btn\"\r\n (click)=\"back()\" [disabled]=\"this.commonServices.prescribeMedLoader || selectionbtnLoader\">\r\n Back\r\n </button>\r\n <button *ngIf=\"page == 1\" (click)=\"pageNumberOneToNext()\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton new_mobile_rx_btn\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\">\r\n Next\r\n </button>\r\n <button class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored new_mobile_rx_btn\"\r\n [class]=\"abortdisable?'nextButton':'abortbutton'\"\r\n *ngIf=\"abortBtnFlag\"\r\n [disabled]=\"abortdisable\" (click)=\"prescripeAbort()\"><span *ngIf=\"abortdisable\" class=\"rx_loader\">\r\n <p class=\"rx_loader_button m-v4 rx_btn_spin\">\r\n </p>\r\n </span><span *ngIf=\"!abortdisable\">Abort</span></button>\r\n <div style=\"display: inline-block\" *ngIf=\"page == 2\">\r\n <button\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored nextButton new_mobile_rx_btn\"\r\n style=\"position: relative;width: 135px;display: flex;flex-direction: row;align-items: center;justify-content: center\"\r\n [disabled]=\"commonServices.prescribeMedLoader || selectionbtnLoader\"\r\n (click)=\"includeRtpmModal()\">\r\n <ng-container *ngIf=\"commonServices.prescribeMedLoader \">\r\n <p class=\"rx_loader_button m-v4\"\r\n style=\"width: 20px;height: 20px;margin: 0px !important;margin-right: 0px !important;margin-left: 0px !important;\">\r\n </p>\r\n </ng-container>\r\n <ng-container *ngIf=\"!this.commonServices.prescribeMedLoader\">\r\n Prescribe <i class=\"material-icons drp-icon\">expand_more</i>\r\n </ng-container>\r\n </button>\r\n <div #PrescribeDropdown class=\"new_rx_Prescribe_btn_dropdown_list_box\"\r\n *ngIf=\"selectPBTNDropdown == true\" [class]=\"{ M_list_box_show: selectPBTNDropdown === true }\">\r\n <ul class=\"new_rx_Prescribe_btn_dropdown_list_ul\">\r\n <li [class]=\"{'edit-disable-data': ePrescriptionValidation()}\"\r\n (click)=\"MprescribeMed(1)\">E-Prescribe (Draft)</li>\r\n <li [class]=\"{'edit-disable-data': ePrescriptionValidation()}\" (click)=\"EprescripeSend(1)\" *ngIf=\"!this.commonServices.sendToPharmacy && !this.commonServices.emergencySupply\">E-Prescribe and Send</li>\r\n <li [class]=\"{'edit-disable-data': ePrescriptionValidation()}\" (click)=\"EprescripeSend(2)\">E-Prescribe and Print</li>\r\n <li [class]=\"{'edit-disable-data': (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase()== 'M'&& this.commonServices.rxDetails.status.toLowerCase() != 'draft')|| (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase()== 'E')}\"\r\n (click)=\"MprescribeMed(2)\">Prescribe (Draft)</li>\r\n <li [class]=\"{'edit-disable-data': (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase() == 'M'&& this.commonServices.rxDetails.status.toLowerCase() != 'draft') || (commonServices.editPrescription === true && commonServices.rxDetails.scriptType.toUpperCase()== 'E')}\"\r\n (click)=\"prescripePrint()\">\r\n Prescribe and Print</li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth rx_ipad_header_box_3 new_rx_mobile_title\"\r\n style=\"align-self: center\">\r\n <p class=\"new_rx_popup_header_box_text new_mobile_rx_popup_header_text\">\r\n <span style=\"font-weight: 600\">{{\r\n commonServices.patientDetails.firstName +\r\n \" \" +\r\n commonServices.patientDetails.lastName\r\n }}</span>/<span>{{\r\n this.datePipe.transform(\r\n commonServices.patientDetails.dob,\r\n \"dd-MM-YYYY\"\r\n )\r\n }}</span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"page == 1\" class=\"new_rx_popup_tab_1\">\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\" *ngIf=\"!commonServices.isMedicineRestrict\">\r\n <div\r\n class=\"mdl-cell mdl-cell--5-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div #MedicineDropdown style=\"position: relative\">\r\n <div style=\"position: relative\">\r\n <input autocomplete=\"off\" type=\"text\" name=\"medicine search\" placeholder=\"Search Medicines\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" class=\"new_rx_popup_tab_1_input\"\r\n value=\"{{ mediSearchValue }}\" (input)=\"searchHandler($event)\"\r\n (click)=\"MedicineDropdownList()\" />\r\n <i class=\"material-icons md-24 new_rx_popup_tab_1_input_search\">search</i>\r\n <!-- <mat-icon class=\"new_rx_popup_tab_1_input_search\"></mat-icon> -->\r\n </div>\r\n <div class=\"new_rx_popup_tab_1_list_box\" [class]=\"{\r\n M_list_box_show: selectedMedicineDropdown === true\r\n }\">\r\n <div *ngIf=\"searchMedicineLoader\" class=\"loader\"></div>\r\n <div *ngIf=\"!searchMedicineLoader\" style=\"margin-bottom: 10px;\">\r\n <ul class=\"new_rx_popup_tab_1_list\">\r\n <li *ngFor=\"let medicineList of searchedMedicineList\" [class]=\"getcurrentid(medicineList)\"\r\n (click)=\"\r\n getProductListByName(\r\n medicineList['prodHiddenValue'],\r\n medicineList['prodDisplayValue'],\r\n medicineList['searchBase']\r\n )\r\n \" [innerHTML]=\"medicineList['prodDisplayValue']\"></li>\r\n <li *ngIf=\"searchedMedicineList.length == 0\">No Data</li>\r\n </ul>\r\n </div>\r\n <div *ngIf=\"PrimarySearchSpinner\" class=\"loader ml-load-45\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--4-col mdl-cell--2-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth new_mobile_rx_top_bottom_0\"\r\n [class]=\"{'disabledRxContent':this.isNonPbsFlag||(commonServices.rxDetails!=null && commonServices.rxDetails!='' && commonServices.rxDetails.status!=null && commonServices.rxDetails.status!='' && commonServices.rxDetails.status.toLowerCase()!='draft')}\">\r\n <div class=\"rx_new_popup_checkbox new_mobile_rx_top_bottom_0\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox1\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"rxOnlyPBS\"\r\n (change)=\"onCheckboxChange()\" value=\"PBS/RPBS\" [disabled]=\"this.isNonPbsFlag\" /><span\r\n class=\"mdl-checkbox__label\" style=\"font-weight: 400; font-size: 16px\">PBS/RPBS</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--2-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth new_mobile_rx_top_bottom_0\">\r\n <div style=\"text-align: right\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-mims.png\" alt=\"MIMS logo\"\r\n style=\"width: 80px; height: auto\" />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--7-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div class=\"new_rx_popup_table_box\">\r\n <p class=\"new_rx_popup_tab_title\" style=\"padding: 5px 10px; margin: 0px\">\r\n Available Formulations:\r\n </p>\r\n <div *ngIf=\"onclickMedicineLoader\" class=\"loader m-v4\"></div>\r\n <div *ngIf=\"!onclickMedicineLoader\">\r\n <div *ngIf=\"\r\n commonServices.selectedMedicineList == null ||\r\n commonServices.selectedMedicineList.length == 0\r\n \" class=\"noDataPrescribe\">\r\n <span>No Data</span>\r\n </div>\r\n <div class=\"new_rx_popup_box_container\" *ngFor=\"\r\n let med of commonServices.selectedMedicineList;\r\n index as i\r\n \">\r\n\r\n <div class=\"mdl-grid new_rx_popup_box\" [class]=\"getClassForMed(med)\"\r\n (click)=\"selectFormulation(med, i)\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_box_header\" [innerHTML]=\"med.productName\"></p>\r\n <p class=\"new_rx_popup_box_text\">\r\n <span><b>Quantity:</b>\r\n {{med.pbsType!=undefined && med.pbsType!=null && med.pbsType.toLowerCase() == \"non pbs\"\r\n ? med.numberOfPack + \"x\" + med.unitPerPack\r\n : med.maxQtyUnits\r\n }}</span><span><b>Rpts:</b> {{ med.repeats }}</span><span *ngIf=\"!commonServices.isMedicineRestrict\"><b>Restriction:</b>\r\n {{med.Restrictions!=undefined &&\r\n med.Restrictions != null && med.Restrictions != \"\"\r\n ? med.pbsType +\r\n \" (\" +\r\n getRestrictions(med.Restrictions) +\r\n \") \"\r\n : (med.pbsType!=undefined&&med.pbsType!=null?med.pbsType:\"\")\r\n }} </span><span><b>Generic Name: </b>\r\n <span [innerHTML]=\"med.genericName\"></span></span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"SecondarySearchSpinner\" class=\"loader ml-load-45\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--5-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div class=\"mdl-grid new_rx_popup_tab_1_grid new_rx_popup_tab_1_box\"\r\n *ngIf=\"commonServices.selectedFormulation != null\">\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_tab_title\" style=\"margin-bottom: 5px\" [innerHTML]=\"commonServices.selectedFormulation != null&&commonServices.selectedFormulation.productName!=undefined && commonServices.selectedFormulation.productName!=null? commonServices.selectedFormulation.productName: ''\"></p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col\">\r\n <p class=\"new_rx_popup_label\">\r\n Generic Name:<span [innerHTML]=\"commonServices.selectedFormulation != null&&commonServices.selectedFormulation.genericName!=undefined && commonServices.selectedFormulation.genericName!=null? commonServices.selectedFormulation.genericName : ''\"></span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col\">\r\n <p class=\"new_rx_popup_label\" *ngIf=\"commonServices.isBrandName\">\r\n Brand Name:<span [innerHTML]=\"\r\n getBrandName(commonServices.selectedFormulation)\r\n \">\r\n </span>\r\n </p>\r\n <p class=\"new_rx_popup_label\">\r\n Schedule:<span>{{\r\n commonServices.selectedFormulation != null &&\r\n commonServices.selectedFormulation.poisonClassification !=\r\n undefined && commonServices.selectedFormulation.poisonClassification!=null && commonServices.selectedFormulation.poisonClassification\r\n .poisonClasses!=undefined && commonServices.selectedFormulation.poisonClassification\r\n .poisonClasses!=null && commonServices.selectedFormulation.poisonClassification\r\n .poisonClasses.length>0\r\n ? commonServices.selectedFormulation.poisonClassification\r\n .poisonClasses[0]\r\n : \"No Scheduled Information Available\"\r\n }}</span>\r\n </p>\r\n <p class=\"new_rx_popup_label\">\r\n PBS Listing:<span>{{commonServices.selectedFormulation.pbsType!=undefined && commonServices.selectedFormulation.pbsType!=null? commonServices.selectedFormulation.pbsType : '' }}\r\n {{\r\n commonServices.selectedFormulation.pbsCode!=undefined && commonServices.selectedFormulation.pbsCode!=null\r\n ? \" (\" +\r\n commonServices.selectedFormulation.pbsCode +\r\n \")\"\r\n : \"\"\r\n }}</span>\r\n </p>\r\n <p class=\"new_rx_popup_label\">\r\n <span style=\"margin:0px ;\">\r\n Max Quantity =\r\n {{getMaxQuantity()}}\r\n and Repeats =\r\n {{commonServices.selectedFormulation!=null? commonServices.selectedFormulation.repeats\r\n :\"\"}}</span>\r\n </p>\r\n\r\n <p class=\"new_rx_popup_label\" *ngIf=\"\r\n commonServices.selectedFormulation != null && commonServices.selectedFormulation.pregnancyCategory!=undefined && \r\n commonServices.selectedFormulation.pregnancyCategory != null && commonServices.selectedFormulation.pregnancyCategory\r\n .categoryCode!=undefined && commonServices.selectedFormulation.pregnancyCategory\r\n .categoryCode!=null\r\n \">\r\n Pregnancy Category:<span>{{\r\n commonServices.selectedFormulation.pregnancyCategory\r\n .categoryCode\r\n }}\r\n </span>\r\n <span *ngIf=\"commonServices.selectedFormulation.pregnancyCategory\r\n .additionalNote !=undefined && \r\n commonServices.selectedFormulation.pregnancyCategory\r\n .additionalNote != null &&\r\n commonServices.selectedFormulation.pregnancyCategory\r\n .additionalNote != ''\r\n \">\r\n AdditionalNote:\r\n <span *ngFor=\"\r\n let item of commonServices.selectedFormulation\r\n .pregnancyCategory.additionalNote\r\n \" [innerHTML]=\"item\">\r\n </span>\r\n </span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col\" *ngIf=\"\r\n this.isShowRestrictions == true && commonServices.selectedFormulation.Restrictions!=undefined && \r\n commonServices.selectedFormulation.Restrictions != null &&\r\n commonServices.selectedFormulation.Restrictions != ''\r\n \">\r\n <p class=\"new_rx_popup_label\">Restrictions:</p>\r\n <ol style=\"margin: 0px; padding-left: 15px\" *ngIf=\"commonServices.selectedFormulation.Restrictions!=undefined && \r\n commonServices.selectedFormulation.Restrictions != null &&\r\n commonServices.selectedFormulation.Restrictions != ''\r\n \">\r\n <li class=\"new_rx_pop_aut_int\" *ngFor=\"\r\n let restriction of commonServices.selectedFormulation\r\n .Restrictions\r\n \">\r\n <p style=\"\r\n margin: 0px;\r\n display: flex;\r\n align-content: center;\r\n margin-bottom: 10px;\r\n \" *ngIf=\"\r\n restriction.restrictionPreview != null &&\r\n restriction.restrictionPreview != '' &&\r\n restriction.restrictionText != null &&\r\n restriction.restrictionText != ''\r\n \">\r\n <span class=\"rx_restrictionText\" *ngIf=\"restriction.restrictionText.length < 60\"><b>{{\r\n restriction.restrictionType }}</b> -\r\n <span [innerHTML]=\"\r\n this.htmlToFormattedText(\r\n restriction.restrictionPreview\r\n )\r\n \"></span></span>\r\n <span class=\"rx_restrictionText\" *ngIf=\"restriction.restrictionText.length > 60\"><b>{{\r\n restriction.restrictionType }}</b> -\r\n <span [innerHTML]=\"\r\n this.htmlToFormattedText(\r\n restriction.restrictionPreview\r\n ).substring(0, 60)\r\n \"></span>...\r\n <span>\r\n <a style=\"cursor: pointer; color: #ff9978\" id=\"show-tooltip-id\">Show More</a></span></span>\r\n <ng-template #tooltipdemo>\r\n <p class=\"rx_tooltip_inner_box\" [innerHTML]=\"restriction.restrictionText\"></p>\r\n </ng-template>\r\n </p>\r\n </li>\r\n </ol>\r\n </div>\r\n </div>\r\n\r\n <div class=\"new_rx_popup_tab_3_small_box\" *ngIf=\"commonServices.selectedFormulation != null\">\r\n <div style=\"display: inline-block; margin-right: 10px\">\r\n <span class=\"new_rx_popup_label\">Quantity: </span><input autocomplete=\"off\" type=\"number\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" name=\"qty\"\r\n placeholder=\"\" class=\"new_rx_popup_tab_input\" step=\"1\" [min]=\"0\"\r\n [(ngModel)]=\"commonServices.quantityVal\" (keypress)=\"checkMobile($event)\"\r\n (input)=\"quantityChange()\" (paste)=\"$event.preventDefault()\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" />\r\n </div>\r\n <div style=\"display: inline-block\">\r\n <span class=\"new_rx_popup_label\">Repeats: </span><input autocomplete=\"off\" type=\"number\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true || commonServices.isMedicineRestrict}\" name=\"rpts\"\r\n placeholder=\"\" [min]=\"0\" (input)=\"repeatsChange()\" class=\"new_rx_popup_tab_input\"\r\n [(ngModel)]=\"commonServices.repeatsVal\" (paste)=\"$event.preventDefault()\"\r\n (keypress)=\"checkMobile($event)\" [disabled]=\"commonServices.editPrescribedPrescription || commonServices.isMedicineRestrict\" />\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\"\r\n [class]=\"{ disabledRxContent: commonServices.isFetching}\">\r\n <div\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\"></div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">\r\n Dose:\r\n <span>\r\n <div class=\"rx_new_popup_checkbox\" style=\"margin-top: 0px\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\"><input autocomplete=\"off\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\" type=\"checkbox\"\r\n id=\"checkbox1\" class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.unUsualDoseFlag\" /><span class=\"mdl-checkbox__label\" style=\"font-weight: 400;font-size: 16px;margin-top: -7px;\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Unusual Dose</span></label>\r\n </div>\r\n </span>\r\n </p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selecteddose\" placeholder=\"Select Dose\"\r\n [(ngModel)]=\"commonServices.doseSearchValue\" (click)=\"doseDropdown()\" />\r\n <div #DoseDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectDoseDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\" style=\"margin-bottom: 0px\">\r\n <li (click)=\"selectDoseValue(null)\" class=\"p-12\"> </li>\r\n <li *ngFor=\"let dose of doseData\" (click)=\"selectDoseValue(dose)\" [class]=\"{\r\n heighlight: dose['text'] == commonServices.doseSearchValue\r\n }\">\r\n {{ dose[\"text\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Frequency:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedFrequency:\"\r\n placeholder=\"Select Frequency\" readOnly [(ngModel)]=\"commonServices.freqSearchValue\"\r\n (click)=\"freqDropdown()\" />\r\n <div #FreqDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectFreqDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\">\r\n <li (click)=\"selectFrequencyValue(null)\" class=\"p-12\"> </li>\r\n <li *ngFor=\"let frequency of frequencyData\" (click)=\"selectFrequencyValue(frequency)\" [class]=\"{\r\n heighlight:\r\n frequency['text'] == commonServices.freqSearchValue\r\n }\">\r\n {{ frequency[\"text\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Food:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedFrequency:\"\r\n placeholder=\"Select Food\" readOnly [(ngModel)]=\"commonServices.foodSearchValue\"\r\n (click)=\"foodDropdown()\" />\r\n <div #FoodDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectFoodDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\">\r\n <li (click)=\"selectFoodValue(null)\" class=\"p-12\"> </li>\r\n <li *ngFor=\"let food of foodData\" (click)=\"selectFoodValue(food)\" [class]=\"{\r\n heighlight: food['text'] == commonServices.foodSearchValue\r\n }\">\r\n {{ food[\"text\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Instruction:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"Instruction\"\r\n placeholder=\"Select Instruction\" [(ngModel)]=\"commonServices.InstructionSearchValue\"\r\n (click)=\"instructionDropdown()\" (change)=\"instructionOnChange()\" (keypress)=\"alphaRestriction($event)\"/>\r\n <div #InstructionDropdown class=\"new_rx_popup_tab_dropdown_list_box\" [class]=\"{M_list_box_show: selectInstructionDropdown === true}\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\" style=\"margin-bottom: 0px\">\r\n <ng-container *ngIf=\"selectInstructionDropdownList\">\r\n <li (click)=\"ChangeInstruction(null)\" class=\"p-12\"> </li>\r\n <li [class]=\"item.id == commonServices.complexId && item.text == commonServices.InstructionSearchValue ? 'heighlight' : ''\" *ngFor=\"let item of instructionData; index as i\" (click)=\"ChangeInstruction(item)\">\r\n {{ item.text }}\r\n <span *ngIf=\"item.userid !== 0\" class=\"span_icon\" style=\"float: right\">\r\n <i class=\"material-icons\" style=\"padding: 5px\"\r\n (click)=\"editInstruction(item.id, item)\">create</i><i class=\"material-icons\"\r\n style=\"margin-left: 10px; padding: 5px\"\r\n (click)=\"deleteInstruction(item.id)\">clear</i></span>\r\n </li>\r\n <li class=\"RX_ADD_dropdown_btn\" (click)=\"addNewInstruction()\">\r\n + Add Complex Instructions\r\n </li>\r\n </ng-container>\r\n <ng-container *ngIf=\"selectInstructionDropdownList == false\">\r\n <div class=\"complex_instruction_box\">\r\n <p class=\"new_rx_popup_label\" style=\"font-size: 12px; margin: 0\">\r\n Complex Instruction:\r\n </p>\r\n <input autocomplete=\"off\" class=\"instruction_field_clr mdl-textfield__input new_rx_popup_tab_input \" type=\"text\"\r\n id=\"Instruction\" [(ngModel)]=\"commonServices.Instructiontiltle\"\r\n placeholder=\"Enter Complex Instruction\" />\r\n <p class=\"new_rx_popup_label\" style=\"font-size: 12px; margin: 0\">\r\n Complex Instruction Description:\r\n </p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"2\" maxLength=\"500\"\r\n [(ngModel)]=\"tempInstructionDescription\"\r\n placeholder=\"Enter Complex Instruction Description\"\r\n class=\"instruction_field_clr w-100 new_rx_popup_tab_textarea\"></textarea>\r\n <div class=\"RX_ADD_dropdown_btn_1\">\r\n <button (click)=\"clearInstruction()\" class=\"rx-instruction-btn\">Cancel</button>\r\n <button (click)=\"saveInstruction()\" class=\"rx-instruction-btn\">Save</button>\r\n </div>\r\n </div>\r\n </ng-container>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">Route:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedRoute:\"\r\n placeholder=\"Select Route\" [(ngModel)]=\"commonServices.routeSearchValue\" maxlength=\"50\"\r\n (click)=\"routeDropdown()\" (keypress)=\"alphaRestriction($event)\"/>\r\n <div #RouteDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [class]=\"{ M_list_box_show: selectRouteDropdown === true }\">\r\n <div style=\"padding: 10px; position: relative\">\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_route__input\" type=\"text\"\r\n placeholder=\"Search...\" [value]=\"routeDataFilter ? routeDataFilter : ''\"\r\n (keyup)=\"routeFilter($event)\" />\r\n <i class=\"material-icons md-24 new_rx_popup_tab_1_input_search rx-search-icon\">search</i>\r\n </div>\r\n <ul *ngIf=\"filterRouteItems(routeData, routeDataFilter).length != 0\"\r\n class=\"new_rx_popup_tab_1_list rx_dropdown rx_dropdown_route\">\r\n <li *ngFor=\"\r\n let route of filterRouteItems(routeData, routeDataFilter)\r\n \" (click)=\"selectRoutesearcValue(route)\" [class]=\"{\r\n heighlight:\r\n route['routeName'] == commonServices.routeSearchValue\r\n }\">\r\n {{ route[\"routeName\"] }}\r\n </li>\r\n </ul>\r\n <ul *ngIf=\"filterRouteItems(routeData, routeDataFilter).length == 0\"\r\n class=\"new_rx_popup_tab_1_list rx_dropdown rx_dropdown_route\">\r\n <li>no data</li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">Pro Re Nata Prescription:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox1\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"commonServices.rxPRN\"\r\n (ngModelChange)=\"PRNChange(commonServices.rxPRN)\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Pro Re Nata\r\n Prescription</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Prescribe As:</p>\r\n <div class=\"rx_new_popup_checkbox\">\r\n <div class=\"rx_new_radiobox_button rx_radio_overall\">\r\n <label class=\"rx_radio_label\">\r\n <input autocomplete=\"off\" type=\"radio\" class=\"mdl-radio__button custom-radio-button\"\r\n name=\"PrescribeAs\" [value]=\"'Private'\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription === true\"\r\n [checked]=\"commonServices.PrescribeAS.toLowerCase() === 'private'\" (click)=\"private()\"\r\n [(ngModel)]=\"commonServices.PrescribeAS\" /><span class=\"mdl-radio__label radio_txt\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Private</span></label>\r\n\r\n <label class=\"rx_radio_label\">\r\n <input autocomplete=\"off\" type=\"radio\" checked=\"\"\r\n class=\"mdl-radio__button d-inline radio custom-radio-button\" name=\"PrescribeAs\"\r\n [value]=\"'PBS'\"\r\n [disabled]=\"prescribeAS_PBS || commonServices.isFetching || commonServices.editPrescribedPrescription === true\"\r\n [checked]=\"commonServices.PrescribeAS.toLowerCase() === 'pbs'\" (click)=\"PBS()\"\r\n [(ngModel)]=\"commonServices.PrescribeAS\" /><span class=\"mdl-radio__label radio_txt\"\r\n [class]=\"{ 'disabled-style': prescribeAS_PBS == true|| commonServices.isFetching || commonServices.editPrescribedPrescription === true}\">PBS</span>\r\n </label>\r\n <label class=\"rx_radio_label\">\r\n <input autocomplete=\"off\" type=\"radio\" checked=\"\"\r\n class=\"mdl-radio__button d-inline radio custom-radio-button\" name=\"PrescribeAs\"\r\n [value]=\"'RPBS'\"\r\n [disabled]=\"prescribeAS_RPBS || commonServices.isFetching || commonServices.editPrescribedPrescription === true\"\r\n [checked]=\"commonServices.PrescribeAS.toLowerCase() === 'rpbs'\" (click)=\"RPBS()\"\r\n [(ngModel)]=\"commonServices.PrescribeAS\" /><span class=\"mdl-radio__label radio_txt\"\r\n [class]=\"{ 'disabled-style': prescribeAS_RPBS == true|| commonServices.isFetching || commonServices.editPrescribedPrescription === true}\">RPBS</span>\r\n </label>\r\n </div>\r\n </div>\r\n <div class=\"rx_new_popup_checkbox\" *ngIf=\"\r\n commonServices.selectedFormulation != null && commonServices.selectedFormulation.pbsType!=undefined && commonServices.selectedFormulation.pbsType!=null &&\r\n commonServices.selectedFormulation.pbsType.toLowerCase() === 'non pbs' &&\r\n commonServices.patientDetails.dvaNumber != null &&\r\n commonServices.patientDetails.dvaNumber != '' && isNonPbsFlag == false && !isPrescribeAsPrivateOnly\r\n \">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox\" class=\"check_box\"\r\n [checked]=\"commonServices.unlistedRA\" (click)=\"unlistedRA()\"\r\n [(ngModel)]=\"commonServices.unlistedRA\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\" />\r\n <span class=\"mdl-checkbox__label check_box_label\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">\r\n Unlisted RA\r\n </span>\r\n </label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{\r\n M_CTG_box_hide: !(\r\n commonServices.patientDetails &&\r\n commonServices.patientDetails.patientCtgFlag == 0 &&\r\n commonServices.patientDetails.patientCtgCoPayment == 0 &&\r\n commonServices.PrescribeAS.toLowerCase() == 'pbs'\r\n )\r\n }\">\r\n <!-- <p class=\"new_rx_popup_label\">CTG/PBS Co Payment:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"commonServices.CTGCoPayment\"\r\n [checked]=\"commonServices.CTGCoPayment == true\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">CTG/PBS Co Payment</span></label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\"\r\n [class]=\"{ disabledRxContent: commonServices.isFetching}\">\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Script Date:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"date\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n id=\"RxScriptDate\" placeholder=\" ../../....\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.scriptDate\" />\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Start Date:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"date\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" id=\"RxStartDate\"\r\n placeholder=\" ../../....\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.startDate\" (ngModelChange)=\"commonServices.rxEndDateCalculater()\"/>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">End Date:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"date\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\" id=\"RxEndDate\"\r\n placeholder=\"../../....\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.endDate\" />\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Days Between Repeats:</p>\r\n <input autocomplete=\"off\" (paste)=\"$event.preventDefault()\" placeholder=\"Enter Days Between Repeats\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true||commonServices.isMedicineRestrict}\"\r\n class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"number\" id=\"Daybetweenrepeats\" [min]=\"0\"\r\n [disabled]=\"commonServices.isFetching || commonServices.editPrescribedPrescription||commonServices.isMedicineRestrict\"\r\n [(ngModel)]=\"commonServices.daysBtnRepeatsVal\" (keypress)=\"checkMobile($event)\"\r\n (input)=\"dayschange()\" />\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <div>\r\n <p class=\"new_rx_popup_label\">Purpose:</p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selectedPurpose:\"\r\n placeholder=\"Select Purpose\" readOnly [(ngModel)]=\"commonServices.purposeSearchValue\"\r\n (click)=\"purposeDropdown()\" />\r\n <div #PurposeDropdown class=\"new_rx_popup_tab_dropdown_list_box new_rx_popup_tab_purpose_box h-160p\"\r\n [class]=\"{ M_list_box_show: selectPurposeDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\">\r\n <li (click)=\"selectPurposeValue(null)\" class=\"p-12\"></li>\r\n <li *ngFor=\"let purpose of purposeData\" (click)=\"selectPurposeValue(purpose)\" [class]=\"{\r\n heighlight:\r\n purpose['lookupText'] ==\r\n commonServices.purposeSearchValue\r\n }\">\r\n {{ purpose[\"lookupText\"] }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{ M_CTG_box_hide: commonServices.isBrandName != true }\">\r\n <!-- <p class=\"new_rx_popup_label\">Substitution:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox1\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true || commonServices.isBrandName == false\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.BrandSubstitutesNotAllow\"\r\n (change)=\"this.brandSubstitutesNotAllow(commonServices.BrandSubstitutesNotAllow)\" [checked]=\"\r\n commonServices.BrandSubstitutesNotAllow\r\n ? commonServices.BrandSubstitutesNotAllow\r\n : false\r\n \" /><span class=\"mdl-checkbox__label\" style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Brand Substitution\r\n Not Permitted</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{ M_CTG_box_hide_brand: commonServices.lemi == true }\" id=\"brandnametooltip\"\r\n (mouseleave)=\"hideToolTip()\" (mouseenter)=\"showtooltip(commonServices.lemi,brandtooltip)\">\r\n <!-- <p class=\"new_rx_popup_label\">Brand Name:</p> -->\r\n <ng-template #brandtooltip><span class=\"include_brand_tooltip\">The selected product is LEMI\r\n identified. Therefore it may be\r\n prescribed by the brand name only.</span></ng-template>\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\" [class]=\"{\r\n M_CTG_box_hide_brand_name: commonServices.lemi == true || commonServices.isFetching == true || commonServices.editPrescribedPrescription === true\r\n }\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [checked]=\"commonServices.isBrandName\"\r\n [(ngModel)]=\"commonServices.isBrandName\"\r\n (change)=\"this.isChangeBrandName(commonServices.isBrandName)\" /><span\r\n class=\"mdl-checkbox__label\" style=\"font-weight: 400; font-size: 16px\">Include Brand\r\n Name</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">Regulation 24:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"commonServices.regulation24\"\r\n [checked]=\"commonServices.regulation24\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Regulation 24</span></label>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\"\r\n [class]=\"{ disabledRxContent: commonServices.isFetching}\">\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">DO NOT send to MySL:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.mySLConsent\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">DO NOT send to MySL</span></label>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n style=\"position: relative\">\r\n <p class=\"new_rx_popup_label\">\r\n <!-- Pharmacy: -->\r\n <span>\r\n <div class=\"rx_new_popup_checkbox\" style=\"margin-top: 0px\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\"><input autocomplete=\"off\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\" type=\"checkbox\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.sendToPharmacy\" (change)=\"sendToPharmacyChange()\" /><span\r\n class=\"mdl-checkbox__label\" style=\"font-weight: 400;font-size: 16px;margin-top: -7px;\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Send to Pharmacy</span></label>\r\n </div>\r\n </span>\r\n </p>\r\n <input autocomplete=\"off\" class=\"mdl-textfield__input new_rx_popup_tab_input\" type=\"text\" readonly\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" id=\"selecteddose\" placeholder=\"Select Value\"\r\n [(ngModel)]=\"commonServices.sendToPharmacyValue\" (click)=\"stpValueDropdown()\"\r\n [class]=\"{ M_CTG_box_hide: commonServices.sendToPharmacy != true }\" />\r\n <div #stpDropdown class=\"new_rx_popup_tab_dropdown_list_box new_rx_popup_tab_stp_box h-93p\"\r\n [class]=\"{ M_list_box_show: selectstpDropdown === true }\">\r\n <ul class=\"new_rx_popup_tab_1_list rx_dropdown\" style=\"margin-bottom: 0px\">\r\n <li (click)=\"selectStpValue(null)\" class=\"p-12\"></li>\r\n <li *ngFor=\"let sendtopharmacy of sendtopharmacyData\" (click)=\"selectStpValue(sendtopharmacy)\">\r\n {{ sendtopharmacy.name }}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--3-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <!-- <p class=\"new_rx_popup_label\">Emergency Supply:</p> -->\r\n <div class=\"rx_new_popup_checkbox m-t-36\">\r\n <label class=\"mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect\">\r\n <input autocomplete=\"off\" type=\"checkbox\" id=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\"\r\n [(ngModel)]=\"commonServices.emergencySupply\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\" [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Emergency Supply</span></label>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"page == 2\" class=\"new_rx_popup_tab_2\">\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px; opacity: 1\">\r\n <div\r\n class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div style=\"width: 100%; padding: 0px\" class=\"mdl-grid\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <div class=\"mdl-grid new_rx_popup_tab_1_grid\">\r\n <div class=\"mdl-cell mdl-cell--12-col\">\r\n <p class=\"new_rx_popup_label\">RX</p>\r\n <p class=\"new_rx_popup_label_p\">\r\n <b [innerHTML]=\"commonServices.rxDisplayName\"></b>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\" style=\"margin: 0px\">Quantity: <span\r\n style=\"color: rgb(45, 45, 45); font-weight: 600\">{{ commonServices.quantityVal }}\r\n </span> Repeats: <span style=\"color: rgb(45, 45, 45); font-weight: 600\">\r\n {{ commonServices.repeatsVal }}</span> Default Quantity:{{getDefaultQuantity()}}\r\n Default Repeats: {{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.repeats!=null?commonServices.selectedFormulation.repeats:\"\" }}\r\n </p>\r\n <p *ngIf=\"commonServices.doseSearchValue != '' ||commonServices.freqSearchValue != ''\"\r\n class=\"new_rx_popup_label_p\">\r\n <span>{{ commonServices.doseSearchValue }} </span><span>{{ commonServices.freqSearchValue\r\n }}</span>\r\n </p>\r\n <p *ngIf=\"commonServices.foodSearchValue != ''\" class=\"new_rx_popup_label_p\">\r\n {{ commonServices.foodSearchValue }}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n {{InstructionDescription !=\"\" && InstructionDescription!=null? InstructionDescription:commonServices.InstructionSearchValue!=\"\" && commonServices.InstructionSearchValue!=null?commonServices.InstructionSearchValue:\"\"}}\r\n </p>\r\n <p *ngIf=\"commonServices.routeSearchValue != ''\" class=\"new_rx_popup_label_p\">\r\n {{ commonServices.routeSearchValue }}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n P.R.N :\r\n <i *ngIf=\"commonServices.rxPRN\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.rxPRN\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Days Between Repeats:\r\n <span *ngIf=\"!commonServices.IsNullOrEmpty(commonServices.daysBtnRepeatsVal)\">{{commonServices.daysBtnRepeatsVal}}</span>\r\n <span *ngIf=\"commonServices.IsNullOrEmpty(commonServices.daysBtnRepeatsVal)\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Unusual Dose:\r\n <i *ngIf=\"commonServices.unUsualDoseFlag\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.unUsualDoseFlag\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Script Date:\r\n <span>{{this.commonServices.scriptDate|date:'dd-MM-YYYY'}}</span>\r\n \r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Start Date: \r\n <span>{{this.commonServices.startDate|date:'dd-MM-YYYY'}}</span>, End Date: {{this.commonServices.endDate|date:'dd-MM-YYYY'}}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Prescribe As:\r\n <span *ngIf=\"!commonServices.IsNullOrEmpty(commonServices.PrescribeAS)\">{{commonServices.PrescribeAS}}</span>\r\n <span *ngIf=\"commonServices.IsNullOrEmpty(commonServices.PrescribeAS)\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Purpose:\r\n <span *ngIf=\"!commonServices.IsNullOrEmpty(commonServices.purposeSearchValue)\">{{commonServices.purposeSearchValue}}</span>\r\n <span *ngIf=\"commonServices.IsNullOrEmpty(commonServices.purposeSearchValue)\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Include Brand Name:\r\n <i *ngIf=\"commonServices.isBrandName\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.isBrandName\">-</span>,\r\n Brand Substitution Not Permitted:\r\n <i *ngIf=\"commonServices.BrandSubstitutesNotAllow\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.BrandSubstitutesNotAllow\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Regulation 24:\r\n <i *ngIf=\"commonServices.regulation24\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.regulation24\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n CTG/PBS Co Payment:\r\n <i *ngIf=\"commonServices.CTGCoPayment\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.CTGCoPayment\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n DO NOT send to MySL:\r\n <i *ngIf=\"commonServices.mySLConsent\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.mySLConsent\">-</span>\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Send to Pharmacy:\r\n <i *ngIf=\"commonServices.sendToPharmacy\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.sendToPharmacy\">-</span>, Send to Pharmacy Value: {{!commonServices.IsNullOrEmpty(commonServices.sendToPharmacyValue)?commonServices.sendToPharmacyValue:'-'}}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">\r\n Emergency Supply:\r\n <i *ngIf=\"commonServices.emergencySupply\" class=\"material-icons icon-done\" style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.emergencySupply\">-</span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Note To Pharmacy:</p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"3\" maxlength=\"50\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"this.commonServices.doctorNotes\"\r\n class=\"w-100 new_rx_popup_tab_textarea rx-m-w-535p\"></textarea>\r\n </div>\r\n\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Annotation:</p>\r\n\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"3\" maxlength=\"500\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"this.commonServices.annotation\" class=\"w-100 new_rx_popup_tab_textarea rx-m-w-535p\"></textarea>\r\n </div>\r\n\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">Reason For Prescription:</p>\r\n\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"3\" maxlength=\"50\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"this.commonServices.prescriptionReason\"\r\n class=\"w-100 new_rx_popup_tab_textarea rx-m-w-535p\"></textarea>\r\n </div>\r\n\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\" style=\"text-transform: capitalize;\">\r\n {{this.getStateAuthorityLabel(commonServices.patientDetails.state)}}\r\n </p>\r\n\r\n <p style=\"margin: 0px;margin-top: -8px;margin-bottom: 10px;\">\r\n <span class=\"state-txt-color new_rx_popup_label_p\">(Relevant to\r\n {{ commonServices.patientDetails.state }})</span>\r\n </p>\r\n\r\n <input autocomplete=\"off\" type=\"text\" name=\"approval\" placeholder=\"\" \r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" class=\"new_rx_popup_tab_input\"\r\n [(ngModel)]=\"commonServices.StateAuthorityNumber\" maxlength=\"25\" (keypress)=\"authorityNoValidation($event)\" (ngModelChange)=\"authorityNoChange($event)\"/>\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\"\r\n [class]=\"{\r\n 'new_rx_no_authority':!showAuthorityBox(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.Restrictions:'',commonServices.PrescribeAS,commonServices.rxAuthority,commonServices.unlistedRA)\r\n }\">\r\n <div *ngIf=\"\r\n showAuthorityBox(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.Restrictions:'',\r\n commonServices.PrescribeAS,\r\n commonServices.rxAuthority,\r\n commonServices.unlistedRA\r\n )\r\n \">\r\n <div style=\"padding: 0px\" class=\"mdl-grid\">\r\n <div class=\"mdl-cell mdl-cell--8-col mdl-cell--6-col-tablet mdl-cell--4-col-phone\">\r\n <span class=\"new_rx_popup_label_New\">HOTLINE: <span\r\n class=\"new_rx_popup_label_span\">{{commonServices.PrescribeAS ==\r\n 'RPBS'?'1800552580':'1800888333'}}</span></span>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--4-col mdl-cell--2-col-tablet mdl-cell--4-col-phone\">\r\n <div style=\"text-align: right\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-mims.png\" alt=\"MIMS logo\"\r\n style=\"width: 80px; height: auto\" />\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"padding: 0px\">\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Prescriber Name:<span>{{\r\n commonServices.patientDetails.firstName +\r\n \" \" +\r\n commonServices.patientDetails.lastName\r\n }}</span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Prescriber Number:<span>{{\r\n commonServices.physicianDetails.prescriberNumber\r\n }}</span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Patient Medicare Number:<span>{{\r\n commonServices.patientDetails.medicareNumber\r\n ? commonServices.patientDetails.medicareNumber\r\n : \"\"\r\n }}</span>\r\n </p>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Authority Form No:\r\n <span>{{\r\n commonServices.authorityFormNo\r\n ? commonServices.authorityFormNo\r\n : \"\"\r\n }}</span>\r\n </p>\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"width: 100%; padding: 0px\">\r\n <div\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <p class=\"new_rx_popup_label\">Authority Item:</p>\r\n <p class=\"authority_item_text\" [innerHTML]=\"commonServices.rxDisplayName\"></p>\r\n\r\n <p class=\"new_rx_popup_label_p new_rx_popup_tab_smallBoxes\" style=\"margin: 0px\">\r\n Quantity:<span style=\"color: rgb(45, 45, 45); font-weight: 600\"> {{ commonServices.quantityVal\r\n }}</span> Repeats:<span style=\"color: rgb(45, 45, 45); font-weight: 600\">\r\n {{ commonServices.repeatsVal }}</span> Default Quantity:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.maxQtyUnits!=null?(commonServices.quantityWithUnitFlag?\"1 x \":\"\")+commonServices.selectedFormulation.maxQtyUnits:\"\"}}\r\n Default Repeats:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.repeats!=null? commonServices.selectedFormulation.repeats:\"\"}}\r\n </p>\r\n\r\n </div>\r\n </div>\r\n <div class=\"mdl-grid\" style=\"padding: 0px\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n PBS Listed Indication Authority:\r\n </p>\r\n <div class=\"w-100 new_rx_popup_tab_textarea\"\r\n style=\"min-height: 70px; max-height: 150px; overflow: auto\">\r\n <ul style=\"margin: 0px; padding-left: 15px;list-style: none;padding: 0px;\" *ngIf=\"\r\n this.isShowRestrictions == true &&\r\n commonServices.selectedFormulation.Restrictions !=\r\n null &&\r\n commonServices.selectedFormulation.Restrictions != ''\r\n \">\r\n <li style=\"font-size: 12px;padding: 0px 10px;margin-bottom: 10px;\"\r\n class=\"new_rx_pop_aut_int cursor\" *ngFor=\"\r\n let restriction of commonServices.selectedFormulation\r\n .Restrictions;\r\n index as i\r\n \" [class]=\"{\r\n new_rx_pop_aut_ins_select:\r\n commonServices.pbsListInstructionsId == i\r\n }\">\r\n <p style=\"\r\n margin: 0px;\r\n display: flex;\r\n align-content: center;\r\n margin-bottom: 10px;\r\n \" *ngIf=\"\r\n restriction.restrictionPreview != null &&\r\n restriction.restrictionPreview != '' &&\r\n restriction.restrictionText != null &&\r\n restriction.restrictionText != ''\r\n \">\r\n <span\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n (click)=\"\r\n indicationAuthority(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.maxQtyUnits:'',\r\n commonServices.quantityVal,\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.repeats:'',\r\n commonServices.repeatsVal,\r\n i,\r\n restriction\r\n )\r\n \">\r\n <span class=\"rx_restrictionText\" style=\"font-size: 12px;\"\r\n *ngIf=\"restriction.restrictionText.length < 80\"><b>{{\r\n restriction.restrictionType }}</b> -\r\n <span [innerHTML]=\"\r\n htmlToFormattedText(\r\n restriction.restrictionPreview\r\n )\r\n \"></span></span></span>\r\n <span class=\"rx_restrictionText\" style=\"font-size: 12px;\"\r\n *ngIf=\"restriction.restrictionText.length > 80\"><b (click)=\"\r\n indicationAuthority(\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.maxQtyUnits:'',\r\n commonServices.quantityVal,\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.repeats:'',\r\n commonServices.repeatsVal,\r\n i,\r\n restriction\r\n )\r\n \">{{\r\n restriction.restrictionType }}</b> -\r\n <span (click)=\"\r\n indicationAuthority(\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.maxQtyUnits:'',\r\n commonServices.quantityVal,\r\n commonServices.selectedFormulation!=null?commonServices.selectedFormulation.repeats:'',\r\n commonServices.repeatsVal,\r\n i,\r\n restriction\r\n )\r\n \" [innerHTML]=\"\r\n htmlToFormattedText(\r\n restriction.restrictionPreview\r\n ).substring(0, 80)\r\n \"></span>...\r\n <span>\r\n </span>\r\n <a style=\"cursor: pointer; color: #ff9978\" id=\"show-tooltip-id\">Show\r\n More</a></span>\r\n <ng-template #tooltipdemo>\r\n <p class=\"rx_tooltip_inner_box\" [innerHTML]=\"restriction.restrictionText\"></p>\r\n </ng-template>\r\n </p>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\"\r\n style=\"padding: 0px\">\r\n <!-- <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">PBS Notes:</p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"2\" maxlength=\"500\" placeholder=\"\"\r\n [class]=\"{'edit-disable-data': commonServices.editPrescribedPrescription === true}\"\r\n class=\"w-100 new_rx_popup_tab_textarea\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.pbsNotes\"></textarea>\r\n </div> -->\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n Indication For This Authority:\r\n </p>\r\n <textarea autocomplete=\"off\" name=\"\" id=\"\" rows=\"2\" placeholder=\"\"\r\n [class]=\"{'edit-dsable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\"\r\n [(ngModel)]=\"commonServices.pbsListInstructions\" (ngModelChange)=\"onInputChange($event)\"\r\n class=\"w-100 new_rx_popup_tab_textarea rx-m-w-100\"></textarea>\r\n </div>\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone\">\r\n <p class=\"new_rx_popup_label\">\r\n {{\r\n getAuthorityLabel(commonServices.patientDetails.state)\r\n }}\r\n </p>\r\n <input autocomplete=\"off\" type=\"text\" name=\"approval\" placeholder=\"\"\r\n [class]=\"{'edit-dsable-data': commonServices.editPrescribedPrescription === true}\"\r\n [disabled]=\"commonServices.editPrescribedPrescription\" class=\"new_rx_popup_tab_input\" [(ngModel)]=\"commonServices.approvalNo\" (ngModelChange)=\"onInputchangeApprovalNo($event)\" (keypress)=\"authorityNoValidation($event)\"/>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"\r\n !showAuthorityBox(\r\n commonServices.selectedFormulation!=null? commonServices.selectedFormulation.Restrictions:'',\r\n commonServices.PrescribeAS,\r\n commonServices.rxAuthority,\r\n commonServices.unlistedRA\r\n )\r\n \" style=\"width: 100%;\">\r\n <div style=\"text-align: right\" *ngIf=\"!commonServices.isMedicineRestrict\">\r\n <img src=\"https://passets.hola.health/rx-widgets/rx-mims.png\" alt=\"MIMS logo\"\r\n style=\"width: 80px; height: auto\" />\r\n </div>\r\n <div class=\"No_Authority_box\">\r\n <p>No Authority Required</p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"rx_footer\">\r\n <div class=\"rx_footer_brand\">\r\n <p class=\"ml-10\"><span>Hola Consult | 1.0 <span *ngIf=\"commonServices.sandbox\">| <span\r\n class=\"rx_staging\">This is a sandbox environment</span></span></span></p>\r\n <p class=\"mt-15p\">\r\n <span class=\"rx_popup_footer_text\">\u00A9 2024 Hola Health, a brand of Packapill Pty Ltd | v\r\n 1.0.9 |\r\n <a href=\"https://hola.health/consult-terms\" target=\"_blank\">Terms</a> |\r\n <a href=\"https://hola.health/consult-privacy-policy\" target=\"_blank\">Privacy Policy</a> |\r\n <a href=\"mailto:support@hola.health\" target=\"_blank\">Help</a></span>\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".loader{border:4px solid #f3f3f3;border-radius:50%;border-top:4px solid #020202;width:30px;height:30px;animation:spin 1s linear infinite;margin-left:18px;margin-top:18px}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m-v4{margin-left:4vh}.rx_loader_button{border:2px solid #f3f3f3;border-radius:50%;border-top:4px solid #005760;width:30px;height:30px;animation:spin 1s linear infinite}.drp-icon{color:#fff;font-size:19px;margin-left:5px}.select-action-btn{display:flex;flex-direction:row;flex-wrap:nowrap;align-content:center;justify-content:center;align-items:center}.select-action-ul{width:80%}.new_rx_popup_mims .React__Overlay_Open_Popup{position:fixed;inset:0;background-color:#00000080!important}.new_rx_popup_mims .new_rx_mims_Overlay_Open_Popup{z-index:9999999!important}.new_rx_popup_mims .ReactModal__Overlay{overflow-y:auto!important}.new_rx_popup_mims .ReactModal_popup{width:100%;padding:0;margin:20px 0 0}.new_rx_popup_mims .ReactModal__Content{margin:auto}.edit-disable-data{pointer-events:none;opacity:.6}.new_rx_popup_btns{position:relative;display:flex;justify-content:flex-end;align-items:center}@media only screen and (max-width: 1023px){.rx_ipad_header_box_1{width:calc(35% - 16px)}.rx_ipad_header_box_2{width:calc(65% - 16px)}.rx_ipad_header_box_3{width:calc(100% - 16px)}.new_mobile_rx_popup_header_text{display:block;text-align:center}}@media screen and (max-width: 767px){.new_rx_popup_btns,.new_mobile_rx_popup_header_text{display:block;text-align:center}.new_mobile_rx_top_bottom_0{margin-top:0;margin-bottom:0}.new_mobile_rx_btn{margin-bottom:5px}}\n"] }]
5741
5887
  }], ctorParameters: function () { return [{ type: ApiService }, { type: CommonServices }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i3.DatePipe }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ViewContainerRef }]; }, propDecorators: { wrapperRef: [{
5742
5888
  type: ViewChild,
5743
5889
  args: ['MedicineDropdown', { static: false }]
@@ -5880,6 +6026,7 @@ class CommonServices {
5880
6026
  this.sandbox = true;
5881
6027
  this.searchApiStopFlag = true;
5882
6028
  this.quantityWithUnitFlag = false;
6029
+ this.isMedicineRestrict = false;
5883
6030
  }
5884
6031
  clearMedicalPrescriptionData() {
5885
6032
  try {
@@ -5972,7 +6119,11 @@ class CommonServices {
5972
6119
  this.complexId = 7;
5973
6120
  this.instVal = 1;
5974
6121
  this.routeSearchValue = 'Oral';
5975
- if (!this.IsNullOrEmpty(med) && !this.IsNullOrEmpty(med.maxQtyUnits)) {
6122
+ if (this.isMedicineRestrict && !this.IsNullOrEmpty(med) && !this.IsNullOrEmpty(med.numberOfPack) && med.numberOfPack != 0) {
6123
+ this.quantityVal = med.numberOfPack;
6124
+ this.quantityWithUnitFlag = false;
6125
+ }
6126
+ else if (!this.IsNullOrEmpty(med) && !this.IsNullOrEmpty(med.maxQtyUnits)) {
5976
6127
  var quantityUnit = med.maxQtyUnits.match(/[a-wy-zA-WY-Z]+/g);
5977
6128
  if (!this.IsNullOrEmpty(quantityUnit) && quantityUnit.length > 0) {
5978
6129
  this.quantityVal = 1;
@@ -5985,6 +6136,7 @@ class CommonServices {
5985
6136
  }
5986
6137
  else {
5987
6138
  this.quantityVal = "";
6139
+ this.quantityWithUnitFlag = false;
5988
6140
  }
5989
6141
  this.repeatsVal = !this.IsNullOrEmpty(med) && !this.IsNullOrEmpty(med.repeats) ? med.repeats : '';
5990
6142
  this.annotation = '';
@@ -6158,6 +6310,19 @@ class CommonServices {
6158
6310
  return 3;
6159
6311
  }
6160
6312
  }
6313
+ getCredetial() {
6314
+ try {
6315
+ var credetial = JSON.parse(localStorage.getItem("rxCredentials"));
6316
+ if (!this.IsNullOrEmpty(credetial))
6317
+ return credetial.clientId;
6318
+ else
6319
+ return "";
6320
+ }
6321
+ catch (ex) {
6322
+ this.setlogvalue(false, ex.message, ex.stack, "CommonServices", "getCredetial");
6323
+ return "";
6324
+ }
6325
+ }
6161
6326
  validByEmailNo(email) {
6162
6327
  try {
6163
6328
  email = email.replace(/^\s+|\s+$/gm, '');
@@ -6187,6 +6352,26 @@ class CommonServices {
6187
6352
  return false;
6188
6353
  }
6189
6354
  }
6355
+ getScheduleNumber(selectedFormulation) {
6356
+ var _a;
6357
+ try {
6358
+ if (!this.IsNullOrEmpty((_a = selectedFormulation === null || selectedFormulation === void 0 ? void 0 : selectedFormulation.poisonClassification) === null || _a === void 0 ? void 0 : _a.poisonClasses) && selectedFormulation.poisonClassification.poisonClasses.length > 0) {
6359
+ if (selectedFormulation.poisonClassification.poisonClasses[0].toLowerCase() == "unscheduled") {
6360
+ return "";
6361
+ }
6362
+ else {
6363
+ return selectedFormulation.poisonClassification.poisonClasses[0];
6364
+ }
6365
+ }
6366
+ else {
6367
+ return "";
6368
+ }
6369
+ }
6370
+ catch (ex) {
6371
+ this.setlogvalue(false, ex.message, ex.stack, "CommonServices", "getScheduleNumber");
6372
+ return "";
6373
+ }
6374
+ }
6190
6375
  // Opening the Pathology popup
6191
6376
  Pathology(content, data) {
6192
6377
  return this.dialogopen(ReferralRxComponent, content, data);
@@ -6595,6 +6780,8 @@ class HolaRx {
6595
6780
  this.commonservice.logidentifier = !this.IsNullOrEmpty(RxDetails) ? !this.IsNullOrEmpty(RxDetails.practitioner) ? !this.IsNullOrEmpty(RxDetails.practitioner.email) ? RxDetails.practitioner.email : "" : "" : "";
6596
6781
  this.commonservice.logidentifierType = "practitioner email";
6597
6782
  try {
6783
+ RxDetails.type = "1";
6784
+ RxDetails.clientId = this.commonservice.getCredetial();
6598
6785
  this.tempRxDetails = RxDetails;
6599
6786
  if (!this.IsNullOrEmpty(this.commonservice.HolaRxToken)) {
6600
6787
  this.auditlog(JSON.stringify(RxDetails), config.CREATE_CONSULTATION);
@@ -6632,6 +6819,7 @@ class HolaRx {
6632
6819
  this.commonservice.visitId = res.visitId;
6633
6820
  this.commonservice.createPatientResponse = res;
6634
6821
  this.commonservice.editPrescription = false;
6822
+ this.commonservice.isMedicineRestrict = !this.commonservice.IsNullOrEmpty(res.isRestrictedMedicine) ? res.isRestrictedMedicine : false;
6635
6823
  if (!this.IsNullOrEmpty(this.commonservice.physicianDetails) && !this.IsNullOrEmpty(this.commonservice.physicianDetails.ePrescriptionAllowed) && this.commonservice.physicianDetails.ePrescriptionAllowed == 0)
6636
6824
  this.HIvalidation(res);
6637
6825
  return this.commonservice.openRxWidget(this.content);
@@ -6682,6 +6870,8 @@ class HolaRx {
6682
6870
  this.commonservice.logidentifier = !this.IsNullOrEmpty(RxDetails) ? !this.IsNullOrEmpty(RxDetails.practitioner) ? !this.IsNullOrEmpty(RxDetails.practitioner.email) ? RxDetails.practitioner.email : "" : "" : "";
6683
6871
  this.commonservice.logidentifierType = "practitioner email";
6684
6872
  try {
6873
+ RxDetails.type = "1";
6874
+ RxDetails.clientId = this.commonservice.getCredetial();
6685
6875
  this.tempRxDetails = RxDetails;
6686
6876
  if (!this.IsNullOrEmpty(this.commonservice.HolaRxToken)) {
6687
6877
  this.auditlog(JSON.stringify(RxDetails), config.CREATE_CONSULTATION);
@@ -6716,6 +6906,7 @@ class HolaRx {
6716
6906
  this.commonservice.vendorFacilityId = res.vendorFacilityId;
6717
6907
  this.commonservice.vendorPhysicianId = res.vendorPhysicianId;
6718
6908
  this.commonservice.visitId = res.visitId;
6909
+ this.commonservice.isMedicineRestrict = !this.commonservice.IsNullOrEmpty(res.isRestrictedMedicine) ? res.isRestrictedMedicine : false;
6719
6910
  if (RxDetails.rxid != null && RxDetails.rxid != "" && RxDetails.rxid != undefined) {
6720
6911
  if (res.rxDetails != null && res.rxDetails != "" && res.rxDetails != undefined) {
6721
6912
  this.commonservice.editPrescription = true;
@@ -6779,6 +6970,8 @@ class HolaRx {
6779
6970
  this.commonservice.logidentifier = !this.IsNullOrEmpty(RxDetails) ? !this.IsNullOrEmpty(RxDetails.practitioner) ? !this.IsNullOrEmpty(RxDetails.practitioner.email) ? RxDetails.practitioner.email : "" : "" : "";
6780
6971
  this.commonservice.logidentifierType = "practitioner email";
6781
6972
  try {
6973
+ RxDetails.type = "2";
6974
+ RxDetails.clientId = this.commonservice.getCredetial();
6782
6975
  this.tempRxDetails = RxDetails;
6783
6976
  if (!this.IsNullOrEmpty(this.commonservice.HolaRxToken)) {
6784
6977
  this.auditlog(JSON.stringify(RxDetails), config.CREATE_CONSULTATION);
@@ -6813,6 +7006,7 @@ class HolaRx {
6813
7006
  this.commonservice.vendorFacilityId = res.vendorFacilityId;
6814
7007
  this.commonservice.vendorPhysicianId = res.vendorPhysicianId;
6815
7008
  this.commonservice.visitId = res.visitId;
7009
+ this.commonservice.isMedicineRestrict = !this.commonservice.IsNullOrEmpty(res.isRestrictedMedicine) ? res.isRestrictedMedicine : false;
6816
7010
  return this.commonservice.Pathology(this.content);
6817
7011
  }
6818
7012
  else {
@@ -6863,20 +7057,22 @@ class HolaRx {
6863
7057
  var payload = {};
6864
7058
  try {
6865
7059
  this.temprxid = RxID;
7060
+ var clientId = this.commonservice.getCredetial();
6866
7061
  payload = {
6867
7062
  request_type: "parameter",
6868
7063
  rxid: RxID,
6869
- type: "0"
7064
+ type: "0",
7065
+ clientId: clientId
6870
7066
  };
6871
7067
  if (!this.IsNullOrEmpty(this.commonservice.HolaRxToken)) {
6872
- this.auditlog(JSON.stringify(payload), config.PHYSICIAN.RX_PRINT + RxID + "&type=0");
7068
+ this.auditlog(JSON.stringify(payload), config.PHYSICIAN.RX_PRINT + RxID + "&type=0&clientId=" + clientId);
6873
7069
  if (this.IsNullOrEmpty(RxID)) {
6874
7070
  this.commonservice.toastopen(errorconfig.error_46.message, "error", errorconfig.error_46.code);
6875
7071
  return this.errorResponse(errorconfig.error_46.code, errorconfig.error_46.message);
6876
7072
  }
6877
7073
  this.commonLoaderServices.addLoaderElement(true);
6878
7074
  this.Changedetect.detectChanges();
6879
- return this.apiservice.Get(config.PHYSICIAN.RX_PRINT + RxID + "&type=0").pipe(switchMap((response) => {
7075
+ return this.apiservice.Get(config.PHYSICIAN.RX_PRINT + RxID + "&type=0&clientId=" + clientId).pipe(switchMap((response) => {
6880
7076
  try {
6881
7077
  if (this.IsNullOrEmpty(response)) {
6882
7078
  this.commonservice.setlogvalue(false, "", "", "HolaRx", "downloadRx", payload);
@@ -7044,6 +7240,11 @@ class HolaRx {
7044
7240
  this.validationtoast(errorconfig.error_46.message, errorconfig.error_46.code);
7045
7241
  }
7046
7242
  }
7243
+ if (flag == 1) {
7244
+ if (!this.IsNullOrEmpty(RxDetails.rxid)) {
7245
+ RxDetails.rxid = "";
7246
+ }
7247
+ }
7047
7248
  if (!this.IsNullOrEmpty(RxDetails.practice)) {
7048
7249
  if (this.IsNullOrEmpty(RxDetails.practice.id))
7049
7250
  this.validationtoast(errorconfig.error_4.message, errorconfig.error_4.code);
@@ -7096,18 +7297,12 @@ class HolaRx {
7096
7297
  this.validationtoast(errorconfig.error_24.message, errorconfig.error_24.code);
7097
7298
  if (this.IsNullOrEmpty((_k = RxDetails.practitioner.address) === null || _k === void 0 ? void 0 : _k.state))
7098
7299
  this.validationtoast(errorconfig.error_25.message, errorconfig.error_25.code);
7099
- if (this.IsNullOrEmpty(RxDetails.practitioner.prescribernumber))
7100
- this.validationtoast(errorconfig.error_26.message, errorconfig.error_26.code);
7101
7300
  if (flag == 3) {
7102
7301
  if (this.IsNullOrEmpty(RxDetails.practitioner.providernumber))
7103
7302
  this.validationtoast(errorconfig.error_27.message, errorconfig.error_27.code);
7104
7303
  if (this.IsNullOrEmpty(RxDetails.practitioner.signature_image))
7105
7304
  this.validationtoast(errorconfig.error_28.message, errorconfig.error_28.code);
7106
7305
  }
7107
- if (flag == 1 || flag == 2) {
7108
- if (this.IsNullOrEmpty(RxDetails.practitioner.entity_id))
7109
- this.validationtoast(errorconfig.error_73.message, errorconfig.error_73.code);
7110
- }
7111
7306
  if (this.IsNullOrEmpty(RxDetails.practitioner.hpii)) {
7112
7307
  RxDetails.practitioner.hpii = 0;
7113
7308
  }