Update Menghilangkan Excluded Red Pada Test : Anti HIV, Anti HCV, Anti HBs

This commit is contained in:
mikael-zakaria 2025-05-01 13:12:35 +07:00
parent 5e5b0047b4
commit 9ec94ad3e1

View File

@ -906,18 +906,19 @@ class PrintResult extends BaseController {
// Hanya Untuk Kondisi Ada Komentar Dibawah Result
if ($item['RESCOMMENT'] != null) {
$redWord = ["positive", "reactive", "pos", "reac"];
if (in_array(strtolower($item['RESCOMMENT']), $redWord)) {
// Pengecualian Khusus Untuk Test Berikut
$excludedred = ["Anti HIV", "Anti HCV", "Anti HBs"];
if (in_array($item['SHORTTEXT'], $excludedred)) {
$color = "";
} else { // Normal
$color = "red_font";
}
}
// $redWord = ["positive", "reactive", "pos", "reac"];
// if (in_array(strtolower($item['RESCOMMENT']), $redWord)) {
// // Pengecualian Khusus Untuk Test Berikut
// $excludedred = ["Anti HIV", "Anti HCV", "Anti HBs"];
// if (in_array($item['SHORTTEXT'], $excludedred)) {
// $color = "";
// } else { // Normal
// $color = "red_font";
// }
// }
$comment = $item['RESCOMMENT'];
// Kondisi Sangat Khusus