Files
yinyitong-zhongyuyuan-dll-s…/src/main/resources/templates/reportJY.html

151 lines
5.8 KiB
HTML
Raw Normal View History

2025-06-25 10:01:50 +08:00
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8"/>
2025-06-25 19:41:08 +08:00
<title>粪便检测报告单</title>
2025-06-25 10:01:50 +08:00
</head>
<body>
2025-06-25 19:41:08 +08:00
<div style="font-size: 14px;">
<!-- 医院标题 -->
<div style="text-align: center;">
<div style="font-size: 18px; font-weight: bold;">
2025-06-26 11:33:08 +08:00
澜沧拉祜族自治县中医医院<span th:text="${baseInfo.lspcmName}"></span>报告单
2025-06-25 19:41:08 +08:00
</div>
2025-06-25 10:01:50 +08:00
</div>
2025-06-25 19:41:08 +08:00
<div style="height: 10px;"></div>
<div style="background-color: #000;height: 1px;"></div>
<!-- 患者基本信息区域 - 使用表格布局以确保兼容 -->
<table style="width: 100%;">
<!-- 第1行2个字段 -->
<tr>
<td style="width: 33%;">
<span>姓名:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block; min-width: 150px;" th:text="${baseInfo.patName}"></span>
2025-06-25 19:41:08 +08:00
</td>
<td style="width: 33%;">
</td>
<td style="width: 33%;">
<span>标本编号:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block; min-width: 150px;" th:text="${baseInfo.reportId}"></span>
2025-06-25 19:41:08 +08:00
</td>
</tr>
2025-06-25 10:01:50 +08:00
2025-06-25 19:41:08 +08:00
<!-- 第2行3个字段 -->
<tr>
<td style="width: 33%;">
<span>性别:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block;" th:text="${baseInfo.patSex}"></span>
2025-06-25 19:41:08 +08:00
</td>
<td style="width: 33%;">
<span>科室:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block;" th:text="${baseInfo.deptName}"></span>
2025-06-25 19:41:08 +08:00
</td>
<td style="width: 33%;">
<span>标本类型:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block;" th:text="${baseInfo.lspcmName}"></span>
2025-06-25 19:41:08 +08:00
</td>
</tr>
2025-06-25 10:01:50 +08:00
2025-06-25 19:41:08 +08:00
<!-- 第3行3个字段 -->
<tr>
<td style="width: 33%;">
<span>年龄:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block;" th:text="${baseInfo.patAge}"></span>
2025-06-25 19:41:08 +08:00
</td>
<td style="width: 33%;">
<span>床号:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block;" th:text="${baseInfo.inpBedNo}"></span>
2025-06-25 19:41:08 +08:00
</td>
<td style="width: 33%;">
<span>标本形态:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block;"></span>
2025-06-25 19:41:08 +08:00
</td>
</tr>
<!-- 第4行3个字段 -->
<tr>
<td style="width: 33%;">
<span>患者电话:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block;" th:text="${baseInfo.patHomePhno}"></span>
2025-06-25 19:41:08 +08:00
</td>
<td style="width: 33%;">
<span>申请医生:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block;" th:text="${baseInfo.placerName}"></span>
2025-06-25 19:41:08 +08:00
</td>
<td style="width: 33%;">
<span>采样者:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block;" th:text="${baseInfo.spcmClctor}"></span>
2025-06-25 19:41:08 +08:00
</td>
</tr>
<!-- 第5行3个字段 -->
2025-06-25 10:01:50 +08:00
<tr>
2025-06-25 19:41:08 +08:00
<td style="width: 33%;">
<span>申请项目:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block; min-width: 80px;" th:text="${baseInfo.citemContent}"></span>
2025-06-25 19:41:08 +08:00
</td>
<td style="width: 33%;">
<span>临床诊断:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block; min-width: 80px;"></span>
2025-06-25 19:41:08 +08:00
</td>
<td style="width: 33%;">
<span>采样人:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block; min-width: 80px;" th:text="${baseInfo.spcmClctor}"></span>
2025-06-25 19:41:08 +08:00
</td>
</tr>
<!-- 第6行3个字段 -->
<tr>
<td style="width: 33%;">
<span>仪器:</span>
2025-06-26 11:33:08 +08:00
<span style="display: inline-block; min-width: 130px;"></span>
2025-06-25 19:41:08 +08:00
</td>
<td style="width: 33%;">
</td>
<td style="width: 33%;">
</td>
</tr>
</table>
<!-- 检测结果表格 -->
<table style="border-collapse:collapse;width: 100%;border:1px solid gray;">
<thead style="text-align: center;">
<tr style="background-color: #f0f0f0;height:30px;">
<th style="padding: 8px 5px; width: 25%;">项目名称</th>
<th style="padding: 8px 5px; width: 20%;">结果</th>
2025-06-26 11:33:08 +08:00
<th style="padding: 8px 5px; width: 15%;">单位</th>
<th style="padding: 8px 5px; width: 20%;">参考区间</th>
2025-06-25 19:41:08 +08:00
<th style="padding: 8px 5px; width: 20%;">测试方法</th>
2025-06-25 10:01:50 +08:00
</tr>
</thead>
2025-06-25 19:41:08 +08:00
<tbody style="text-align: center;">
2025-06-26 11:33:08 +08:00
<!-- 动态行渲染+异常值红色高亮 -->
<tr th:each="item : ${items}"
th:style="${item.oaflag=='1'} ? '' : 'background-color: #f9f9f9;color:red;'">
<td style="padding: 8px 5px;" th:text="${item.loitemCname}"></td>
<td style="padding: 8px 5px;" th:text="${item.orderRptResult}"></td>
<td style="padding: 8px 5px;" th:text="${item.loitemUnit}"></td>
<td style="padding: 8px 5px;" th:text="${item.loitemRv}"></td>
<td style="padding: 8px 5px;" th:text="${item.inspectionMethod}"></td>
</tr>
<!-- 补齐空行 -->
<tr th:each="i : ${#numbers.sequence(1, 10 - items.size())}" th:if="${items.size()} < 10">
<td style="padding: 8px 5px;">&nbsp;</td>
<td style="padding: 8px 5px;">&nbsp;</td>
<td style="padding: 8px 5px;">&nbsp;</td>
<td style="padding: 8px 5px;">&nbsp;</td>
<td style="padding: 8px 5px;">&nbsp;</td>
2025-06-25 10:01:50 +08:00
</tr>
</tbody>
</table>
2025-06-25 19:41:08 +08:00
<!-- 建议与解释 -->
<div>
<div style="padding-top: 10px;">
2025-06-26 11:33:08 +08:00
建议与解释:
2025-06-25 19:41:08 +08:00
</div>
2025-06-25 10:01:50 +08:00
</div>
</div>
</body>
</html>