FHM08062601IBL - populate patient_print_cache di get_report_url_by_code agar BIRT baca DOB terenkripsi
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -875,6 +875,17 @@ private function get_fallback_report($group_name, $type, $ready_print)
|
||||
$final_url = str_replace($key, $value, $final_url);
|
||||
}
|
||||
|
||||
// Populate patient_print_cache agar sp_rpt_hasil_header baca DOB/name dari cache
|
||||
$order_id = intval($params['PT_OrderHeaderID'] ?? 0);
|
||||
if ($order_id <= 0) {
|
||||
parse_str(parse_url($final_url, PHP_URL_QUERY) ?? '', $_url_params);
|
||||
$order_id = intval($_url_params['PID'] ?? 0);
|
||||
}
|
||||
if ($order_id > 0) {
|
||||
$this->load->library('ibl_patient_decrypt');
|
||||
$this->ibl_patient_decrypt->populate_cache_by_order($order_id);
|
||||
}
|
||||
|
||||
$this->sys_ok([
|
||||
'status' => true,
|
||||
'url' => $final_url,
|
||||
|
||||
Reference in New Issue
Block a user