Update Laporan Hasil Menyembunyikan EGFR dengan kode 15, Baris kosong, test ganda ganda

This commit is contained in:
mikael-zakaria 2025-03-18 14:00:08 +07:00
parent 6bc67edca6
commit 968b7677ac

View File

@ -742,6 +742,15 @@ class PrintResult extends BaseController {
$i=0; $i=0;
foreach ($resultData as $item) { foreach ($resultData as $item) {
// Khusus untuk egfr male
if ($item['code_type'] == 15 && $item['test_eng']=='EGFR') {
continue;
}
// Jika tidak ada nama
if ($item['test_eng'] == null) {
continue;
}
// Untuk Spasi Depth // Untuk Spasi Depth
$space=""; $space="";
if ($item['RESULT'] != null) { if ($item['RESULT'] != null) {
@ -1086,8 +1095,10 @@ class PrintResult extends BaseController {
left join DICT_TEST_SAMPLES ts on ts.TESTID=t.TESTID and dt.TESTID=ts.TESTID left join DICT_TEST_SAMPLES ts on ts.TESTID=t.TESTID and dt.TESTID=ts.TESTID
left join DICT_SAMPLES_TYPES st on st.SAMPTYPEID=ts.SAMPTYPEID left join DICT_SAMPLES_TYPES st on st.SAMPTYPEID=ts.SAMPTYPEID
left join cmod.dbo.CM_DICT_TESTS cdt on dt.TESTCODE=cdt.TESTCODE left join cmod.dbo.CM_DICT_TESTS cdt on dt.TESTCODE=cdt.TESTCODE
left join cmod.dbo.CM_RESULTS cr on cr.ACCESSNUMBER=r.ACCESSNUMBER and cr.TESTCODE=cdt.TESTCODE and cr.TESTCODE=dt.TESTCODE left join cmod.dbo.CM_RESULTS cr on cr.ACCESSNUMBER=r.ACCESSNUMBER and cr.TESTCODE=cdt.TESTCODE and cr.TESTCODE=dt.TESTCODE and t.RESUPDDATE = cr.RESDATE
where r.ACCESSNUMBER='$access' where r.ACCESSNUMBER='$access'
and t.NOTPRINTABLE is null
-- and dt.SHORTTEXT <> 'EGFR'
ORDER BY t.TESTORDER"; ORDER BY t.TESTORDER";
$query = $db->query($sql); $query = $db->query($sql);
$results = $query->getResultArray(); $results = $query->getResultArray();
@ -1143,6 +1154,7 @@ class PrintResult extends BaseController {
$serum_type = $item["serum_type"]; $serum_type = $item["serum_type"];
$chapter_eng = $item['chap_eng']; $chapter_eng = $item['chap_eng'];
$printable = $item['NOTPRINTABLE']; $printable = $item['NOTPRINTABLE'];
return $serum_type != 'Feces' && $serum_type != 'Urine' && $chapter_eng != 'Note' && $serum_type != 'Swab Tenggorokan' && $printable !=1; return $serum_type != 'Feces' && $serum_type != 'Urine' && $chapter_eng != 'Note' && $serum_type != 'Swab Tenggorokan' && $printable !=1;
}); });