2 Commits

Author SHA1 Message Date
0b569c58d9 fix: add progress output and better timeout handling for batch PDF script
- Add flush() after each echo to show progress in real-time
- Increase curl timeout to 30 seconds with 10 second connect timeout
- Add curl error handling to diagnose connection issues
- Add progress messages (generating HTML, sending to spooler)
2026-03-11 08:54:49 +07:00
f35d6647c5 feat: add batch PDF generator CLI script
Add script.php for batch generating PDFs from a list of accessnumbers.
Features:
- Reads accessnumbers from text file (one per line)
- Validates requests exist and are validated (ISVAL2=1)
- Uses REPORT_LANG to determine language
- Sends to PDF spooler and logs to AUDIT_REQUESTS
- Creates ORU files for HL7 integration
- Outputs progress and saves detailed log

Usage: php script.php accessnumbers.txt
2026-03-11 08:52:06 +07:00