|
@@ -7,9 +7,19 @@
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
function patientNewInit() {
|
|
|
- $( "td.basalDisease input" ).prop( "disabled", true );
|
|
|
+ if( $( "#basalN" ).is( ":checked" ) ) {
|
|
|
+ $( "td.basalDisease input" ).prop( "disabled", true );
|
|
|
+ }
|
|
|
|
|
|
- $( "label.label-readonly-check input[type='text']" ).prop( "readonly", true );
|
|
|
+ $( "label.label-readonly-check" ).each( function( i, v ){
|
|
|
+ var $this = $(v);
|
|
|
+ var checkbox = $this.find( "input[type='checkbox']" );
|
|
|
+ var textbox = $this.find( "input[type='text']" );
|
|
|
+
|
|
|
+ if( !checkbox.is(":checked") ){
|
|
|
+ textbox.prop( "readonly", true );
|
|
|
+ }
|
|
|
+ });
|
|
|
};
|
|
|
function setEventHandler(){
|
|
|
//체크yes시 content입력 처리
|
|
@@ -72,12 +82,10 @@ $( function(){
|
|
|
patientNewInit();
|
|
|
setEventHandler();
|
|
|
|
|
|
-
|
|
|
$( "input.date" ).daterangepicker({
|
|
|
singleDatePicker : true,
|
|
|
showDropdowns : true,
|
|
|
locale : {
|
|
|
- //format : "M/DD hh:mm A"
|
|
|
format : "YYYY-MM-DD"
|
|
|
}
|
|
|
});
|
|
@@ -183,12 +191,13 @@ $( function(){
|
|
|
<td colspan="2">
|
|
|
<div class="form-row">
|
|
|
<!-- 입소일시 -->
|
|
|
- <c:set var="sysYmd"><fmt:formatDate value="${now}" pattern="yyyy-MM-dd" /></c:set>
|
|
|
- <c:set var="sysHour"><fmt:formatDate value="${now}" pattern="h" /></c:set>
|
|
|
- <c:set var="sysMin"><fmt:formatDate value="${now}" pattern="m" /></c:set>
|
|
|
+ <fmt:parseDate var="hospitalizationDate" value="${patientData.hospitalizationDate}" pattern="yyyy-MM-dd HH:mm" />
|
|
|
+ <c:set var="sysYmd"><fmt:formatDate value="${hospitalizationDate}" pattern="yyyy-MM-dd" /></c:set>
|
|
|
+ <c:set var="sysHour"><fmt:formatDate value="${hospitalizationDate}" pattern="h" /></c:set>
|
|
|
+ <c:set var="sysMin"><fmt:formatDate value="${hospitalizationDate}" pattern="m" /></c:set>
|
|
|
|
|
|
<div class="col-6 calendar-bar">
|
|
|
- <input class="form-control date hospitalizationDate" type="text" id="hospitalizationDateYmd">
|
|
|
+ <input class="form-control date hospitalizationDate" type="text" value="${sysYmd}" id="hospitalizationDateYmd">
|
|
|
<i class="align-middle mr-2 fas fa-fw fa-calendar-alt"></i>
|
|
|
</div>
|
|
|
<div class="col-3">
|
|
@@ -283,25 +292,25 @@ $( function(){
|
|
|
<tr>
|
|
|
<th><span class="fix">*</span>연락처</th>
|
|
|
<td>
|
|
|
- <input type="text" name="patientPhone" class="form-control" placeholder="연락처를 입력해주세요" required>
|
|
|
+ <input type="text" name="patientPhone" value="${patientData.patientPhone}" class="form-control" placeholder="연락처를 입력해주세요" required>
|
|
|
</td>
|
|
|
<th>보호자 연락처</th>
|
|
|
<td>
|
|
|
- <input type="text" name="guardianPhone" class="form-control" placeholder="보호자 연락처를 입력해주세요">
|
|
|
+ <input type="text" name="guardianPhone" value="${patientData.guardianPhone}" class="form-control" placeholder="보호자 연락처를 입력해주세요">
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th><span class="fix">*</span>증상시작일</th>
|
|
|
<td>
|
|
|
<div class="form-group calendar-bar mb-xl-0">
|
|
|
- <input class="form-control date" type="text" name="symptomStartDate">
|
|
|
+ <input class="form-control date" type="text" value="${patientData.symptomStartDate}" name="symptomStartDate">
|
|
|
<i class="align-middle mr-2 fas fa-fw fa-calendar-alt"></i>
|
|
|
</div>
|
|
|
</td>
|
|
|
<th><span class="fix">*</span>확진일</th>
|
|
|
<td>
|
|
|
<div class="form-group calendar-bar mb-xl-0">
|
|
|
- <input class="form-control date" type="text" name="confirmationDate">
|
|
|
+ <input class="form-control date" type="text" value="${patientData.confirmationDate}" name="confirmationDate">
|
|
|
<i class="align-middle mr-2 fas fa-fw fa-calendar-alt"></i>
|
|
|
</div>
|
|
|
</td>
|
|
@@ -310,7 +319,7 @@ $( function(){
|
|
|
<th>격리해제 예정일</th>
|
|
|
<td colspan="3">
|
|
|
<div class="form-group calendar-bar mb-xl-0">
|
|
|
- <input class="form-control date" type="text" name="disisolationDate">
|
|
|
+ <input class="form-control date" type="text" value="${patientData.disisolationDate}" name="disisolationDate">
|
|
|
<i class="align-middle mr-2 fas fa-fw fa-calendar-alt"></i>
|
|
|
</div>
|
|
|
</td>
|
|
@@ -319,32 +328,32 @@ $( function(){
|
|
|
<th><span class="fix">*</span>최근약복용<br />(최근 24시간 이내)</th>
|
|
|
<td>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" type="radio" value="N" name="drugYn" onclick="$('#drugContent').attr('readonly', true);" required>
|
|
|
+ <input class="form-check-input" type="radio" value="N" name="drugYn" <c:if test="${patientData.drugYn eq 'N'}">checked="checked"</c:if> onclick="$('#drugContent').attr('readonly', true);" required>
|
|
|
<span class="form-check-label">미복용</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" type="radio" value="Y" name="drugYn" onclick="$('#drugContent').removeAttr('readonly');" required>
|
|
|
+ <input class="form-check-input" type="radio" value="Y" name="drugYn" <c:if test="${patientData.drugYn eq 'Y'}">checked="checked"</c:if> onclick="$('#drugContent').removeAttr('readonly');" required>
|
|
|
<span class="form-check-label">복용</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input type="text" id="drugContent" class="form-control" name="drugContent" placeholder="약명을 입력하세요." readonly>
|
|
|
+ <input type="text" id="drugContent" class="form-control" name="drugContent" placeholder="약명을 입력하세요." value="${patientData.drugContent}" <c:if test="${patientData.drugYn eq 'N'}">readonly</c:if>>
|
|
|
</label>
|
|
|
</td>
|
|
|
<th><span class="fix">*</span>임신</th>
|
|
|
<td>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" type="radio" name="pregnancyStatus" value="N" required>
|
|
|
+ <input class="form-check-input" type="radio" name="pregnancyStatus" value="N" <c:if test="${patientData.pregnancyStatus eq 'N'}">checked="checked"</c:if> required>
|
|
|
<span class="form-check-label">무</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" type="radio" name="pregnancyStatus" value="Y" required>
|
|
|
+ <input class="form-check-input" type="radio" name="pregnancyStatus" value="Y" <c:if test="${patientData.pregnancyStatus eq 'Y'}">checked="checked"</c:if> required>
|
|
|
<span class="form-check-label">유</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
<select class="custom-select" name="pregnancyWeek" id="pregnancyWeek">
|
|
|
<option value="" selected="">임신 주차</option>
|
|
|
<c:forEach var="p" begin="1" end="40" step="1">
|
|
|
- <option value="${p}">${p} 주</option>
|
|
|
+ <option value="${p}" <c:if test="${patientData.pregnancyWeek eq p}">selected="selected"</c:if>>${p} 주</option>
|
|
|
</c:forEach>
|
|
|
</select>
|
|
|
</label>
|
|
@@ -354,11 +363,11 @@ $( function(){
|
|
|
<th rowspan="4">기저질환 여부</th>
|
|
|
<td colspan="3">
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" type="radio" name="basalDiseaseYn" value="Y" required>
|
|
|
+ <input class="form-check-input" type="radio" id="basalY" name="basalDiseaseYn" value="Y" <c:if test="${patientData.basalDiseaseYn eq 'Y'}">checked="checked"</c:if> required>
|
|
|
<span class="form-check-label">예</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" type="radio" name="basalDiseaseYn" value="N" checked="checked" required>
|
|
|
+ <input class="form-check-input" type="radio" id="basalN" name="basalDiseaseYn" value="N" <c:if test="${patientData.basalDiseaseYn eq 'N'}">checked="checked"</c:if> required>
|
|
|
<span class="form-check-label">아니오</span>
|
|
|
</label>
|
|
|
(예인 경우 하단의 기저질환을 선택하세요)
|
|
@@ -367,27 +376,27 @@ $( function(){
|
|
|
<tr>
|
|
|
<td colspan="3" class="basalDisease">
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="highBloodPressureCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="highBloodPressureCheck" type="checkbox" value="Y" <c:if test="${patientData.highBloodPressureCheck 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="lowBloodPressureCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="lowBloodPressureCheck" type="checkbox" value="Y" <c:if test="${patientData.lowBloodPressureCheck 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="organTransplantCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="organTransplantCheck" type="checkbox" value="Y" <c:if test="${patientData.organTransplantCheck 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="diabetesCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="diabetesCheck" type="checkbox" value="Y" <c:if test="${patientData.diabetesCheck 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="respiratoryDiseaseCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="respiratoryDiseaseCheck" type="checkbox" value="Y" <c:if test="${patientData.respiratoryDiseaseCheck 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="immunologicalDiseaseCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="immunologicalDiseaseCheck" type="checkbox" value="Y" <c:if test="${patientData.immunologicalDiseaseCheck eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">면역질환(류마티스 등)</span>
|
|
|
</label>
|
|
|
</td>
|
|
@@ -396,23 +405,23 @@ $( function(){
|
|
|
<tr>
|
|
|
<td colspan="3" class="basalDisease">
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="heartDisease" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="heartDisease" type="checkbox" value="Y" <c:if test="${patientData.heartDisease 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="liverDisease" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="liverDisease" type="checkbox" value="Y" <c:if test="${patientData.liverDisease eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">간질환</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline label-readonly-check">
|
|
|
- <input class="form-check-input" name="operation" type="checkbox" value="Y">
|
|
|
- <span class="form-check-label">수술 ( <input type="text" id="opertaionContent" name="opertaionContent" class="form-control form-control-sm w150" name=""> )</span>
|
|
|
+ <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>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input class="form-check-input" name="allergyCheck" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="allergyCheck" type="checkbox" value="Y" <c:if test="${patientData.allergyCheck 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="kidneyDisease" type="checkbox" value="Y">
|
|
|
+ <input class="form-check-input" name="kidneyDisease" type="checkbox" value="Y" <c:if test="${patientData.kidneyDisease eq 'Y'}">checked="checked"</c:if>>
|
|
|
<span class="form-check-label">신장질환</span>
|
|
|
</label>
|
|
|
</td>
|