|
@@ -2,16 +2,21 @@
|
|
|
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
|
|
<jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
|
|
|
+<link rel="stylesheet" href="/resources/bower_components/mdi/css/materialdesignicons.min.css">
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
|
|
|
<script>
|
|
|
|
|
|
+/*
|
|
|
+ * 건강정보이력 탭 처리
|
|
|
+ */
|
|
|
+
|
|
|
function handlePhrData() {
|
|
|
var phrType = $("#phrTypeSelect option:selected").val();
|
|
|
var phrValue = "";
|
|
|
if (phrType === "bloodPressure") {
|
|
|
phrValueSystolic = $("#phrValueSystolic").val();
|
|
|
phrValueDiastolic = $("#phrValueDiastolic").val();
|
|
|
- phrValuePurse = $("#phrValuePurse").val();
|
|
|
+ phrValuePulse = $("#phrValuePulse").val();
|
|
|
|
|
|
if (!phrValueSystolic || phrValueSystolic.length === 0) {
|
|
|
alert("수축기 혈압을 입력해 주세요.");
|
|
@@ -21,39 +26,50 @@ function handlePhrData() {
|
|
|
alert("이완기 혈압을 입력해 주세요.");
|
|
|
return;
|
|
|
}
|
|
|
- if (!phrValuePurse || phrValuePurse.length === 0) {
|
|
|
+ if (!phrValuePulse || phrValuePulse.length === 0) {
|
|
|
alert("맥박을 입력해 주세요.");
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- createPhrData(${patientIdx}, "systolicBloodPressure", phrValueSystolic);
|
|
|
- createPhrData(${patientIdx}, "diastolicBloodPressure", phrValueDiastolic);
|
|
|
- createPhrData(${patientIdx}, "pulseRate", phrValuePurse);
|
|
|
+ createPhrData(${patientIdx}, "bloodPressure", phrValueSystolic, phrValueDiastolic, false);
|
|
|
+ createPhrData(${patientIdx}, "pulseRate", phrValuePulse);
|
|
|
+
|
|
|
+ $("#phrValueSystolic").val("");
|
|
|
+ $("#phrValueDiastolic").val("");
|
|
|
+ $("#phrValuePulse").val("");
|
|
|
}
|
|
|
else {
|
|
|
- if (!phrValuePurse || phrValuePurse.length === 0) {
|
|
|
- alert("값 입력해 주세요.");
|
|
|
+ phrValue = $("#phrValue").val();
|
|
|
+
|
|
|
+ if (!phrValue || phrValue.length === 0) {
|
|
|
+ alert("값을 입력해 주세요.");
|
|
|
return;
|
|
|
}
|
|
|
- phrValue = $("#phrValue").val();
|
|
|
|
|
|
createPhrData(${patientIdx}, phrType, phrValue);
|
|
|
+
|
|
|
+ $("#phrValue").val("");
|
|
|
}
|
|
|
+
|
|
|
+ $("#defaultModalPrimary_1").modal("hide");
|
|
|
}
|
|
|
|
|
|
-function createPhrData(patienIdx, phrType, phrValue) {
|
|
|
+function createPhrData(patientIdx, phrType, phrValue, phrValue2, needRetrieveData=true, recordedById="${data._SES_ID}", recordedByName="${data._SES_NAME}") {
|
|
|
+
|
|
|
$.ajax({
|
|
|
url : "./api/phrData",
|
|
|
- data : {patineIdx: patienIdx, phrType: phrType, phrValue: phrValue},
|
|
|
+ data : {patientIdx: patientIdx, phrType: phrType, phrValue: phrValue, phrValue2: phrValue2, recordedById: recordedById, recordedByName: recordedByName},
|
|
|
method : "POST",
|
|
|
dataType : "json",
|
|
|
success : function( datas ){
|
|
|
console.log(datas);
|
|
|
|
|
|
- retrievePhrData();
|
|
|
+ if (needRetrieveData) {
|
|
|
+ retrievePhrData();
|
|
|
+ }
|
|
|
},
|
|
|
- error : function(){
|
|
|
- console.error('error!');
|
|
|
+ error : function(error){
|
|
|
+ alert(error.message);
|
|
|
}
|
|
|
}).done( function(){
|
|
|
console.log('done!');
|
|
@@ -87,8 +103,16 @@ function retrievePhrData() {
|
|
|
datas.forEach(d => {
|
|
|
contents += "<tr>";
|
|
|
contents += "<td>" + d.createDate + "</td>";
|
|
|
+ if (phrType==="bloodPressure") {
|
|
|
+ contents += "<td><span class='text-danger'>" + parseInt(d.phrValue) + " / " + (isNaN(parseInt(d.phrValue2)) ? "--" : parseInt(d.phrValue2)) + "</span></td>";
|
|
|
+ }
|
|
|
+ else if (phrType==="temperature") {
|
|
|
contents += "<td><span class='text-danger'>" + d.phrValue + "</span></td>";
|
|
|
- contents += "<td>" + d.recordedByName+"("+d.recordedById+")</td>";
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ contents += "<td><span class='text-danger'>" + parseInt(d.phrValue) + "</span></td>";
|
|
|
+ }
|
|
|
+ contents += "<td>" + d.recordedByName + "</td>";
|
|
|
contents += "</tr>";
|
|
|
});
|
|
|
};
|
|
@@ -98,7 +122,107 @@ function retrievePhrData() {
|
|
|
$("#phrDataTable").html(html);
|
|
|
},
|
|
|
error : function(){
|
|
|
- console.error('error!');
|
|
|
+ alert(error.message);
|
|
|
+ }
|
|
|
+ }).done( function(){
|
|
|
+ console.log('done!');
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+function drawPhrChart(data, dataName) {
|
|
|
+
|
|
|
+ console.log("chart!" + data);
|
|
|
+ var xDatas = [];
|
|
|
+ var yDatas = [];
|
|
|
+ data.forEach(d=> {
|
|
|
+ xDatas.push(d.createDate);
|
|
|
+ yDatas.push(d.phrValue);
|
|
|
+ });
|
|
|
+ var ctx = document.getElementById("phrChart").getContext('2d');
|
|
|
+ var myChart = new Chart(ctx, {
|
|
|
+ type: 'line',
|
|
|
+ data: {
|
|
|
+ labels: xDatas,
|
|
|
+ datasets: [{
|
|
|
+ label: dataName,
|
|
|
+ data: yDatas,
|
|
|
+ fill: false,
|
|
|
+ backgroundColor: 'rgb(255, 99, 132)',
|
|
|
+ borderColor: 'rgb(255, 99, 132)',
|
|
|
+ }]
|
|
|
+ },
|
|
|
+ options: {
|
|
|
+
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+/*
|
|
|
+ * 임상증상 탭 처리
|
|
|
+ */
|
|
|
+function handleSymptomData() {
|
|
|
+
|
|
|
+ if ($("input:checkbox[id='etcCheck']").is(":checked") && !$("#etcContent").val().trim()) {
|
|
|
+ alert("기타 증상이 체크되었습니다. 내용을 입력해 주세요.");
|
|
|
+ $("#etcContent").val("");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ var checkedCount = ($("#defaultModalPrimary_2 input[type='checkbox']:checked").length);
|
|
|
+ if (checkedCount === 0) {
|
|
|
+ alert("증상을 체크해 주세요.");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ var symptomObject = {
|
|
|
+ patientIdx: ${patientIdx},
|
|
|
+
|
|
|
+ coughCheck: $("input:checkbox[id='coughCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ dyspneaCheck: $("input:checkbox[id='dyspneaCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ coldFitCheck: $("input:checkbox[id='coldFitCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ musclePainCheck: $("input:checkbox[id='musclePainCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ headacheCheck: $("input:checkbox[id='headacheCheck']").is(":checked") ? "Y" : "N",
|
|
|
+
|
|
|
+ soreThroatCheck: $("input:checkbox[id='soreThroatCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ smellPalateCheck: $("input:checkbox[id='smellPalateCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ fatigueCheck: $("input:checkbox[id='fatigueCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ appetiteLossCheck: $("input:checkbox[id='appetiteLossCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ sputumCheck: $("input:checkbox[id='sputumCheck']").is(":checked") ? "Y" : "N",
|
|
|
+
|
|
|
+ ocinCheck: $("input:checkbox[id='ocinCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ vomitingCheck: $("input:checkbox[id='vomitingCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ diarrheaCheck: $("input:checkbox[id='diarrheaCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ dizzinessCheck: $("input:checkbox[id='dizzinessCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ noseCheck: $("input:checkbox[id='noseCheck']").is(":checked") ? "Y" : "N",
|
|
|
+
|
|
|
+ etcCheck: $("input:checkbox[id='etcCheck']").is(":checked") ? "Y" : "N",
|
|
|
+ etcContent: $("#etcContent").val(),
|
|
|
+ recordedByName: "${data._SES_NAME}",
|
|
|
+ recordedById: "${data._SES_ID}",
|
|
|
+ }
|
|
|
+
|
|
|
+ createSymptomData(symptomObject);
|
|
|
+
|
|
|
+ $("#defaultModalPrimary_2 input[type='checkbox']:checked").prop("checked", false);
|
|
|
+ $("#etcContent").val("");
|
|
|
+
|
|
|
+ $("#defaultModalPrimary_2").modal("hide");
|
|
|
+}
|
|
|
+
|
|
|
+function createSymptomData(symptomObject) {
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ url : "./api/symptomData",
|
|
|
+ data : symptomObject,
|
|
|
+ method : "POST",
|
|
|
+ dataType : "json",
|
|
|
+ success : function( datas ){
|
|
|
+ console.log(datas);
|
|
|
+
|
|
|
+ retrieveSymptomData();
|
|
|
+ },
|
|
|
+ error : function(){
|
|
|
+ alert(error.message);
|
|
|
}
|
|
|
}).done( function(){
|
|
|
console.log('done!');
|
|
@@ -117,31 +241,32 @@ function retrieveSymptomData() {
|
|
|
console.log(datas);
|
|
|
|
|
|
var html = "<tr><td colspan=18>데이터가 없습니다.</td></tr>" ;
|
|
|
+ var checkSymbol = '<i class="mdi mdi-check-bold"></i>';
|
|
|
if (datas.length > 0) {
|
|
|
html = "";
|
|
|
- contents = datas.map(d => {
|
|
|
- html = "<tr>";
|
|
|
+ contents = datas.forEach(d => {
|
|
|
+ html += "<tr>";
|
|
|
html += "<th>" + d.createDate + "</th>";
|
|
|
- html += "<td>" + d.coughCheck + "</td>";
|
|
|
- html += "<td>" + d.dyspneaCheck + "</td>";
|
|
|
- html += "<td>" + d.coldFitCheck + "</td>";
|
|
|
- html += "<td>" + d.musclePainCheck + "</td>";
|
|
|
+ html += "<td>" + (d.coughCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+ html += "<td>" + (d.dyspneaCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+ html += "<td>" + (d.coldFitCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+ html += "<td>" + (d.musclePainCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
|
|
|
- html += "<td>" + d.headacheCheck + "</td>";
|
|
|
- html += "<td>" + d.soreThroatCheck + "</td>";
|
|
|
- html += "<td>" + d.smellPalateCheck + "</td>";
|
|
|
- html += "<td>" + d.fatigueCheck + "</td>";
|
|
|
- html += "<td>" + d.appetiteLossCheck + "</td>";
|
|
|
-
|
|
|
- html += "<td>" + d.sputumCheck + "</td>";
|
|
|
- html += "<td>" + d.ocinCheck + "</td>";
|
|
|
- html += "<td>" + d.vomitingCheck + "</td>";
|
|
|
- html += "<td>" + d.diarrheaCheck + "</td>";
|
|
|
- html += "<td>" + d.dizzinessCheck + "</td>";
|
|
|
-
|
|
|
- html += "<td>" + d.noseCheck + "</td>";
|
|
|
- html += "<td>" + d.etcCheck + "(" + d.etcContent + ")</td>";
|
|
|
- html += "<td>" + d.recordedByName + "(" + d.recordedById + ")</td>";
|
|
|
+ html += "<td>" + (d.headacheCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+ html += "<td>" + (d.soreThroatCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+ html += "<td>" + (d.smellPalateCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+ html += "<td>" + (d.fatigueCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+ html += "<td>" + (d.appetiteLossCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+
|
|
|
+ html += "<td>" + (d.sputumCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+ html += "<td>" + (d.ocinCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+ html += "<td>" + (d.vomitingCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+ html += "<td>" + (d.diarrheaCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+ html += "<td>" + (d.dizzinessCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+
|
|
|
+ html += "<td>" + (d.noseCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
|
+ html += "<td>" + (d.etcCheck === "Y" ? d.etcContent : "-") + "</td>";
|
|
|
+ html += "<td>" + d.recordedByName + "</td>";
|
|
|
html += "</tr>";
|
|
|
});
|
|
|
};
|
|
@@ -149,39 +274,85 @@ function retrieveSymptomData() {
|
|
|
$("#symptomDataTable > tbody").html(html);
|
|
|
},
|
|
|
error : function(){
|
|
|
- console.error('error!');
|
|
|
+ alert(error.message);
|
|
|
}
|
|
|
}).done( function(){
|
|
|
console.log('done!');
|
|
|
});
|
|
|
}
|
|
|
|
|
|
-function drawPhrChart(data, dataName) {
|
|
|
+/*
|
|
|
+ * 임상증상 탭 처리
|
|
|
+ */
|
|
|
|
|
|
- console.log("chart!" + data);
|
|
|
- var xDatas = [];
|
|
|
- var yDatas = [];
|
|
|
- data.forEach(d=> {
|
|
|
- xDatas.push(d.createDate);
|
|
|
- yDatas.push(d.phrValue);
|
|
|
- });
|
|
|
- var ctx = document.getElementById("phrChart").getContext('2d');
|
|
|
- var myChart = new Chart(ctx, {
|
|
|
- type: 'line',
|
|
|
- data: {
|
|
|
- labels: xDatas,
|
|
|
- datasets: [{
|
|
|
- label: dataName,
|
|
|
- data: yDatas,
|
|
|
- fill: false,
|
|
|
- backgroundColor: 'rgb(255, 99, 132)',
|
|
|
- borderColor: 'rgb(255, 99, 132)',
|
|
|
- }]
|
|
|
- },
|
|
|
- options: {
|
|
|
+ function handleMemoData() {
|
|
|
|
|
|
- }
|
|
|
- });
|
|
|
+ var memoContent = $("#memoContent").val().trim();
|
|
|
+
|
|
|
+ if (!memoContent) {
|
|
|
+ alert("메모 내용을 입력해 주세요.");
|
|
|
+ $("#memoContent").val("");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ createMemoData(memoContent);
|
|
|
+
|
|
|
+ $("#memoContent").val("");
|
|
|
+
|
|
|
+ $("#defaultModalPrimaryMemo").modal("hide");
|
|
|
+}
|
|
|
+
|
|
|
+function createMemoData(memoContent) {
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ url : "./api/memoData",
|
|
|
+ data : {patientIdx:${patientIdx}, contents:memoContent, recordedByName:"${data._SES_NAME}", recordedById:"${data._SES_ID}"},
|
|
|
+ method : "POST",
|
|
|
+ dataType : "json",
|
|
|
+ success : function( datas ){
|
|
|
+ console.log(datas);
|
|
|
+
|
|
|
+ retrieveMemoData();
|
|
|
+ },
|
|
|
+ error : function(){
|
|
|
+ alert(error.message);
|
|
|
+ }
|
|
|
+ }).done( function(){
|
|
|
+ console.log('done!');
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+function retrieveMemoData() {
|
|
|
+ var params = {patientIdx: ${patientIdx}};
|
|
|
+
|
|
|
+ $.ajax({
|
|
|
+ url : "./api/memoDatas",
|
|
|
+ data : params,
|
|
|
+ method : "GET",
|
|
|
+ dataType : "json",
|
|
|
+ success : function( datas ){
|
|
|
+ console.log(datas);
|
|
|
+
|
|
|
+ var html = "<tr><td colspan=3>데이터가 없습니다.</td></tr>" ;
|
|
|
+ if (datas.length > 0) {
|
|
|
+ html = "";
|
|
|
+ contents = datas.forEach(d => {
|
|
|
+ html += "<tr>";
|
|
|
+ html += "<td>" + d.createDate + "</td>";
|
|
|
+ html += "<td><pre>" + d.contents + "</pre></td>";
|
|
|
+ html += "<td>" + d.recordedByName + "</td>";
|
|
|
+ html += "</tr>";
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
+ $("#memoDataTable > tbody").html(html);
|
|
|
+ },
|
|
|
+ error : function(){
|
|
|
+ alert(error.message);
|
|
|
+ }
|
|
|
+ }).done( function(){
|
|
|
+ console.log('done!');
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
$(document).ready(function() {
|
|
@@ -214,6 +385,9 @@ $(document).ready(function() {
|
|
|
else if (targetTab==="#tabSymptom") {
|
|
|
retrieveSymptomData();
|
|
|
}
|
|
|
+ else if (targetTab==="#tabMemo") {
|
|
|
+ retrieveMemoData();
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
// phrData 기록 추가 클릭 이벤트
|
|
@@ -226,7 +400,7 @@ $(document).ready(function() {
|
|
|
healthInfoHTML += '<th>체온</th>';
|
|
|
healthInfoHTML += '<td>';
|
|
|
healthInfoHTML += ' <div class="form-group mb-xl-0">';
|
|
|
- healthInfoHTML += ' <input id="phrValue" class="form-control" type="text" placeholder="체온 입력">';
|
|
|
+ healthInfoHTML += ' <input id="phrValue" class="form-control" type="number" placeholder="체온 입력">';
|
|
|
healthInfoHTML += ' </div>';
|
|
|
healthInfoHTML += '</td>';
|
|
|
}
|
|
@@ -234,9 +408,9 @@ $(document).ready(function() {
|
|
|
healthInfoHTML += '<th>혈압/맥박</th>';
|
|
|
healthInfoHTML += '<td>';
|
|
|
healthInfoHTML += ' <div class="form-group mb-xl-0">';
|
|
|
- healthInfoHTML += ' <input id="phrValueSystolic" class="form-control mb-2" type="text" placeholder="수축기 혈압 입력">';
|
|
|
- healthInfoHTML += ' <input id="phrValueDiastolic" class="form-control mb-2" type="text" placeholder="이완기 혈압 입력">';
|
|
|
- healthInfoHTML += ' <input id="phrValuPulse" class="form-control" type="text" placeholder="맥박 입력">';
|
|
|
+ healthInfoHTML += ' <input id="phrValueSystolic" class="form-control mb-2" type="number" placeholder="수축기 혈압 입력">';
|
|
|
+ healthInfoHTML += ' <input id="phrValueDiastolic" class="form-control mb-2" type="number" placeholder="이완기 혈압 입력">';
|
|
|
+ healthInfoHTML += ' <input id="phrValuePulse" class="form-control" type="number" placeholder="맥박 입력">';
|
|
|
healthInfoHTML += ' </div>';
|
|
|
healthInfoHTML += '</td>';
|
|
|
}
|
|
@@ -294,12 +468,14 @@ $(document).ready(function() {
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr class="healthInfo"></tr>
|
|
|
+ <tr class="healthInfo">
|
|
|
+ <!-- 컨텐츠 동적 생성 -->
|
|
|
+ </tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<button type="button" class="btn btn-outline-primary" data-dismiss="modal">취소</button>
|
|
|
- <button type="button" class="btn btn-primary">등록</button>
|
|
|
+ <button type="button" class="btn btn-primary" onclick="handlePhrData()">등록</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -332,99 +508,99 @@ $(document).ready(function() {
|
|
|
<td>
|
|
|
<div class="form-group mb-xl-0">
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="coughCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
기침
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="dyspneaCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
호흡곤란
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="coldFitCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
오한
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="musclePainCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
근육통
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="headacheCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
두통
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="soreThroatCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
인후통
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="smellPalateCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
후각/미각 손실
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="fatigueCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
피로
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="appetiteLossCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
식욕감소
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="sputumCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
가래
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="ocinCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
- 오
|
|
|
+ 오심
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="vomitingCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
구토
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="diarrheaCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
설사
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="dizzinessCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
어지러움
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="noseCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
콧물/코막힘
|
|
|
</span>
|
|
|
</label>
|
|
|
<label class="form-check form-check-inline">
|
|
|
- <input id="" class="form-check-input" type="checkbox">
|
|
|
+ <input id="etcCheck" class="form-check-input" type="checkbox">
|
|
|
<span class="form-check-label">
|
|
|
- 기타 ( <input type="text" id="" class="form-control form-control-sm w150" value="" placeholder="증상 내용"> )
|
|
|
+ 기타 ( <input type="text" id="etcContent" class="form-control form-control-sm w150" value="" placeholder="증상 내용"> )
|
|
|
</span>
|
|
|
</label>
|
|
|
</div>
|
|
@@ -434,7 +610,7 @@ $(document).ready(function() {
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<button type="button" class="btn btn-outline-primary" data-dismiss="modal">취소</button>
|
|
|
- <button type="button" class="btn btn-primary">등록</button>
|
|
|
+ <button type="button" class="btn btn-primary" onclick="handleSymptomData()">등록</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -466,7 +642,7 @@ $(document).ready(function() {
|
|
|
<th>내용</th>
|
|
|
<td>
|
|
|
<div class="form-row">
|
|
|
- <textarea class="form-control" rows="2" placeholder="내용을 입력하세요"></textarea>
|
|
|
+ <textarea id="memoContent" class="form-control" rows="2" placeholder="내용을 입력하세요"></textarea>
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
@@ -474,7 +650,7 @@ $(document).ready(function() {
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
<button type="button" class="btn btn-outline-primary" data-dismiss="modal">취소</button>
|
|
|
- <button type="button" class="btn btn-primary">등록</button>
|
|
|
+ <button type="button" class="btn btn-primary" onclick="handleMemoData()">등록</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -670,7 +846,7 @@ $(document).ready(function() {
|
|
|
<h1 class="h4">
|
|
|
- 건강정보 조회 <label> <select class="custom-select ml-1 form-control" id=phrTypeSelect name="inputState" onchange="retrievePhrData()">
|
|
|
<option value="temperature" selected>체온</option>
|
|
|
- <option value="pulseRate">혈압</option>
|
|
|
+ <option value="bloodPressure">혈압</option>
|
|
|
<option value="oxygenSaturation">산소포화도</option>
|
|
|
</select>
|
|
|
</label> <label class="ml-1">
|
|
@@ -698,7 +874,7 @@ $(document).ready(function() {
|
|
|
<tr>
|
|
|
<td><c:out value="${phr.createDate}" /></td>
|
|
|
<td><span class="text-danger"><c:out value="${phr.phrValue} ℃" /></span></td>
|
|
|
- <td><c:out value="${phr.recordedByName}(${phr.recordedById})" /></td>
|
|
|
+ <td><c:out value="${phr.recordedByName}" /></td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
|
</c:when>
|
|
@@ -750,29 +926,6 @@ $(document).ready(function() {
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- <tr>
|
|
|
- <th></th>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
-
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
-
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
- <td></td>
|
|
|
-
|
|
|
- <td></td>
|
|
|
- <td><span class="text-danger"></span></td>
|
|
|
- <td></td>
|
|
|
- </tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
@@ -787,7 +940,7 @@ $(document).ready(function() {
|
|
|
</div>
|
|
|
<div class="card-body">
|
|
|
<div class="table-responsive">
|
|
|
- <table class="table data-table text-center">
|
|
|
+ <table id="memoDataTable" class="table data-table text-center">
|
|
|
<thead>
|
|
|
<tr>
|
|
|
<th>기록일시</th>
|
|
@@ -796,41 +949,6 @@ $(document).ready(function() {
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- <tr>
|
|
|
- <td>2020-10-10 10:25</td>
|
|
|
- <td>소화가 잘 안된다고 소화제 복용 문의...</td>
|
|
|
- <td>홍길동</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>2020-10-10 10:25</td>
|
|
|
- <td>소화가 잘 안된다고 소화제 복용 문의...</td>
|
|
|
- <td>홍길동</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>2020-10-10 10:25</td>
|
|
|
- <td>소화가 잘 안된다고 소화제 복용 문의...</td>
|
|
|
- <td>홍길동</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>2020-10-10 10:25</td>
|
|
|
- <td>소화가 잘 안된다고 소화제 복용 문의...</td>
|
|
|
- <td>홍길동</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>2020-10-10 10:25</td>
|
|
|
- <td>소화가 잘 안된다고 소화제 복용 문의...</td>
|
|
|
- <td>홍길동</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>2020-10-10 10:25</td>
|
|
|
- <td>소화가 잘 안된다고 소화제 복용 문의...</td>
|
|
|
- <td>홍길동</td>
|
|
|
- </tr>
|
|
|
- <tr>
|
|
|
- <td>2020-10-10 10:25</td>
|
|
|
- <td>소화가 잘 안된다고 소화제 복용 문의...</td>
|
|
|
- <td>홍길동</td>
|
|
|
- </tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|