Update Comment dan AHIV,AHCV,HBSAG,AHBS,HBSAB dan VDRL Agar Tidak Merah Saat Nilai Tidak Normal

This commit is contained in:
mikael-zakaria 2025-03-27 18:26:59 +07:00
parent 64514cfdc8
commit 74a8c24138

View File

@ -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'];