Browse Source

[진료관리 - 대시보드] 금일 입소 환자 표시 추가.

sjpark 4 years ago
parent
commit
542a17da3b
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/main/webapp/WEB-INF/jsp/clinic/state.jsp

+ 5 - 3
src/main/webapp/WEB-INF/jsp/clinic/state.jsp

@@ -141,14 +141,15 @@ function retrieveStateData(page, needInitPagination) {
 								var oxygenSaturationStep = d.isOxygenSaturationeWarning ? "step_two" : "step_one";
 								var temperatureCheck = d.needTemperatureCheck ? "timeover" : "";
 								var bloodPressureCheck = d.needBloodPressCheck ? "timeover" : "";
-								var oxygenSaturationCheck = d.needOxygenSaturationCheck ? "timeover" : "";
+                var oxygenSaturationCheck = d.needOxygenSaturationCheck ? "timeover" : "";
+                var todayIn = d.todayHospitalizationYN === "Y" ? "new" : "";
 								
 								var temperature = d.temperature ? parseFloat(d.temperature).toFixed(1) : "--";
 								temperature += ' ℃ ';
 								var bloodPressure = (d.bloodPressureDisplay) + " ";
 								var oxygenSaturation = (d.oxygenSaturation || "--") + " % ";
 								html += '<li class="col-lg-2 col-md-6 mb-4">';
-								html += '	<div class="patients-stats" data-url="./info?patientIdx='+d.patientIdx+'">';
+								html += '	<div class="patients-stats '+todayIn+'" data-url="./info?patientIdx='+d.patientIdx+'">';
 								html += '		<div class="name">';
 								html += '			'+(d.wardNumber !== "" ? d.wardNumber+'/' : '')+d.roomNumber+'('+d.patientName+')';
 								html += '			<div class="check">';
@@ -476,8 +477,9 @@ $(document).ready(function() {
 											<c:set var="temperatureCheck" value="${patient.needTemperatureCheck ? 'timeover' : ''}" />
 											<c:set var="bloodPressureCheck" value="${patient.needBloodPressCheck ? 'timeover' : ''}" />
 											<c:set var="oxygenSaturationCheck" value="${patient.needOxygenSaturationCheck ? 'timeover' : ''}" />
+                      <c:set var="todayIn" value='${patient.todayHospitalizationYN == "Y" ? "new" : ""}' />
 											<li class="col-lg-2 col-md-4 mb-4">
-												<div class="patients-stats" data-url="${viewLink}">
+												<div class="patients-stats ${todayIn}" data-url="${viewLink}">
 													<div class="name">
 														<c:out value="${title}" />
 														<div class="check">