Commit Graph

136 Commits

Author SHA1 Message Date
sas.fajri
67d4431361 Log cancel and send actions to one_lab_log.t_send_email_log via db_log
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 22:15:13 +07:00
sas.fajri
bc8b0dd0df Add cancel_email endpoint: only cancels when status is S
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 22:13:02 +07:00
sas.fajri
6dec35217f Align status flow: D=Draft S=Sending P=Process R=Received E=Error C=Cancel
Script picks S, locks to P, sets R on success.
On failure: back to S for retry; after max retry (3) sets E and logs to one_lab_log.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 22:07:51 +07:00
sas.fajri
409c156310 Set status P (processing) before send, revert to S on failure
Prevents UI re-trigger while email is in flight. Status flow:
S (scheduled) → P (processing) → D (delivered) / S (failed, retryable)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 22:04:06 +07:00
sas.fajri
d83f0f303b Insert send log to one_lab_log.t_send_email_log with correct schema
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 21:59:42 +07:00
sas.fajri
1c588f1d7d Build T_SendEmailReports from qr_printout with id/url/result format
Done.php send_email_v2: query qr_printout to build structured reports
array [{"id","url","result"}] using QR_PrintOutGroup_ResultName instead
of relying on client-supplied reports param.

send_email.php: parse both old (URL string) and new (object) formats;
use result field as PDF attachment filename.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 21:52:31 +07:00
sas.fajri
69772125b5 Insert delivery record to t_send_email_log on successful send
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 21:48:06 +07:00
sas.fajri
81b699db01 Add PDF validation in email script; add Nat_SubSubGroupSequence column
- Skip attachment if downloaded content is not a valid PDF (HTML error response)
- Add Nat_SubSubGroupSequence to nat_subsubgroup table (missing column
  referenced by sp_rpt_hasil_lab in SELECT and ORDER BY)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 21:37:50 +07:00
sas.fajri
1be2531f82 Fix PHP 7.4 compatibility: remove union return types
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 21:29:09 +07:00
sas.fajri
96a245322d Add PHP email queue processor script
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 21:28:01 +07:00
sas.fajri
b38d65f19d Add reports_url from qr_printout in search_v2 resultemailv7
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 21:06:19 +07:00
sas.fajri
e8d28bbc44 Add url_report from QR_PrintOutReportURLElectronic in getstatuspergroup
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 20:55:42 +07:00
sas.fajri
7490d76a41 Fix qr_printout isactive check from 'Y' to 1 (tinyint column)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 20:43:38 +07:00
sas.fajri
00e7991ded Use t_orderheader_group_result + qr_printout for getstatuspergroup resultemailv7
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 20:40:43 +07:00
sas.fajri
fb9e718057 Show nat test names 2026-05-24 20:00:19 +07:00
sas.fajri
ecb8b7c324 Show normal method names 2026-05-24 19:53:40 +07:00
sas.fajri
df8b8f5db3 Improve normal check response 2026-05-24 19:30:57 +07:00
sas.fajri
463c94f19b Add resultentry normal endpoints 2026-05-24 19:06:48 +07:00
sas.fajri
c8a3d27dfe Add sampling normal SQL tools 2026-05-24 19:00:18 +07:00
sas.fajri
2dad5df0fc Use localhost for QR reports 2026-05-24 18:37:13 +07:00
sas.fajri
d6f2f6ec4e Add QR report uploader 2026-05-24 18:25:23 +07:00
sas.fajri
c1fb8a8f61 Update QR report URLs 2026-05-24 18:14:52 +07:00
sas.fajri
dbe03ffc05 Fix close v2 search 2026-05-24 17:26:02 +07:00
sas.fajri
3222e4fdd8 Fix sampling status always Y when count_all = 0 for flag_nonlab = Y
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 13:19:32 +07:00
sas.fajri
3bbe789361 Add get_print_transaction_fo_kk_ina endpoint
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 12:10:53 +07:00
sas.fajri
626af7342e Add Kartu Kontrol Pelayanan FPDF report endpoint
Replaces BIRT rpt_fo_001 which had unresolvable image loading issues.
FPDF-based endpoint with 3.5cm top margin for pre-printed letterhead.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 11:45:59 +07:00
sas.fajri
58e50dc498 Fix order location duplicates 2026-05-24 10:22:09 +07:00
sas.fajri
ebfb56d351 Fix latest patient signature 2026-05-24 10:08:08 +07:00
sas.fajri
cdfc5e88d7 Fix consent media root 2026-05-24 10:06:07 +07:00
sas.fajri
f0c0bfc4f3 Fix dashboard search and IBL upload 2026-05-24 08:14:16 +07:00
sas.fajri
11e7e0792a Update modified files 2026-05-22 16:48:56 +07:00
sas.fajri
20e8395df7 Add cashier patient sorting 2026-05-22 13:08:54 +07:00
Hanan Askarim
e11005068e Merge branch 'main' of https://devone.aplikasi.web.id/gitea/fajri/BE_IBL 2026-05-22 10:22:09 +07:00
Hanan Askarim
f67d1b947e update generate qr report 2026-05-22 10:22:04 +07:00
sas.fajri
aa6fc08de6 Fix MCU report QR 2026-05-22 09:54:41 +07:00
sas.fajri
6849757e22 Add MCU report QR 2026-05-22 09:24:19 +07:00
sas.fajri
f20b50f478 Keep getumum records payload intact 2026-05-21 15:10:11 +07:00
sas.fajri
aa96aac7fb Normalize getumum payload ids 2026-05-21 15:09:13 +07:00
sas.fajri
9a852998c7 Store both ENG fisik keys 2026-05-21 15:07:41 +07:00
sas.fajri
c92d0572bb Fix getumum english data lookup 2026-05-21 15:02:38 +07:00
sas.fajri
fdbf92891b Fix getumum english saran query 2026-05-21 14:59:54 +07:00
sas.fajri
70ca5e42ad Split medical report watermark 2026-05-21 13:59:13 +07:00
sas.fajri
a4f04d7c54 Lift watermark higher 2026-05-21 13:50:34 +07:00
sas.fajri
af229728ed Raise watermark position 2026-05-21 13:49:24 +07:00
sas.fajri
f4f56255f4 Move medical report watermark up 2026-05-21 13:48:20 +07:00
sas.fajri
dae16e1afe Raise medical report watermark 2026-05-21 13:47:10 +07:00
sas.fajri
94d923116a Enlarge medical report watermark 2026-05-21 13:46:02 +07:00
sas.fajri
e53e9c19f7 Update tools controllers and assets 2026-05-21 13:43:16 +07:00
sas.fajri
0b87e2e7cd Increase medical watermark size 2026-05-21 12:13:02 +07:00
sas.fajri
939e62d3c8 Keep medical watermark aspect ratio 2026-05-21 12:11:16 +07:00