Commit Graph

124 Commits

Author SHA1 Message Date
sas.fajri
c410d7bbd9 FHM31052601IBL - implementasi enkripsi PII pasien dan data medis (UU PDP)
- Tambah .env loader di index.php untuk IBL_ENCRYPT_KEY dan IBL_ENCRYPT_SEARCH_KEY
- Library Ibl_encryptor: AES-256-GCM encrypt/decrypt + trigram blind index untuk partial search
- SQL migration: tambah kolom _enc dan _bidx di 16 tabel (m_patient, m_patientaddress, hasil lab, log)
- Script backup_pdp_tables.sh: backup tabel terdampak sebelum migrasi
- Script migrate_encrypt_patient.php: enkripsi batch 178K data PII pasien
- Script migrate_encrypt_results.php: enkripsi data medis hasil lab dan log
- Patient.php: search via trigram blind index, add_new/edit enkripsi sebelum save

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 14:07:42 +07:00
sas.fajri
cf8ef0e590 FHM29052601IBL - add GET /report/qr/{id} preview endpoint dari qr_printout
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 16:33:00 +07:00
sas.fajri
a3f9e04787 FHM29052601IBL - simplify stream_from_qr_printout tanpa get_order_header
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 16:02:46 +07:00
sas.fajri
84e0d60d23 FHM29052601IBL - add merge_from_qr endpoint via qr_printout URLs
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-29 15:54:16 +07:00
sas.fajri
f2f1aed4b2 FHM29052601IBL - integrate merge gateway 2026-05-29 14:21:47 +07:00
sas.fajri
6206acadad Fix savefisik column names 2026-05-26 07:04:16 +07:00
sas.fajri
6d7563151d Seed riwayat from form template 2026-05-26 06:15:27 +07:00
sas.fajri
566f3f9b09 Reuse preregister form row 2026-05-25 22:43:13 +07:00
sas.fajri
7dec255168 riwayatpreregisterform: join m_company via mgm_mcu bukan CompanyNumber
JOIN m_company langsung dari Mcu_PreregisterPatientsCompanyNumber diganti
LEFT JOIN mgm_mcu → m_company, karena CompanyNumber bisa kosong tapi
Mgm_McuM_CompanyID selalu terisi.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-25 22:02:11 +07:00
sas.fajri
34b9f3fac2 Dedup group result details 2026-05-25 11:06:42 +07:00
sas.fajri
7007e8d9cf Add xray upload endpoints 2026-05-25 06:28:57 +07:00
sas.fajri
900af581eb Search nolab by lab number OR patient name in search_v2
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 22:37:27 +07:00
sas.fajri
2d6c2b9fa2 Add status/name/nolab/company filters to search_v2
Previously search_v2 ignored all filters from the request.
Now status=''/any, name, nolab, company are applied dynamically.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 22:36:26 +07:00
sas.fajri
46c3138f3c Deactivate t_send_email when email delivery unchecked (chex=N)
When save_delivery_additional_other receives chex=N for an EMAIL
delivery, also set t_send_email.T_SendEmailIsActive='N' for rows
with status D/E/C — previously only t_orderdelivery was deactivated.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 22:20:13 +07:00
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
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
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
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