Update Rescomment pada Laporan Hasil
This commit is contained in:
parent
106fc04a3d
commit
922b6c3e35
@ -378,13 +378,15 @@ class PrintResult extends BaseController {
|
||||
$color = "red_font";
|
||||
}
|
||||
|
||||
// Hanya Untuk Yang Kode Nya Adalah CODE/CM
|
||||
$range = $this->checkRange($item['RESULT'], $item['REFFTEXT']);
|
||||
if ($item['code_type'] == 6 && $item['REFFTEXT'] != null) {
|
||||
|
||||
if ($range == true) { // Jika nilai masih dalam rentang nilai normal
|
||||
if ($range == true) { // Jika nilai masih dalam rentang nilai normal misal : 0 - 1
|
||||
$color = "";
|
||||
} elseif ($range == false) { // Jika nilai bukan merupakan rentang
|
||||
if ($item['RESULT'] != $item['REFFTEXT']) {
|
||||
} elseif ($range == false) { // Jika nilai bukan merupakan rentang alias hanya code
|
||||
$redWord = ["positive", "reactive"];
|
||||
if (in_array(strtolower($item['RESULT']), $redWord)) {
|
||||
$color = "red_font";
|
||||
}
|
||||
}
|
||||
@ -393,6 +395,17 @@ class PrintResult extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
// Hanya Untuk Kondisi Ada Komentar Dibawah Result
|
||||
if ($item['RESCOMMENT'] != null) {
|
||||
$rescomment = "<br><i>" . $item['RESCOMMENT'] . "</i>";
|
||||
$redWord = ["positive", "reactive"];
|
||||
if (in_array(strtolower($item['RESCOMMENT']), $redWord)) {
|
||||
$color = "red_font";
|
||||
}
|
||||
} else {
|
||||
$rescomment = "";
|
||||
}
|
||||
|
||||
|
||||
$test = "";
|
||||
// Untuk Nama Test Apakah lebih dari 24 karaktera
|
||||
@ -409,7 +422,7 @@ class PrintResult extends BaseController {
|
||||
".$test."
|
||||
</td>
|
||||
<td class='".$color."'>" . $resflag . "</td>
|
||||
<td colspan='3' class='".$color."'>" . $resvalue . "</td>
|
||||
<td colspan='3' class='".$color."'>" . $resvalue . $rescomment ."</td>
|
||||
<td class=''>" . $serum_type . "</td>
|
||||
</tr>
|
||||
";
|
||||
@ -420,7 +433,7 @@ class PrintResult extends BaseController {
|
||||
".$test."
|
||||
</td>
|
||||
<td class='".$color."'>" . $resflag . "</td>
|
||||
<td class='".$color."'>" . $resvalue . "</td>
|
||||
<td class='".$color."'>" . $resvalue . $rescomment ."</td>
|
||||
<td class=''>" . "<pre>" .$unit. "<pre>" . "</td>
|
||||
<td class=''>" . "<pre>" .$reff. "<pre>" . "</td>
|
||||
<td class=''>" . $serum_type . "</td>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user