FHM08062601IBL - tambah endpoint pre_cache di Rv_patient untuk populate patient_print_cache sebelum BIRT dipanggil dari Vue

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sas.fajri
2026-06-08 16:28:15 +07:00
parent 0e408f2cf4
commit 3138c7f508

View File

@@ -1069,4 +1069,17 @@ private function get_fallback_report($group_name, $type, $ready_print)
exit;
}
public function pre_cache()
{
$prm = $this->sys_input;
$order_id = intval($prm['order_id'] ?? 0);
if ($order_id <= 0) {
$this->sys_ok(['cached' => false]);
return;
}
$this->load->library('ibl_patient_decrypt');
$this->ibl_patient_decrypt->populate_cache_by_order($order_id);
$this->sys_ok(['cached' => true]);
}
}