From b0b09bc2bf6b3f0415b00af5ff60a8acb9ddf683 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Sat, 6 Jun 2026 06:38:49 +0530 Subject: [PATCH] Add 'Save in Master' quick-add buttons for Surgery/Procedure FEATURE: Quick-add functionality for Surgery and Procedure master terms NEW COMPONENTS: 1. 'Save in Master' buttons next to Surgery/Procedure inputs 2. Quick-add modal with SNOMED CT and ICD code fields 3. Instant save without opening full Master CRUD modal 4. Auto-populate input and master_id after save UI CHANGES: - Surgery/Procedure inputs now use input-group layout - Green 'Save in Master' button with plus-circle icon - Quick-add modal opens when clicking button - Name field auto-filled from input (read-only in modal) - Optional SNOMED CT code and ICD code fields - Success message shown before auto-close WORKFLOW: 1. User types new surgery/procedure name in input 2. Click 'Save in Master' button 3. Modal opens with name pre-filled 4. Enter SNOMED/ICD codes (optional) 5. Click 'Save in Master' in modal 6. Record saves to ipd_discharge_surgery_master table 7. Input filled with saved name 8. master_id hidden field populated 9. Modal closes automatically 10. User can now click '+ADD Row' to add to discharge BENEFITS: - No need to open full Master CRUD modal for quick adds - SNOMED/ICD codes can be added during workflow - Faster data entry for new terms - Master table stays organized and updated - ABDM compliance maintained with code support --- app/Views/billing/ipd/discharge_create.php | 211 ++++++++++++++++++++- 1 file changed, 205 insertions(+), 6 deletions(-) diff --git a/app/Views/billing/ipd/discharge_create.php b/app/Views/billing/ipd/discharge_create.php index 48c8a1f..c7d1058 100644 --- a/app/Views/billing/ipd/discharge_create.php +++ b/app/Views/billing/ipd/discharge_create.php @@ -1040,12 +1040,17 @@ $allergyStatusNoKnown = in_array($allergyStatusNormalized, ['no known drug aller
- +
+ + +
-
-
+
+
Procedure
@@ -1068,12 +1073,17 @@ $allergyStatusNoKnown = in_array($allergyStatusNormalized, ['no known drug aller
- +
+ + +
-
-
+
+
@@ -1559,6 +1569,43 @@ $allergyStatusNoKnown = in_array($allergyStatusNormalized, ['no known drug aller + + +