update minor hasil test pasien
This commit is contained in:
parent
ca1d128f56
commit
4f2e45fe72
@ -275,7 +275,7 @@ class PrintResult extends BaseController {
|
|||||||
<tr>
|
<tr>
|
||||||
<td colspan='1' class=''>
|
<td colspan='1' class=''>
|
||||||
<!-- <pre> ".$space . $i.". ".$item["test_eng"]." ". "<small>".$item["test_ind"]."</small></pre> -->
|
<!-- <pre> ".$space . $i.". ".$item["test_eng"]." ". "<small>".$item["test_ind"]."</small></pre> -->
|
||||||
<pre>" . $space . $item["test_eng"]." "."<small>".$item["test_ind"]."</small></pre>
|
<pre>" . $space . $item["test_eng"]." "."<small><i>".$item["test_ind"]."</i></small></pre>
|
||||||
<!-- <pre> ".$space."<small>".$item["test_ind"]."</small></pre> -->
|
<!-- <pre> ".$space."<small>".$item["test_ind"]."</small></pre> -->
|
||||||
</td>
|
</td>
|
||||||
<td class=''>" . $resflag . "</td>
|
<td class=''>" . $resflag . "</td>
|
||||||
@ -408,41 +408,56 @@ class PrintResult extends BaseController {
|
|||||||
// return $chapterid !== 3 && $chapterid !== 4 && $chapterid !== 61 && $chapterid !== 62 || $tesscode == 'NOTE';
|
// return $chapterid !== 3 && $chapterid !== 4 && $chapterid !== 61 && $chapterid !== 62 || $tesscode == 'NOTE';
|
||||||
// });
|
// });
|
||||||
|
|
||||||
$data_urine_lengkap = array_filter($results, function($item) {
|
|
||||||
$serum_type = $item["serum_type"];
|
|
||||||
$chapterid = $item["CHAPID"];
|
|
||||||
return $serum_type == 'Urine' && $chapterid == 61;
|
|
||||||
});
|
|
||||||
$data_pregnancy = array_filter($results, function($item) {
|
$data_pregnancy = array_filter($results, function($item) {
|
||||||
$serum_type = $item["serum_type"];
|
$serum_type = $item["serum_type"];
|
||||||
$chapterid = $item["CHAPID"];
|
$tesscode = $item["TESTCODE"];
|
||||||
return $serum_type == 'Urine' && $chapterid == 62;
|
return $serum_type == 'Urine' && $tesscode == 'PPT';
|
||||||
|
});
|
||||||
|
$data_urine_lengkap = array_filter($results, function($item) {
|
||||||
|
$serum_type = $item["serum_type"];
|
||||||
|
$tesscode = $item["TESTCODE"];
|
||||||
|
return $serum_type == 'Urine' && $tesscode != 'PPT';
|
||||||
|
});
|
||||||
|
|
||||||
|
$data_feces_stc2 = array_filter($results, function($item) {
|
||||||
|
$serum_type = $item["serum_type"];
|
||||||
|
$tesscode = $item["TESTCODE"];
|
||||||
|
return $serum_type == 'Feces' && in_array($tesscode, ['STC2', 'SCSAL', 'SCSHI']);
|
||||||
|
});
|
||||||
|
$data_feces_stc4 = array_filter($results, function($item) {
|
||||||
|
$serum_type = $item["serum_type"];
|
||||||
|
$tesscode = $item["TESTCODE"];
|
||||||
|
return $serum_type == 'Feces' && in_array($tesscode, ['STC4', 'FCSAL', 'FCSHI', 'FCVIB', 'FCESC']);
|
||||||
});
|
});
|
||||||
$data_feces_lengkap = array_filter($results, function($item) {
|
$data_feces_lengkap = array_filter($results, function($item) {
|
||||||
$serum_type = $item["serum_type"];
|
$serum_type = $item["serum_type"];
|
||||||
$chapterid = $item["CHAPID"];
|
$tesscode = $item["TESTCODE"];
|
||||||
return $serum_type == 'Feces' && $chapterid == 4;
|
return $serum_type == 'Feces' && !in_array($tesscode, ['STC2', 'SCSAL', 'SCSHI', 'STC4', 'FCSAL', 'FCSHI', 'FCVIB', 'FCESC']);
|
||||||
});
|
});
|
||||||
|
|
||||||
$data_others = array_filter($results, function($item) {
|
$data_others = array_filter($results, function($item) {
|
||||||
$serum_type = $item["serum_type"];
|
$serum_type = $item["serum_type"];
|
||||||
$chapter_eng = $item['chap_eng'];
|
$chapter_eng = $item['chap_eng'];
|
||||||
// return $chapterid !== 3 && $chapterid !== 4 && $chapterid !== 61 && $chapterid !== 62 || $tesscode == 'NOTE';
|
|
||||||
return $serum_type != 'Feces' && $serum_type != 'Urine' && $chapter_eng != 'Note';
|
return $serum_type != 'Feces' && $serum_type != 'Urine' && $chapter_eng != 'Note';
|
||||||
});
|
});
|
||||||
|
|
||||||
$fullPage = "";
|
$fullPage = "";
|
||||||
|
if ($data_urine_lengkap != null) {
|
||||||
if ($data_urine_lengkap != null && count($data_urine_lengkap) > 1) {
|
|
||||||
$fullPage .= $this->otherTests($data_urine_lengkap, $data);
|
$fullPage .= $this->otherTests($data_urine_lengkap, $data);
|
||||||
}
|
}
|
||||||
if ($data_pregnancy != null && count($data_pregnancy) > 1) {
|
if ($data_pregnancy != null) {
|
||||||
$fullPage .= $this->otherTests($data_pregnancy, $data);
|
$fullPage .= $this->otherTests($data_pregnancy, $data);
|
||||||
}
|
}
|
||||||
if ($data_feces_lengkap != null && count($data_feces_lengkap) > 1) {
|
if ($data_feces_lengkap != null) {
|
||||||
$fullPage .= $this->otherTests($data_feces_lengkap, $data);
|
$fullPage .= $this->otherTests($data_feces_lengkap, $data);
|
||||||
}
|
}
|
||||||
if ($data_others != null && count($data_others) > 1) {
|
if ($data_feces_stc2 != null) {
|
||||||
|
$fullPage .= $this->otherTests($data_feces_stc2, $data);
|
||||||
|
}
|
||||||
|
if ($data_feces_stc4 != null) {
|
||||||
|
$fullPage .= $this->otherTests($data_feces_stc4, $data);
|
||||||
|
}
|
||||||
|
if ($data_others != null) {
|
||||||
$fullPage .= $this->otherTests($data_others, $data);
|
$fullPage .= $this->otherTests($data_others, $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user