FHM08062601IBL - ganti pre_cache/delete_cache dengan proxy stream pattern: Reporturl semua kode lewat stream_by_code, tambah stream_report di Rv_patient untuk resultprintadm-v7

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
sas.fajri
2026-06-08 16:34:40 +07:00
parent edf60f5574
commit 7e3cd75ce5
2 changed files with 28 additions and 35 deletions

View File

@@ -56,14 +56,7 @@ class Reporturl
}
if($show == 'N'){
if ($this->should_use_proxy_stream($report_code)) {
return array(true, $this->build_proxy_stream_url($report_code, $params));
}
// Populate decrypt cache sebelum return URL raw ke browser
$CI->load->library('ibl_patient_decrypt');
$CI->ibl_patient_decrypt->pre_cache_and_get_url($final_url);
return array(true, $final_url);
return array(true, $this->build_proxy_stream_url($report_code, $params));
}
else{
$CI->load->library('ibl_patient_decrypt');
@@ -74,11 +67,6 @@ class Reporturl
}
}
private function should_use_proxy_stream($report_code)
{
return strpos((string)$report_code, 'FO-') === 0;
}
private function build_proxy_stream_url($report_code, $params = array())
{
$CI = &get_instance();