123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845 |
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
- <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
- <%@ 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="/resources/bower_components/moment/moment.min.js"></script>
- <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
- <script>
- const mPatientIdx = ${patientIdx}
- var PHR_VALUE_DEFAULT = {
- TEMPERATURE: {
- VALUE: 36.5,
- MIN: 20,
- MAX: 50
- },
- BLOOD_PRESSURE_SYSTOLIC: {
- VALUE: 120,
- MIN: 50,
- MAX: 250
- },
- BLOOD_PRESSURE_DIASTOLIC: {
- VALUE: 80,
- MIN: 20,
- MAX: 160
- },
- OXYGEN_SATURATION: {
- VALUE: 95,
- MIN: 60,
- MAX: 100
- },
- PULSE_RATE: {
- VALUE: 65,
- MIN: 30,
- MAX: 200
- },
- BLOOD_SUGAR: {
- VALUE: 120,
- MIN: 10,
- MAX: 600
- }
- }
- function ajaxErrorHandler(request, status, error){
- if (request.status === 0) {
- alert('Not connect.\n Verify Network.');
- }
- else if (request.status == 400) {
- alert('Server understood the request, but request content was invalid. [400]' + '\n\n' + request.responseText);
- }
- else if (request.status == 401) {
- alert('Unauthorized access. [401]' + '\n\n' + request.responseText);
- }
- else if (request.status == 403) {
- alert('Forbidden resource can not be accessed. [403]' + '\n\n' + request.responseText);
- }
- else if (request.status == 404) {
- alert('Requested page not found. [404]' + '\n\n' + request.responseText);
- }
- else if (request.status == 500) {
- alert('Internal server error. [500]' + '\n\n' + request.responseText);
- }
- else if (request.status == 503) {
- alert('Service unavailable. [503]' + '\n\n' + request.responseText);
- }
- else if (status === 'parsererror') {
- alert('Requested JSON parse failed. [Failed]' + '\n\n' + request.responseText);
- }
- else if (status === 'timeout') {
- alert('Time out error. [Timeout]' + '\n\n' + request.responseText);
- }
- else if (status === 'abort') {
- alert('Ajax request aborted. [Aborted]' + '\n\n' + request.responseText);
- }
- else {
- alert('Uncaught Error.' + '\n\n' + request.responseText);
- }
- }
- function gridDateFormatter(date) {
- return moment(date).format("YYYY-MM-DD HH:mm");
- }
- function chartDateFormatter(date) {
- return moment(date).format("MM-DD HH:mm");
- }
- /*
- * 비대면 진료 시작
- */
- function nonFaceStart() {
- getAjax("/patient/nonFaceStart", $("#hiddenForm").serialize(), function ( result ) {
-
- $("#nonface").append('<input type="hidden" name="member_name" value="'+result.member_name+'" />');
- $("#nonface").append('<input type="hidden" name="member_id" value="'+result.member_id+'" />');
- $("#nonface").append('<input type="hidden" name="room_id" value="'+result.room_id+'" />');
- $("#nonface").append('<input type="hidden" name="hashData" value="'+result.hashData+'">');
- $("#nonface").append('<input type="hidden" name="token" value="'+result.token+'">');
- $("#nonface").append('<input type="hidden" name="api_key" value="'+result.api_key+'">');
- $("#nonface").append('<input type="hidden" name="classify" value="d">');
- var gsWin = window.open('about:blank','nonface');
- var frm =document.nonface;
- frm.target ="nonface";
- frm.method ="post";
- frm.submit();
-
- window.location.reload();
- }, function(){
- }, function(){
-
- });
- }
- /*
- * 건강정보이력 탭 처리
- */
- function checkValidForPhrData(phrType, phrValue) {
- var errorMessage = null;
- var errorMessagePrefix = null;
- var phrValueDefault = null;
-
- if (phrType === "temperature") {
- errorMessagePrefix = "체온을";
- phrValueDefault = PHR_VALUE_DEFAULT.TEMPERATURE;
- }
- else if (phrType === "bloodPressureSystolic") {
- errorMessagePrefix = "수축기 혈압을";
- phrValueDefault = PHR_VALUE_DEFAULT.BLOOD_PRESSURE_SYSTOLIC;
- }
- else if (phrType === "bloodPressureDiastolic") {
- errorMessagePrefix = "이완기 혈압을";
- phrValueDefault = PHR_VALUE_DEFAULT.BLOOD_PRESSURE_DIASTOLIC;
- }
- else if (phrType === "oxygenSaturation") {
- errorMessagePrefix = "산소포화도를";
- phrValueDefault = PHR_VALUE_DEFAULT.OXYGEN_SATURATION;
- }
- else if (phrType === "pulseRate") {
- errorMessagePrefix = "맥박을";
- phrValueDefault = PHR_VALUE_DEFAULT.PULSE_RATE;
- }
- else if (phrType === "bloodSugar") {
- errorMessagePrefix = "혈당을";
- phrValueDefault = PHR_VALUE_DEFAULT.BLOOD_SUGAR;
- }
- // 널 체크, 숫자 체크, 최대/최소 체크
- if (!phrValue || phrValue.length === 0) {
- errorMessage = errorMessagePrefix+" 입력해 주세요.";
- }
- else if (isNaN(phrValue)) {
- errorMessage = errorMessagePrefix+" 숫자로 입력해 주세요.";
- }
- else if (phrValue < phrValueDefault.MIN || phrValue > phrValueDefault.MAX) {
- errorMessage = errorMessagePrefix+" "+phrValueDefault.MIN+"~"+phrValueDefault.MAX+" 범위 내로 입력해 주세요.";
- }
- return errorMessage;
- }
-
- function handlePhrData() {
- var phrType = $('#healthInfo').attr("data-phr-type");
- var phrValue = "";
- if (phrType === "bloodPressure") {
- phrValueSystolic = $("#phrValueSystolic").val();
- phrValueDiastolic = $("#phrValueDiastolic").val();
- phrValuePulseRate = $("#phrValuePulseRate").val();
- // 유효성 체크
- var errorMessage = checkValidForPhrData("bloodPressureSystolic", phrValueSystolic);
- if (errorMessage) {
- alert(errorMessage);
- $("#phrValueSystolic").focus();
- return;
- }
- errorMessage = checkValidForPhrData("bloodPressureDiastolic", phrValueDiastolic);
- if (errorMessage) {
- alert(errorMessage);
- $("#phrValueDiastolic").focus();
- return;
- }
-
- errorMessage = checkValidForPhrData("pulseRate", phrValuePulseRate);
- if (errorMessage) {
- alert(errorMessage);
- $("#phrValuePulseRate").focus();
- return;
- }
- // 저장 진행
- createPhrData(mPatientIdx, "bloodPressure", phrValueSystolic, phrValueDiastolic, phrValuePulseRate);
- $("#phrValueSystolic").val(PHR_VALUE_DEFAULT.BLOOD_PRESSURE_SYSTOLIC.VALUE);
- $("#phrValueDiastolic").val(PHR_VALUE_DEFAULT.BLOOD_PRESSURE_DIASTOLIC.VALUE);
- }
- else {
- phrValue = $("#phrValue").val();
-
- // 유효성 체크
- var errorMessage = checkValidForPhrData(phrType, phrValue);
- if (errorMessage) {
- alert(errorMessage);
- $("#phrValue").focus();
- return;
- }
- // 저장 진행
- createPhrData(mPatientIdx, phrType, phrValue);
- var phrValueDefault = "";
- if (phrType === "temperature") {
- phrValueDefault = PHR_VALUE_DEFAULT.TEMPERATURE;
- }
- else if (phrType === "oxygenSaturation") {
- phrValueDefault = PHR_VALUE_DEFAULT.OXYGEN_SATURATION;
- }
- else if (phrType === "pulseRate") {
- phrValueDefault = PHR_VALUE_DEFAULT.PULSE_RATE;
- }
- else if (phrType === "bloodSugar") {
- phrValueDefault = PHR_VALUE_DEFAULT.BLOOD_SUGAR;
- }
- $("#phrValue").val(phrValueDefault);
- }
- $("#defaultModalPrimary_1").modal("hide");
- }
- function createPhrData(patientIdx, phrType, phrValue, phrValue2, phrValueExtra) {
-
- $.ajax({
- url : "./api/phrData",
- data : {patientIdx: patientIdx, phrType: phrType, phrValue: phrValue, phrValue2: phrValue2, phrValueExtra: phrValueExtra, recordedById: "${data._SES_ID}", recordedByName: "${data._SES_NAME}"},
- method : "POST",
- dataType : "json",
- success : function( datas ){
- retrievePhrData(phrType);
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- function retrievePhrData(phrType) {
- const chartId = phrType + "Chart";
- let phrName = "";
- if (phrType === "temperature") {
- phrName = "체온";
- }
- else if (phrType === "bloodPressure") {
- // phrName = "";
- }
- else if (phrType === "oxygenSaturation") {
- phrName = "산소포화도";
- }
- else if (phrType === "bloodSugar") {
- phrName = "혈당";
- }
- var ignoreCache = moment().unix();
- var params = {patientIdx: mPatientIdx, phrType: phrType, ignoreCache:ignoreCache};
- $.ajax({
- url : "./api/phrDatas",
- data : params,
- method : "GET",
- dataType : "json",
- success : function( datas ){
- console.log(JSON.stringify(datas));
- if (phrType==="bloodPressure") {
- drawBPChart(datas);
- }
- else {
- drawPhrChart(phrType+"Chart", datas, phrName);
- }
- var contents = "<tr><td colspan=4>데이터가 없습니다.</td></tr>" ;
- if (phrType==="bloodPressure") {
- contents = "<tr><td colspan=5>데이터가 없습니다.</td></tr>" ;
- }
- if (datas.length > 0) {
- contents = "";
- datas.forEach(function(d) {
- var danger = d.isWarning ? "text-danger" : "";
- var row = "";
- row += "<tr>";
- row += "<td>" + gridDateFormatter(d.createDate) + "</td>";
- if (phrType==="bloodPressure") {
- var extraDanger = d.isExtraWarning ? "text-danger" : "";
- row += "<td><span class='"+danger+"'>" + (isNaN(parseInt(d.phrValue)) ? "--" : parseInt(d.phrValue)) + " / " + (isNaN(parseInt(d.phrValue2)) ? "--" : parseInt(d.phrValue2)) + "</span></td>";
- row += "<td><span class='"+extraDanger+"'>" + (isNaN(parseInt(d.phrValueExtra)) ? "" : parseInt(d.phrValueExtra)) + "</span></td>";
- }
- else if (phrType==="temperature") {
- row += "<td><span class='"+danger+"'>" + parseFloat(d.phrValue).toFixed(1) + "</span></td>";
- }
- else {
- row += "<td><span class='"+danger+"'>" + parseInt(d.phrValue) + "</span></td>";
- }
- row += "<td>" + d.recordedByName + "</td>";
- row += "<td></td>";
- row += "</tr>";
- contents = row + contents;
- });
- };
- $("#"+phrType+"DataTable > tbody").html(contents);
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- var myCharts = {};
- function drawPhrChart(chartId, data, dataName) {
- let myChart = myCharts[chartId];
- if (myChart) {
- myChart.destroy();
- myChart = null;
- }
- var xDatas = [];
- var yDatas = [];
- data.forEach(function(d) {
- var t = chartDateFormatter(d.createDate);
- xDatas.push(t);
- yDatas.push(d.phrValue);
- });
- var ctx = document.getElementById(chartId).getContext('2d');
- myCharts[chartId] = new Chart(ctx, {
- type: 'line',
- data: {
- labels: xDatas,
- datasets: [{
- label: dataName,
- data: yDatas,
- fill: false,
- backgroundColor: '#fff',
- borderColor: '#5b7dff',
- borderWidth: 2,
- }]
- },
- options: {
- maintainAspectRatio: false,
- }
- });
- }
- function drawBPChart(data) {
- let myChart = myCharts["bloodPressurePulseChart"];
- if (myChart) {
- myChart.destroy();
- myChart = null;
- }
- var xDatas = [];
- var y1Datas = [];
- var y2Datas = [];
- var y3Datas = [];
- data.forEach(function(d) {
- var t = chartDateFormatter(d.createDate);
- xDatas.push(t);
- y1Datas.push(d.phrValue);
- y2Datas.push(d.phrValue2);
- y3Datas.push(d.phrValueExtra);
- });
- var ctx = document.getElementById("bloodPressurePulseChart").getContext('2d');
- myCharts["bloodPressurePulseChart"] = new Chart(ctx, {
- type: 'line',
- data: {
- labels: xDatas,
- datasets: [{
- label: "수축기 혈압",
- data: y1Datas,
- fill: false,
- backgroundColor: "#fff",
- borderColor: "#ff6384",
- borderWidth: 2,
- },{
- label: "이완기 혈압",
- data: y2Datas,
- fill: false,
- backgroundColor: "#fff",
- borderColor: "#5b7dff",
- borderWidth: 2,
- },{
- label: "맥박",
- data: y3Datas,
- backgroundColor: "#9ee7c5",
- type: 'bar',
- }]
- },
- options: {
- maintainAspectRatio: false,
- annotation: {
- drawTime: "afterDatasetsDraw",
- // annotations: annotationData,
- },
- }
- });
- }
- /*
- * 임상증상 탭 처리
- */
- 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: mPatientIdx,
- 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 ){
- retrieveSymptomData();
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- function retrieveSymptomData() {
- var ignoreCache = moment().unix();
- var params = {patientIdx: mPatientIdx, ignoreCache:ignoreCache};
- $.ajax({
- url : "./api/symptomDatas",
- data : params,
- method : "GET",
- dataType : "json",
- success : function( datas ){
- var html = "<tr><td colspan=19>데이터가 없습니다.</td></tr>" ;
- var checkSymbol = '<i class="mdi mdi-check-bold"></i>';
- if (datas.length > 0) {
- html = "";
- contents = datas.forEach(function(d) {
- html += "<tr>";
- html += "<th>" + gridDateFormatter(d.createDate) + "</th>";
- 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 === "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 += "<td></td>";
- html += "</tr>";
- });
- };
- $("#symptomDataTable > tbody").html(html);
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- /*
- * 메모 탭 처리
- */
- function insertMemoData() {
- var memoContent = $("#memoContent").val().trim();
- if (!memoContent) {
- alert("메모 내용을 입력해 주세요.");
- $("#memoContent").val("");
- return;
- }
- requestInsertMemoData(memoContent);
- $("#memoContent").val("");
- }
- function deleteMemoData() {
- const memoId = $("#defaultModalPrimaryMemo").data("memoid");
- if (memoId === undefined || memoId === null || memoId === "") {
- alert("오류! 삭제할 메모를 찾을 수 없습니다.");
- return;
- }
- const result = confirm("메모를 삭제하시겠습니까?\n삭제후에는 복구가 불가능 합니다.");
- if(result){
- requestDeleteMemoData(memoId);
-
- $("#defaultModalPrimaryMemo").modal("hide");
- }
- }
- function modifyMemoData() {
- const memoId = $("#defaultModalPrimaryMemo").data("memoid");
- if (memoId === undefined || memoId === null || memoId === "") {
- alert("오류! 삭제할 메모를 찾을 수 없습니다.");
- return;
- }
- var modifyMemoContent = $("#modifyMemoContent").val().trim();
- if (!modifyMemoContent) {
- alert("메모 내용을 입력해 주세요.");
- $("#modifyMemoContent").val("");
- return;
- }
- const result = confirm("메모를 수정하시겠습니까?");
- if(result){
- requestUpdateMemoData(memoId, modifyMemoContent);
-
- $("#defaultModalPrimaryMemo").modal("hide");
- }
- }
- function requestInsertMemoData(memoContent) {
-
- $.ajax({
- url : "./api/memoData",
- data : {patientIdx:mPatientIdx, contents:memoContent, recordedByName:"${data._SES_NAME}", recordedById:"${data._SES_ID}"},
- method : "POST",
- dataType : "json",
- success : function( datas ){
- retrieveMemoData();
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- function requestDeleteMemoData(memoIdx) {
-
- $.ajax({
- url : "./api/memoData",
- data : {idx:memoIdx},
- method : "DELETE",
- dataType : "json",
- success : function( datas ){
- retrieveMemoData();
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- function requestUpdateMemoData(memoIdx, modifyMemoContent) {
-
- $.ajax({
- url : "./api/memoData",
- data : {idx:memoIdx, contents:modifyMemoContent},
- method : "PATCH",
- dataType : "json",
- success : function( datas ){
- if (datas.code === "00") {
- retrieveMemoData();
- }
- else {
- alert("메모 수정 실패.\n" + datas.code);
- }
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- function retrieveMemoData() {
- var ignoreCache = moment().unix();
- var params = {patientIdx: mPatientIdx, ignoreCache:ignoreCache};
- $.ajax({
- url : "./api/memoDatas",
- data : params,
- method : "GET",
- dataType : "json",
- success : function( datas ){
- var html = "<tr><td colspan=4>데이터가 없습니다.</td></tr>" ;
- if (datas.length > 0) {
- html = "";
- contents = datas.forEach(function(d) {
- html += "<tr>";
- html += "<td>" + gridDateFormatter(d.updateDate) + "</td>";
- if (d.canModify) {
- html += "<td><pre id='memo_"+d.idx+"' class='contentsEdit' onClick='handleModifyMemo("+d.idx+")'>" + d.contents + "</pre></td>";
- }
- else {
- html += "<td><pre>" + d.contents + "</pre></td>";
- }
- html += "<td>" + d.recordedByName + "</td>";
- html += "<td></td>";
- html += "</tr>";
- });
- };
- $("#memoDataTable > tbody").html(html);
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- function gotoList() {
- var url = "./state";
- var refererSearch = '<c:out value="${refererSearch}" />';
- var refererPage = '<c:out value="${refererPage}" />';
-
- if (refererSearch !== "" && refererPage !== "") {
- url += "?searchText=" + encodeURIComponent(refererSearch) + "&page=" + refererPage;
- }
- else if (refererSearch !== "") {
- url += "?searchText=" + encodeURIComponent(refererSearch);
- }
- else if (refererPage !== "") {
- url += "?page=" + refererPage;
- }
- location.href = url;
- }
- function gotoPatientInfo() {
- var url = "/patient/info?patientIdx=" + mPatientIdx;
- location.href = url;
- }
- function getExcel(type) {
- const phrType = (type === "") ? $("#phrTypeSelect option:selected").val() : type;
- const url = "./excel?patientIdx=" + mPatientIdx + "&phrType=" + phrType;
- window.open(url);
- }
- function handleModifyMemo(memoId) {
- $("#defaultModalPrimaryMemo").data("memoid", memoId);
- const content = $("#memo_"+memoId).html();
- var memoInfoHTML = '';
- memoInfoHTML += '<tr>';
- memoInfoHTML += ' <th>작성자</th>';
- memoInfoHTML += ' <td>';
- memoInfoHTML += ' <div class="form-row">';
- memoInfoHTML += ' <input type="text" name="" class="form-control" placeholder="이름을 입력하세요" value="${data._SES_NAME}" readonly>';
- memoInfoHTML += ' </div>';
- memoInfoHTML += ' </td>';
- memoInfoHTML += '</tr>';
- memoInfoHTML += '<tr id="memoInfo">';
- memoInfoHTML += ' <th>내용</th>';
- memoInfoHTML += ' <td>';
- memoInfoHTML += ' <div class="form-row">';
- memoInfoHTML += ' <textarea id="modifyMemoContent" class="form-control" rows="15" placeholder="내용을 입력하세요">'+content+'</textarea>';
- memoInfoHTML += ' </div>';
- memoInfoHTML += ' </td>';
- memoInfoHTML += '</tr>';
- memoInfoHTML += '<tr>';
- memoInfoHTML += ' <th>처리일시</th>';
- memoInfoHTML += ' <td>';
- memoInfoHTML += ' <div class="datetimepickerWrap form-row">';
- memoInfoHTML += ' <input id="modifMemoDateTime" class="datetimepicker form-control" type="text" placeholder="측정일시(미 입력시 현재시간 자동등록)">';
- memoInfoHTML += ' </div>';
- memoInfoHTML += ' </td>';
- memoInfoHTML += '</tr>';
- $('#memoInfo').html(memoInfoHTML);
- $('#defaultModalPrimaryMemo').modal();
- setTimeout(function (){
- $('#memoInfo').find('.form-row textarea').focus();
- }, 500);
- }
- $(document).ready(function() {
- setTimeout(function () {
- $(".preloader").fadeOut("fast");
- }, 1000);
- const temperatureDatas = [];
- <c:forEach var="phr" items="${temperatureResult}" varStatus="status">
- temperatureDatas.push({createDate: "${phr.createDate}", phrValue: "${phr.phrValue}"});
- </c:forEach>
- drawPhrChart("temperatureChart", temperatureDatas, "체온");
-
- const bloodPressureUnionDatas = [];
- <c:forEach var="phr" items="${bloodPressureUnionResult}" varStatus="status">
- bloodPressureUnionDatas.push({createDate: "${phr.createDate}", phrValue: "${phr.phrValue}", phrValue2: "${phr.phrValue2}", phrValueExtra: "${phr.phrValueExtra}"});
- </c:forEach>
- drawBPChart(bloodPressureUnionDatas);
-
- const oxygenSaturationDatas = [];
- <c:forEach var="phr" items="${oxygenSaturationResult}" varStatus="status">
- oxygenSaturationDatas.push({createDate: "${phr.createDate}", phrValue: "${phr.phrValue}"});
- </c:forEach>
- drawPhrChart("oxygenSaturationChart", oxygenSaturationDatas, "산소포화도");
-
- const bloodSugarDatas = [];
- <c:forEach var="phr" items="${bloodSugarResult}" varStatus="status">
- bloodSugarDatas.push({createDate: "${phr.createDate}", phrValue: "${phr.phrValue}"});
- </c:forEach>
- drawPhrChart("bloodSugarChart", bloodSugarDatas, "혈당");
- // 상단 환자 정보 영역 토글 이벤트
- $("#userInfo").find(".user-info").show();
- $(document).on("click", ".toggle .toggleHeader", function () {
- $(this).find("a.toggleBtn").toggleClass("active");
- $("#userInfo").slideToggle("fast");
- });
- // 섹션 토글
- $(document).on("click", ".sectionToggle, .phrTitle", function () {
- $(this).closest("section").find(".sectionToggle").toggleClass("hide");
- $(this).closest("section").find(".sectionContent").slideToggle("fast");
- });
- // 섹션 이동
- $(document).on("click", ".sectionNav li", function (event) {
- if ($(this).find("a").attr("href") !== "") {
- event.preventDefault();
- var aID = $(this).find("a").attr("href");
- $(".phrSection").removeClass("active");
- $(aID).addClass("active");
- $(".main").animate(
- {
- scrollTop: $(aID).position().top + 100,
- },
- 300
- );
- }
- });
- // phrData 기록 추가 클릭 이벤트
- $(document).on('click','[data-target="#defaultModalPrimary_1"]',function() {
- var selectData = $(this).attr("id");
- var healthInfoHTML = '';
- var phrValueDefault = null;
- if(selectData == 'temperature'){
- phrValueDefault = PHR_VALUE_DEFAULT.TEMPERATURE;
- healthInfoHTML += '<th>체온</th>';
- healthInfoHTML += '<td>';
- healthInfoHTML += ' <div class="form-group mb-xl-0">';
- healthInfoHTML += ' <input id="phrValue" class="form-control" type="number" placeholder="체온 입력" min="'+phrValueDefault.MIN+'" max="'+phrValueDefault.MAX+'" value="'+phrValueDefault.VALUE+'" step="0.1">';
- healthInfoHTML += ' </div>';
- healthInfoHTML += '</td>';
- }
- else if(selectData == 'bloodPressure'){
- phrValueDefault1 = PHR_VALUE_DEFAULT.BLOOD_PRESSURE_SYSTOLIC;
- phrValueDefault2 = PHR_VALUE_DEFAULT.BLOOD_PRESSURE_DIASTOLIC;
- phrValueDefault3 = PHR_VALUE_DEFAULT.PULSE_RATE;
- healthInfoHTML += '<th>혈압/맥박</th>';
- healthInfoHTML += '<td>';
- healthInfoHTML += ' <div class="form-group mb-xl-0">';
- healthInfoHTML += ' <input id="phrValueSystolic" class="form-control mb-2" type="number" placeholder="수축기 혈압 입력" min="'+phrValueDefault1.MIN+'" max="'+phrValueDefault1.MAX+'" value="'+phrValueDefault1.VALUE+'">';
- healthInfoHTML += ' <input id="phrValueDiastolic" class="form-control mb-2" type="number" placeholder="이완기 혈압 입력" min="'+phrValueDefault2.MIN+'" max="'+phrValueDefault2.MAX+'" value="'+phrValueDefault2.VALUE+'">';
- healthInfoHTML += ' <input id="phrValuePulseRate" class="form-control" type="number" placeholder="맥박 입력"min="'+phrValueDefault3.MIN+'" max="'+phrValueDefault3.MAX+'" value="'+phrValueDefault3.VALUE+'">';
- healthInfoHTML += ' </div>';
- healthInfoHTML += '</td>';
- }
- else if(selectData == 'pulseRate'){
- phrValueDefault = PHR_VALUE_DEFAULT.PULSE_RATE;
- healthInfoHTML += '<th>맥박</th>';
- healthInfoHTML += '<td>';
- healthInfoHTML += ' <div class="form-group mb-xl-0">';
- healthInfoHTML += ' <input id="phrValue" class="form-control" type="number" placeholder="맥박 입력"min="'+phrValueDefault.MIN+'" max="'+phrValueDefault.MAX+'" value="'+phrValueDefault.VALUE+'">';
- healthInfoHTML += ' </div>';
- healthInfoHTML += '</td>';
- }
- else if(selectData == 'oxygenSaturation'){
- phrValueDefault = PHR_VALUE_DEFAULT.OXYGEN_SATURATION;
- healthInfoHTML += '<th>산소포화도</th>';
- healthInfoHTML += '<td>';
- healthInfoHTML += ' <div class="form-group mb-xl-0">';
- healthInfoHTML += ' <input id="phrValue" class="form-control" type="number" placeholder="산소포화도 입력" min="'+phrValueDefault.MIN+'" max="'+phrValueDefault.MAX+'" value="'+phrValueDefault.VALUE+'">';
- healthInfoHTML += ' </div>';
- healthInfoHTML += '</td>';
- }
- else if(selectData == 'bloodSugar'){
- phrValueDefault = PHR_VALUE_DEFAULT.BLOOD_SUGAR;
- healthInfoHTML += '<th>혈당</th>';
- healthInfoHTML += '<td>';
- healthInfoHTML += ' <div class="form-group mb-xl-0">';
- healthInfoHTML += ' <input id="phrValue" class="form-control" type="number" placeholder="혈당 입력" min="'+phrValueDefault.MIN+'" max="'+phrValueDefault.MAX+'" value="'+phrValueDefault.VALUE+'"">';
- healthInfoHTML += ' </div>';
- healthInfoHTML += '</td>';
- }
- else {
- }
- $('#healthInfo').html(healthInfoHTML);
- $('#healthInfo').attr("data-phr-type", selectData);
- setTimeout(function (){
- $('#healthInfo').find('.form-group input:first-child').focus();
- }, 500);
-
- });
- // 임상증상 추가 클릭 이벤트
- $(document).on('click','[data-target="#defaultModalPrimary_2"]',function(){
- var symptomInfoHtml = '';
- symptomInfoHtml += ' <th>임상증상</th>';
- symptomInfoHtml += ' <td>';
- symptomInfoHtml += ' <div class="form-group mb-xl-0">';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="coughCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 기침';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="dyspneaCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 호흡곤란';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="coldFitCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 오한';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="musclePainCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 근육통';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="headacheCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 두통';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="soreThroatCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 인후통';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="smellPalateCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 후각/미각 손실';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="fatigueCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 피로';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="appetiteLossCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 식욕감소';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="sputumCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 가래';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="ocinCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 오심';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="vomitingCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 구토';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="diarrheaCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 설사';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="dizzinessCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 어지러움';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="noseCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 콧물/코막힘';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' <label class="form-check form-check-inline">';
- symptomInfoHtml += ' <input id="etcCheck" class="form-check-input" type="checkbox">';
- symptomInfoHtml += ' <span class="form-check-label">';
- symptomInfoHtml += ' 기타 ( <input type="text" id="etcContent" class="form-control form-control-sm w150" value="" placeholder="증상 내용"> )';
- symptomInfoHtml += ' </span>';
- symptomInfoHtml += ' </label>';
- symptomInfoHtml += ' </div>';
- symptomInfoHtml += ' </td>';
- $('#symptomInfo').html(symptomInfoHtml);
- });
- // 의료진 메모 추가 클릭 이벤트
- $(document).on('click','.addMemo',function(){
- var memoInfoHTML = '';
- memoInfoHTML += '<th>내용</th>';
- memoInfoHTML += '<td>';
- memoInfoHTML += ' <div class="form-row">';
- memoInfoHTML += ' <textarea id="memoContent" class="form-control" rows="15" placeholder="내용을 입력하세요"></textarea>';
- memoInfoHTML += ' </div>';
- memoInfoHTML += '</td>';
-
- $('#memoInfo').html(memoInfoHTML);
- $('.addMemoTools').show();
- $('.modifMemoTools').hide();
- $('#defaultModalPrimaryMemo').modal();
- setTimeout(function (){
- $('#memoInfo').find('.form-row textarea').focus();
- }, 500);
- });
- });
- </script>
- </head>
- <body>
- <form id="nonface" name="nonface" action="https://lemon.medihere.com/app/vc">
- </form>
- <form id="hiddenForm">
- <input type="hidden" id="pId" name="pId" value='<c:out value="${info.id}" />'>
- <input type="hidden" id="pName" name="pName" value='<c:out value="${info.patientName}" />'>
- <input type="hidden" id="roomId" name="roomId" value='<c:out value="${info.roomNumber}" />'>
- </form>
- <div class="preloader">
- <div class="loadingIcon"></div>
- </div>
- <div class="modal fade" id="legendGuide" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="modal-dialog modal-sm" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title">알람 표시 기준 안내</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span> </button>
- </div>
- <div class="modal-body m-1">
- <h4>생체측정 알람 표시 기준</h4>
- <ul class="legend">
- <li class="row fever">
- <div class="col-lg-4">체온</div>
- <div class="col-lg-8">37.5 이상</div>
- </li>
- <li class="row bloodPressure">
- <div class="col-lg-4">고혈압</div>
- <div class="col-lg-8">수축기 149 이상<br>이완기 99 이상</div>
- </li>
- <li class="row bloodPressure">
- <div class="col-lg-4">저혈압</div>
- <div class="col-lg-8">수축기 90 이하<br>이완기 60 이하</div>
- </li>
- <li class="row oxygen">
- <div class="col-lg-4">산소포화도</div>
- <div class="col-lg-8">94% 이하</div>
- </li>
- <li class="row pulse">
- <div class="col-lg-4">맥박</div>
- <div class="col-lg-8">최저 55 이하<br>최고 110 이상</div>
- </li>
- <li class="row sugar">
- <div class="col-lg-4">고혈당</div>
- <div class="col-lg-8">200 이상</div>
- </li>
- <li class="row sugar">
- <div class="col-lg-4">저혈당</div>
- <div class="col-lg-8">70 이하 </div>
- </li>
- </ul>
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-primary" data-dismiss="modal">닫기</button>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="defaultModalPrimary_1" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="modal-dialog modal-sm" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title">건강정보 입력</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
- aria-hidden="true">×</span> </button>
- </div>
- <div class="modal-body m-3">
- <table class="table mobile-table">
- <colgroup>
- <col style="width: 30%">
- <col style="width: 70%">
- </colgroup>
- <tr>
- <th>기록자</th>
- <td>
- <div class="form-group mb-xl-0">
- <input class="form-control" type="text" value="${data._SES_NAME}" readonly>
- </div>
- </td>
- </tr>
- <tr id="healthInfo">
- <!-- 컨텐츠 동적 생성 -->
- </tr>
- <tr>
- <th>측정일시</th>
- <td>
- <div class="datetimepickerWrap">
- <input id="eventDateTime1" class="datetimepicker form-control" type="text" placeholder="측정일시(미 입력시 현재시간 자동등록)">
- </div>
- </td>
- </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" onclick="handlePhrData()">등록</button>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="defaultModalPrimary_2" tabindex="-1" role="dialog" aria-hidden="true">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title">임상증상 입력</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
- aria-hidden="true">×</span> </button>
- </div>
- <div class="modal-body m-3">
- <table class="table mobile-table">
- <colgroup>
- <col style="width: 30%">
- <col style="width: 70%">
- </colgroup>
- <tr>
- <th>기록자</th>
- <td>
- <div class="form-group mb-xl-0">
- <input class="form-control" type="text" value="${data._SES_NAME}" readonly>
- </div>
- </td>
- </tr>
- <tr id="symptomInfo">
- <!-- 컨텐츠 동적 생성 -->
- </tr>
- <tr>
- <th>측정일시</th>
- <td>
- <div class="datetimepickerWrap">
- <input id="eventDateTime2" class="datetimepicker form-control" type="text" placeholder="측정일시(미 입력시 현재시간 자동등록)">
- </div>
- </td>
- </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" onclick="handleSymptomData()">등록</button>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="defaultModalPrimaryMemo" tabindex="-1" role="dialog" aria-hidden="true" data-memoid="">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <h5 class="modal-title">의료진 메모 수정</h5>
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
- aria-hidden="true">×</span> </button>
- </div>
- <div class="modal-body m-3">
- <table class="table mobile-table">
- <colgroup>
- <col style="width: 20%">
- <col style="width: 80%">
- </colgroup>
- <tbody id="memoInfo">
- <!-- 컨텐츠 동적 생성 -->
- </tbody>
- </table>
- </div>
- <div class="modal-footer">
- <button type="button" class="removeMemo btn btn-danger" onclick="deleteMemoData()">삭제</button>
- <button type="button" class="btn btn-outline-primary" data-dismiss="modal">취소</button>
- <button type="button" class="btn btn-primary" onclick="modifyMemoData()">수정</button>
- </div>
- </div>
- </div>
- </div>
- <div class="wrapper">
- <jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
- <div class="main">
- <jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>
- <main class="content">
- <div class="container-fluid p-0">
- <div class="row">
- <div class="col-12 col-lg-6">
- <h1 class="h3 mb-3">건강정보 조회</h1>
- </div>
- <div class="col-12 col-lg-6 text-right">
- <nav aria-label="breadcrumb">
- <ol class="breadcrumb">
- <li class="breadcrumb-item"><a href="javscript:;">Home</a></li>
- <li class="breadcrumb-item">진료관리</li>
- <li class="breadcrumb-item active">건강정보 조회</li>
- </ol>
- </nav>
- </div>
- </div>
- <div class="row">
- <div class="col-12">
- <div id="home" class="card">
- <div class="row mb-3">
- <div class="col-12">
- <!-- <div class="text-right"> -->
- <button class="btn btn-lg btn-secondary" onclick="gotoList()"><i class="mdi mdi-backburger"></i> 대시보드</button>
- <!-- </div> -->
- </div>
- </div>
- <div class="toggle">
- <div class="toggleHeader card-header">
- <h1 class="h4">
- <c:set var="now" value="<%=new java.util.Date()%>" />
- <fmt:formatDate value="${now}" pattern="yyyy" var="sysYear"/>
- <fmt:parseDate value="${info.jumin}" pattern="yyyy년 MM월 dd일" var="birthDate"/>
- <fmt:formatDate value="${birthDate}" pattern="yyyy" var="birthYear"/>
- <c:set var="age" value="${sysYear-birthYear}" />
- <span class="mr-2"><span id="roomNumber"><c:out value="${info.roomNumber}" />호</span> <span id="patientName"><c:out value="${info.patientName}" /></span>(<span id="patientGender"><c:out value="${info.gender=='M'?'남':'여'}" /></span>/<span id="patientYearsOld"><c:out value="${age}" /></span>세) 환자 기본정보</span>
- <button class="untactStart btn btn-lg btn-warning" onclick="nonFaceStart();"><i class="mdi mdi-message-video"></i> 비대면 진료</button>
- </h1>
- <a href="javscript:;" class="toggleBtn">메뉴</a>
- </div>
- <div id="userInfo" class="card-body user-info">
- <div class="mb-3">
- <button class="patientInfo btn btn-primary" onclick="gotoPatientInfo()"><i class="mdi mdi-account"></i> 환자정보 관리</button>
- </div>
- <jsp:include page="${data._INCLUDE}/patientInfo.jsp"></jsp:include>
- </div>
- </div>
- <!-- <hr> -->
- <div class="card-body">
- <section id="symptomSection" class="phrSection">
- <div class="col-lg-12">
- <div class="row">
- <div class="col-lg-3">
- <h1 class="h4">
- <div class="sectionToggle"></div>
- <span class="phrTitle symptom">임상증상</span>
- </h1>
- </div>
- <div class="col-lg-9 text-right">
- <button id="symptom" type="button" class="btn btn-primary" data-toggle="modal" data-target="#defaultModalPrimary_2"><i class="mdi mdi-clipboard-pulse-outline"></i> 임상증상 추가</button>
- </div>
- </div>
- </div>
- <div class="sectionContent col-lg-12">
- <div class="row">
- <div class="sectionNav col-lg-12">
- <ul>
- <li><a href="#home">환자정보</a></li>
- <li class="active"><a href="#symptomSection">임상증상</a></li>
- <li><a href="#feverSection">체온</a></li>
- <li><a href="#bloodPressureSection">혈압 / 맥박</a></li>
- <li><a href="#oxygenSection">산소포화도</a></li>
- <li><a href="#sugarSection">혈당</a></li>
- <li><a href="#medicalMemoSection">의료진 메모</a></li>
- </ul>
- </div>
- <div class="col-lg-12">
- <div class="phrDataTableWrap table-responsive mb-4">
- <table id="symptomDataTable" class="symptomDataTable table data-table text-center">
- <thead>
- <tr>
- <th>측정일시</th>
- <th>기침</th>
- <th>호흡곤란</th>
- <th>오한</th>
- <th>근육통</th>
- <th>두통</th>
- <th>인후통</th>
- <th>후각/미각 소실</th>
- <th>피로</th>
- <th>식욕감소</th>
- <th>가래</th>
- <th>오심</th>
- <th>구토</th>
- <th>설사</th>
- <th>어지러움</th>
- <th>콧물/코막힘</th>
- <th>기타증상</th>
- <th>기록자</th>
- <th>기록일시</th>
- </tr>
- </thead>
- <tbody>
- <c:set var="symptomTotal" value="${symptomResult.size()}" />
- <c:set var="yesHtml" value="<i class='mdi mdi-check-bold'></i>" />
- <c:set var="noHtml" value="-" />
- <c:choose>
- <c:when test="${symptomTotal > 0}">
- <c:forEach var="d" items="${symptomResult}">
- <tr>
- <th><c:out value="${d.createDateFormatted}" /></th>
- <td>${d.coughCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.dyspneaCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.coldFitCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.musclePainCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.headacheCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.soreThroatCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.smellPalateCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.fatigueCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.appetiteLossCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.sputumCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.ocinCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.vomitingCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.diarrheaCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.dizzinessCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.noseCheck == 'Y' ? yesHtml : noHtml}</td>
- <td>${d.etcCheck == 'Y' ? d.etcContent : noHtml}</td>
- <td><c:out value="${d.recordedByName}" /></td>
- <td></td>
- </tr>
- </c:forEach>
- </c:when>
- <c:otherwise>
- <tr>
- <td colspan=19>데이터가 없습니다.</td>
- </tr>
- </c:otherwise>
- </c:choose>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </section>
- <!-- <hr> -->
- <section id="feverSection" class="phrSection">
- <div class="col-lg-12">
- <div class="row">
- <div class="col-lg-3">
- <h1 class="h4">
- <div class="sectionToggle"></div>
- <span class="phrTitle fever">체온</span>
- </h1>
- </div>
- <div class="col-lg-9 text-right">
- <button id="temperature" type="button" class="btn btn-primary ml-2" data-toggle="modal" data-target="#defaultModalPrimary_1"><i class="mdi mdi-clipboard-pulse-outline"></i> 체온 추가</button>
- </div>
- </div>
- </div>
- <div class="sectionContent col-lg-12">
- <div class="row">
- <div class="sectionNav col-lg-12">
- <ul>
- <li><a href="#home">환자정보</a></li>
- <li><a href="#symptomSection">임상증상</a></li>
- <li class="active"><a href="#feverSection">체온</a></li>
- <li><a href="#bloodPressureSection">혈압 / 맥박</a></li>
- <li><a href="#oxygenSection">산소포화도</a></li>
- <li><a href="#sugarSection">혈당</a></li>
- <li><a href="#medicalMemoSection">의료진 메모</a></li>
- </ul>
- </div>
- <div class="col-lg-6 col-md-12">
- <div class="graph-area mb-4">
- <canvas id="temperatureChart" style="width: 100%; height: 370px"></canvas>
- </div>
- </div>
- <div class="col-lg-6 col-md-12">
- <h1 class="h4 text-right">
- <span class="small showLegend" data-toggle="modal" data-target="#legendGuide"><i class="mdi mdi-comment-question-outline"></i> 알람 표시 기준</span>
- </h1>
- <div class="phrDataTableWrap table-responsive">
- <table id="temperatureDataTable" class="phrDataTable table data-table text-center">
- <thead>
- <tr>
- <th>측정일시</th>
- <th>체온</th>
- <th>기록자</th>
- <th>기록일시</th>
- </tr>
- </thead>
- <tbody>
- <c:set var="temperatureTotal" value="${temperatureResult.size()}" />
- <c:choose>
- <c:when test="${temperatureTotal > 0}">
- <c:forEach var="i" begin="1" end="${temperatureTotal}">
- <tr>
- <td><c:out value="${temperatureResult[temperatureTotal-i].createDateFormatted}" /></td>
- <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></td>
- </tr>
- </c:forEach>
- </c:when>
- <c:otherwise>
- <tr>
- <td colspan=4>데이터가 없습니다.</td>
- </tr>
- </c:otherwise>
- </c:choose>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </section>
- <!-- <hr> -->
- <section id="bloodPressureSection" class="phrSection">
- <div class="col-lg-12">
- <div class="row">
- <div class="col-lg-3">
- <h1 class="h4">
- <div class="sectionToggle"></div>
- <span class="phrTitle bloodPressure">혈압 / 맥박</span>
- </h1>
- </div>
- <div class="col-lg-9 text-right">
- <button id="bloodPressure" type="button" class="btn btn-primary ml-2" data-toggle="modal" data-target="#defaultModalPrimary_1"><i class="mdi mdi-clipboard-pulse-outline"></i> 혈압 / 맥박 추가</button>
- </div>
- </div>
- </div>
- <div class="sectionContent col-lg-12">
- <div class="row">
- <div class="sectionNav col-lg-12">
- <ul>
- <li><a href="#home">환자정보</a></li>
- <li><a href="#symptomSection">임상증상</a></li>
- <li><a href="#feverSection">체온</a></li>
- <li class="active"><a href="#bloodPressureSection">혈압 / 맥박</a></li>
- <li><a href="#oxygenSection">산소포화도</a></li>
- <li><a href="#sugarSection">혈당</a></li>
- <li><a href="#medicalMemoSection">의료진 메모</a></li>
- </ul>
- </div>
- <div class="col-lg-6 col-md-12">
- <div class="graph-area mb-4">
- <canvas id="bloodPressurePulseChart" style="width: 100%; height: 370px"></canvas>
- </div>
- </div>
- <div class="col-lg-6 col-md-12">
- <h1 class="h4 text-right">
- <span class="small showLegend" data-toggle="modal" data-target="#legendGuide"><i class="mdi mdi-comment-question-outline"></i> 알람 표시 기준</span>
- </h1>
- <div class="phrDataTableWrap table-responsive">
- <table id="bloodPressureDataTable" class="phrDataTable table data-table text-center">
- <thead>
- <tr>
- <th>측정일시</th>
- <th>혈압</th>
- <th>맥박</th>
- <th>기록자</th>
- <th>기록일시</th>
- </tr>
- </thead>
- <tbody>
- <c:set var="bloodPressureUnionTotal" value="${bloodPressureUnionResult.size()}" />
- <c:choose>
- <c:when test="${bloodPressureUnionTotal > 0}">
- <c:forEach var="i" begin="1" end="${bloodPressureUnionTotal}">
- <fmt:parseNumber var="bpH" value="${bloodPressureUnionResult[bloodPressureUnionTotal-i].phrValue}" integerOnly="true" />
- <fmt:parseNumber var="bpL" value="${bloodPressureUnionResult[bloodPressureUnionTotal-i].phrValue2}" integerOnly="true" />
- <fmt:parseNumber var="pr" value="${bloodPressureUnionResult[bloodPressureUnionTotal-i].phrValueExtra}" integerOnly="true" />
- <tr>
- <td><c:out value="${bloodPressureUnionResult[bloodPressureUnionTotal-i].createDateFormatted}" /></td>
- <td><span class="${bloodPressureUnionResult[bloodPressureUnionTotal-i].isWarning ? 'text-danger' : ''}"><c:out value="${bpH}/${bpL}" /></span></td>
- <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></td>
- </tr>
- </c:forEach>
- </c:when>
- <c:otherwise>
- <tr>
- <td colspan=5>데이터가 없습니다.</td>
- </tr>
- </c:otherwise>
- </c:choose>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </section>
- <!-- <hr> -->
- <section id="oxygenSection" class="phrSection">
- <div class="col-lg-12">
- <div class="row">
- <div class="col-lg-3">
- <h1 class="h4">
- <div class="sectionToggle"></div>
- <span class="phrTitle oxygen">산소포화도</span>
- </h1>
- </div>
- <div class="col-lg-9 text-right">
- <button id="oxygenSaturation" type="button" class="btn btn-primary ml-2" data-toggle="modal" data-target="#defaultModalPrimary_1"><i class="mdi mdi-clipboard-pulse-outline"></i> 산소포화도 추가</button>
- </div>
- </div>
- </div>
- <div class="sectionContent col-lg-12">
- <div class="row">
- <div class="sectionNav col-lg-12">
- <ul>
- <li><a href="#home">환자정보</a></li>
- <li><a href="#symptomSection">임상증상</a></li>
- <li><a href="#feverSection">체온</a></li>
- <li><a href="#bloodPressureSection">혈압 / 맥박</a></li>
- <li class="active"><a href="#oxygenSection">산소포화도</a></li>
- <li><a href="#sugarSection">혈당</a></li>
- <li><a href="#medicalMemoSection">의료진 메모</a></li>
- </ul>
- </div>
- <div class="col-lg-6 col-md-12">
- <div class="graph-area mb-4">
- <canvas id="oxygenSaturationChart" style="width: 100%; height: 370px"></canvas>
- </div>
- </div>
- <div class="col-lg-6 col-md-12">
- <h1 class="h4 text-right">
- <span class="small showLegend" data-toggle="modal" data-target="#legendGuide"><i class="mdi mdi-comment-question-outline"></i> 알람 표시 기준</span>
- </h1>
- <div class="phrDataTableWrap table-responsive">
- <table id="oxygenSaturationDataTable" class="phrDataTable table data-table text-center">
- <thead>
- <tr>
- <th>측정일시</th>
- <th>산소포화도</th>
- <th>기록자</th>
- <th>기록일시</th>
- </tr>
- </thead>
- <tbody>
- <c:set var="oxygenSaturationTotal" value="${oxygenSaturationResult.size()}" />
- <c:choose>
- <c:when test="${oxygenSaturationTotal > 0}">
- <c:forEach var="i" begin="1" end="${oxygenSaturationTotal}">
- <fmt:parseNumber var="phrValue" value="${oxygenSaturationResult[oxygenSaturationTotal-i].phrValue}" integerOnly="true" />
- <tr>
- <td><c:out value="${oxygenSaturationResult[oxygenSaturationTotal-i].createDateFormatted}" /></td>
- <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></td>
- </tr>
- </c:forEach>
- </c:when>
- <c:otherwise>
- <tr>
- <td colspan=4>데이터가 없습니다.</td>
- </tr>
- </c:otherwise>
- </c:choose>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </section>
- <!-- <hr> -->
- <section id="sugarSection" class="phrSection">
- <div class="col-lg-12">
- <div class="row">
- <div class="col-lg-3">
- <h1 class="h4">
- <div class="sectionToggle"></div>
- <span class="phrTitle sugar">혈당</span>
- </h1>
- </div>
- <div class="col-lg-9 text-right">
- <button id="bloodSugar" type="button" class="btn btn-primary ml-2" data-toggle="modal" data-target="#defaultModalPrimary_1"><i class="mdi mdi-clipboard-pulse-outline"></i> 혈당 추가</button>
- </div>
- </div>
- </div>
- <div class="sectionContent col-lg-12">
- <div class="row">
- <div class="sectionNav col-lg-12">
- <ul>
- <li><a href="#home">환자정보</a></li>
- <li><a href="#symptomSection">임상증상</a></li>
- <li><a href="#feverSection">체온</a></li>
- <li><a href="#bloodPressureSection">혈압 / 맥박</a></li>
- <li><a href="#oxygenSection">산소포화도</a></li>
- <li class="active"><a href="#sugarSection">혈당</a></li>
- <li><a href="#medicalMemoSection">의료진 메모</a></li>
- </ul>
- </div>
- <div class="col-lg-6 col-md-12">
- <div class="graph-area mb-4">
- <canvas id="bloodSugarChart" style="width: 100%; height: 370px"></canvas>
- </div>
- </div>
- <div class="col-lg-6 col-md-12">
- <h1 class="h4 text-right">
- <span class="small showLegend" data-toggle="modal" data-target="#legendGuide"><i class="mdi mdi-comment-question-outline"></i> 알람 표시 기준</span>
- </h1>
- <div class="phrDataTableWrap table-responsive">
- <table id="bloodSugarDataTable" class="phrDataTable table data-table text-center">
- <thead>
- <tr>
- <th>측정일시</th>
- <th>혈당</th>
- <th>기록자</th>
- <th>기록일시</th>
- </tr>
- </thead>
- <tbody>
- <c:set var="bloodSugarTotal" value="${bloodSugarResult.size()}" />
- <c:choose>
- <c:when test="${bloodSugarTotal > 0}">
- <c:forEach var="i" begin="1" end="${bloodSugarTotal}">
- <fmt:parseNumber var="phrValue" value="${bloodSugarResult[bloodSugarTotal-i].phrValue}" integerOnly="true" />
- <tr>
- <td><c:out value="${bloodSugarResult[bloodSugarTotal-i].createDateFormatted}" /></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></td>
- </tr>
- </c:forEach>
- </c:when>
- <c:otherwise>
- <tr>
- <td colspan=4>데이터가 없습니다.</td>
- </tr>
- </c:otherwise>
- </c:choose>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </section>
- <!-- <hr> -->
- <section id="medicalMemoSection" class="phrSection">
- <h1 class="h4 col-lg-12">
- <span class="phrTitle medicalMemo">의료진 메모</span>
- <!-- <button id="medicalMemo" type="button" class="btn btn-primary ml-2" data-toggle="modal" data-target="#defaultModalPrimaryMemo"><i class="mdi mdi-clipboard-alert-outline"></i> 메모추가</button> -->
- </h1>
- <div class="col-lg-12">
- <div class="row">
- <div class="sectionNav col-lg-12">
- <ul>
- <li><a href="#home">환자정보</a></li>
- <li><a href="#symptomSection">임상증상</a></li>
- <li><a href="#feverSection">체온</a></li>
- <li><a href="#bloodPressureSection">혈압 / 맥박</a></li>
- <li><a href="#oxygenSection">산소포화도</a></li>
- <li><a href="#sugarSection">혈당</a></li>
- <li class="active"><a href="#medicalMemoSection">의료진 메모</a></li>
- </ul>
- </div>
- <div class="col-lg-4">
- <textarea id="memoContent" class="medicalMemo form-control mb-3" rows="15" placeholder="내용을 입력하세요"></textarea>
- <div class="datetimepickerWrap mb-3">
- <input id="eventDateTime3" class="datetimepicker form-control" type="text" placeholder="처리 일시 (미 입력시 현재시간 자동등록)" />
- </div>
- <div class="text-right">
- <button id="medicalMemo" type="button" class="btn btn-primary ml-2" onclick="insertMemoData()"><i class="mdi mdi-clipboard-alert-outline"></i> 메모추가</button>
- </div>
- </div>
- <div class="col-lg-8">
- <div class="memoDataTableWrap table-responsive mb-4">
- <table id="memoDataTable" class="memoDataTable table data-table text-center">
- <thead>
- <tr>
- <th>처리일시</th>
- <th>내용</th>
- <th>기록자</th>
- <th>기록일시</th>
- </tr>
- </thead>
- <tbody>
- <c:set var="memoTotal" value="${memoResult.size()}" />
- <c:choose>
- <c:when test="${memoTotal > 0}">
- <c:forEach var="d" items="${memoResult}">
- <tr>
- <td><c:out value="${d.createDateFormatted}" /></td>
- <c:choose>
- <c:when test="${d.canModify}">
- <td><pre id='memo_${d.idx}' class='contentsEdit' onClick='handleModifyMemo(${d.idx})'>${d.contents}</pre></td>
- </c:when>
- <c:otherwise>
- <td><pre>${d.contents}</pre></td>
- </c:otherwise>
- </c:choose>
- <td><c:out value="${d.recordedByName}" /></td>
- <td></td>
- </tr>
- </c:forEach>
- </c:when>
- <c:otherwise>
- <tr>
- <td colspan=4>데이터가 없습니다.</td>
- </tr>
- </c:otherwise>
- </c:choose>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </section>
- </div>
- </div>
- </div>
- </div>
- <!-- <div class="row">
- <div class="col-12">
- <div class="card">
- <ul class="tab-nav">
- <li class="tab-item active" tabindex="#tabPhr">건강정보이력</li>
- <li class="tab-item" tabindex="#tabSymptom">임상증상</li>
- <li class="tab-item" tabindex="#tabMemo">의료진 메모</li>
- </ul>
- <div id="tabPhr" class="tab in">
- <div class="card-header">
- <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="bloodPressure">혈압</option>
- <option value="oxygenSaturation">산소포화도</option>
- <option value="pulseRate">맥박</option>
- <option value="bloodSugar">혈당</option>
- </select>
- </label> <label class="ml-1">
- <button type="button" class="btn btn-primary ml-2" data-toggle="modal" data-target="#defaultModalPrimary_1">기록추가</button>
- </label>
- </h1>
- </div>
- <div class="card-body">
- <div class="graph-area mb-4" style="height:300px;">
- <canvas id="phrChart"></canvas>
- </div>
- <button class="btn btn-success" onclick="getExcel('');">Excel 다운로드</button>
- <h1 class="h4 text-right"><span class="small showLegend ml-2" data-toggle="modal" data-target="#legendGuide"><i class="mdi mdi-comment-question-outline"></i> 알람 표시 기준</span></h1>
- <div class="table-responsive">
- <table id="phrDataTable" class="table data-table text-center">
- <thead>
- <tr>
- <th>기록일시</th>
- <th>체온</th>
- <th>기록자</th>
- </tr>
- </thead>
- <tbody>
- <c:choose>
- <c:when test="${phrTotal > 0}">
- <c:forEach var="i" begin="1" end="${phrTotal}">
- <tr>
- <td><c:out value="${phrItems[phrTotal-i].createDateFormatted}" /></td>
- <td><span class="${phrItems[phrTotal-i].isWarning ? 'text-danger' : ''}"><c:out value="${phrItems[phrTotal-i].phrValue}" /></span></td>
- <td><c:out value="${phrItems[phrTotal-i].recordedByName}" /></td>
- </tr>
- </c:forEach>
- </c:when>
- <c:otherwise>
- <tr>
- <td colspan=3>데이터가 없습니다.</td>
- </tr>
- </c:otherwise>
- </c:choose>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div id="tabSymptom" class="tab">
- <div class="card-header">
- <h1 class="h4">
- - 임상증상 <label class="ml-1">
- <button type="button" class="btn btn-primary ml-2" data-toggle="modal" data-target="#defaultModalPrimary_2">증상추가</button>
- </label>
- <button class="btn btn-success text-right" style="float:right;" onclick="getExcel('symptom');">Excel 다운로드</button>
- </h1>
- </div>
- <div class="card-body">
- <div class="table-responsive">
- <table id="symptomDataTable" class="table data-table text-center">
- <thead>
- <tr>
- <th>기록일시</th>
- <th>기침</th>
- <th>호흡곤란</th>
- <th>오한</th>
- <th>근육통</th>
- <th>두통</th>
- <th>인후통</th>
- <th>후각/미각 손실</th>
- <th>피로</th>
- <th>식욕감소</th>
- <th>가래</th>
- <th>오심</th>
- <th>구토</th>
- <th>설사</th>
- <th>어지러움</th>
- <th>콧물/코막힘</th>
- <th>기타증상</th>
- <th>기록자</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div id="tabMemo" class="tab">
- <div class="card-header">
- <h1 class="h4">
- - 의료진 메모
- <button type="button" class="addMemo btn btn-primary ml-2" data-toggle="modal">메모추가</button>
- <button class="btn btn-success text-right" style="float:right;" onclick="getExcel('memo');">Excel 다운로드</button>
- </h1>
- </div>
- <div class="card-body">
- <div class="table-responsive">
- <table id="memoDataTable" class="table data-table text-center">
- <thead>
- <tr>
- <th>기록일시</th>
- <th>내용</th>
- <th>기록자</th>
- </tr>
- </thead>
- <tbody>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>-->
- </div>
- </main>
- <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
- </div>
- </div>
- </body>
- </html>
|