Commit Graph

2 Commits

Author SHA1 Message Date
00a70ce731 Simplify clear_discharge_content.php script - remove CI4 bootstrap dependency
- Use direct PDO connection instead of CI4 Database class
- Hardcode common database settings for WAMP default setup
- Makes script easier to run without framework dependencies
2026-06-06 11:50:52 +05:30
224ac5613c Fix: Skip auto-generated patient info table when template has demographic tokens
- Modified buildAutoDischargeContent to accept includeSummaryTable parameter
- Added templateHasDemographicTokens helper to detect if template has patient info tokens
- Updated show_discharge and preview_discharge_report to check template before auto-generation
- When template has {{PATIENT_NAME}}, {{UHID}}, etc., skip auto-summary table
- Added clear_discharge_content.php script to clear cached content for regeneration
- Solves issue where blank templates still showed patient information table
2026-06-06 11:49:52 +05:30