From 33501e5677bfe9458867d530d075be473d114c71 Mon Sep 17 00:00:00 2001 From: SnehaRH Date: Mon, 2 Mar 2026 13:16:12 +0530 Subject: [PATCH] fix: amm-2192 remove mandatory for prescription --- .../prescription/prescription.component.html | 5 ---- .../workarea/workarea.component.ts | 26 ------------------- 2 files changed, 31 deletions(-) diff --git a/src/app/app-modules/nurse-doctor/case-record/general-case-record/prescription/prescription.component.html b/src/app/app-modules/nurse-doctor/case-record/general-case-record/prescription/prescription.component.html index fe8657e..9c83ab6 100644 --- a/src/app/app-modules/nurse-doctor/case-record/general-case-record/prescription/prescription.component.html +++ b/src/app/app-modules/nurse-doctor/case-record/general-case-record/prescription/prescription.component.html @@ -70,7 +70,6 @@ getFormValueChanged(); trackFieldInteraction('Medicine Form Selection') " - required > ( - (caseRecordForm && caseRecordForm.controls - ? caseRecordForm.controls['drugPrescriptionForm'] - : null) - ); - if (drugPrescriptionForm) { - let prescribedDrugs = - drugPrescriptionForm.value && - drugPrescriptionForm.value.prescribedDrugs - ? drugPrescriptionForm.value.prescribedDrugs - : []; - prescribedDrugs = prescribedDrugs.filter((d: any) => !!d.createdBy); - if (!prescribedDrugs || prescribedDrugs.length === 0) { - required.push( - this.current_language_set?.Prescription?.prescriptionRequired || - 'Please add at least one prescription', - ); - } - } - } catch (err) { - console.warn('Error validating prescription presence', err); - } - } if (required.length) { this.confirmationService.notify(