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:
@@ -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]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user