From 968b7677ac3fda04497602cba0400e0e48d3669f Mon Sep 17 00:00:00 2001 From: mikael-zakaria Date: Tue, 18 Mar 2025 14:00:08 +0700 Subject: [PATCH] Update Laporan Hasil Menyembunyikan EGFR dengan kode 15, Baris kosong, test ganda ganda --- app/Controllers/PrintResult.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/app/Controllers/PrintResult.php b/app/Controllers/PrintResult.php index 9f506f9..4ae40aa 100644 --- a/app/Controllers/PrintResult.php +++ b/app/Controllers/PrintResult.php @@ -742,6 +742,15 @@ class PrintResult extends BaseController { $i=0; 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 $space=""; 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_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_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' + and t.NOTPRINTABLE is null + -- and dt.SHORTTEXT <> 'EGFR' ORDER BY t.TESTORDER"; $query = $db->query($sql); $results = $query->getResultArray(); @@ -1143,6 +1154,7 @@ class PrintResult extends BaseController { $serum_type = $item["serum_type"]; $chapter_eng = $item['chap_eng']; $printable = $item['NOTPRINTABLE']; + return $serum_type != 'Feces' && $serum_type != 'Urine' && $chapter_eng != 'Note' && $serum_type != 'Swab Tenggorokan' && $printable !=1; });