info.jsp 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  2. <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
  3. <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
  4. <%@ page language="java" contentType="text/html; charset=UTF-8"
  5. pageEncoding="UTF-8"%>
  6. <jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
  7. <script type="text/javascript">
  8. function deleteConfirm(){
  9. alertBox({ type : "confirm",
  10. txt : "정말로 삭제할까요? (기록된 환자의 모든정보가 삭제되며 복구가 불가능합니다)",
  11. callBack : function( result ){
  12. console.log( result );
  13. if( result ){
  14. $( "#pForm" ).attr( "action", "./delete" );
  15. $( "#pForm" ).submit();
  16. }
  17. }
  18. });
  19. return false;
  20. }
  21. </script>
  22. </head>
  23. <body>
  24. <div class="wrapper">
  25. <jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
  26. <div class="main">
  27. <jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>
  28. <main class="content">
  29. <div class="container-fluid p-0">
  30. <!-- 환자관리 : 신규환자 등록 START -->
  31. <div class="row">
  32. <div class="col-12 col-lg-6">
  33. <h1 class="h3 mb-3">
  34. 환자정보
  35. </h1>
  36. </div>
  37. <div class="col-12 col-lg-6 text-right">
  38. <nav aria-label="breadcrumb">
  39. <ol class="breadcrumb">
  40. <li class="breadcrumb-item"><a href="javscript:;">Home</a></li>
  41. <li class="breadcrumb-item">환자관리</li>
  42. <li class="breadcrumb-item active">환자정보 조회</li>
  43. </ol>
  44. </nav>
  45. </div>
  46. </div>
  47. <div class="row">
  48. <div class="col-12">
  49. <div class="card">
  50. <div class="card-body">
  51. <form method="post" id="pForm">
  52. <input type="hidden" name="enIdx" value="<c:out value="${enIdx}" />">
  53. <table class="table mobile-table">
  54. <colgroup>
  55. <col style="width:15%">
  56. <col style="width:35%">
  57. <col style="width:15%">
  58. <col style="width:35%">
  59. </colgroup>
  60. <tr>
  61. <th>치료센터</th>
  62. <td><c:out value="${info.centerName}" /></td>
  63. <th>입소일시</th>
  64. <td colspan="2">
  65. <fmt:parseDate var="hDate" value="${info.hospitalizationDate}" pattern="yyyy-MM-dd" />
  66. <c:set var="hospitalizationDate"><fmt:formatDate value="${hDate}" pattern="yyyy년 MM월 dd일" /></c:set>
  67. <c:out value="${hospitalizationDate}" />
  68. <%-- <c:out value="${info.hospitalizationDate}" /> --%>
  69. </td>
  70. </tr>
  71. <tr>
  72. <th>병동 번호</th>
  73. <td>
  74. <c:if test="${info.wardNumber ne null and info.wardNumber ne ''}">
  75. <c:out value="${info.wardNumber}"/>동
  76. </c:if>
  77. <c:out value="${info.roomNumber}" />호
  78. </td>
  79. <th>이름</th>
  80. <td>
  81. <c:out value="${info.patientName}" />
  82. </td>
  83. </tr>
  84. <tr>
  85. <th>성별</th>
  86. <td>
  87. <c:if test="${info.gender eq 'M'}">
  88. </c:if>
  89. <c:if test="${info.gender ne 'M'}">
  90. </c:if>
  91. </td>
  92. <th>생년월일</th>
  93. <td>
  94. <c:out value="${info.jumin}" />
  95. </td>
  96. </tr>
  97. <tr>
  98. <th>연락처</th>
  99. <td>
  100. <c:out value="${info.patientPhone}" />
  101. </td>
  102. <th>보호자 연락처</th>
  103. <td>
  104. <c:out value="${info.guardianPhone}" />
  105. </td>
  106. </tr>
  107. <tr>
  108. <th>증상시작일</th>
  109. <td>
  110. <fmt:parseDate var="symptomStartDateTime" value="${info.symptomStartDate}" pattern="yyyy-MM-dd" />
  111. <c:set var="symptomStartDate"><fmt:formatDate value="${symptomStartDateTime}" pattern="yyyy년 MM월 dd일" /></c:set>
  112. <c:out value="${symptomStartDate}" />
  113. </td>
  114. <th>확진일</th>
  115. <td>
  116. <fmt:parseDate var="confirmationDateTime" value="${info.confirmationDate}" pattern="yyyy-MM-dd" />
  117. <c:set var="confirmationDate"><fmt:formatDate value="${confirmationDateTime}" pattern="yyyy년 MM월 dd일" /></c:set>
  118. <c:out value="${confirmationDate}" />
  119. </td>
  120. </tr>
  121. <tr>
  122. <!-- <th>격리해제 예정일</th> -->
  123. <th>상태 변경일</br>(퇴소, 지정병원이송, 기타)</th>
  124. <td>
  125. <fmt:parseDate var="disisolationDateTime" value="${info.disisolationDate}" pattern="yyyy-MM-dd" />
  126. <c:set var="disisolationDate"><fmt:formatDate value="${disisolationDateTime}" pattern="yyyy년 MM월 dd일" /></c:set>
  127. <c:out value="${disisolationDate}" />
  128. <c:if test="${info.state eq 'D'}">(퇴소)</c:if>
  129. <c:if test="${info.state eq 'T'}">(지정병원 이송)</c:if>
  130. <c:if test="${info.state eq 'E'}">(기타)</c:if>
  131. </td>
  132. <th>상태</th>
  133. <td>
  134. <c:if test="${info.state eq 'H'}">입소</c:if>
  135. <c:if test="${info.state eq 'D'}">퇴소</c:if>
  136. <c:if test="${info.state eq 'T'}">지정병원 이송</c:if>
  137. <c:if test="${info.state eq 'E'}">기타</c:if>
  138. </td>
  139. </tr>
  140. <tr>
  141. <th>최근 약복용<br />(최근 24시간 이내)</th>
  142. <td>
  143. <c:choose>
  144. <c:when test="${info.drugYn eq 'Y'}">복용 (<c:out value="${info.drugContent}" />)</c:when>
  145. <c:when test="${info.drugYn eq 'N'}">미복용</c:when>
  146. <c:otherwise></c:otherwise>
  147. </c:choose>
  148. </td>
  149. <th>임신</th>
  150. <td>
  151. <c:choose>
  152. <c:when test="${info.pregnancyStatus eq 'N'}">무</c:when>
  153. <c:when test="${info.pregnancyStatus eq 'Y'}">유 (<c:out value="${info.pregnancyWeek}주차" />)</c:when>
  154. <c:otherwise></c:otherwise>
  155. </c:choose>
  156. </td>
  157. </tr>
  158. <tr>
  159. <th rowspan="2">기저질환 여부</th>
  160. <td colspan="3">
  161. <c:choose>
  162. <c:when test="${info.basalDiseaseYn eq 'Y'}">유</c:when>
  163. <c:when test="${info.basalDiseaseYn eq 'N'}">무</c:when>
  164. <c:otherwise></c:otherwise>
  165. </c:choose>
  166. </td>
  167. </tr>
  168. <tr>
  169. <td colspan="3">
  170. <%-- <c:if test="${info.highBloodPressureCheck eq 'Y'}">, 고혈압</c:if> --%>
  171. <%-- <c:if test="${info.lowBloodPressureCheck eq 'Y'}">, 저혈압</c:if> --%>
  172. <%-- <c:if test="${info.organTransplantCheck eq 'Y'}">, 장기이식(신장, 간 등)</c:if> --%>
  173. <%-- <c:if test="${info.diabetesCheck eq 'Y'}">, 당뇨</c:if> --%>
  174. <%-- <c:if test="${info.respiratoryDiseaseCheck eq 'Y'}">, 호흡기질환</c:if> --%>
  175. <%-- <c:if test="${info.immunologicalDiseaseCheck eq 'Y'}">, 면역질환(류마티스 등)</c:if> --%>
  176. <%-- <c:if test="${info.heartDisease eq 'Y'}">, 심장질환</c:if> --%>
  177. <%-- <c:if test="${info.liverDisease eq 'Y'}">, 간질환</c:if> --%>
  178. <%-- <c:if test="${info.operation eq 'Y'}">, 수술(<c:out value="${info.operationContent}" />)</c:if> --%>
  179. <%-- <c:if test="${info.allergyCheck eq 'Y'}">, 알레르기</c:if> --%>
  180. <%-- <c:if test="${info.kidneyDisease eq 'Y'}">, 신장질환</c:if> --%>
  181. <%-- <c:if test="${info.cancerCheck eq 'Y'}">, 암(<c:out value="${info.cancerName}" />)</c:if> --%>
  182. <%-- <c:if test="${info.ectCheckDisease eq 'Y'}">, 기타(<c:out value="${info.etcContentDisease}" />)</c:if> --%>
  183. <c:out value="${disease}" />
  184. </td>
  185. </tr>
  186. <tr>
  187. <th>현재 증상<br />(입소 당시)</th>
  188. <td colspan="3">
  189. <%-- <c:if test="${info.feverCheck eq 'Y'}">, 열감(열나는느낌)</c:if> --%>
  190. <%-- <c:if test="${info.coughCheck eq 'Y'}">, 기침</c:if> --%>
  191. <%-- <c:if test="${info.colic eq 'Y'}">, 복통(배아픔)</c:if> --%>
  192. <%-- <c:if test="${info.coldFitCheck eq 'Y'}">, 오한(추운 느낌)</c:if> --%>
  193. <%-- <c:if test="${info.sputumCheck eq 'Y'}">, 가래</c:if> --%>
  194. <%-- <c:if test="${info.ocinCheck eq 'Y'}">, 오심(구역질)</c:if> --%>
  195. <%-- <c:if test="${info.chestPain eq 'Y'}">, 흉통</c:if> --%>
  196. <%-- <c:if test="${info.noseCheck eq 'Y'}">, 콧물 또는 코 막힘</c:if> --%>
  197. <%-- <c:if test="${info.vomitingCheck eq 'Y'}">, 구토</c:if> --%>
  198. <%-- <c:if test="${info.musclePainCheck eq 'Y'}">, 근육통(몸살)</c:if> --%>
  199. <%-- <c:if test="${info.soreThroatCheck eq 'Y'}">, 인후통(목 아픔)</c:if> --%>
  200. <%-- <c:if test="${info.diarrheaCheck eq 'Y'}">, 설사</c:if> --%>
  201. <%-- <c:if test="${info.headacheCheck eq 'Y'}">, 두통(머리아픔)</c:if> --%>
  202. <%-- <c:if test="${info.dyspneaCheck eq 'Y'}">, 호흡곤란(숨가쁨)</c:if> --%>
  203. <%-- <c:if test="${info.fatigueCheck eq 'Y'}">, 권태감(피곤함)</c:if> --%>
  204. <%-- <c:if test="${info.ectCheckSymptom eq 'Y'}">, 기타(<c:out value="${info.etcContentSymptom}" />)</c:if> --%>
  205. <c:out value="${symptom}" />
  206. </td>
  207. </tr>
  208. <tr>
  209. <th>
  210. 체온
  211. </th>
  212. <td>
  213. <c:out value="우측 ${info.feverRight}℃ / 좌측 ${info.feverRight}℃" />
  214. </td>
  215. <th>
  216. 맥박수
  217. </th>
  218. <td>
  219. <c:out value="${info.pulseRate} 회/분" />
  220. </td>
  221. </tr>
  222. <tr>
  223. <th>
  224. 호흡수
  225. </th>
  226. <td>
  227. <c:out value="${info.respirationRate} 회/분" />
  228. </td>
  229. <th>
  230. 혈압
  231. </th>
  232. <td>
  233. <c:out value="수축기 ${info.bloodPressureLevelCon} mmHg / 이완기 ${info.bloodPressureLevelRel} mmHg" />
  234. </td>
  235. </tr>
  236. <tr>
  237. <th>
  238. 산소포화도
  239. </th>
  240. <td colspan="3">
  241. <c:out value="${info.oxygenSaturation} %" />
  242. </td>
  243. </tr>
  244. </table>
  245. <div class="row mt-3">
  246. <div class="col-12">
  247. <div class="text-right">
  248. <c:if test="${data._SES_GROUP_IDX eq '2'}">
  249. <button type="button" class="btn btn-danger w100" onclick="deleteConfirm();">삭제</button>
  250. </c:if>
  251. <c:if test="${data._SES_GROUP_IDX ne '1'}">
  252. <button type="button" class="btn btn-secondary w100" onclick="location.href='./edit?patientIdx=${patientIdx}';">수정</button>
  253. </c:if>
  254. <button type="button" class="btn btn-primary w100" onclick="location.href='./list';">확인</button>
  255. </div>
  256. </div>
  257. </div>
  258. </form>
  259. </div>
  260. </div>
  261. </div>
  262. </div>
  263. <!-- 환자관리 : 신규환자 등록 END -->
  264. </div>
  265. </main>
  266. <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
  267. </div>
  268. </div>
  269. </body>
  270. </html>