From 74a8c241382936446d2e63e5253b58638c4abf85 Mon Sep 17 00:00:00 2001 From: mikael-zakaria Date: Thu, 27 Mar 2025 18:26:59 +0700 Subject: [PATCH] Update Comment dan AHIV,AHCV,HBSAG,AHBS,HBSAB dan VDRL Agar Tidak Merah Saat Nilai Tidak Normal --- app/Controllers/PrintResult.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) 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'];