Update Untuk STC2 yang testcodenya Null

This commit is contained in:
mikael-zakaria 2025-05-04 20:29:44 +07:00
parent 9ec94ad3e1
commit c529c5e0b3

View File

@ -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"];