clinic/netforce_clinic/templates/visit_board.hbs

94 lines
5.3 KiB
Handlebars
Raw Normal View History

2014-11-25 10:26:10 +00:00
<center>
2015-03-13 16:31:58 +00:00
<span>&nbsp;&nbsp;</span>
2014-11-25 10:26:10 +00:00
</center>
<table class="table table-condensed table-striped">
<thead>
2015-03-13 16:31:58 +00:00
<th style="text-align:center">รอบ</th>
<th style="text-align:center">#</th>
<th style="text-align:center">ใบนัด</th>
<th style="text-align:center">HN</th>
<th style="text-align:center">ผู้ป่วย</th>
<th style="text-align:center">สิทธ์</th>
<th style="text-align:center">แพทย์</th>
<th style="text-align:center">ชั้น</th>
<th style="text-align:center">เตียง</th>
<th style="text-align:center">บันทึกการรักษา</th>
2014-11-25 10:26:10 +00:00
</thead>
<tbody>
{{#each lines }}
2014-12-20 09:48:29 +00:00
{{#if footer}}
<tr>
2015-03-17 07:50:11 +00:00
<td rowspan="3" align="middle" style="vertical-align:middle; background-color:#4183c4;color:white"><span><b>สรุป</b></span></td>
2015-01-09 07:48:01 +00:00
</tr>
2015-01-19 08:30:51 +00:00
<tr>
<td colspan="12" style="text-align:right; background-color:#dbdbdb"><b>{{details4}}</b></td>
</tr>
2014-12-20 09:48:29 +00:00
{{else}}
<tr style="background-color:{{visit_color}}">
{{#if title}}
2015-03-13 16:31:58 +00:00
<td style="background-color:#ddddff" colspan="4"><b>{{cycle_name}}</b></td>
<td style="background-color:#ddddff" colspan="7"></td>
2014-12-20 09:48:29 +00:00
{{else}}
2015-02-10 07:20:58 +00:00
<td style="background-color:{{cycle_color}};color:white;width:6%"><center>{{cycle_name}}</center></td>
2014-12-20 09:48:29 +00:00
<td style="background-color:{{visit_color}}">{{no}}</td>
2015-04-30 15:47:56 +00:00
<td style="background-color:{{visit_color}};width:12%">
2015-04-30 09:41:34 +00:00
<a href="/ui#name=clinic_visit&active_id={{visit_id}}&mode=form">
{{#ifeq number "Waiting"}}
<span class="glyphicon glyphicon-arrow-right">&nbsp;{{number}}</span>
{{else}}
2015-04-30 15:47:56 +00:00
{{#ifeq number "Cancelled"}}
2015-05-28 09:27:41 +00:00
<span class="glyphicon glyphicon-remove-sign">&nbsp;{{number}}</span>
2015-04-30 15:47:56 +00:00
{{else}}
2015-05-28 09:27:41 +00:00
<span class="glyphicon glyphicon-ok-sign">&nbsp;{{number}}</span>
2015-04-30 15:47:56 +00:00
{{/ifeq}}
2015-04-30 09:41:34 +00:00
{{/ifeq}}
</a>
</td>
2014-12-20 10:09:27 +00:00
<td style="background-color:{{visit_color}}">{{hn_name}}</td>
2014-12-20 09:48:29 +00:00
<td style="background-color:{{visit_color}}"><a href="/ui#name=clinic_patient&active_id={{patient_id}}&mode=form">{{patient_name}}</a></td>
<td style="background-color:{{visit_color}}">{{patient_type}}</td>
<td style="background-color:{{visit_color}}"><a href="/ui#name=clinic_staff&active_id={{doctor_id}}&mode=form">{{doctor_name}}</a></td>
2015-01-16 11:19:49 +00:00
<td style="background-color:{{visit_color}}"><a href="/ui#name=clinic_department&active_id={{department_id}}&mode=form">{{department_name}}</a></td>
2014-12-21 02:54:45 +00:00
{{#if sickbed_id}}
<td style="background-color:{{visit_color}}"><a href="/ui#name=clinic_sickbed&active_id={{sickbed_id}}&mode=form">{{sickbed_name}}</a></td>
{{else}}
<td style="background-color:{{visit_color}}">{{sickbed_name}}</td>
{{/if}}
2015-04-30 09:41:34 +00:00
<td style="background-color:{{visit_color}}">
<a href="/ui#name=clinic_hd_case&active_id={{hd_case_id}}&mode=form">
{{#ifeq number "Waiting"}}
{{else}}
{{#ifeq number "Cancelled"}}
<!--
<span class="glyphicon glyphicon-thumbs-down">
-->
{{else}}
{{#ifeq hd_case_state "waiting_treatment"}}
2015-05-28 09:27:41 +00:00
<span class="glyphicon glyphicon-arrow-right">
2015-04-30 09:41:34 +00:00
{{else}}
{{#ifeq hd_case_state "in_progress"}}
2015-05-28 09:27:41 +00:00
<span class="glyphicon glyphicon-refresh">
2015-04-30 09:41:34 +00:00
{{else}}
{{#ifeq hd_case_state "cancelled"}}
2015-05-28 09:27:41 +00:00
<span class="glyphicon glyphicon-remove">
2015-04-30 09:41:34 +00:00
{{else}}
2015-05-28 09:27:41 +00:00
<span class="glyphicon glyphicon-ok-sign">
2015-04-30 09:41:34 +00:00
{{/ifeq}}
{{/ifeq}}
{{/ifeq}}
{{hd_case_number}}
{{/ifeq}}
{{/ifeq}}
</span>
</a>
</td>
2014-12-20 09:48:29 +00:00
{{/if}}
</tr>
{{/if}}
2014-11-25 10:26:10 +00:00
{{/each}}
</tbody>
<tfoot>
</tfoot>
</table>