clinic/netforce_clinic/templates/report_cycle_item.hbs

126 lines
5.9 KiB
Handlebars

<center>
<h3>{{company_name}}</h3>
<h4>
รายชื่อผู้ป่วยระหว่างวันที่ {{date_from}} ถึง {{date_to}}
</h4>
</center>
<table class="table table-condensed table-striped" style="margin-bottom:0px;">
<thead class="scroll-header">
<th>วันที่</th>
<th>รอบ</th>
<th>No.</th>
<th>HDC/</th>
<th>ชื่อ-สกุล</th>
<th>แพทย์</th>
<th>สิทธ์</th>
<th style="text-align:left">EPO</th>
<th style="text-align:left">Iron</th>
<!--<th>HCT</th>-->
<th>DZ</th>
<th>N/U</th>
<th>พยาบาล</th>
</thead>
<tbody>
{{#each lines }}
{{#if cancel}}
<tr class="active">
{{else}}
<tr>
{{/if}}
{{#ifeq sub "show"}}
<tr class="info" style="font-weight:bold;">
{{/ifeq}}
{{#if cseq_txt}}
<th>{{date_txt}}</th>
<th style="width:2%;text-align:center">{{cseq_txt}}</th>
<td style="text-align:center">{{no}}</td>
<td style="width:6%"><a href="/ui#name=clinic_hd_case&active_id={{hdcase_id}}&mode=form">{{hdcase_number}}</a></td>
<td><a href="/ui#name=clinic_patient&active_id={{pid}}&mode=form">{{pname}}</a></td>
<td><a href="/ui#name=clinic_staff&active_id={{did}}&mode=form">{{dname}}</a></td>
<td><a href="/ui#name=clinic_patient_type&active_id={{tid}}&mode=form">{{tname}}</a></td>
<td style="text-align:left">{{mdc_desc}}</td>
<td style="text-align:left">{{iron_name}}</td>
<!--<td style="text-align:right">{{hct}}</td>-->
<td><a href="/ui#name=clinic_dialyzer&active_id={{dlz_id}}&mode=form">{{dlz_name}}</a></td>
<td>{{dlz_use}}</td>
<td><a href="/ui#name=clinic_cycle_item&active_id={{ctid}}&mode=form">{{nfirst_name}}</a></td>
{{else}}
{{#ifeq sub "show"}}
<td>รวม</td>
<td></td>
<td style="text-align:center">{{no}}</td>
<td colspan="10">
{{#each epo_items}}
{{name}} = {{qty}} &nbsp;&nbsp;&nbsp;
{{/each}}
</td>
{{else}}
<td></td>
<td></td>
<td style="text-align:center">{{no}}</td>
<td style="width:6%"><a href="/ui#name=clinic_hd_case&active_id={{hdcase_id}}&mode=form">{{hdcase_number}}</a></td>
<td><a href="/ui#name=clinic_patient&active_id={{pid}}&mode=form">{{pname}}</a></td>
<td><a href="/ui#name=clinic_staff&active_id={{did}}&mode=form">{{dname}}</a></td>
<td><a href="/ui#name=clinic_patient_type&active_id={{tid}}&mode=form">{{tname}}</a></td>
<td style="text-align:left">{{mdc_desc}}</td>
<td style="text-align:left">{{iron_name}}</td>
<!--<td style="text-align:right">{{hct}}</td>-->
<td><a href="/ui#name=clinic_dialyzer&active_id={{dlz_id}}&mode=form">{{dlz_name}}</a></td>
<td>{{dlz_use}}</td>
<td><a href="/ui#name=clinic_cycle_item&active_id={{ctid}}&mode=form">{{nfirst_name}}</a></td>
{{/ifeq}}
{{/if}}
</tr>
{{/each}}
{{#each shop_lines}}
<tr class="warning">
<td colspan="3" style="width:6%"><a href="/ui#name=clinic_shop&active_id={{shop_id}}&mode=form">{{shop_number}}</a></td>
<td style="width:6%"><a href="/ui#name=clinic_hd_case&active_id={{hdcase_id}}&mode=form">{{hdcase_number}}</a></td>
<td><a href="/ui#name=clinic_patient&active_id={{pid}}&mode=form">{{pname}}</a></td>
<td><a href="/ui#name=clinic_staff&active_id={{did}}&mode=form">{{dname}}</a></td>
<td><a href="/ui#name=clinic_patient_type&active_id={{tid}}&mode=form">{{tname}}</a></td>
<td style="text-align:left;font-weight:bold">{{mdc_desc}} = {{qty}}</td>
<td style="text-align:left">{{iron_name}}</td>
<!--<td style="text-align:right">{{hct}}</td>-->
<td><a href="/ui#name=clinic_dialyzer&active_id={{dlz_id}}&mode=form">{{dlz_name}}</a></td>
<td>{{dlz_use}}</td>
<td><a href="/ui#name=clinic_cycle_item&active_id={{ctid}}&mode=form">{{nfirst_name}}</a></td>
</tr>
{{/each}}
<tr>
<th class="active">ผู้ป่วยทั้งหมด</th>
<th class="active"></th>
<th class="active">{{total_pt}}</th>
<th colspan="10" class="active">
<p>
{{#each ptype_lines}}
{{name}} : {{qty}} &nbsp;&nbsp;&nbsp;
{{/each}}
</p>
<p>
{{#each vscl_lines}}
{{description}} = {{qty}} &nbsp;&nbsp;&nbsp;
{{/each}}
</p>
</th>
</tr>
<tr>
<th class="active">ยาทั้งหมด</th>
<th class="active"></th>
<th class="active">{{total_epo}}</th>
<th colspan="10" class="active">
<p>
{{#each total_epo_items}}
{{name}} = {{qty}} &nbsp;&nbsp;&nbsp;
{{/each}}
</p>
</th>
</tr>
</tbody>
</table>