diff --git a/app/Controllers/PrintResult.php b/app/Controllers/PrintResult.php index 39122d2..0e89c79 100644 --- a/app/Controllers/PrintResult.php +++ b/app/Controllers/PrintResult.php @@ -859,7 +859,7 @@ class PrintResult extends BaseController { // $resflag .= "  "; // $color = "red_font"; - // Pengecualian Khusus + // Pengecualian Khusus Untuk Test Berikut $excludedred = ["HBsAg", "Anti HIV", "VDRL/Anti TP", "Anti HCV", "Anti HBs", "HBs-Ab"]; if (in_array($item['SHORTTEXT'], $excludedred)) { $color = ""; @@ -892,13 +892,8 @@ 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 - $color = "red_font"; - // } + $color = "red_font"; + } } @@ -906,7 +901,15 @@ class PrintResult extends BaseController { if ($item['RESCOMMENT'] != null) { $redWord = ["positive", "reactive", "pos", "reac"]; if (in_array(strtolower($item['RESCOMMENT']), $redWord)) { - $color = "red_font"; + + // Pengecualian Khusus Untuk Test Berikut + $excludedred = ["HBsAg", "Anti HIV", "VDRL/Anti TP", "Anti HCV", "Anti HBs", "HBs-Ab"]; + if (in_array($item['SHORTTEXT'], $excludedred)) { + $color = ""; + } else { // Normal + $color = "red_font"; + } + } $comment = $item['RESCOMMENT'];