replace unit, with cm_dict_test unit
This commit is contained in:
parent
736ea4d356
commit
8f0d1e3c2e
@ -226,6 +226,9 @@ class PrintResult extends BaseController {
|
|||||||
} else {
|
} else {
|
||||||
$resvalue = $item['RESVALUE'];
|
$resvalue = $item['RESVALUE'];
|
||||||
}
|
}
|
||||||
|
$reff = $item["REFRANGE"];
|
||||||
|
$refftext = $item["REFFTEXT"];
|
||||||
|
if($refftext !='') {$reff = $refftext;}
|
||||||
$resultTest .= "
|
$resultTest .= "
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan='1' class=''>
|
<td colspan='1' class=''>
|
||||||
@ -235,7 +238,7 @@ class PrintResult extends BaseController {
|
|||||||
<td class=''>" . $resflag . "</td>
|
<td class=''>" . $resflag . "</td>
|
||||||
<td class=''>" . $resvalue . "</td>
|
<td class=''>" . $resvalue . "</td>
|
||||||
<td class=''>" . $item["UNIT"] . "</td>
|
<td class=''>" . $item["UNIT"] . "</td>
|
||||||
<td class=''>" . $item["REFRANGE"] . "</td>
|
<td class=''>" . $reff . "</td>
|
||||||
<td class=''>" . $item["serum_type"] . "</td>
|
<td class=''>" . $item["serum_type"] . "</td>
|
||||||
</tr>
|
</tr>
|
||||||
";
|
";
|
||||||
@ -321,9 +324,8 @@ class PrintResult extends BaseController {
|
|||||||
t.TESTORDER,
|
t.TESTORDER,
|
||||||
dt.SHORTTEXT,
|
dt.SHORTTEXT,
|
||||||
RESULT = case when t.RESVALUE is null then tx.FULLTEXT else t.RESVALUE end,
|
RESULT = case when t.RESVALUE is null then tx.FULLTEXT else t.RESVALUE end,
|
||||||
cr.*
|
cr.*, cdt.REFFTEXT
|
||||||
from REQUESTS r
|
from REQUESTS r
|
||||||
|
|
||||||
left join TESTS t on t.REQUESTID = r.REQUESTID
|
left join TESTS t on t.REQUESTID = r.REQUESTID
|
||||||
left join DICT_TESTS dt on dt.ENDVALIDDATE is null and t.TESTID=dt.TESTID
|
left join DICT_TESTS dt on dt.ENDVALIDDATE is null and t.TESTID=dt.TESTID
|
||||||
left join DICT_TEXTS tx on tx.TEXTID=t.CODEDRESULTID
|
left join DICT_TEXTS tx on tx.TEXTID=t.CODEDRESULTID
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user