Update 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:11:40 +07:00
parent 83310f88a4
commit 69270d1962

View File

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