devsofttech_hms_ci4/app/Views/billing/ipd
DevSoftTech Server 38e06ed1d7 Add 'Save in Master' quick-add for Course/Treatment section
FEATURE: Quick-add functionality for Course/Treatment master terms

NEW COMPONENTS:
1. Course master table: ipd_discharge_course_master
   - term_name, term_code, icd_code, is_active
   - Auto-creates on first use
2. Controller endpoints in Ipd_discharge.php:
   - course_master_lookup() - AJAX autocomplete search
   - course_master_list() - Full list with filters
   - course_master_save() - Create/update records
   - course_master_delete() - Remove records
3. Routes added to Config/Routes.php:
   - Ipd_discharge/course_master_lookup (GET)
   - Ipd_discharge/course_master_list (GET)
   - Ipd_discharge/course_master_save (POST)
   - Ipd_discharge/course_master_delete (POST)

VIEW CHANGES (discharge_create.php):
- Course input now uses input-group layout
- Green 'Save in Master' button added
- Custom dropdown for autocomplete with code badges
- Hidden field: new_course_master_id
- JavaScript: initCourseAutocomplete() function
- Integrated with existing quickAddTermModal

QUICK-ADD MODAL ENHANCEMENT:
- Now supports 3 types: surgery, procedure, course
- Dynamic endpoint selection based on type
- Course type uses course_master_save endpoint
- Auto-populates course input and master_id on save

AUTOCOMPLETE FEATURES:
- Type 2+ characters → searches course_master table
- Dropdown shows: Name + SNOMED/ICD code badges
- Arrow key navigation (Up/Down/Enter/Escape)
- Click or Enter to select
- Hover highlighting with visual feedback
- 300ms debounce for performance

WORKFLOW:
1. Type course/treatment name
2. See dropdown with existing terms (if any)
3. Click 'Save in Master' to add new term
4. Modal opens with name pre-filled
5. Enter SNOMED/ICD codes (optional)
6. Save → Auto-populates input + master_id
7. Click '+ADD Row' to add to discharge

BENEFITS:
- Consistent UI across Surgery/Procedure/Course sections
- Fast term entry without leaving form
- Master library builds during workflow
- ABDM compliance with code support
- Reusable terms across discharges
2026-06-06 06:53:27 +05:30
..
ayushman_claim_sheet.php Add Ayushman package import, billing claim sheet, and reporting dashboards 2026-03-26 15:42:40 +05:30
bill_print.php fix: correct IPD balance display when computed balance is zero 2026-04-10 21:07:01 +05:30
cash_balance_table.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
cash_balance.php IPD cash balance: fix date range picker submission and parser 2026-04-03 14:13:05 +05:30
current_admission.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
dashboard.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
discharge_create.php Add 'Save in Master' quick-add for Course/Treatment section 2026-06-06 06:53:27 +05:30
discharge_preview.php Make discharge preview top panel sticky and add action buttons 2026-06-06 04:46:17 +05:30
discharge_print.php Add report panel updates and related billing/discharge enhancements 2026-03-10 02:43:35 +05:30
invoice_list.php Implement IPD admission/discharge editing, bill PDF modes, and invoice list view action 2026-03-21 15:47:18 +05:30
ipd_form_print.php Port CI3 vitals chart and treatment chart forms to CI4 IPD form print (form_no 6 and 7) 2026-04-09 04:26:09 +05:30
ipd_model_payment_box.php refactor: set number input step to 1 across views 2026-04-10 21:16:25 +05:30
ipd_panel_deduction_payment.php refactor: set number input step to 1 across views 2026-04-10 21:16:25 +05:30
ipd_panel_tpa_payment.php refactor: set number input step to 1 across views 2026-04-10 21:16:25 +05:30
ipd_payment_receipt_pdf.php IPD payment receipt: fix modal loader, add PDF print route, and bank mode details 2026-04-03 13:29:03 +05:30
ipd_payment_receipt_print.php IPD payment receipt: fix modal loader, add PDF print route, and bank mode details 2026-04-03 13:29:03 +05:30
legacy_registration.php Fix legacy billing prints and pathology template compatibility 2026-03-21 02:23:31 +05:30
nursing_chart_print.php Add nursing scan-to-structured workflow and discharge UI polish 2026-03-09 00:12:04 +05:30
panel_admission.php Implement IPD admission/discharge editing, bill PDF modes, and invoice list view action 2026-03-21 15:47:18 +05:30
panel_bed_assign.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
panel_bill_details.php fix: correct IPD balance display when computed balance is zero 2026-04-10 21:07:01 +05:30
panel_diagnosis.php Add Ayushman package import, billing claim sheet, and reporting dashboards 2026-03-26 15:42:40 +05:30
panel_discharge.php refactor: set number input step to 1 across views 2026-04-10 21:16:25 +05:30
panel_documents.php Make IPD forms dynamic and stop stale OPD refresh polling 2026-04-08 11:41:33 +05:30
panel_ipd_charges.php feat(ipd-charges): group delete, sort order, Up/Down buttons, foldable billing panels 2026-04-18 06:56:38 +05:30
panel_medical_bills.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
panel_package.php billing: add ABHA create/verify tab in patient billing view and update IPD panel package; add hospital logo image 2026-05-08 10:48:43 +05:30
panel_payments.php IPD payment receipt: fix modal loader, add PDF print route, and bank mode details 2026-04-03 13:29:03 +05:30
panel_placeholder.php Implement OPD template builder, doctor template selection, and OPD print integration fixes 2026-02-27 19:44:36 +05:30
panel.php Restore legacy HMS flows and add IPD document master templates 2026-03-24 04:24:19 +05:30