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,8 +857,16 @@ class PrintResult extends BaseController {
$color = ""; $color = "";
} elseif ($resflag == 'L' || $resflag == 'H') { } elseif ($resflag == 'L' || $resflag == 'H') {
// $resflag .= "  "; // $resflag .= "  ";
// $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"; $color = "red_font";
} }
}
// Hanya Untuk Yang Kode Nya Adalah CODE/CM // Hanya Untuk Yang Kode Nya Adalah CODE/CM
$range = $this->checkRange($item['RESULT'], $item['REFFTEXT']); $range = $this->checkRange($item['RESULT'], $item['REFFTEXT']);
@ -885,12 +893,12 @@ class PrintResult extends BaseController {
} else { // Jika Rentang diatas nilai normal } else { // Jika Rentang diatas nilai normal
// Pengecualian Khusus // Pengecualian Khusus
$excludedred = ["HBsAg", "Anti HIV", "VDRL/Anti TP", "Anti HCV", "Anti HBs", "HBs-Ab"]; // $excludedred = ["HBsAg", "Anti HIV", "VDRL/Anti TP", "Anti HCV", "Anti HBs", "HBs-Ab"];
if (in_array(strtolower($item['SHORTTEXT']), $excludedred)) { // if (in_array(strtolower($item['SHORTTEXT']), $excludedred)) {
$color = ""; // $color = "";
} else { // Normal // } else { // Normal
$color = "red_font"; $color = "red_font";
} // }
} }
} }