@james_jayaraj/test-npm 0.8.8 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @james_jayaraj/test-npm might be problematic. Click here for more details.
- package/_hola-rx.styles.scss +35 -5
- package/esm2020/lib/confirm-patient-contact-details/confirm-patient-contact-details.component.mjs +5 -5
- package/esm2020/lib/environments/config.mjs +6 -4
- package/esm2020/lib/hola-rx.component.mjs +7 -1
- package/esm2020/lib/referral-rx/referral-rx.component.mjs +3 -3
- package/esm2020/lib/rx/rx.component.mjs +321 -6
- package/esm2020/lib/services/common.mjs +81 -1
- package/fesm2015/james_jayaraj-test-npm.mjs +421 -14
- package/fesm2015/james_jayaraj-test-npm.mjs.map +1 -1
- package/fesm2020/james_jayaraj-test-npm.mjs +417 -14
- package/fesm2020/james_jayaraj-test-npm.mjs.map +1 -1
- package/lib/environments/config.d.ts +2 -0
- package/lib/rx/rx.component.d.ts +10 -0
- package/lib/services/common.d.ts +6 -0
- package/package.json +1 -1
|
@@ -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://
|
|
26
|
-
LIVE_URL: "https://
|
|
25
|
+
STAGING_URL: "https://ica.hlhlth.app/packapill",
|
|
26
|
+
LIVE_URL: "https://consultapi.hola.health/careconnect",
|
|
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",
|
|
@@ -48,7 +48,9 @@ const config = {
|
|
|
48
48
|
REFERRAL_PRINT: "api/rxwidget/downloadReferralFile?referralId=",
|
|
49
49
|
RX_CANCEL_DRAFT: "api/rxwidget/delete/prescription?rxId=",
|
|
50
50
|
RX_PRESCRIBE_ABORT: "api/rxwidget/abort",
|
|
51
|
-
GET_RESTRICTED_MEDICINE: "api/rxwidget/getRestrictedMedicines"
|
|
51
|
+
GET_RESTRICTED_MEDICINE: "api/rxwidget/getRestrictedMedicines",
|
|
52
|
+
ADD_FAVOURITE_MEDICINE: "api/rxwidget/addtofavorites",
|
|
53
|
+
GET_FAVOURITE_MEDICINE_LIST: "api/rxwidget/getfavoriteslist",
|
|
52
54
|
}
|
|
53
55
|
};
|
|
54
56
|
const errorconfig = {
|
|
@@ -514,10 +516,10 @@ class ReferralRxComponent {
|
|
|
514
516
|
}
|
|
515
517
|
}
|
|
516
518
|
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 });
|
|
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
|
|
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 2025 Hola Health, a brand of Packapill Pty Ltd | v 1.1.0 | <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"] }] });
|
|
518
520
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ReferralRxComponent, decorators: [{
|
|
519
521
|
type: Component,
|
|
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
|
|
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 2025 Hola Health, a brand of Packapill Pty Ltd | v 1.1.0 | <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"] }]
|
|
521
523
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: ApiService }, { type: CommonServices }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { closeEvent: [{
|
|
522
524
|
type: Output
|
|
523
525
|
}], submitEvent: [{
|
|
@@ -903,8 +905,8 @@ class ConfirmPatientContactDetailsComponent {
|
|
|
903
905
|
this.rxemailId = "";
|
|
904
906
|
this.rxEmailFlag = true;
|
|
905
907
|
this.MobileNo = this.commonServices.patientDetails.phone;
|
|
906
|
-
this.Email = this.commonServices.patientDetails.email;
|
|
907
|
-
this.AddressSendToAddType = "SMS";
|
|
908
|
+
this.Email = this.commonServices.isScriptToPharmacy == 1 && this.commonServices.pharmacyEmail != null && this.commonServices.pharmacyEmail != "" ? this.commonServices.pharmacyEmail : this.commonServices.patientDetails.email;
|
|
909
|
+
this.commonServices.isScriptToPharmacy == 1 ? this.AddressSendToAddType = "Email" : this.AddressSendToAddType = "SMS";
|
|
908
910
|
}
|
|
909
911
|
ngOnInit() {
|
|
910
912
|
try {
|
|
@@ -1012,10 +1014,10 @@ class ConfirmPatientContactDetailsComponent {
|
|
|
1012
1014
|
}
|
|
1013
1015
|
}
|
|
1014
1016
|
ConfirmPatientContactDetailsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ConfirmPatientContactDetailsComponent, deps: [{ token: i0.ElementRef }, { token: CommonServices }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1015
|
-
ConfirmPatientContactDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ConfirmPatientContactDetailsComponent, selector: "app-confirm-patient-contact-details", outputs: { closeEvent: "closeEvent", submitEvent: "submitEvent" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["rxwidgets"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"ReactModalPortal e_prescription_box\">\r\n <div class=\"ReactModal__Overlay ReactModal__Overlay--after-open open_popup\">\r\n <div class=\"ReactModal__Content ReactModal__Content--after-open popup_header e_prescription_popup_inner_box\"\r\n tabindex=\"-1\" role=\"dialog\" aria-modal=\"true\">\r\n <p class=\"rx_record_change_popup\">{{modaldata==1?'Confirm Patient Contact Details':'Cease Prescription'}}</p>\r\n <button type=\"button\" class=\"rx_record_popup_close\" (click)=\"close(1)\">X</button>\r\n <div class=\"content\">\r\n <hr class=\"m-0\">\r\n <div *ngIf=\"modaldata==1\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div class=\"details_width_flex\"><label class=\"label\">Send Token Via<span\r\n class=\"text_content\">*</span></label>\r\n </div>\r\n <div class=\"rx_new_popup_checkbox\">\r\n <div class=\"rx_new_radiobox_button rx-btn rx_radio_overall\">\r\n <label class=\"rx_radio_label\"><input type=\"radio\" class=\"mdl-radio__button custom-radio-button\"\r\n name=\"AddressSendToAddType\" [value]=\"'SMS'\" (click)=\"radioChange(1)\"\r\n [checked]=\"AddressSendToAddType.toLowerCase() == 'sms'\" /><span\r\n class=\"mdl-radio__label radio_txt\">SMS</span></label>\r\n\r\n <label class=\"rx_radio_label\"><input type=\"radio\" [checked]=\"AddressSendToAddType.toLowerCase() == 'email'\"\r\n (click)=\"radioChange(2)\" class=\"mdl-radio__button d-inline radio custom-radio-button\"\r\n name=\"AddressSendToAddType\" [value]=\"'Email'\"><span class=\"mdl-radio__label radio_txt\">E-Mail</span>\r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"AddressSendToAddType.toLowerCase() == 'sms'\"\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone mobilenumber-input addpatient-details-col \">\r\n <div class=\"mdl-textfield mdl-js-textfield first-row-input\">\r\n <div class=\"details_width_flex\"><label for=\"mobile-number\" class=\"no_txt_clr\">Mobile\r\n Number</label></div>\r\n <div class=\"details_flag_number\">\r\n <div class=\"img-w\"><span class=\"addpatient-country-flag\"><img\r\n src=\"https://passets.hola.health/rx-widgets/rx-australia.png\"></span>\r\n </div>\r\n <div class=\"details_mobileNo_input\"><input autocomplete=\"off\" class=\"mdl-textfield__input input_textfield\" type=\"tel\"\r\n id=\"mobile-number\" (keypress)=\"checkMobile($event)\"\r\n placeholder=\"04 123 45678\" [(ngModel)]=\"MobileNo\"\r\n style=\"text-decoration: none; border-bottom: none;\">\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"AddressSendToAddType.toLowerCase() == 'email'\"\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone mobilenumber-input addpatient-details-col \">\r\n <div class=\"mdl-textfield mdl-js-textfield first-row-input\">\r\n <div class=\"details_width_flex\"><label for=\"mobile-number\" class=\"no_txt_clr\">Email\r\n </label></div>\r\n <div class=\"details_flag_number\">\r\n <div class=\"details_mobileNo_input\"><input autocomplete=\"off\" class=\"mdl-textfield__input input_textfield\" type=\"email\"\r\n id=\"mobile-number\"\r\n placeholder=\"text@gmail.com\" [(ngModel)]=\"Email\"\r\n style=\"text-decoration: none; border-bottom: none;\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\"><br>\r\n <div class=\"btn-bottom\">\r\n <div class=\"btn-outer\"><button class=\"mdl-button mdl-js-button rx_record_change_popup_cancel cancel_send\"\r\n (click)=\"close(1)\">Cancel</button>\r\n </div>\r\n <div class=\"btn-send\"><button class=\"mdl-button mdl-js-button rx_record_change_popup_submit\"\r\n (click)=\"close(2)\">Send</button>\r\n </div>\r\n <div class=\"btn-print\"><button (click)=\"close(3)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored rx_record_change_popup_submit rx_popup_margin_mobile_top\">Send\r\n & Print</button></div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"modaldata==2\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <span class=\"new_rx_IncludeBrand_popup_text\">The selected SCID is already dispensed to the patient. You can choose to cease the prescription to\r\n prevent future dispenses to the patient.</span>\r\n </div>\r\n <div class=\"btn-bottom\">\r\n <div class=\"btn-outer\"><button class=\"mdl-button mdl-js-button rx_record_change_popup_cancel cancel_send\"\r\n (click)=\"close(1)\">Cancel</button>\r\n <div class=\"btn-print \" style=\"margin-left: 10px;\"><button (click)=\"close(4)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored rx_record_change_popup_submit rx_popup_margin_mobile_top\">Cease Prescription</button></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <ng-template #rxwidgets> </ng-template>", styles: [".details_width_flex{width:100%;display:flex}.details_width_flex,.details_width_flex label{font-size:15px!important;font-family:Roboto Medium!important;font-weight:600}@media (min-width: 480px) and (max-width: 839px){.mdl-cell--8-col,.mdl-cell--8-col-tablet.mdl-cell--8-col-tablet{width:calc(100% - 16px)}}@media only screen and (max-width: 767px){.new_rx_mobile_fullwidth.mdl-cell{width:calc(100% - 16px)!important}}@media (min-width: 480px) and (max-width: 839px){.mdl-cell--12-col,.mdl-cell--12-col-tablet.mdl-cell--12-col-tablet{width:calc(100% - 16px)}}@media (min-width: 480px) and (max-width: 839px){.mdl-cell{margin:8px;width:calc(50% - 16px)}}.mdl-cell{box-sizing:border-box}@media only screen and (max-width: 767px){.mdl-cell{width:100%!important}}.details_flag_number{border:1.5px solid #d7d7d7;margin-top:5px;padding:6px;flex-direction:row;display:flex;border-radius:4px}div span.addpatient-country-flag img{height:100%;width:100%}.mdl-textfield{position:relative;font-size:16px;display:inline-block;box-sizing:border-box;width:300px;max-width:100%;margin:0;padding:20px 0}div.first-row-input{padding:0!important;width:100%}.details_mobileNo_input{font-size:15px!important;font-family:Roboto Medium!important}.mdl-textfield__input{border:none;border-bottom:1px solid rgba(0,0,0,.12);display:block;font-size:16px;font-family:Helvetica,Arial,sans-serif;margin:0;padding:4px 0;width:100%;background:0 0;text-align:left;color:inherit}.details_mobileNo_input input{font-size:15px!important;font-family:Roboto Medium!important;color:#5a5a5a}.mdl-textfield__input{outline:none}.details_mobileNo_input{padding-left:10px;width:100%}.mdl-button{background:0 0;border:none;border-radius:2px;color:#000;position:relative;height:36px;margin:3;min-width:64px;padding:0 16px;display:inline-block;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:0;overflow:hidden;will-change:box-shadow;transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);outline:none;cursor:pointer;text-decoration:none;text-align:center;line-height:36px;vertical-align:middle}.cancel_send{padding:0 27px!important}.radio_txt{vertical-align:super}.content{margin-bottom:20px;margin-top:10px}.label{color:#000}.text_content{color:red;font-size:16px}.rx-btn{padding:.375rem 0rem!important}.no_txt_clr{color:#000}.img-w{width:40px}.btn-bottom{float:right}.btn-outer,.btn-send{display:inline-block;margin-right:5px}.btn-print{display:inline-block}\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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1017
|
+
ConfirmPatientContactDetailsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: ConfirmPatientContactDetailsComponent, selector: "app-confirm-patient-contact-details", outputs: { closeEvent: "closeEvent", submitEvent: "submitEvent" }, viewQueries: [{ propertyName: "content", first: true, predicate: ["rxwidgets"], descendants: true, static: true }], ngImport: i0, template: "<div class=\"ReactModalPortal e_prescription_box\">\r\n <div class=\"ReactModal__Overlay ReactModal__Overlay--after-open open_popup\">\r\n <div class=\"ReactModal__Content ReactModal__Content--after-open popup_header e_prescription_popup_inner_box\"\r\n tabindex=\"-1\" role=\"dialog\" aria-modal=\"true\">\r\n <p class=\"rx_record_change_popup\">{{modaldata==1?'Confirm Patient Contact Details':'Cease Prescription'}}</p>\r\n <button type=\"button\" class=\"rx_record_popup_close\" (click)=\"close(1)\">X</button>\r\n <div class=\"content\">\r\n <hr class=\"m-0\">\r\n <div *ngIf=\"modaldata==1\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div class=\"details_width_flex\"><label class=\"label\">Send Token Via<span\r\n class=\"text_content\">*</span></label>\r\n </div>\r\n <div class=\"rx_new_popup_checkbox\">\r\n <div class=\"rx_new_radiobox_button rx-btn rx_radio_overall\">\r\n <label class=\"rx_radio_label\"><input [disabled]=\"this.commonServices.isScriptToPharmacy==1\" type=\"radio\" class=\"mdl-radio__button custom-radio-button\"\r\n name=\"AddressSendToAddType\" [value]=\"'SMS'\" (click)=\"radioChange(1)\"\r\n [checked]=\"AddressSendToAddType.toLowerCase() == 'sms'\" /><span\r\n class=\"mdl-radio__label radio_txt\">SMS</span></label>\r\n\r\n <label class=\"rx_radio_label\"><input type=\"radio\" [checked]=\"AddressSendToAddType.toLowerCase() == 'email'\"\r\n (click)=\"radioChange(2)\" class=\"mdl-radio__button d-inline radio custom-radio-button\"\r\n name=\"AddressSendToAddType\" [value]=\"'Email'\"><span class=\"mdl-radio__label radio_txt\">E-Mail</span>\r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"AddressSendToAddType.toLowerCase() == 'sms'\"\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone mobilenumber-input addpatient-details-col \">\r\n <div class=\"mdl-textfield mdl-js-textfield first-row-input\">\r\n <div class=\"details_width_flex\"><label for=\"mobile-number\" class=\"no_txt_clr\">Mobile\r\n Number</label></div>\r\n <div class=\"details_flag_number\">\r\n <div class=\"img-w\"><span class=\"addpatient-country-flag\"><img\r\n src=\"https://passets.hola.health/rx-widgets/rx-australia.png\"></span>\r\n </div>\r\n <div class=\"details_mobileNo_input\"><input autocomplete=\"off\" class=\"mdl-textfield__input input_textfield\" type=\"tel\"\r\n id=\"mobile-number\" (keypress)=\"checkMobile($event)\"\r\n placeholder=\"04 123 45678\" [(ngModel)]=\"MobileNo\"\r\n style=\"text-decoration: none; border-bottom: none;\">\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"AddressSendToAddType.toLowerCase() == 'email'\"\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone mobilenumber-input addpatient-details-col \">\r\n <div class=\"mdl-textfield mdl-js-textfield first-row-input\">\r\n <div class=\"details_width_flex\"><label for=\"mobile-number\" class=\"no_txt_clr\">Email\r\n </label></div>\r\n <div class=\"details_flag_number\">\r\n <div class=\"details_mobileNo_input\"><input autocomplete=\"off\" class=\"mdl-textfield__input input_textfield\" type=\"email\"\r\n id=\"mobile-number\"\r\n placeholder=\"text@gmail.com\" [(ngModel)]=\"Email\"\r\n style=\"text-decoration: none; border-bottom: none;\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\"><br>\r\n <div class=\"btn-bottom\">\r\n <div class=\"btn-outer\"><button class=\"mdl-button mdl-js-button rx_record_change_popup_cancel cancel_send\"\r\n (click)=\"close(1)\">Cancel</button>\r\n </div>\r\n <div class=\"btn-send\"><button class=\"mdl-button mdl-js-button rx_record_change_popup_submit\"\r\n (click)=\"close(2)\">Send</button>\r\n </div>\r\n <div class=\"btn-print\"><button (click)=\"close(3)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored rx_record_change_popup_submit rx_popup_margin_mobile_top\">Send\r\n & Print</button></div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"modaldata==2\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <span class=\"new_rx_IncludeBrand_popup_text\">The selected SCID is already dispensed to the patient. You can choose to cease the prescription to\r\n prevent future dispenses to the patient.</span>\r\n </div>\r\n <div class=\"btn-bottom\">\r\n <div class=\"btn-outer\"><button class=\"mdl-button mdl-js-button rx_record_change_popup_cancel cancel_send\"\r\n (click)=\"close(1)\">Cancel</button>\r\n <div class=\"btn-print \" style=\"margin-left: 10px;\"><button (click)=\"close(4)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored rx_record_change_popup_submit rx_popup_margin_mobile_top\">Cease Prescription</button></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <ng-template #rxwidgets> </ng-template>", styles: [".details_width_flex{width:100%;display:flex}.details_width_flex,.details_width_flex label{font-size:15px!important;font-family:Roboto Medium!important;font-weight:600}@media (min-width: 480px) and (max-width: 839px){.mdl-cell--8-col,.mdl-cell--8-col-tablet.mdl-cell--8-col-tablet{width:calc(100% - 16px)}}@media only screen and (max-width: 767px){.new_rx_mobile_fullwidth.mdl-cell{width:calc(100% - 16px)!important}}@media (min-width: 480px) and (max-width: 839px){.mdl-cell--12-col,.mdl-cell--12-col-tablet.mdl-cell--12-col-tablet{width:calc(100% - 16px)}}@media (min-width: 480px) and (max-width: 839px){.mdl-cell{margin:8px;width:calc(50% - 16px)}}.mdl-cell{box-sizing:border-box}@media only screen and (max-width: 767px){.mdl-cell{width:100%!important}}.details_flag_number{border:1.5px solid #d7d7d7;margin-top:5px;padding:6px;flex-direction:row;display:flex;border-radius:4px}div span.addpatient-country-flag img{height:100%;width:100%}.mdl-textfield{position:relative;font-size:16px;display:inline-block;box-sizing:border-box;width:300px;max-width:100%;margin:0;padding:20px 0}div.first-row-input{padding:0!important;width:100%}.details_mobileNo_input{font-size:15px!important;font-family:Roboto Medium!important}.mdl-textfield__input{border:none;border-bottom:1px solid rgba(0,0,0,.12);display:block;font-size:16px;font-family:Helvetica,Arial,sans-serif;margin:0;padding:4px 0;width:100%;background:0 0;text-align:left;color:inherit}.details_mobileNo_input input{font-size:15px!important;font-family:Roboto Medium!important;color:#5a5a5a}.mdl-textfield__input{outline:none}.details_mobileNo_input{padding-left:10px;width:100%}.mdl-button{background:0 0;border:none;border-radius:2px;color:#000;position:relative;height:36px;margin:3;min-width:64px;padding:0 16px;display:inline-block;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:0;overflow:hidden;will-change:box-shadow;transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);outline:none;cursor:pointer;text-decoration:none;text-align:center;line-height:36px;vertical-align:middle}.cancel_send{padding:0 27px!important}.radio_txt{vertical-align:super}.content{margin-bottom:20px;margin-top:10px}.label{color:#000}.text_content{color:red;font-size:16px}.rx-btn{padding:.375rem 0rem!important}.no_txt_clr{color:#000}.img-w{width:40px}.btn-bottom{float:right}.btn-outer,.btn-send{display:inline-block;margin-right:5px}.btn-print{display:inline-block}\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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
1016
1018
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: ConfirmPatientContactDetailsComponent, decorators: [{
|
|
1017
1019
|
type: Component,
|
|
1018
|
-
args: [{ selector: 'app-confirm-patient-contact-details', template: "<div class=\"ReactModalPortal e_prescription_box\">\r\n <div class=\"ReactModal__Overlay ReactModal__Overlay--after-open open_popup\">\r\n <div class=\"ReactModal__Content ReactModal__Content--after-open popup_header e_prescription_popup_inner_box\"\r\n tabindex=\"-1\" role=\"dialog\" aria-modal=\"true\">\r\n <p class=\"rx_record_change_popup\">{{modaldata==1?'Confirm Patient Contact Details':'Cease Prescription'}}</p>\r\n <button type=\"button\" class=\"rx_record_popup_close\" (click)=\"close(1)\">X</button>\r\n <div class=\"content\">\r\n <hr class=\"m-0\">\r\n <div *ngIf=\"modaldata==1\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div class=\"details_width_flex\"><label class=\"label\">Send Token Via<span\r\n class=\"text_content\">*</span></label>\r\n </div>\r\n <div class=\"rx_new_popup_checkbox\">\r\n <div class=\"rx_new_radiobox_button rx-btn rx_radio_overall\">\r\n <label class=\"rx_radio_label\"><input type=\"radio\" class=\"mdl-radio__button custom-radio-button\"\r\n name=\"AddressSendToAddType\" [value]=\"'SMS'\" (click)=\"radioChange(1)\"\r\n [checked]=\"AddressSendToAddType.toLowerCase() == 'sms'\" /><span\r\n class=\"mdl-radio__label radio_txt\">SMS</span></label>\r\n\r\n <label class=\"rx_radio_label\"><input type=\"radio\" [checked]=\"AddressSendToAddType.toLowerCase() == 'email'\"\r\n (click)=\"radioChange(2)\" class=\"mdl-radio__button d-inline radio custom-radio-button\"\r\n name=\"AddressSendToAddType\" [value]=\"'Email'\"><span class=\"mdl-radio__label radio_txt\">E-Mail</span>\r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"AddressSendToAddType.toLowerCase() == 'sms'\"\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone mobilenumber-input addpatient-details-col \">\r\n <div class=\"mdl-textfield mdl-js-textfield first-row-input\">\r\n <div class=\"details_width_flex\"><label for=\"mobile-number\" class=\"no_txt_clr\">Mobile\r\n Number</label></div>\r\n <div class=\"details_flag_number\">\r\n <div class=\"img-w\"><span class=\"addpatient-country-flag\"><img\r\n src=\"https://passets.hola.health/rx-widgets/rx-australia.png\"></span>\r\n </div>\r\n <div class=\"details_mobileNo_input\"><input autocomplete=\"off\" class=\"mdl-textfield__input input_textfield\" type=\"tel\"\r\n id=\"mobile-number\" (keypress)=\"checkMobile($event)\"\r\n placeholder=\"04 123 45678\" [(ngModel)]=\"MobileNo\"\r\n style=\"text-decoration: none; border-bottom: none;\">\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"AddressSendToAddType.toLowerCase() == 'email'\"\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone mobilenumber-input addpatient-details-col \">\r\n <div class=\"mdl-textfield mdl-js-textfield first-row-input\">\r\n <div class=\"details_width_flex\"><label for=\"mobile-number\" class=\"no_txt_clr\">Email\r\n </label></div>\r\n <div class=\"details_flag_number\">\r\n <div class=\"details_mobileNo_input\"><input autocomplete=\"off\" class=\"mdl-textfield__input input_textfield\" type=\"email\"\r\n id=\"mobile-number\"\r\n placeholder=\"text@gmail.com\" [(ngModel)]=\"Email\"\r\n style=\"text-decoration: none; border-bottom: none;\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\"><br>\r\n <div class=\"btn-bottom\">\r\n <div class=\"btn-outer\"><button class=\"mdl-button mdl-js-button rx_record_change_popup_cancel cancel_send\"\r\n (click)=\"close(1)\">Cancel</button>\r\n </div>\r\n <div class=\"btn-send\"><button class=\"mdl-button mdl-js-button rx_record_change_popup_submit\"\r\n (click)=\"close(2)\">Send</button>\r\n </div>\r\n <div class=\"btn-print\"><button (click)=\"close(3)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored rx_record_change_popup_submit rx_popup_margin_mobile_top\">Send\r\n & Print</button></div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"modaldata==2\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <span class=\"new_rx_IncludeBrand_popup_text\">The selected SCID is already dispensed to the patient. You can choose to cease the prescription to\r\n prevent future dispenses to the patient.</span>\r\n </div>\r\n <div class=\"btn-bottom\">\r\n <div class=\"btn-outer\"><button class=\"mdl-button mdl-js-button rx_record_change_popup_cancel cancel_send\"\r\n (click)=\"close(1)\">Cancel</button>\r\n <div class=\"btn-print \" style=\"margin-left: 10px;\"><button (click)=\"close(4)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored rx_record_change_popup_submit rx_popup_margin_mobile_top\">Cease Prescription</button></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <ng-template #rxwidgets> </ng-template>", styles: [".details_width_flex{width:100%;display:flex}.details_width_flex,.details_width_flex label{font-size:15px!important;font-family:Roboto Medium!important;font-weight:600}@media (min-width: 480px) and (max-width: 839px){.mdl-cell--8-col,.mdl-cell--8-col-tablet.mdl-cell--8-col-tablet{width:calc(100% - 16px)}}@media only screen and (max-width: 767px){.new_rx_mobile_fullwidth.mdl-cell{width:calc(100% - 16px)!important}}@media (min-width: 480px) and (max-width: 839px){.mdl-cell--12-col,.mdl-cell--12-col-tablet.mdl-cell--12-col-tablet{width:calc(100% - 16px)}}@media (min-width: 480px) and (max-width: 839px){.mdl-cell{margin:8px;width:calc(50% - 16px)}}.mdl-cell{box-sizing:border-box}@media only screen and (max-width: 767px){.mdl-cell{width:100%!important}}.details_flag_number{border:1.5px solid #d7d7d7;margin-top:5px;padding:6px;flex-direction:row;display:flex;border-radius:4px}div span.addpatient-country-flag img{height:100%;width:100%}.mdl-textfield{position:relative;font-size:16px;display:inline-block;box-sizing:border-box;width:300px;max-width:100%;margin:0;padding:20px 0}div.first-row-input{padding:0!important;width:100%}.details_mobileNo_input{font-size:15px!important;font-family:Roboto Medium!important}.mdl-textfield__input{border:none;border-bottom:1px solid rgba(0,0,0,.12);display:block;font-size:16px;font-family:Helvetica,Arial,sans-serif;margin:0;padding:4px 0;width:100%;background:0 0;text-align:left;color:inherit}.details_mobileNo_input input{font-size:15px!important;font-family:Roboto Medium!important;color:#5a5a5a}.mdl-textfield__input{outline:none}.details_mobileNo_input{padding-left:10px;width:100%}.mdl-button{background:0 0;border:none;border-radius:2px;color:#000;position:relative;height:36px;margin:3;min-width:64px;padding:0 16px;display:inline-block;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:0;overflow:hidden;will-change:box-shadow;transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);outline:none;cursor:pointer;text-decoration:none;text-align:center;line-height:36px;vertical-align:middle}.cancel_send{padding:0 27px!important}.radio_txt{vertical-align:super}.content{margin-bottom:20px;margin-top:10px}.label{color:#000}.text_content{color:red;font-size:16px}.rx-btn{padding:.375rem 0rem!important}.no_txt_clr{color:#000}.img-w{width:40px}.btn-bottom{float:right}.btn-outer,.btn-send{display:inline-block;margin-right:5px}.btn-print{display:inline-block}\n"] }]
|
|
1020
|
+
args: [{ selector: 'app-confirm-patient-contact-details', template: "<div class=\"ReactModalPortal e_prescription_box\">\r\n <div class=\"ReactModal__Overlay ReactModal__Overlay--after-open open_popup\">\r\n <div class=\"ReactModal__Content ReactModal__Content--after-open popup_header e_prescription_popup_inner_box\"\r\n tabindex=\"-1\" role=\"dialog\" aria-modal=\"true\">\r\n <p class=\"rx_record_change_popup\">{{modaldata==1?'Confirm Patient Contact Details':'Cease Prescription'}}</p>\r\n <button type=\"button\" class=\"rx_record_popup_close\" (click)=\"close(1)\">X</button>\r\n <div class=\"content\">\r\n <hr class=\"m-0\">\r\n <div *ngIf=\"modaldata==1\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <div class=\"details_width_flex\"><label class=\"label\">Send Token Via<span\r\n class=\"text_content\">*</span></label>\r\n </div>\r\n <div class=\"rx_new_popup_checkbox\">\r\n <div class=\"rx_new_radiobox_button rx-btn rx_radio_overall\">\r\n <label class=\"rx_radio_label\"><input [disabled]=\"this.commonServices.isScriptToPharmacy==1\" type=\"radio\" class=\"mdl-radio__button custom-radio-button\"\r\n name=\"AddressSendToAddType\" [value]=\"'SMS'\" (click)=\"radioChange(1)\"\r\n [checked]=\"AddressSendToAddType.toLowerCase() == 'sms'\" /><span\r\n class=\"mdl-radio__label radio_txt\">SMS</span></label>\r\n\r\n <label class=\"rx_radio_label\"><input type=\"radio\" [checked]=\"AddressSendToAddType.toLowerCase() == 'email'\"\r\n (click)=\"radioChange(2)\" class=\"mdl-radio__button d-inline radio custom-radio-button\"\r\n name=\"AddressSendToAddType\" [value]=\"'Email'\"><span class=\"mdl-radio__label radio_txt\">E-Mail</span>\r\n </label>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"AddressSendToAddType.toLowerCase() == 'sms'\"\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone mobilenumber-input addpatient-details-col \">\r\n <div class=\"mdl-textfield mdl-js-textfield first-row-input\">\r\n <div class=\"details_width_flex\"><label for=\"mobile-number\" class=\"no_txt_clr\">Mobile\r\n Number</label></div>\r\n <div class=\"details_flag_number\">\r\n <div class=\"img-w\"><span class=\"addpatient-country-flag\"><img\r\n src=\"https://passets.hola.health/rx-widgets/rx-australia.png\"></span>\r\n </div>\r\n <div class=\"details_mobileNo_input\"><input autocomplete=\"off\" class=\"mdl-textfield__input input_textfield\" type=\"tel\"\r\n id=\"mobile-number\" (keypress)=\"checkMobile($event)\"\r\n placeholder=\"04 123 45678\" [(ngModel)]=\"MobileNo\"\r\n style=\"text-decoration: none; border-bottom: none;\">\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"AddressSendToAddType.toLowerCase() == 'email'\"\r\n class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone mobilenumber-input addpatient-details-col \">\r\n <div class=\"mdl-textfield mdl-js-textfield first-row-input\">\r\n <div class=\"details_width_flex\"><label for=\"mobile-number\" class=\"no_txt_clr\">Email\r\n </label></div>\r\n <div class=\"details_flag_number\">\r\n <div class=\"details_mobileNo_input\"><input autocomplete=\"off\" class=\"mdl-textfield__input input_textfield\" type=\"email\"\r\n id=\"mobile-number\"\r\n placeholder=\"text@gmail.com\" [(ngModel)]=\"Email\"\r\n style=\"text-decoration: none; border-bottom: none;\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n <hr class=\"m-0\"><br>\r\n <div class=\"btn-bottom\">\r\n <div class=\"btn-outer\"><button class=\"mdl-button mdl-js-button rx_record_change_popup_cancel cancel_send\"\r\n (click)=\"close(1)\">Cancel</button>\r\n </div>\r\n <div class=\"btn-send\"><button class=\"mdl-button mdl-js-button rx_record_change_popup_submit\"\r\n (click)=\"close(2)\">Send</button>\r\n </div>\r\n <div class=\"btn-print\"><button (click)=\"close(3)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored rx_record_change_popup_submit rx_popup_margin_mobile_top\">Send\r\n & Print</button></div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"modaldata==2\">\r\n <div class=\"mdl-cell mdl-cell--12-col mdl-cell--8-col-tablet mdl-cell--4-col-phone new_rx_mobile_fullwidth\">\r\n <span class=\"new_rx_IncludeBrand_popup_text\">The selected SCID is already dispensed to the patient. You can choose to cease the prescription to\r\n prevent future dispenses to the patient.</span>\r\n </div>\r\n <div class=\"btn-bottom\">\r\n <div class=\"btn-outer\"><button class=\"mdl-button mdl-js-button rx_record_change_popup_cancel cancel_send\"\r\n (click)=\"close(1)\">Cancel</button>\r\n <div class=\"btn-print \" style=\"margin-left: 10px;\"><button (click)=\"close(4)\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored rx_record_change_popup_submit rx_popup_margin_mobile_top\">Cease Prescription</button></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <ng-template #rxwidgets> </ng-template>", styles: [".details_width_flex{width:100%;display:flex}.details_width_flex,.details_width_flex label{font-size:15px!important;font-family:Roboto Medium!important;font-weight:600}@media (min-width: 480px) and (max-width: 839px){.mdl-cell--8-col,.mdl-cell--8-col-tablet.mdl-cell--8-col-tablet{width:calc(100% - 16px)}}@media only screen and (max-width: 767px){.new_rx_mobile_fullwidth.mdl-cell{width:calc(100% - 16px)!important}}@media (min-width: 480px) and (max-width: 839px){.mdl-cell--12-col,.mdl-cell--12-col-tablet.mdl-cell--12-col-tablet{width:calc(100% - 16px)}}@media (min-width: 480px) and (max-width: 839px){.mdl-cell{margin:8px;width:calc(50% - 16px)}}.mdl-cell{box-sizing:border-box}@media only screen and (max-width: 767px){.mdl-cell{width:100%!important}}.details_flag_number{border:1.5px solid #d7d7d7;margin-top:5px;padding:6px;flex-direction:row;display:flex;border-radius:4px}div span.addpatient-country-flag img{height:100%;width:100%}.mdl-textfield{position:relative;font-size:16px;display:inline-block;box-sizing:border-box;width:300px;max-width:100%;margin:0;padding:20px 0}div.first-row-input{padding:0!important;width:100%}.details_mobileNo_input{font-size:15px!important;font-family:Roboto Medium!important}.mdl-textfield__input{border:none;border-bottom:1px solid rgba(0,0,0,.12);display:block;font-size:16px;font-family:Helvetica,Arial,sans-serif;margin:0;padding:4px 0;width:100%;background:0 0;text-align:left;color:inherit}.details_mobileNo_input input{font-size:15px!important;font-family:Roboto Medium!important;color:#5a5a5a}.mdl-textfield__input{outline:none}.details_mobileNo_input{padding-left:10px;width:100%}.mdl-button{background:0 0;border:none;border-radius:2px;color:#000;position:relative;height:36px;margin:3;min-width:64px;padding:0 16px;display:inline-block;font-family:Roboto,Helvetica,Arial,sans-serif;font-size:15px;font-weight:700;text-transform:uppercase;letter-spacing:0;overflow:hidden;will-change:box-shadow;transition:box-shadow .2s cubic-bezier(.4,0,1,1),background-color .2s cubic-bezier(.4,0,.2,1),color .2s cubic-bezier(.4,0,.2,1);outline:none;cursor:pointer;text-decoration:none;text-align:center;line-height:36px;vertical-align:middle}.cancel_send{padding:0 27px!important}.radio_txt{vertical-align:super}.content{margin-bottom:20px;margin-top:10px}.label{color:#000}.text_content{color:red;font-size:16px}.rx-btn{padding:.375rem 0rem!important}.no_txt_clr{color:#000}.img-w{width:40px}.btn-bottom{float:right}.btn-outer,.btn-send{display:inline-block;margin-right:5px}.btn-print{display:inline-block}\n"] }]
|
|
1019
1021
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: CommonServices }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { closeEvent: [{
|
|
1020
1022
|
type: Output
|
|
1021
1023
|
}], submitEvent: [{
|
|
@@ -1542,10 +1544,12 @@ class RxComponent {
|
|
|
1542
1544
|
this.mediSearchValue = '';
|
|
1543
1545
|
this.InstructionDescription = '';
|
|
1544
1546
|
this.searchMedicineLoader = false;
|
|
1547
|
+
this.favMedicineLoader = false;
|
|
1545
1548
|
this.searchedMedicineList = [];
|
|
1546
1549
|
this.selectedMedicineListOrginal = [];
|
|
1547
1550
|
this.onclickMedicineLoader = false;
|
|
1548
1551
|
this.rxOnlyPBS = false;
|
|
1552
|
+
this.rxPrivate = false;
|
|
1549
1553
|
this.restrictions = null;
|
|
1550
1554
|
this.isShowRestrictions = false;
|
|
1551
1555
|
this.prescribeAS_PBS = true;
|
|
@@ -1594,6 +1598,7 @@ class RxComponent {
|
|
|
1594
1598
|
this.isPrescribeAsPrivateOnly = false;
|
|
1595
1599
|
this.tempAuthorityFormNo = "";
|
|
1596
1600
|
this.clientId = "";
|
|
1601
|
+
this.showFavouriteMed = false;
|
|
1597
1602
|
this.handleClickOutside = (event) => {
|
|
1598
1603
|
try {
|
|
1599
1604
|
if (this.wrapperRef != null && this.wrapperRef != undefined && this.wrapperRef.nativeElement &&
|
|
@@ -1869,6 +1874,7 @@ class RxComponent {
|
|
|
1869
1874
|
this.changedetect.detectChanges();
|
|
1870
1875
|
this.getAllMimsValue();
|
|
1871
1876
|
this.getInstructionValues();
|
|
1877
|
+
this.getFavourtiesList();
|
|
1872
1878
|
if (this.commonServices.editPrescription) {
|
|
1873
1879
|
this.setEditValues(this.commonServices.rxDetails);
|
|
1874
1880
|
}
|
|
@@ -2536,6 +2542,7 @@ class RxComponent {
|
|
|
2536
2542
|
MedicineDropdownList() {
|
|
2537
2543
|
try {
|
|
2538
2544
|
this.selectedMedicineDropdown = true;
|
|
2545
|
+
// this.showFavouriteMed = false;
|
|
2539
2546
|
document.addEventListener('mousedown', this.handleClickOutside);
|
|
2540
2547
|
this.changedetect.detectChanges();
|
|
2541
2548
|
}
|
|
@@ -2645,6 +2652,8 @@ class RxComponent {
|
|
|
2645
2652
|
this.commonServices.isFetching = true;
|
|
2646
2653
|
this.SecondarySearchSpinner = false;
|
|
2647
2654
|
this.PrimarySearchSpinner = false;
|
|
2655
|
+
this.commonServices.favouriteMedicineList = [];
|
|
2656
|
+
this.showFavouriteMed = false;
|
|
2648
2657
|
this.changedetect.detectChanges();
|
|
2649
2658
|
this.mediSearchValue = e.target.value;
|
|
2650
2659
|
if (e.target.value.trim().length < 3) {
|
|
@@ -2904,6 +2913,10 @@ class RxComponent {
|
|
|
2904
2913
|
if (!this.commonServices.IsNullOrEmpty(this.selectedMedicineListOrginal))
|
|
2905
2914
|
this.rxOnlyPBSFilter();
|
|
2906
2915
|
}
|
|
2916
|
+
else if (this.rxPrivate) {
|
|
2917
|
+
if (!this.commonServices.IsNullOrEmpty(this.selectedMedicineListOrginal))
|
|
2918
|
+
this.rxOnlyNONPBSFilter();
|
|
2919
|
+
}
|
|
2907
2920
|
else {
|
|
2908
2921
|
this.rxOnlyPBS = false;
|
|
2909
2922
|
this.commonServices.selectedMedicineList = this.selectedMedicineListOrginal;
|
|
@@ -2961,6 +2974,30 @@ class RxComponent {
|
|
|
2961
2974
|
return "mdl-grid new_rx_popup_box";
|
|
2962
2975
|
}
|
|
2963
2976
|
}
|
|
2977
|
+
getClassForFavouriteMed(med) {
|
|
2978
|
+
try {
|
|
2979
|
+
console.log("quantity", (this.commonServices.selectedFormulation.pbsType != undefined && this.commonServices.selectedFormulation.pbsType != null && this.commonServices.selectedFormulation.pbsType.toLowerCase() == "non pbs"
|
|
2980
|
+
? (this.commonServices.selectedFormulation.numberOfPack + "x" + this.commonServices.selectedFormulation.unitPerPack)
|
|
2981
|
+
: this.commonServices.selectedFormulation.maxQtyUnits).toString());
|
|
2982
|
+
var isSelectedFormulation;
|
|
2983
|
+
isSelectedFormulation = this.commonServices.selectedFormulation != null &&
|
|
2984
|
+
this.commonServices.selectedFormulation.productId != null &&
|
|
2985
|
+
med.productId == this.commonServices.selectedFormulation.productId &&
|
|
2986
|
+
(med.pbsCode != null ? med.pbsCode : "") == (this.commonServices.selectedFormulation.pbsCode != null ? this.commonServices.selectedFormulation.pbsCode : "") &&
|
|
2987
|
+
med.productName == this.commonServices.selectedFormulation.productName &&
|
|
2988
|
+
med.repeats == this.commonServices.selectedFormulation.repeats &&
|
|
2989
|
+
med.quantity == (this.commonServices.selectedFormulation.pbsType != undefined && this.commonServices.selectedFormulation.pbsType != null && this.commonServices.selectedFormulation.pbsType.toLowerCase() == "non pbs"
|
|
2990
|
+
? (this.commonServices.selectedFormulation.numberOfPack + "x" + this.commonServices.selectedFormulation.unitPerPack)
|
|
2991
|
+
: this.commonServices.selectedFormulation.maxQtyUnits).toString();
|
|
2992
|
+
return isSelectedFormulation
|
|
2993
|
+
? 'mdl-grid new_rx_popup_box RX_highlight'
|
|
2994
|
+
: 'mdl-grid new_rx_popup_box';
|
|
2995
|
+
}
|
|
2996
|
+
catch (ex) {
|
|
2997
|
+
this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "getClassForMed");
|
|
2998
|
+
return "mdl-grid new_rx_popup_box";
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
2964
3001
|
IsSelectFormulation(med) {
|
|
2965
3002
|
var _a, _b, _c, _d;
|
|
2966
3003
|
try {
|
|
@@ -3579,6 +3616,45 @@ class RxComponent {
|
|
|
3579
3616
|
this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "selectFormulation");
|
|
3580
3617
|
}
|
|
3581
3618
|
}
|
|
3619
|
+
//selected Favourite medicine
|
|
3620
|
+
selectFavouriteFormulation(med, index) {
|
|
3621
|
+
try {
|
|
3622
|
+
this.commonServices.selectedFormulation = med;
|
|
3623
|
+
this.commonServices.clearMedicalPrescriptionDataOnchangeofMedicine(med);
|
|
3624
|
+
if (!this.commonServices.isMedicineRestrict) {
|
|
3625
|
+
this.commonServices.isS8WarningNext = true;
|
|
3626
|
+
this.restrictions = med.Restrictions && med.Restrictions.length != 0 ? med.Restrictions[0] : null;
|
|
3627
|
+
this.commonServices.lemi = med.aip != null ? med.aip.lemi : false;
|
|
3628
|
+
this.commonServices.lmbc = med.aip != null ? med.aip.lmbc : false;
|
|
3629
|
+
this.commonServices.isBrandName = med.aip != null ? med.aip.lemi : false;
|
|
3630
|
+
if (med.Restrictions && med.Restrictions.length != 0) {
|
|
3631
|
+
var restrictionLists = med.Restrictions.filter((e) => e.restrictionPreview != null &&
|
|
3632
|
+
e.restrictionText != null &&
|
|
3633
|
+
e.restrictionPreview != '' &&
|
|
3634
|
+
e.restrictionText != '');
|
|
3635
|
+
if (restrictionLists.length > 0) {
|
|
3636
|
+
this.isShowRestrictions = true;
|
|
3637
|
+
}
|
|
3638
|
+
else {
|
|
3639
|
+
this.isShowRestrictions = false;
|
|
3640
|
+
}
|
|
3641
|
+
}
|
|
3642
|
+
else {
|
|
3643
|
+
this.isShowRestrictions = false;
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3646
|
+
this.commonServices.isFetching = false;
|
|
3647
|
+
this.isRtpmNext = true;
|
|
3648
|
+
this.commonServices.authorityFormNo = this.getAddAuthValue(this.tempAuthorityFormNo);
|
|
3649
|
+
this.commonServices.rxEndDateCalculater();
|
|
3650
|
+
this.enablePrescribeAs(med);
|
|
3651
|
+
this.commonServices.selectedBrandFormulation = null;
|
|
3652
|
+
this.changedetect.detectChanges();
|
|
3653
|
+
}
|
|
3654
|
+
catch (ex) {
|
|
3655
|
+
this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "selectFavouriteFormulation");
|
|
3656
|
+
}
|
|
3657
|
+
}
|
|
3582
3658
|
getBrandName(selectedFormulation) {
|
|
3583
3659
|
var _a;
|
|
3584
3660
|
try {
|
|
@@ -4346,7 +4422,17 @@ class RxComponent {
|
|
|
4346
4422
|
this.commonServices.rxemailId = "";
|
|
4347
4423
|
this.commonServices.isPrintAvailable = true;
|
|
4348
4424
|
this.changedetect.detectChanges();
|
|
4349
|
-
this.
|
|
4425
|
+
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] : '') : "";
|
|
4426
|
+
if (!this.commonServices.isMedicineRestrict && scheduleNumber.toLowerCase() == 's8' && this.commonServices.physicianDetails.isPasswordCheck) {
|
|
4427
|
+
this.commonServices.dialogopen(PasswordComponent, this.content, 2).subscribe((res) => {
|
|
4428
|
+
if (res.responseCode == 0) {
|
|
4429
|
+
this.prescribeMed();
|
|
4430
|
+
}
|
|
4431
|
+
});
|
|
4432
|
+
}
|
|
4433
|
+
else {
|
|
4434
|
+
this.prescribeMed();
|
|
4435
|
+
}
|
|
4350
4436
|
}
|
|
4351
4437
|
}
|
|
4352
4438
|
}
|
|
@@ -4405,9 +4491,9 @@ class RxComponent {
|
|
|
4405
4491
|
this.commonServices.isPrintAvailable = true;
|
|
4406
4492
|
this.commonServices.AddressSendToAddType = "SMS";
|
|
4407
4493
|
this.changedetect.detectChanges();
|
|
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] : '') : "";
|
|
4494
|
+
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
4495
|
if (!this.commonServices.isMedicineRestrict && scheduleNumber.toLowerCase() == 's8' && this.commonServices.physicianDetails.isPasswordCheck) {
|
|
4410
|
-
this.commonServices.dialogopen(PasswordComponent, this.content).subscribe((res) => {
|
|
4496
|
+
this.commonServices.dialogopen(PasswordComponent, this.content, 2).subscribe((res) => {
|
|
4411
4497
|
if (res.responseCode == 0) {
|
|
4412
4498
|
this.prescribeMed();
|
|
4413
4499
|
}
|
|
@@ -5878,12 +5964,247 @@ class RxComponent {
|
|
|
5878
5964
|
return false;
|
|
5879
5965
|
}
|
|
5880
5966
|
}
|
|
5967
|
+
addToFavourites() {
|
|
5968
|
+
var _a, _b, _c;
|
|
5969
|
+
const isInFavourites = this.isCurrentMedicineInFavourites();
|
|
5970
|
+
const isAdding = !isInFavourites;
|
|
5971
|
+
var physicianDetails = this.commonServices.physicianDetails;
|
|
5972
|
+
var body = {
|
|
5973
|
+
userIdString: physicianDetails.userId,
|
|
5974
|
+
productId: this.commonServices.selectedFormulation.productId,
|
|
5975
|
+
productName: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.productName) ? this.commonServices.selectedFormulation.productName : "",
|
|
5976
|
+
quantity: !this.commonServices.IsNullOrEmpty((_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.pbsType) && this.commonServices.selectedFormulation.pbsType == "non PBS" ? (this.commonServices.selectedFormulation.numberOfPack + "x" + this.commonServices.selectedFormulation.unitPerPack) : this.commonServices.selectedFormulation.maxQtyUnits,
|
|
5977
|
+
repeats: this.commonServices.selectedFormulation.repeats,
|
|
5978
|
+
restriction: !this.commonServices.isMedicineRestrict ? (this.commonServices.selectedFormulation.Restrictions != null && this.commonServices.selectedFormulation.Restrictions != ""
|
|
5979
|
+
? this.commonServices.selectedFormulation.pbsType + " (" + this.getRestrictions(this.commonServices.selectedFormulation.Restrictions) + ") "
|
|
5980
|
+
: this.commonServices.selectedFormulation.pbsType) : "",
|
|
5981
|
+
genericName: !this.commonServices.IsNullOrEmpty(this.commonServices.selectedFormulation.genericName) ? this.commonServices.selectedFormulation.genericName : "",
|
|
5982
|
+
pbsCode: !this.commonServices.IsNullOrEmpty((_b = this.commonServices.selectedFormulation) === null || _b === void 0 ? void 0 : _b.pbsCode) ? (_c = this.commonServices.selectedFormulation) === null || _c === void 0 ? void 0 : _c.pbsCode : "",
|
|
5983
|
+
active: isAdding,
|
|
5984
|
+
restrictedMedicine: this.commonServices.isMedicineRestrict
|
|
5985
|
+
};
|
|
5986
|
+
this.apiService.Post(body, config.PHYSICIAN.ADD_FAVOURITE_MEDICINE).subscribe((res) => {
|
|
5987
|
+
try {
|
|
5988
|
+
if (this.commonServices.IsNullOrEmpty(res)) {
|
|
5989
|
+
this.changedetect.detectChanges();
|
|
5990
|
+
this.commonServices.setlogvalue(false, "", "", "RxComponent", "AddFavourites", body);
|
|
5991
|
+
this.commonServices.toastopen(errorconfig.error_64.message, 'error', errorconfig.error_64.code);
|
|
5992
|
+
this.commonServices.errorResponse(errorconfig.error_64.code, errorconfig.error_64.message);
|
|
5993
|
+
return;
|
|
5994
|
+
}
|
|
5995
|
+
if (res.response_code == 0) {
|
|
5996
|
+
this.commonServices.favouriteMedicineList = res.favourtiesList || [];
|
|
5997
|
+
this.commonServices.originalFavouriteMedicineList = res.favourtiesList || [];
|
|
5998
|
+
if (!isAdding) {
|
|
5999
|
+
this.commonServices.clearMedicalPrescriptionFavouriteData();
|
|
6000
|
+
this.commonServices.selectedFormulation = null;
|
|
6001
|
+
if (!this.commonServices.isMedicineRestrict) {
|
|
6002
|
+
this.commonServices.selectedMedicineList = [];
|
|
6003
|
+
}
|
|
6004
|
+
this.showFavouriteMed = true;
|
|
6005
|
+
if (!res.favourtiesList || res.favourtiesList.length === 0) {
|
|
6006
|
+
this.commonServices.toastopen("No more favourites remaining. You can add medicines to favourites from the search results.", "info");
|
|
6007
|
+
}
|
|
6008
|
+
}
|
|
6009
|
+
this.commonServices.setlogvalue(false, res.response_message, res.response_message, "RxComponent", "AddFavourites", body);
|
|
6010
|
+
this.commonServices.toastopen(res.response_message, 'success');
|
|
6011
|
+
}
|
|
6012
|
+
else {
|
|
6013
|
+
this.commonServices.setlogvalue(false, res.response_message, res.response_message, "RxComponent", "AddFavourites", body);
|
|
6014
|
+
this.commonServices.toastopen(res.response_message, 'error', res.error_code);
|
|
6015
|
+
this.commonServices.errorResponse(res.error_code, res.response_message);
|
|
6016
|
+
this.selectInstructionDropdownList = false;
|
|
6017
|
+
this.selectInstructionDropdown = true;
|
|
6018
|
+
}
|
|
6019
|
+
this.changedetect.detectChanges();
|
|
6020
|
+
}
|
|
6021
|
+
catch (ex) {
|
|
6022
|
+
this.changedetect.detectChanges();
|
|
6023
|
+
this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "AddFavourites", body);
|
|
6024
|
+
}
|
|
6025
|
+
}, error => {
|
|
6026
|
+
this.commonServices.setlogvalue(false, error.message, error.stack, "RxComponent", "AddFavourites", body);
|
|
6027
|
+
this.commonServices.toastopen(errorconfig.error_64.message + error, "error", errorconfig.error_64.code);
|
|
6028
|
+
this.commonServices.errorResponse(errorconfig.error_64.code, errorconfig.error_64.message + error);
|
|
6029
|
+
});
|
|
6030
|
+
}
|
|
6031
|
+
getFavourtiesList() {
|
|
6032
|
+
var payload = {};
|
|
6033
|
+
try {
|
|
6034
|
+
payload = this.commonServices.physicianDetails.userId;
|
|
6035
|
+
this.apiService.Get(config.PHYSICIAN.GET_FAVOURITE_MEDICINE_LIST + "?userIdString=" + payload + "&restrictedMedicine=" + this.commonServices.isMedicineRestrict).subscribe((res) => {
|
|
6036
|
+
try {
|
|
6037
|
+
if (this.commonServices.IsNullOrEmpty(res)) {
|
|
6038
|
+
this.commonServices.setlogvalue(false, "", "", "RxComponent", "getFavourtiesList", payload);
|
|
6039
|
+
this.commonServices.toastopen(errorconfig.error_64.message, 'error', errorconfig.error_64.code);
|
|
6040
|
+
this.commonServices.errorResponse(errorconfig.error_64.code, errorconfig.error_64.message);
|
|
6041
|
+
return;
|
|
6042
|
+
}
|
|
6043
|
+
if (res.response_code == 0) {
|
|
6044
|
+
this.commonServices.favouriteMedicineList = res.favouritesList;
|
|
6045
|
+
this.commonServices.originalFavouriteMedicineList = res.favouritesList;
|
|
6046
|
+
this.changedetect.detectChanges();
|
|
6047
|
+
}
|
|
6048
|
+
else {
|
|
6049
|
+
this.commonServices.favouriteMedicineList = [];
|
|
6050
|
+
this.commonServices.originalFavouriteMedicineList = [];
|
|
6051
|
+
this.changedetect.detectChanges();
|
|
6052
|
+
this.commonServices.setlogvalue(false, res.response_message, res.response_message, "RxComponent", "getFavourtiesList", payload);
|
|
6053
|
+
this.commonServices.toastopen(res.response_message, 'error', res.error_code);
|
|
6054
|
+
this.commonServices.errorResponse(res.error_code, res.response_message);
|
|
6055
|
+
}
|
|
6056
|
+
}
|
|
6057
|
+
catch (ex) {
|
|
6058
|
+
this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "getFavourtiesList", payload);
|
|
6059
|
+
}
|
|
6060
|
+
}, error => {
|
|
6061
|
+
this.commonServices.setlogvalue(false, error.message, error.stack, "RxComponent", "getFavourtiesList", payload);
|
|
6062
|
+
this.commonServices.toastopen(errorconfig.error_65.message + error, "error", errorconfig.error_65.code);
|
|
6063
|
+
this.commonServices.errorResponse(errorconfig.error_65.code, errorconfig.error_65.message + error);
|
|
6064
|
+
});
|
|
6065
|
+
}
|
|
6066
|
+
catch (ex) {
|
|
6067
|
+
this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "getFavourtiesList", payload);
|
|
6068
|
+
}
|
|
6069
|
+
}
|
|
6070
|
+
showFavourties() {
|
|
6071
|
+
this.showFavouriteMed = !this.showFavouriteMed;
|
|
6072
|
+
if (!this.commonServices.isMedicineRestrict) {
|
|
6073
|
+
if (!this.commonServices.IsNullOrEmpty(this.commonServices.MIMSPrimaryapi)) {
|
|
6074
|
+
this.commonServices.MIMSPrimaryapi.unsubscribe();
|
|
6075
|
+
}
|
|
6076
|
+
if (!this.commonServices.IsNullOrEmpty(this.commonServices.MIMSSecondaryapi)) {
|
|
6077
|
+
this.commonServices.MIMSSecondaryapi.unsubscribe();
|
|
6078
|
+
}
|
|
6079
|
+
if (!this.showFavouriteMed) {
|
|
6080
|
+
this.commonServices.selectedFormulation = null;
|
|
6081
|
+
this.commonServices.selectedMedicineList = [];
|
|
6082
|
+
this.selectedMedicineListOrginal = [];
|
|
6083
|
+
this.commonServices.favouriteMedicineList = [];
|
|
6084
|
+
}
|
|
6085
|
+
else {
|
|
6086
|
+
this.commonServices.favouriteMedicineList = this.commonServices.originalFavouriteMedicineList;
|
|
6087
|
+
}
|
|
6088
|
+
this.commonServices.clearMedicalPrescriptionData();
|
|
6089
|
+
}
|
|
6090
|
+
else {
|
|
6091
|
+
this.commonServices.clearMedicalPrescriptionFavouriteData();
|
|
6092
|
+
}
|
|
6093
|
+
this.commonServices.selectedFormulation = null;
|
|
6094
|
+
this.searchMedicineLoader = false;
|
|
6095
|
+
this.PrimarySearchSpinner = false;
|
|
6096
|
+
this.searchMedicinesLength = 0;
|
|
6097
|
+
this.commonServices.searchApiStopFlag = true;
|
|
6098
|
+
this.onclickMedicineLoader = false;
|
|
6099
|
+
this.SecondarySearchSpinner = false;
|
|
6100
|
+
this.searchedMedicineList = [];
|
|
6101
|
+
this.commonServices.mediSearchValue = "";
|
|
6102
|
+
this.mediSearchValue = "";
|
|
6103
|
+
this.changedetect.detectChanges();
|
|
6104
|
+
}
|
|
6105
|
+
//FavouriteMedicine Loading
|
|
6106
|
+
favouriteMedicineLoading(rxList) {
|
|
6107
|
+
var payload = {};
|
|
6108
|
+
try {
|
|
6109
|
+
if (!this.commonServices.isMedicineRestrict) {
|
|
6110
|
+
rxList.pbsCode = rxList.pbsCode != null ? rxList.pbsCode : "";
|
|
6111
|
+
payload = {
|
|
6112
|
+
request_type: "parameter",
|
|
6113
|
+
productId: rxList.productId,
|
|
6114
|
+
pbsCode: rxList.pbsCode,
|
|
6115
|
+
rxId: 0
|
|
6116
|
+
};
|
|
6117
|
+
this.favMedicineLoader = true;
|
|
6118
|
+
this.changedetect.detectChanges();
|
|
6119
|
+
this.apiService.Get(config.PHYSICIAN.GET_MED_DET_BY_ID + "?productId=" + rxList.productId + "&pbsCode=" + (this.commonServices.isMedicineRestrict ? rxList.pbsCode : "") + "&rxId=" + 0).subscribe((res) => {
|
|
6120
|
+
try {
|
|
6121
|
+
if (this.commonServices.IsNullOrEmpty(res)) {
|
|
6122
|
+
this.favMedicineLoader = false;
|
|
6123
|
+
this.changedetect.detectChanges();
|
|
6124
|
+
this.commonServices.setlogvalue(false, "", "", "RxComponent", "setEditValues", this.responseData.payload);
|
|
6125
|
+
this.commonServices.toastopen(errorconfig.error_64.message, 'error', errorconfig.error_64.code);
|
|
6126
|
+
this.commonServices.errorResponse(errorconfig.error_64.code, errorconfig.error_64.message);
|
|
6127
|
+
return;
|
|
6128
|
+
}
|
|
6129
|
+
if (res.response_code == 0) {
|
|
6130
|
+
this.favMedicineLoader = false;
|
|
6131
|
+
var Med = [];
|
|
6132
|
+
Med.push(res.response);
|
|
6133
|
+
this.commonServices.selectedMedicineList = Med;
|
|
6134
|
+
this.selectedMedicineListOrginal = Med;
|
|
6135
|
+
this.commonServices.selectedFormulation = Med;
|
|
6136
|
+
this.commonServices.clearMedicalPrescriptionDataOnchangeofMedicine(Med);
|
|
6137
|
+
this.selectFormulation(res.response, 0);
|
|
6138
|
+
this.commonServices.isFetching = false;
|
|
6139
|
+
this.commonServices.mediSearchValue = "";
|
|
6140
|
+
this.mediSearchValue = "";
|
|
6141
|
+
this.searchedMedicineList = [];
|
|
6142
|
+
this.page = 1;
|
|
6143
|
+
this.rxOnlyPBS = false;
|
|
6144
|
+
}
|
|
6145
|
+
else {
|
|
6146
|
+
this.favMedicineLoader = false;
|
|
6147
|
+
this.changedetect.detectChanges();
|
|
6148
|
+
this.commonServices.setlogvalue(false, res.response_message, res.response_message, "RxComponent", "setEditValues", payload);
|
|
6149
|
+
this.commonServices.toastopen(res.response_message, 'error', res.error_code);
|
|
6150
|
+
this.commonServices.errorResponse(res.error_code, res.response_message);
|
|
6151
|
+
}
|
|
6152
|
+
}
|
|
6153
|
+
catch (ex) {
|
|
6154
|
+
this.favMedicineLoader = false;
|
|
6155
|
+
this.changedetect.detectChanges();
|
|
6156
|
+
this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "setEditValues", payload);
|
|
6157
|
+
}
|
|
6158
|
+
}, error => {
|
|
6159
|
+
this.favMedicineLoader = false;
|
|
6160
|
+
this.changedetect.detectChanges();
|
|
6161
|
+
this.commonServices.setlogvalue(false, error.message, error.stack, "RxComponent", "setEditValues", payload);
|
|
6162
|
+
this.commonServices.toastopen(errorconfig.error_65.message + error, "error", errorconfig.error_65.code);
|
|
6163
|
+
this.commonServices.errorResponse(errorconfig.error_65.code, errorconfig.error_65.message + error);
|
|
6164
|
+
});
|
|
6165
|
+
}
|
|
6166
|
+
else {
|
|
6167
|
+
this.favMedicineLoader = false;
|
|
6168
|
+
var selecteddata = null;
|
|
6169
|
+
if (!this.commonServices.IsNullOrEmpty(rxList === null || rxList === void 0 ? void 0 : rxList.productId)) {
|
|
6170
|
+
selecteddata = this.commonServices.selectedMedicineList.filter((x) => x.productId == Number(rxList.productId));
|
|
6171
|
+
// selecteddata = this.commonServices.selectedMedicineList.splice(index, 1);
|
|
6172
|
+
}
|
|
6173
|
+
this.commonServices.selectedFormulation = selecteddata[0];
|
|
6174
|
+
this.commonServices.clearMedicalPrescriptionDataOnchangeofMedicine(selecteddata[0]);
|
|
6175
|
+
this.changedetect.detectChanges();
|
|
6176
|
+
this.commonServices.isFetching = false;
|
|
6177
|
+
this.isRtpmNext = true;
|
|
6178
|
+
this.commonServices.authorityFormNo = this.getAddAuthValue(this.tempAuthorityFormNo);
|
|
6179
|
+
this.commonServices.rxEndDateCalculater();
|
|
6180
|
+
this.enablePrescribeAs(selecteddata[0]);
|
|
6181
|
+
this.commonServices.selectedBrandFormulation = null;
|
|
6182
|
+
this.changedetect.detectChanges();
|
|
6183
|
+
}
|
|
6184
|
+
}
|
|
6185
|
+
catch (ex) {
|
|
6186
|
+
this.favMedicineLoader = false;
|
|
6187
|
+
this.changedetect.detectChanges();
|
|
6188
|
+
this.commonServices.setlogvalue(false, ex.message, ex.stack, "RxComponent", "setEditValues", payload);
|
|
6189
|
+
}
|
|
6190
|
+
}
|
|
6191
|
+
isCurrentMedicineInFavourites() {
|
|
6192
|
+
if (!this.commonServices.selectedFormulation || !this.commonServices.favouriteMedicineList || this.commonServices.favouriteMedicineList.length === 0) {
|
|
6193
|
+
return false;
|
|
6194
|
+
}
|
|
6195
|
+
return this.commonServices.favouriteMedicineList.some((favMed) => {
|
|
6196
|
+
var _a;
|
|
6197
|
+
return favMed.productId.toString() === this.commonServices.selectedFormulation.productId.toString() &&
|
|
6198
|
+
(!this.commonServices.IsNullOrEmpty(favMed.pbsCode) ? favMed.pbsCode : "") === (!this.commonServices.IsNullOrEmpty((_a = this.commonServices.selectedFormulation) === null || _a === void 0 ? void 0 : _a.pbsCode) ? this.commonServices.selectedFormulation.pbsCode : "") &&
|
|
6199
|
+
favMed.productName === this.commonServices.selectedFormulation.productName;
|
|
6200
|
+
});
|
|
6201
|
+
}
|
|
5881
6202
|
}
|
|
5882
6203
|
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 });
|
|
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" }] });
|
|
6204
|
+
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\r\n (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'\" *ngIf=\"abortBtnFlag\" [disabled]=\"abortdisable\"\r\n (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--2-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 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=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"rxPrivate\"\r\n (change)=\"onCheckboxChange()\" value=\"Private\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\">Private</span></label>\r\n </div>\r\n </div>\r\n <!-- <div\r\n class=\"mdl-cell mdl-cell--2-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=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"rxPrivate\"\r\n (change)=\"onCheckboxChange()\" value=\"Private\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\">Private</span></label>\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--6-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-cell mdl-cell--12-col\" style=\"margin-left: 8px;\">\r\n <span class=\"favourites-toggle-link\" (click)=\"$event.stopPropagation(); showFavourties()\">\r\n {{ showFavouriteMed ? 'Hide favourites' : 'Show favourites' }}\r\n </span>\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=\"!showFavouriteMed\">\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\r\n *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 *ngIf=\"showFavouriteMed\">\r\n\r\n <div *ngIf=\"onclickMedicineLoader\" class=\"loader m-v4\"></div>\r\n <div *ngIf=\"!onclickMedicineLoader\">\r\n <div *ngIf=\"\r\n commonServices.favouriteMedicineList == null ||\r\n commonServices.favouriteMedicineList.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.favouriteMedicineList;\r\n index as i\r\n \">\r\n\r\n <div class=\"mdl-grid new_rx_popup_box\" [class]=\"getClassForFavouriteMed(med)\"\r\n (click)=\"favouriteMedicineLoading(med)\">\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.quantity}}\r\n </span><span><b>Rpts:</b> {{ med.repeats }}</span>\r\n <span *ngIf=\"!commonServices.isMedicineRestrict\"><b>Restriction:</b>\r\n {{med.restriction}}\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 <div *ngIf=\"favMedicineLoader\" class=\"loader\"></div>\r\n <div *ngIf=\"!favMedicineLoader\"\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\"\r\n [innerHTML]=\"commonServices.selectedFormulation != null&&commonServices.selectedFormulation.productName!=undefined && commonServices.selectedFormulation.productName!=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\r\n [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 &&\r\n 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 &&\r\n commonServices.selectedFormulation.pbsType!=null? commonServices.selectedFormulation.pbsType :\r\n '' }}\r\n {{\r\n commonServices.selectedFormulation.pbsCode!=undefined &&\r\n 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\r\n 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\" [style.display]=\"isCurrentMedicineInFavourites() ? 'inline-flex' : null\"\r\n [style.width]=\"isCurrentMedicineInFavourites() ? 'max-content' : null\" *ngIf=\"commonServices.selectedFormulation != null\">\r\n <div style=\"display: inline-block;margin-right: 10px;\" class=\"new_rx_popup_header_box_col\">\r\n <button *ngIf=\"commonServices.selectedFormulation != null\" (click)=\"addToFavourites()\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored\"\r\n [class.nextButton]=\"!isCurrentMedicineInFavourites()\"\r\n [class.rmfavbutton]=\"isCurrentMedicineInFavourites()\">\r\n <span *ngIf=\"isCurrentMedicineInFavourites(); else addText\">\r\n Remove from favourites\r\n </span>\r\n <ng-template #addText>+ Add to favourites</ng-template>\r\n </button>\r\n </div>\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}\"\r\n name=\"rpts\" placeholder=\"\" [min]=\"0\" (input)=\"repeatsChange()\" class=\"new_rx_popup_tab_input\"\r\n [(ngModel)]=\"commonServices.repeatsVal\" (paste)=\"$event.preventDefault()\"\r\n (keypress)=\"checkMobile($event)\"\r\n [disabled]=\"commonServices.editPrescribedPrescription || commonServices.isMedicineRestrict\" />\r\n </div>\r\n </div>\r\n\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\"\r\n style=\"font-weight: 400;font-size: 16px;margin-top: -7px;\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Unusual\r\n 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()\"\r\n (keypress)=\"alphaRestriction($event)\" />\r\n <div #InstructionDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [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\r\n [class]=\"item.id == commonServices.complexId && item.text == commonServices.InstructionSearchValue ? 'heighlight' : ''\"\r\n *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\"\r\n 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\" 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\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Pro\r\n 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\"\r\n [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\"\r\n [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\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">CTG/PBS\r\n 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\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Brand\r\n 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\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Regulation\r\n 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\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">DO\r\n 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;\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Send\r\n 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\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Emergency\r\n 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:\r\n {{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.repeats!=null?commonServices.selectedFormulation.repeats:\"\"\r\n }}\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?\r\n InstructionDescription:commonServices.InstructionSearchValue!=\"\" &&\r\n 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\"\r\n 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\r\n *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\"\r\n 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:\r\n {{this.commonServices.endDate|date:'dd-MM-yyyy'}}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Prescribe As:\r\n <span\r\n *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\r\n *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\"\r\n 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\"\r\n 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\"\r\n 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\"\r\n 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\"\r\n 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\"\r\n style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.sendToPharmacy\">-</span>, Send to Pharmacy Value:\r\n {{!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\"\r\n 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\"\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\">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\"\r\n (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\r\n Quantity:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.maxQtyUnits!=null?(commonServices.quantityWithUnitFlag?\"1\r\n x \":\"\")+commonServices.selectedFormulation.maxQtyUnits:\"\"}}\r\n Default\r\n Repeats:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.repeats!=null?\r\n 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\"\r\n [(ngModel)]=\"commonServices.approvalNo\" (ngModelChange)=\"onInputchangeApprovalNo($event)\"\r\n (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 2025 Hola Health, a brand of Packapill Pty Ltd | v\r\n 1.1.0 |\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" }] });
|
|
5884
6205
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: RxComponent, decorators: [{
|
|
5885
6206
|
type: Component,
|
|
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"] }]
|
|
6207
|
+
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\r\n (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'\" *ngIf=\"abortBtnFlag\" [disabled]=\"abortdisable\"\r\n (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--2-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 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=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"rxPrivate\"\r\n (change)=\"onCheckboxChange()\" value=\"Private\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\">Private</span></label>\r\n </div>\r\n </div>\r\n <!-- <div\r\n class=\"mdl-cell mdl-cell--2-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=\"checkbox2\"\r\n [disabled]=\"commonServices.editPrescribedPrescription === true\"\r\n class=\"mdl-checkbox__input rx_new_group_checkbox\" [(ngModel)]=\"rxPrivate\"\r\n (change)=\"onCheckboxChange()\" value=\"Private\" /><span class=\"mdl-checkbox__label\"\r\n style=\"font-weight: 400; font-size: 16px\">Private</span></label>\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--6-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-cell mdl-cell--12-col\" style=\"margin-left: 8px;\">\r\n <span class=\"favourites-toggle-link\" (click)=\"$event.stopPropagation(); showFavourties()\">\r\n {{ showFavouriteMed ? 'Hide favourites' : 'Show favourites' }}\r\n </span>\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=\"!showFavouriteMed\">\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\r\n *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 *ngIf=\"showFavouriteMed\">\r\n\r\n <div *ngIf=\"onclickMedicineLoader\" class=\"loader m-v4\"></div>\r\n <div *ngIf=\"!onclickMedicineLoader\">\r\n <div *ngIf=\"\r\n commonServices.favouriteMedicineList == null ||\r\n commonServices.favouriteMedicineList.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.favouriteMedicineList;\r\n index as i\r\n \">\r\n\r\n <div class=\"mdl-grid new_rx_popup_box\" [class]=\"getClassForFavouriteMed(med)\"\r\n (click)=\"favouriteMedicineLoading(med)\">\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.quantity}}\r\n </span><span><b>Rpts:</b> {{ med.repeats }}</span>\r\n <span *ngIf=\"!commonServices.isMedicineRestrict\"><b>Restriction:</b>\r\n {{med.restriction}}\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 <div *ngIf=\"favMedicineLoader\" class=\"loader\"></div>\r\n <div *ngIf=\"!favMedicineLoader\"\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\"\r\n [innerHTML]=\"commonServices.selectedFormulation != null&&commonServices.selectedFormulation.productName!=undefined && commonServices.selectedFormulation.productName!=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\r\n [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 &&\r\n 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 &&\r\n commonServices.selectedFormulation.pbsType!=null? commonServices.selectedFormulation.pbsType :\r\n '' }}\r\n {{\r\n commonServices.selectedFormulation.pbsCode!=undefined &&\r\n 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\r\n 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\" [style.display]=\"isCurrentMedicineInFavourites() ? 'inline-flex' : null\"\r\n [style.width]=\"isCurrentMedicineInFavourites() ? 'max-content' : null\" *ngIf=\"commonServices.selectedFormulation != null\">\r\n <div style=\"display: inline-block;margin-right: 10px;\" class=\"new_rx_popup_header_box_col\">\r\n <button *ngIf=\"commonServices.selectedFormulation != null\" (click)=\"addToFavourites()\"\r\n class=\"mdl-button mdl-js-button mdl-button--raised mdl-button--colored\"\r\n [class.nextButton]=\"!isCurrentMedicineInFavourites()\"\r\n [class.rmfavbutton]=\"isCurrentMedicineInFavourites()\">\r\n <span *ngIf=\"isCurrentMedicineInFavourites(); else addText\">\r\n Remove from favourites\r\n </span>\r\n <ng-template #addText>+ Add to favourites</ng-template>\r\n </button>\r\n </div>\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}\"\r\n name=\"rpts\" placeholder=\"\" [min]=\"0\" (input)=\"repeatsChange()\" class=\"new_rx_popup_tab_input\"\r\n [(ngModel)]=\"commonServices.repeatsVal\" (paste)=\"$event.preventDefault()\"\r\n (keypress)=\"checkMobile($event)\"\r\n [disabled]=\"commonServices.editPrescribedPrescription || commonServices.isMedicineRestrict\" />\r\n </div>\r\n </div>\r\n\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\"\r\n style=\"font-weight: 400;font-size: 16px;margin-top: -7px;\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Unusual\r\n 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()\"\r\n (keypress)=\"alphaRestriction($event)\" />\r\n <div #InstructionDropdown class=\"new_rx_popup_tab_dropdown_list_box\"\r\n [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\r\n [class]=\"item.id == commonServices.complexId && item.text == commonServices.InstructionSearchValue ? 'heighlight' : ''\"\r\n *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\"\r\n 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\" 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\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Pro\r\n 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\"\r\n [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\"\r\n [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\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">CTG/PBS\r\n 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\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Brand\r\n 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\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Regulation\r\n 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\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">DO\r\n 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;\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Send\r\n 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\"\r\n [class]=\"{'disabled-style': commonServices.isFetching == true || commonServices.editPrescribedPrescription === true}\">Emergency\r\n 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:\r\n {{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.repeats!=null?commonServices.selectedFormulation.repeats:\"\"\r\n }}\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?\r\n InstructionDescription:commonServices.InstructionSearchValue!=\"\" &&\r\n 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\"\r\n 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\r\n *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\"\r\n 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:\r\n {{this.commonServices.endDate|date:'dd-MM-yyyy'}}\r\n </p>\r\n <p class=\"new_rx_popup_label_p\">Prescribe As:\r\n <span\r\n *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\r\n *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\"\r\n 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\"\r\n 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\"\r\n 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\"\r\n 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\"\r\n 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\"\r\n style=\"color: #0077b6\">check</i>\r\n <span *ngIf=\"!commonServices.sendToPharmacy\">-</span>, Send to Pharmacy Value:\r\n {{!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\"\r\n 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\"\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\">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\"\r\n (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\r\n Quantity:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.maxQtyUnits!=null?(commonServices.quantityWithUnitFlag?\"1\r\n x \":\"\")+commonServices.selectedFormulation.maxQtyUnits:\"\"}}\r\n Default\r\n Repeats:{{commonServices.selectedFormulation!=null&&commonServices.selectedFormulation.repeats!=null?\r\n 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\"\r\n [(ngModel)]=\"commonServices.approvalNo\" (ngModelChange)=\"onInputchangeApprovalNo($event)\"\r\n (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 2025 Hola Health, a brand of Packapill Pty Ltd | v\r\n 1.1.0 |\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"] }]
|
|
5887
6208
|
}], 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: [{
|
|
5888
6209
|
type: ViewChild,
|
|
5889
6210
|
args: ['MedicineDropdown', { static: false }]
|
|
@@ -5960,6 +6281,8 @@ class CommonServices {
|
|
|
5960
6281
|
this.searchedMedicineList = [];
|
|
5961
6282
|
this.rxOnlyPBS = false;
|
|
5962
6283
|
this.selectedMedicineList = [];
|
|
6284
|
+
this.favouriteMedicineList = [];
|
|
6285
|
+
this.originalFavouriteMedicineList = [];
|
|
5963
6286
|
this.selectedMedicineListOrginal = [];
|
|
5964
6287
|
this.selectedFormulation = null;
|
|
5965
6288
|
this.quantityVal = '1';
|
|
@@ -6027,6 +6350,9 @@ class CommonServices {
|
|
|
6027
6350
|
this.searchApiStopFlag = true;
|
|
6028
6351
|
this.quantityWithUnitFlag = false;
|
|
6029
6352
|
this.isMedicineRestrict = false;
|
|
6353
|
+
this.smartSearch = false;
|
|
6354
|
+
this.isScriptToPharmacy = 0;
|
|
6355
|
+
this.pharmacyEmail = "";
|
|
6030
6356
|
}
|
|
6031
6357
|
clearMedicalPrescriptionData() {
|
|
6032
6358
|
try {
|
|
@@ -6103,6 +6429,81 @@ class CommonServices {
|
|
|
6103
6429
|
this.setlogvalue(false, ex.message, ex.stack, "CommonServices", "clearMedicalPrescriptionData");
|
|
6104
6430
|
}
|
|
6105
6431
|
}
|
|
6432
|
+
clearMedicalPrescriptionFavouriteData() {
|
|
6433
|
+
try {
|
|
6434
|
+
this.unUsualDoseFlag = false;
|
|
6435
|
+
// this.rxid = "";
|
|
6436
|
+
this.showMedModal = false;
|
|
6437
|
+
this.isFetching = true;
|
|
6438
|
+
this.mediSearchValue = '';
|
|
6439
|
+
this.searchedMedicineList = [];
|
|
6440
|
+
this.rxOnlyPBS = false;
|
|
6441
|
+
// this.selectedMedicineList = [];
|
|
6442
|
+
// this.selectedMedicineListOrginal = [];
|
|
6443
|
+
this.selectedFormulation = null;
|
|
6444
|
+
this.quantityVal = '1';
|
|
6445
|
+
this.repeatsVal = '0';
|
|
6446
|
+
this.doseSearchValue = '';
|
|
6447
|
+
this.doseValue = 1;
|
|
6448
|
+
this.freqValue = 1;
|
|
6449
|
+
this.freqSearchValue = '';
|
|
6450
|
+
this.foodSearchValue = '';
|
|
6451
|
+
this.InstructionSearchValue = 'As directed';
|
|
6452
|
+
this.Instructiontiltle = "";
|
|
6453
|
+
this.complexId = 7;
|
|
6454
|
+
this.instVal = 1;
|
|
6455
|
+
this.routeSearchValue = 'Oral';
|
|
6456
|
+
this.rxPRN = false;
|
|
6457
|
+
this.PrescribeAS = 'Private';
|
|
6458
|
+
this.scriptDate = this.datePipe.transform(new Date(), 'yyyy-MM-dd');
|
|
6459
|
+
this.startDate = this.datePipe.transform(new Date(), 'yyyy-MM-dd');
|
|
6460
|
+
this.endDate = '';
|
|
6461
|
+
this.daysBtnRepeatsVal = '';
|
|
6462
|
+
this.purposeSearchValue = '';
|
|
6463
|
+
this.BrandSubstitutesNotAllow = false;
|
|
6464
|
+
this.isBrandName = false;
|
|
6465
|
+
this.regulation24 = false;
|
|
6466
|
+
this.CTGCoPayment = false;
|
|
6467
|
+
this.sendToPharmacyValue = '';
|
|
6468
|
+
this.sendToPharmacy = false;
|
|
6469
|
+
this.annotation = '';
|
|
6470
|
+
this.prescriptionReason = '';
|
|
6471
|
+
this.StateAuthorityNumber = '';
|
|
6472
|
+
this.pbsListInstructions = '';
|
|
6473
|
+
this.pbsNotes = '';
|
|
6474
|
+
this.pbsListInstructionsAut = '';
|
|
6475
|
+
this.approvalNo = '';
|
|
6476
|
+
this.prescribeMedLoader = false;
|
|
6477
|
+
// PrescribeAS_radio1= true;
|
|
6478
|
+
this.rxAuthority = false;
|
|
6479
|
+
this.doctorNotes = '';
|
|
6480
|
+
this.scriptType = '';
|
|
6481
|
+
this.editPrescribedPrescription = false;
|
|
6482
|
+
this.rxDisplayName = '';
|
|
6483
|
+
this.eopDisplayName = '';
|
|
6484
|
+
// this.prescribedItemReservedThree = '';
|
|
6485
|
+
this.prescribedItemReservedFour = '';
|
|
6486
|
+
this.selectedBrandFormulation = null;
|
|
6487
|
+
this.unlistedRA = false;
|
|
6488
|
+
this.rxnumber = '';
|
|
6489
|
+
this.rxemailId = '';
|
|
6490
|
+
this.isShowAuthority = false;
|
|
6491
|
+
this.pbsListInstructions = '';
|
|
6492
|
+
this.mySLConsent = false;
|
|
6493
|
+
this.emergencySupply = false;
|
|
6494
|
+
this.isS8WarningNext = false;
|
|
6495
|
+
this.quantityWithUnitFlag = false;
|
|
6496
|
+
if (!this.IsNullOrEmpty(this.MIMSPrimaryapi)) {
|
|
6497
|
+
this.MIMSPrimaryapi.unsubscribe();
|
|
6498
|
+
}
|
|
6499
|
+
if (!this.IsNullOrEmpty(this.MIMSSecondaryapi)) {
|
|
6500
|
+
this.MIMSSecondaryapi.unsubscribe();
|
|
6501
|
+
}
|
|
6502
|
+
}
|
|
6503
|
+
catch (ex) {
|
|
6504
|
+
this.setlogvalue(false, ex.message, ex.stack, "CommonServices", "clearMedicalPrescriptionData");
|
|
6505
|
+
}
|
|
6506
|
+
}
|
|
6106
6507
|
clearMedicalPrescriptionDataOnchangeofMedicine(med) {
|
|
6107
6508
|
try {
|
|
6108
6509
|
this.setEndDateAhead();
|
|
@@ -6819,6 +7220,8 @@ class HolaRx {
|
|
|
6819
7220
|
this.commonservice.visitId = res.visitId;
|
|
6820
7221
|
this.commonservice.createPatientResponse = res;
|
|
6821
7222
|
this.commonservice.editPrescription = false;
|
|
7223
|
+
this.commonservice.pharmacyEmail = !this.IsNullOrEmpty(res.pharmacyEmail) ? res.pharmacyEmail : "";
|
|
7224
|
+
this.commonservice.isScriptToPharmacy = (!this.IsNullOrEmpty(res.isScriptToPharmacy) && res.isScriptToPharmacy) != 0 ? res.isScriptToPharmacy : 0;
|
|
6822
7225
|
this.commonservice.isMedicineRestrict = !this.commonservice.IsNullOrEmpty(res.isRestrictedMedicine) ? res.isRestrictedMedicine : false;
|
|
6823
7226
|
if (!this.IsNullOrEmpty(this.commonservice.physicianDetails) && !this.IsNullOrEmpty(this.commonservice.physicianDetails.ePrescriptionAllowed) && this.commonservice.physicianDetails.ePrescriptionAllowed == 0)
|
|
6824
7227
|
this.HIvalidation(res);
|
|
@@ -6907,6 +7310,8 @@ class HolaRx {
|
|
|
6907
7310
|
this.commonservice.vendorPhysicianId = res.vendorPhysicianId;
|
|
6908
7311
|
this.commonservice.visitId = res.visitId;
|
|
6909
7312
|
this.commonservice.isMedicineRestrict = !this.commonservice.IsNullOrEmpty(res.isRestrictedMedicine) ? res.isRestrictedMedicine : false;
|
|
7313
|
+
this.commonservice.pharmacyEmail = !this.IsNullOrEmpty(res.pharmacyEmail) ? res.pharmacyEmail : "";
|
|
7314
|
+
this.commonservice.isScriptToPharmacy = (!this.IsNullOrEmpty(res.isScriptToPharmacy) && res.isScriptToPharmacy) != 0 ? res.isScriptToPharmacy : 0;
|
|
6910
7315
|
if (RxDetails.rxid != null && RxDetails.rxid != "" && RxDetails.rxid != undefined) {
|
|
6911
7316
|
if (res.rxDetails != null && res.rxDetails != "" && res.rxDetails != undefined) {
|
|
6912
7317
|
this.commonservice.editPrescription = true;
|
|
@@ -7007,6 +7412,8 @@ class HolaRx {
|
|
|
7007
7412
|
this.commonservice.vendorPhysicianId = res.vendorPhysicianId;
|
|
7008
7413
|
this.commonservice.visitId = res.visitId;
|
|
7009
7414
|
this.commonservice.isMedicineRestrict = !this.commonservice.IsNullOrEmpty(res.isRestrictedMedicine) ? res.isRestrictedMedicine : false;
|
|
7415
|
+
this.commonservice.pharmacyEmail = !this.IsNullOrEmpty(res.pharmacyEmail) ? res.pharmacyEmail : "";
|
|
7416
|
+
this.commonservice.isScriptToPharmacy = (!this.IsNullOrEmpty(res.isScriptToPharmacy) && res.isScriptToPharmacy) != 0 ? res.isScriptToPharmacy : 0;
|
|
7010
7417
|
return this.commonservice.Pathology(this.content);
|
|
7011
7418
|
}
|
|
7012
7419
|
else {
|