From e31cee76a7a8ba5043d4c917dfaadacca1d08d70 Mon Sep 17 00:00:00 2001 From: mikael-zakaria Date: Thu, 5 Jun 2025 13:30:30 +0700 Subject: [PATCH] Update indeirect bilirubin, rasio albumin, globulin dan chol menjadi serum --- app/Controllers/PrintResult.php | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/app/Controllers/PrintResult.php b/app/Controllers/PrintResult.php index b5d1400..a206060 100644 --- a/app/Controllers/PrintResult.php +++ b/app/Controllers/PrintResult.php @@ -772,7 +772,14 @@ class PrintResult extends BaseController { if ($item["RESULT"] == null) { $serum_type = ""; }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"]; @@ -862,8 +869,6 @@ class PrintResult extends BaseController { $resflag = ""; } } elseif ($resflag == 'L' ) { - // $resflag .= "  "; - // $color = "red_font"; // Pengecualian Khusus Untuk Test Berikut $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 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']; // Kondisi Sangat Khusus if ($item['RESCOMMENT'] == "NREAC") {