From c529c5e0b338d4271381df22b1c1d873f1f6022c Mon Sep 17 00:00:00 2001 From: mikael-zakaria Date: Sun, 4 May 2025 20:29:44 +0700 Subject: [PATCH] Update Untuk STC2 yang testcodenya Null --- app/Controllers/PrintResult.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Controllers/PrintResult.php b/app/Controllers/PrintResult.php index c278289..5ed117d 100644 --- a/app/Controllers/PrintResult.php +++ b/app/Controllers/PrintResult.php @@ -1153,7 +1153,9 @@ class PrintResult extends BaseController { $serum_type = $item["serum_type"]; $tesscode = $item["TESTCODE"]; $printable = $item['NOTPRINTABLE']; - return $serum_type == 'Feces' && in_array($tesscode, ['STC2', 'SCSAL', 'SCSHI']) && $printable !=1; + $shorttext = $item['SHORTTEXT']; + // Hanya Temporary + return $serum_type == 'Feces' && ( in_array($tesscode, ['STC2', 'SCSAL', 'SCSHI']) || in_array($tesscode, ['Stool Culture 2 Bact', 'Salmonella sp', 'Shigella sp']) ) && $printable !=1; }); $data_feces_stc4 = array_filter($results, function($item) { $serum_type = $item["serum_type"];