From 69270d1962195c7f0c4c6ec1764440fbd60a56d3 Mon Sep 17 00:00:00 2001 From: mikael-zakaria Date: Thu, 27 Mar 2025 18:11:40 +0700 Subject: [PATCH] Update AHIV,AHCV,HBSAG,AHBS,HBSAB dan VDRL Agar Tidak Merah Saat Nilai Tidak Normal --- app/Controllers/PrintResult.php | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/app/Controllers/PrintResult.php b/app/Controllers/PrintResult.php index 808cbdb..9ec07f2 100644 --- a/app/Controllers/PrintResult.php +++ b/app/Controllers/PrintResult.php @@ -857,7 +857,15 @@ class PrintResult extends BaseController { $color = ""; } elseif ($resflag == 'L' || $resflag == 'H') { // $resflag .= "  "; - $color = "red_font"; + // $color = "red_font"; + + // Pengecualian Khusus + $excludedred = ["HBsAg", "Anti HIV", "VDRL/Anti TP", "Anti HCV", "Anti HBs", "HBs-Ab"]; + if (in_array(strtolower($item['SHORTTEXT']), $excludedred)) { + $color = ""; + } else { // Normal + $color = "red_font"; + } } // Hanya Untuk Yang Kode Nya Adalah CODE/CM @@ -885,12 +893,12 @@ class PrintResult extends BaseController { } else { // Jika Rentang diatas nilai normal // Pengecualian Khusus - $excludedred = ["HBsAg", "Anti HIV", "VDRL/Anti TP", "Anti HCV", "Anti HBs", "HBs-Ab"]; - if (in_array(strtolower($item['SHORTTEXT']), $excludedred)) { - $color = ""; - } else { // Normal + // $excludedred = ["HBsAg", "Anti HIV", "VDRL/Anti TP", "Anti HCV", "Anti HBs", "HBs-Ab"]; + // if (in_array(strtolower($item['SHORTTEXT']), $excludedred)) { + // $color = ""; + // } else { // Normal $color = "red_font"; - } + // } } }