|
@@ -13,7 +13,13 @@
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
|
|
|
<script>
|
|
|
|
|
|
-const mPatientIdx = ${patientIdx}
|
|
|
+const mPatientIdx = Number( '${patientIdx}' );
|
|
|
+var role = {
|
|
|
+ create : '${role._CREATE}',
|
|
|
+ read : '${role._READ}',
|
|
|
+ update : '${role._UPDATE}',
|
|
|
+ delete : '${role._DELETE}'
|
|
|
+};
|
|
|
|
|
|
var PHR_VALUE_DEFAULT = {
|
|
|
TEMPERATURE: {
|
|
@@ -365,7 +371,11 @@ function retrievePhrData(phrType) {
|
|
|
}
|
|
|
row += "<td>" + d.recordedByName + "</td>";
|
|
|
row += "<td>" + gridDateFormatter(d.createDate);
|
|
|
- row += '<i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1" onclick="deletePatientPHRHistory( \''+phrType+'\', \''+phrIdx+'\', this );"></i>'
|
|
|
+
|
|
|
+ if( role.delete == 'Y' ) {
|
|
|
+ row += '<i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1" onclick="deletePatientPHRHistory( \''+phrType+'\', \''+phrIdx+'\', this );"></i>'
|
|
|
+ }
|
|
|
+
|
|
|
row += "</td>";
|
|
|
|
|
|
row += "</tr>";
|
|
@@ -591,7 +601,13 @@ function retrieveSymptomData() {
|
|
|
html += "<td>" + (d.noseCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
html += "<td>" + (d.etcCheck === "Y" ? d.etcContent : "-") + "</td>";
|
|
|
html += "<td>" + d.recordedByName + "</td>";
|
|
|
- html += "<td>" + gridDateFormatter(d.createDate) + '<i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1" onclick=\'deletePatientSymptom( "symptom", '+d.idx+', this );\'></i>' +"</td>";
|
|
|
+ html += "<td>" + gridDateFormatter(d.createDate);
|
|
|
+
|
|
|
+ if( role.delete == 'Y' ) {
|
|
|
+ html += '<i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1" onclick=\'deletePatientSymptom( "symptom", '+d.idx+', this );\'></i>';
|
|
|
+ }
|
|
|
+
|
|
|
+ html += "</td>";
|
|
|
html += "</tr>";
|
|
|
});
|
|
|
};
|
|
@@ -686,7 +702,13 @@ function requestInsertMental() {
|
|
|
tr += '<td><span class="mental-total text-primary m-vas">'+datas.vasTotal+'</span></td>';
|
|
|
tr += '<td class="m-agree"><span>'+agree+'</span></td>';
|
|
|
tr += '<td class="m-cby">'+datas.createdBy+'</td>';
|
|
|
- tr += '<td class="m-cdate">'+datas.createDate+'<i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1" onclick="deletePatientMental( \''+datas.totalIdx+'\', this );"></i> </td>';
|
|
|
+ tr += '<td class="m-cdate">'+datas.createDate;
|
|
|
+
|
|
|
+ if( role.delete == 'Y' ) {
|
|
|
+ tr += '<i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1" onclick="deletePatientMental( \''+datas.totalIdx+'\', this );"></i>';
|
|
|
+ }
|
|
|
+
|
|
|
+ tr += '</td>';
|
|
|
tr += '</tr>';
|
|
|
|
|
|
$('#defaultModalMental').modal('hide');
|
|
@@ -1934,8 +1956,10 @@ $(document).ready(function() {
|
|
|
<td>${d.etcCheck == 'Y' ? d.etcContent : noHtml}</td>
|
|
|
<td><c:out value="${d.recordedByName}" /></td>
|
|
|
<td><c:out value="${d.createDateFormatted}" />
|
|
|
- <i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1"
|
|
|
- onclick="deletePatientSymptom( 'symptom', <c:out value='${d.idx}' />, this );"></i>
|
|
|
+ <c:if test="${role._DELETE eq 'Y'}">
|
|
|
+ <i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1"
|
|
|
+ onclick="deletePatientSymptom( 'symptom', <c:out value='${d.idx}' />, this );"></i>
|
|
|
+ </c:if>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
@@ -2017,9 +2041,11 @@ $(document).ready(function() {
|
|
|
<td><span class="${temperatureResult[temperatureTotal-i].isWarning ? 'text-danger' : ''}"><c:out value="${temperatureResult[temperatureTotal-i].phrValue}" /></span></td>
|
|
|
<td><c:out value="${temperatureResult[temperatureTotal-i].recordedByName}" /></td>
|
|
|
<td><c:out value="${temperatureResult[temperatureTotal-i].createDateFormatted}" />
|
|
|
- <i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1"
|
|
|
- onclick="deletePatientPHRHistory( 'temperature', <c:out value='${temperatureResult[temperatureTotal-i].idx}' />, this );">
|
|
|
- </i>
|
|
|
+ <c:if test="${role._DELETE eq 'Y'}">
|
|
|
+ <i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1"
|
|
|
+ onclick="deletePatientPHRHistory( 'temperature', <c:out value='${temperatureResult[temperatureTotal-i].idx}' />, this );">
|
|
|
+ </i>
|
|
|
+ </c:if>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
@@ -2107,9 +2133,11 @@ $(document).ready(function() {
|
|
|
<td><span class="${bloodPressureUnionResult[bloodPressureUnionTotal-i].isExtraWarning ? 'text-danger' : ''}"><c:out value="${pr}" /></span></td>
|
|
|
<td><c:out value="${bloodPressureUnionResult[bloodPressureUnionTotal-i].recordedByName}" /></td>
|
|
|
<td><c:out value="${bloodPressureUnionResult[bloodPressureUnionTotal-i].createDateFormatted}" />
|
|
|
- <i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1"
|
|
|
- onclick="deletePatientPHRHistory( 'bloodPressure', '<c:out value="${bloodPressureUnionResult[bloodPressureUnionTotal-i].bloodPressureIdx}" />|<c:out value="${bloodPressureUnionResult[bloodPressureUnionTotal-i].pulseRateIdx}" />', this );"
|
|
|
- ></i>
|
|
|
+ <c:if test="${role._DELETE eq 'Y'}">
|
|
|
+ <i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1"
|
|
|
+ onclick="deletePatientPHRHistory( 'bloodPressure', '<c:out value="${bloodPressureUnionResult[bloodPressureUnionTotal-i].bloodPressureIdx}" />|<c:out value="${bloodPressureUnionResult[bloodPressureUnionTotal-i].pulseRateIdx}" />', this );"
|
|
|
+ ></i>
|
|
|
+ </c:if>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
@@ -2192,7 +2220,9 @@ $(document).ready(function() {
|
|
|
<td><span class="${oxygenSaturationResult[oxygenSaturationTotal-i].isWarning ? 'text-danger' : ''}"><c:out value="${phrValue}" /></span></td>
|
|
|
<td><c:out value="${oxygenSaturationResult[oxygenSaturationTotal-i].recordedByName}" /></td>
|
|
|
<td><c:out value="${oxygenSaturationResult[oxygenSaturationTotal-i].createDateFormatted}" />
|
|
|
- <i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1" onclick="deletePatientPHRHistory( 'oxygenSaturation', '${oxygenSaturationResult[oxygenSaturationTotal-i].idx}', this );"></i>
|
|
|
+ <c:if test="${role._DELETE eq 'Y'}">
|
|
|
+ <i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1" onclick="deletePatientPHRHistory( 'oxygenSaturation', '${oxygenSaturationResult[oxygenSaturationTotal-i].idx}', this );"></i>
|
|
|
+ </c:if>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
@@ -2292,7 +2322,9 @@ $(document).ready(function() {
|
|
|
<td class="m-cby"><c:out value="${ml.createdBy}" /></td>
|
|
|
<td class="m-cdate">
|
|
|
<c:out value="${ml.createDate}" />
|
|
|
- <i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1" onclick="deletePatientMental( '${ml.idx}', this );"></i>
|
|
|
+ <c:if test="${role._DELETE eq 'Y'}">
|
|
|
+ <i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1" onclick="deletePatientMental( '${ml.idx}', this );"></i>
|
|
|
+ </c:if>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
@@ -2353,6 +2385,12 @@ $(document).ready(function() {
|
|
|
</h1>
|
|
|
<div class="phrDataTableWrap table-responsive">
|
|
|
<table id="bloodSugarDataTable" class="phrDataTable table data-table text-center">
|
|
|
+ <colgroup>
|
|
|
+ <col>
|
|
|
+ <col>
|
|
|
+ <col>
|
|
|
+ <col style=" width: 25%; ">
|
|
|
+ </colgroup>
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>측정일시</th>
|
|
@@ -2371,7 +2409,13 @@ $(document).ready(function() {
|
|
|
<td><c:out value="${bloodSugarResult[bloodSugarTotal-i].recordedDateFormatted}" /></td>
|
|
|
<td><span class="${bloodSugarResult[bloodSugarTotal-i].isWarning ? 'text-danger' : ''}"><c:out value="${phrValue}" /></span></td>
|
|
|
<td><c:out value="${bloodSugarResult[bloodSugarTotal-i].recordedByName}" /></td>
|
|
|
- <td><c:out value="${bloodSugarResult[bloodSugarTotal-i].createDateFormatted}" /></td>
|
|
|
+ <td><c:out value="${bloodSugarResult[bloodSugarTotal-i].createDateFormatted}" />
|
|
|
+ <c:if test="${role._DELETE eq 'Y'}">
|
|
|
+ <i class="fas fa-trash-alt text-danger ml-2 cursor-pointer h4 mt-1"
|
|
|
+ onclick="deletePatientPHRHistory( 'bloodSugar', <c:out value='${bloodSugarResult[bloodSugarTotal-i].idx}' />, this );">
|
|
|
+ </i>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
|
</c:when>
|