|
@@ -81,6 +81,8 @@ function setEventHandler(){
|
|
|
$( function(){
|
|
|
patientNewInit();
|
|
|
setEventHandler();
|
|
|
+ $( ".hospitalizationDate" ).trigger( "change" );
|
|
|
+ $( ".select-date" ).trigger( "change" );
|
|
|
|
|
|
$( "input.date" ).daterangepicker({
|
|
|
singleDatePicker : true,
|
|
@@ -174,9 +176,10 @@ $( function(){
|
|
|
|
|
|
<c:if test="${centerCount > 0}">
|
|
|
<c:set var="now" value="<%=new java.util.Date()%>" />
|
|
|
- <c:set var="action" value="/patient/new/update" />
|
|
|
+ <c:set var="action" value="/patient/edit/update" />
|
|
|
|
|
|
- <form id="patientForm" action="${action}">
|
|
|
+ <form id="patientForm" action="${action}" method="post">
|
|
|
+ <input type="hidden" value="${patientIdx}" name="patientIdx">
|
|
|
<table class="table mobile-table">
|
|
|
<colgroup>
|
|
|
<col style="width:15%">
|
|
@@ -414,7 +417,7 @@ $( function(){
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline label-readonly-check">
|
|
|
<input class="form-check-input" name="operation" type="checkbox" value="Y" <c:if test="${patientData.operation eq 'Y'}">checked="checked"</c:if>>${patientData.operationContent}
|
|
|
- <span class="form-check-label">수술 ( <input type="text" id="opertaionContent" value="${patientData.operationContent}" name="opertaionContent" class="form-control form-control-sm w150" <c:if test="${patientData.operation eq 'N'}">readonly</c:if>> )</span>
|
|
|
+ <span class="form-check-label">수술 ( <input type="text" id="operationContent" value="${patientData.operationContent}" name="operationContent" class="form-control form-control-sm w150" <c:if test="${patientData.operation eq 'N'}">readonly</c:if>> )</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
<input class="form-check-input" name="allergyCheck" type="checkbox" value="Y" <c:if test="${patientData.allergyCheck eq 'Y'}">checked="checked"</c:if>>
|
|
@@ -429,12 +432,12 @@ $( function(){
|
|
|
<tr>
|
|
|
<td colspan="3" class="basalDisease">
|
|
|
<label class="form-check form-check-inline label-readonly-check">
|
|
|
- <input class="form-check-input" name="cancerCheck" type="checkbox" value="Y">
|
|
|
- <span class="form-check-label">암 ( <input type="text" name="cancerContent" class="form-control form-control-sm w150"> )</span>
|
|
|
+ <input class="form-check-input" name="cancerCheck" type="checkbox" value="Y" <c:if test="${patientData.cancerCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
+ <span class="form-check-label">암 ( <input type="text" name="cancerName" value="${patientData.cancerName}" class="form-control form-control-sm w150"> )</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline label-readonly-check">
|
|
|
- <input class="form-check-input" name="etcCheckBasal" type="checkbox" value="Y">
|
|
|
- <span class="form-check-label">기타 ( <input type="text" name="etcContentBasal" class="form-control form-control-sm w150"> )</span>
|
|
|
+ <input class="form-check-input" name="etcCheckDisease" type="checkbox" value="Y" <c:if test="${patientData.etcCheckDisease eq 'Y'}">checked="checked"</c:if>>
|
|
|
+ <span class="form-check-label">기타 ( <input type="text" name="etcContentDisease" value="${patientData.etcContentDisease}" class="form-control form-control-sm w150"> )</span>
|
|
|
</label>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -445,31 +448,31 @@ $( function(){
|
|
|
<th rowspan="3">현재 증상<br />(입소 당시)</th>
|
|
|
<td colspan="3">
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="feverCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="feverCheck" type="checkbox" value="Y" <c:if test="${patientData.feverCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">열감(열나는 느낌)</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="coughCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="coughCheck" type="checkbox" value="Y" <c:if test="${patientData.coughCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">기침</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="colic" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="colic" type="checkbox" value="Y" <c:if test="${patientData.colic eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">복통(배아픔)</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="coldFitCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="coldFitCheck" type="checkbox" value="Y" <c:if test="${patientData.coldFitCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">오한(추운 느낌)</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="sputumCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="sputumCheck" type="checkbox" value="Y" <c:if test="${patientData.sputumCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">가래</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="ocinCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="ocinCheck" type="checkbox" value="Y" <c:if test="${patientData.ocinCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">오심(구역질)</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="chestPagin" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="chestPain" type="checkbox" value="Y" <c:if test="${patientData.chestPain eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">흉통(가슴 통증)</span>
|
|
|
</label>
|
|
|
</td>
|
|
@@ -477,35 +480,35 @@ $( function(){
|
|
|
<tr>
|
|
|
<td colspan="3">
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="noseCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="noseCheck" type="checkbox" value="Y" <c:if test="${patientData.noseCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">콧물 또는 코 막힘</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="vomitingCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="vomitingCheck" type="checkbox" value="Y" <c:if test="${patientData.vomitingCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">구토</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="musclePainCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="musclePainCheck" type="checkbox" value="Y" <c:if test="${patientData.musclePainCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">근육통(몸살)</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="soreThroatCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="soreThroatCheck" type="checkbox" value="Y" <c:if test="${patientData.soreThroatCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">인후통(목 아픔)</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="diarrheaCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="diarrheaCheck" type="checkbox" value="Y" <c:if test="${patientData.diarrheaCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">설사</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="headacheCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="headacheCheck" type="checkbox" value="Y" <c:if test="${patientData.headacheCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">두통(머리아픔)</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="dyspneaCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="dyspneaCheck" type="checkbox" value="Y" <c:if test="${patientData.dyspneaCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">호흡곤란(숨가쁨)</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="fatigueCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="fatigueCheck" type="checkbox" value="Y" <c:if test="${patientData.fatigueCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">권태감(피곤함)</span>
|
|
|
</label>
|
|
|
</td>
|
|
@@ -513,43 +516,43 @@ $( function(){
|
|
|
<tr>
|
|
|
<td colspan="3">
|
|
|
<label class="form-check form-check-inline label-readonly-check">
|
|
|
- <input class="form-check-input" name="etcCheckDisease" type="checkbox" value="option1">
|
|
|
- <span class="form-check-label">기타 ( <input type="text" name="etcContentDisease" class="form-control form-control-sm w150"> )</span>
|
|
|
+ <input class="form-check-input" name="etcCheckSymptom" type="checkbox" value="Y" <c:if test="${patientData.etcCheckSymptom eq 'Y'}">checked="checked"</c:if>>
|
|
|
+ <span class="form-check-label">기타 ( <input type="text" name="etcContentSymptom" class="form-control form-control-sm w150" value="${patientData.etcContentSymptom}" <c:if test="${patientData.etcCheckDisease eq 'N'}">readonly</c:if>> )</span>
|
|
|
</label>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>체온</th>
|
|
|
- <td>우측 (<input type="text" class="form-control form-control-sm w50" name="feverRight">)℃ / 좌측 (<input type="text" class="form-control form-control-sm w50" name="feverLeft">)℃</td>
|
|
|
+ <td>우측 (<input type="text" class="form-control form-control-sm w50" name="feverRight" value="${patientData.feverRight}">)℃ / 좌측 (<input type="text" value="${patientData.feverLeft}" class="form-control form-control-sm w50" name="feverLeft">)℃</td>
|
|
|
|
|
|
<th>맥박수</th>
|
|
|
<td>
|
|
|
- (<input type="text" class="form-control form-control-sm w50" name="pulseRate">) 회/분
|
|
|
+ (<input type="text" class="form-control form-control-sm w50" name="pulseRate" value="${patientData.pulseRate}">) 회/분
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>호흡수</th>
|
|
|
<td>
|
|
|
- (<input type="text" class="form-control form-control-sm w50" name="respirationRate">) 회/분
|
|
|
+ (<input type="text" class="form-control form-control-sm w50" name="respirationRate" value="${patientData.respirationRate}">) 회/분
|
|
|
</td>
|
|
|
<th>혈압</th>
|
|
|
<td>수축기 (
|
|
|
- <input type="text" class="form-control form-control-sm w50" name="bloodPressureLevelCon">)mmHg
|
|
|
+ <input type="text" class="form-control form-control-sm w50" name="bloodPressureLevelCon" value="${patientData.bloodPressureLevelCon}">)mmHg
|
|
|
/ 이완기 (
|
|
|
- <input type="text" class="form-control form-control-sm w50" name="bloodPressureLevelRel">)mmHg
|
|
|
+ <input type="text" class="form-control form-control-sm w50" name="bloodPressureLevelRel" value="${patientData.bloodPressureLevelRel}">)mmHg
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>산소포화도</th>
|
|
|
<td colspan="3">
|
|
|
- (<input type="text" class="form-control form-control-sm w50" name="oxygenSaturation">) %
|
|
|
+ (<input type="text" class="form-control form-control-sm w50" name="oxygenSaturation" value="${patientData.oxygenSaturation}">) %
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
<div class="row mt-3">
|
|
|
<div class="col-12">
|
|
|
<div class="text-right">
|
|
|
- <button class="btn btn-outline-primary w100" onclick="history.back();">취소</button>
|
|
|
+ <button type="button" class="btn btn-outline-primary w100" onclick="history.back();">취소</button>
|
|
|
<button type="submit" class="btn btn-primary w100">수정</button>
|
|
|
</div>
|
|
|
</div>
|