From 7dc147a3977bf67ae0b0a97882db4312d43dc279 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Tue, 31 Mar 2026 04:14:30 +0530 Subject: [PATCH] feat: add medicine entry to Create Rx-Group modal on consult page - expanded rxGroupCreateModal to modal-xl with two-column layout - left column: group info (name, complaints, diagnosis, investigation, finding) - right column: medicine form (name autocomplete, type, dose/when/freq/where, days/qty/remark) - medicine name search uses medicine_search endpoint with datalist - type auto-fills on datalist selection (same Chrome input-event fix as main form) - dose/when/freq/where selects populated from medicineDoseMasterCache (already loaded) - + Add Medicine adds to local crgcMedicineList array with live table display - Remove button (x) on each row in the pending medicine table - Save Rx-Group: creates group then batch-saves all medicines sequentially - Save & Apply: same as above then applies group to current session --- app/Views/billing/opd_prescription_basic.php | 264 ++++++++++++++++--- 1 file changed, 229 insertions(+), 35 deletions(-) diff --git a/app/Views/billing/opd_prescription_basic.php b/app/Views/billing/opd_prescription_basic.php index 91fbcec..fb6f4be 100644 --- a/app/Views/billing/opd_prescription_basic.php +++ b/app/Views/billing/opd_prescription_basic.php @@ -956,34 +956,75 @@