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"; - } + // } } }