|
@@ -1,5 +1,6 @@
|
|
|
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
|
|
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
|
|
+<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
|
|
pageEncoding="UTF-8"%>
|
|
|
<jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
|
|
@@ -62,8 +63,10 @@
|
|
|
</div>
|
|
|
<div class="card-body">
|
|
|
<div class="row patients-list">
|
|
|
- <c:forEach var="patient" items="${items}" varStatus="status">
|
|
|
- <c:set var="viewLink" value="./info?patientIdx=${patient.patientIdx}" />
|
|
|
+ <jsp:useBean id="now" class="java.util.Date" />
|
|
|
+ <fmt:formatDate value="${now}" pattern="yyyyMMdd" var="nowDateString" />
|
|
|
+ <c:forEach var="patient" items="${items}" varStatus="status">
|
|
|
+ <c:set var="viewLink" value="./info?patientIdx=${patient.patientIdx}" />
|
|
|
<div class="col-lg-2 col-md-6 mb-4">
|
|
|
<div class="patients-stats">
|
|
|
<div class="name">
|
|
@@ -80,15 +83,17 @@
|
|
|
</div>
|
|
|
<div class="stats ${status.index % 4 == 0 ? 'danger' : '' }">
|
|
|
<ul>
|
|
|
- <li class="fever step_two">
|
|
|
- <c:out value="${patient.temperature} ℃" />
|
|
|
+ <fmt:formatDate value="${patient.temperatureCreateDate}" pattern="yyyyMMdd" var="temperatureDateString" />
|
|
|
+ <li class="fever ${temperatureDateString == nowDateString ? 'step_one' : ''}">
|
|
|
+ <c:out value="${patient.temperature != null ? patient.temperature : '--'} ℃" />
|
|
|
</li>
|
|
|
- <li class="bloodPressure step_two">
|
|
|
- 80 bpm
|
|
|
- </li>
|
|
|
- <li class="oxygen step_one">
|
|
|
- 150 mmHg
|
|
|
+ <fmt:formatDate value="${patient.systolicBloodPressureCreateDate}" pattern="yyyyMMdd" var="systolicBloodPressureDateString" />
|
|
|
+ <li class="bloodPressure ${systolicBloodPressureDateString == nowDateString ? 'step_one' : ''}">
|
|
|
+ <c:out value="${patient.systolicBloodPressure != null ? patient.systolicBloodPressure : '--'} ℃" />
|
|
|
</li>
|
|
|
+ <fmt:formatDate value="${patient.diastolicBloodPressureCreateDate}" pattern="yyyyMMdd" var="diastolicBloodPressureDateString" />
|
|
|
+ <li class="oxygen ${diastolicBloodPressureDateString == nowDateString ? 'step_one' : ''}">
|
|
|
+ <c:out value="${patient.diastolicBloodPressure != null ? patient.diastolicBloodPressure : '--'} ℃" />
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|