You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
3.3 KiB
54 lines
3.3 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<openerp>
|
|
<data>
|
|
<template id="report_patient_labtest">
|
|
<t t-foreach="docs" t-as="o">
|
|
<t t-call="report.external_layout">
|
|
<div class="page">
|
|
<t t-if="o and 'company_id' in o">
|
|
<t t-set="company" t-value="o.company_id"> </t>
|
|
</t>
|
|
<t t-if="not o or not 'company_id' in o">
|
|
<t t-set="company" t-value="res_company"> </t>
|
|
</t>
|
|
<h3 style="text-decoration:underline;text-align:center;"><b>Lab Test Report</b></h3>
|
|
<br/>
|
|
<br/>
|
|
<table width="99%" style="margin-left:50px;margin-top:5px;border: None solid black;">
|
|
<tr>
|
|
<td style="width:50px;height:25px" ><span>Patient: </span><span t-att-style="style" t-esc="o.lab_requestor.patient.name"/></td>
|
|
<td style="width:50px;height:25px" ><span>Test : </span><span t-att-style="style" t-esc="o.test_request.lab_test"/></td>
|
|
<td style="width:50px;height:25px" ><span>Date: </span><span t-att-style="style" t-esc="o.lab_requesting_date"/></td>
|
|
</tr>
|
|
</table>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<table width="99%" style="border:1px solid black;padding-left:1.16cm;">
|
|
<thead>
|
|
<th style="border:1px solid black;text-align:center;" width="13%" class="td4">Content</th>
|
|
<th style="border:1px solid black;text-align:center;" width="13%" class="td4">Unit</th>
|
|
<th style="border:1px solid black;text-align:center;" width="13%" class="td4">Normal Range</th>
|
|
<th style="border:1px solid black;text-align:center;" width="13%" class="td4">Result</th>
|
|
</thead>
|
|
<tbody>
|
|
<t t-foreach="o.request_line" t-as="l">
|
|
<tr style="border:1px solid black">
|
|
<td style="border:1px solid black;text-align:center;"><span t-esc="l.test_content.content_type_name" style="font-size:16px;"/></td>
|
|
<td style="border:1px solid black;text-align:center;"><span t-esc="l.unit.code" style="font-size:16px;"/></td>
|
|
<td style="border:1px solid black;text-align:center;"><span t-esc="l.interval" style="font-size:16px;"/></td>
|
|
<td style="border:1px solid black;text-align:center;"><span t-esc="l.result" style="font-size:16px;"/></td>
|
|
</tr>
|
|
</t>
|
|
</tbody>
|
|
</table>
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
<p style="page-break-after:always"></p>
|
|
</t>
|
|
</t>
|
|
</template>
|
|
</data>
|
|
</openerp>
|
|
|