Update indeirect bilirubin, rasio albumin, globulin dan chol menjadi serum

This commit is contained in:
mikael-zakaria 2025-06-05 13:30:30 +07:00
parent f6b390f7f0
commit e31cee76a7

View File

@ -772,7 +772,14 @@ class PrintResult extends BaseController {
if ($item["RESULT"] == null) { if ($item["RESULT"] == null) {
$serum_type = ""; $serum_type = "";
}else { }else {
$serum_type = $item["serum_type"];
// Khusus untuk test indeirect bilirubin, rasio albumin, globulin dan chol
$test_serum = ['2107C', '2110C', '2111C', 'CHOL'];
if ( in_array($item["TESTCODE"], $test_serum) ) {
$serum_type = "Serum";
} else {
$serum_type = $item["serum_type"];
}
} }
$resflag = $item["RESFLAG"] == "N" ? '' : $item["RESFLAG"]; $resflag = $item["RESFLAG"] == "N" ? '' : $item["RESFLAG"];
@ -862,8 +869,6 @@ class PrintResult extends BaseController {
$resflag = ""; $resflag = "";
} }
} elseif ($resflag == 'L' ) { } elseif ($resflag == 'L' ) {
// $resflag .= "  ";
// $color = "red_font";
// Pengecualian Khusus Untuk Test Berikut // Pengecualian Khusus Untuk Test Berikut
$excludedred = ["HBsAg", "Anti HIV", "VDRL/Anti TP", "Anti HCV", "Anti HBs"]; $excludedred = ["HBsAg", "Anti HIV", "VDRL/Anti TP", "Anti HCV", "Anti HBs"];
@ -912,19 +917,6 @@ class PrintResult extends BaseController {
// Hanya Untuk Kondisi Ada Komentar Dibawah Result // Hanya Untuk Kondisi Ada Komentar Dibawah Result
if ($item['RESCOMMENT'] != null) { 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";
// }
// }
$comment = $item['RESCOMMENT']; $comment = $item['RESCOMMENT'];
// Kondisi Sangat Khusus // Kondisi Sangat Khusus
if ($item['RESCOMMENT'] == "NREAC") { if ($item['RESCOMMENT'] == "NREAC") {