123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338 |
- <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
- <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
- <%@ 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="/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>
- 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:ss");
- }
- function chartDateFormatter(date) {
- return moment(date).format("MM-DD HH:mm:ss");
- }
- /*
- * 비대면 진료 시작
- */
- 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 = $("#phrTypeSelect option:selected").val();
- var phrValue = "";
- if (phrType === "bloodPressure") {
- phrValueSystolic = $("#phrValueSystolic").val();
- phrValueDiastolic = $("#phrValueDiastolic").val();
- // 유효성 체크
- var errorMessage = checkValidForPhrData("bloodPressureSystolic", phrValueSystolic);
- if (errorMessage) {
- alert(errorMessage);
- $("#phrValueSystolic").focus();
- return;
- }
- errorMessage = checkValidForPhrData("bloodPressureDiastolic", phrValueDiastolic);
- if (errorMessage) {
- alert(errorMessage);
- $("#phrValueDiastolic").focus();
- return;
- }
- // 저장 진행
- createPhrData(${patientIdx}, "bloodPressure", phrValueSystolic, phrValueDiastolic);
- $("#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(${patientIdx}, 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) {
-
- $.ajax({
- url : "./api/phrData",
- data : {patientIdx: patientIdx, phrType: phrType, phrValue: phrValue, phrValue2: phrValue2, recordedById: "${data._SES_ID}", recordedByName: "${data._SES_NAME}"},
- method : "POST",
- dataType : "json",
- success : function( datas ){
- retrievePhrData();
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- function retrievePhrData() {
- var phrType = $("#phrTypeSelect option:selected").val();
- var phrName = $("#phrTypeSelect option:selected").text();
- var ignoreCache = moment().unix();
- var params = {patientIdx: ${patientIdx}, phrType: phrType, ignoreCache:ignoreCache};
- $.ajax({
- url : "./api/phrDatas",
- data : params,
- method : "GET",
- dataType : "json",
- success : function( datas ){
- if (phrType==="bloodPressure") {
- drawBPChart(datas);
- }
- else {
- drawPhrChart(datas, phrName);
- }
- var html = "<thead><tr>";
- html += "<th>기록일시</th>";
- html += "<th>"+phrName+"</th>";
- html += "<th>기록자</th>";
- html += "</tr></thead>";
- html += "<tbody>";
- var contents = "<tr><td colspan=3>데이터가 없습니다.</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") {
- row += "<td><span class='"+danger+"'>" + (isNaN(parseInt(d.phrValue)) ? "--" : parseInt(d.phrValue)) + " / " + (isNaN(parseInt(d.phrValue2)) ? "--" : parseInt(d.phrValue2)) + "</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 += "</tr>";
- contents = row + contents;
- });
- };
- html += contents;
- html += "</tbody>";
- $("#phrDataTable").html(html);
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- var myChart = null;
- function drawPhrChart(data, dataName) {
- 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("phrChart").getContext('2d');
- myChart = 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) {
- if (myChart) {
- myChart.destroy();
- myChart = null;
- }
- var xDatas = [];
- var y1Datas = [];
- var y2Datas = [];
- data.forEach(function(d) {
- var t = chartDateFormatter(d.createDate);
- xDatas.push(t);
- y1Datas.push(d.phrValue);
- y2Datas.push(d.phrValue2);
- });
- var ctx = document.getElementById("phrChart").getContext('2d');
- myChart = new Chart(ctx, {
- type: 'line',
- data: {
- labels: xDatas,
- datasets: [{
- label: "수축기 혈압",
- data: y1Datas,
- fill: false,
- backgroundColor: '#fff',
- borderColor: '#5b7dff',
- borderWidth: 2,
- },{
- label: "이완기 혈압",
- data: y2Datas,
- fill: false,
- backgroundColor: '#fff',
- borderColor: 'rgb(255, 99, 132)',
- borderWidth: 2,
- }]
- },
- options: {
- maintainAspectRatio: false,
- }
- });
- }
- /*
- * 임상증상 탭 처리
- */
- 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 ){
- retrieveSymptomData();
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- function retrieveSymptomData() {
- var ignoreCache = moment().unix();
- var params = {patientIdx: ${patientIdx}, ignoreCache:ignoreCache};
- $.ajax({
- url : "./api/symptomDatas",
- data : params,
- method : "GET",
- dataType : "json",
- success : function( 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.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 += "</tr>";
- });
- };
- $("#symptomDataTable > tbody").html(html);
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- /*
- * 메모 탭 처리
- */
- 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 ){
- retrieveMemoData();
- },
- error : ajaxErrorHandler
- }).done( function(){
- });
- }
- function retrieveMemoData() {
- var ignoreCache = moment().unix();
- var params = {patientIdx: ${patientIdx}, ignoreCache:ignoreCache};
- $.ajax({
- url : "./api/memoDatas",
- data : params,
- method : "GET",
- dataType : "json",
- success : function( datas ){
- var html = "<tr><td colspan=3>데이터가 없습니다.</td></tr>" ;
- if (datas.length > 0) {
- html = "";
- contents = datas.forEach(function(d) {
- html += "<tr>";
- html += "<td>" + gridDateFormatter(d.createDate) + "</td>";
- html += "<td><pre>" + d.contents + "</pre></td>";
- html += "<td>" + d.recordedByName + "</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;
- }
- $(document).ready(function() {
- // 최초 로드시 phrData 체온이 로드됨. 해당 데이터 차트 그려줌.
- var datas = [];
- <c:forEach var="phr" items="${phrItems}" varStatus="status">
- datas.push({createDate: "${phr.createDate}", phrValue: "${phr.phrValue}"});
- </c:forEach>
-
- drawPhrChart(datas, "체온");
- // 상단 환자 정보 영역 토글 이벤트
- $('.toggle .card-header').click(function () {
- $('.toggle .card-header a.toggleBtn').toggleClass('active');
- $('.toggle .user-info').toggleClass('active');
- })
-
- // 탭 클릭 이벤트
- $(document).on('click','.tab-item',function(){
- var targetTab = $(this).attr('tabindex');
- $('.tab-item').removeClass('active');
- $('.tab').removeClass('in');
- $(this).addClass('active');
- $(targetTab).addClass('in');
- if (targetTab==="#tabPhr") {
- retrievePhrData();
- }
- else if (targetTab==="#tabSymptom") {
- retrieveSymptomData();
- }
- else if (targetTab==="#tabMemo") {
- retrieveMemoData();
- }
- });
- // phrData 기록 추가 클릭 이벤트
- $(document).on('click','[data-target="#defaultModalPrimary_1"]',function(){
- var selectData = $('#phrTypeSelect').find('option:selected').val();
- 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;
- 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 += ' </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);
- 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','[data-target="#defaultModalPrimaryMemo"]',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);
- 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>
- <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>
- </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>
- </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">
- <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>
- <tr>
- <th>작성자</th>
- <td>
- <div class="form-row">
- <input type="text" name="" class="form-control" placeholder="이름을 입력하세요" value="${data._SES_NAME}" readonly>
- </div>
- </td>
- </tr>
- <tr id="memoInfo">
- <!-- 컨텐츠 동적 생성 -->
- </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="handleMemoData()">등록</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">
- <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="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 class="card toggle">
- <div class="card-header">
- <h1 class="h4"><c:out value="${info.patientName}" /> 환자 기본정보</h1>
- <a href="#" class="toggleBtn">메뉴</a>
- </div>
- <div class="card-body">
- <table class="table mobile-table user-info">
- <colgroup>
- <col style="width: 15%">
- <col style="width: 35%">
- <col style="width: 15%">
- <col style="width: 35%">
- </colgroup>
- <tr>
- <th>치료센터</th>
- <td><c:out value="${info.centerName}" /></td>
- <th>입소일시</th>
- <td colspan="2">
- <c:out value="${info.hospitalizationDate}" />
- </td>
- </tr>
- <tr>
- <th>병동 번호</th>
- <td>
- <c:out value="${info.wardNumber}동 ${info.roomNumber}호" />
- </td>
- <th>이름</th>
- <td>
- <c:out value="${info.patientName}" />
- </td>
- </tr>
- <tr>
- <th>성별</th>
- <td>
- <c:if test="${info.gender eq 'M'}">
- 남
- </c:if>
- <c:if test="${info.gender ne 'M'}">
- 여
- </c:if>
- </td>
- <th>생년월일</th>
- <td>
- <c:out value="${info.jumin}" />
- </td>
- </tr>
- <tr>
- <th>연락처</th>
- <td>
- <c:out value="${info.patientPhone}" />
- </td>
- <th>보호자 연락처</th>
- <td>
- <c:out value="${info.guardianPhone}" />
- </td>
- </tr>
- <tr>
- <th>증상시작일</th>
- <td>
- <c:out value="${info.symptomStartDate}" />
- </td>
- <th>확진일</th>
- <td>
- <c:out value="${info.confirmationDate}" />
- </td>
- </tr>
- <tr>
- <th>격리해제 예정일</th>
- <td>
- <c:out value="${info.disisolationDate}" />
- </td>
- <th>상태</th>
- <td>
- <c:if test="${info.state eq 'H'}">
- 입소
- </c:if>
- <c:if test="${info.state eq 'D'}">
- 퇴소
- </c:if>
- <c:if test="${info.state eq 'T'}">
- 지정병원 이송
- </c:if>
- <c:if test="${info.state eq 'E'}">
- 기타
- </c:if>
- </td>
- </tr>
- <tr>
- <th>최근 약복용<br />(최근 24시간 이내)</th>
- <td>
- <c:choose>
- <c:when test="${info.drugYn eq 'Y'}">
- 복용 (<c:out value="${info.drugContent}" />)
- </c:when>
- <c:otherwise>
- 미복용
- </c:otherwise>
- </c:choose>
- </td>
- <th>임신</th>
- <td>
- <c:choose>
- <c:when test="${info.pregnancyStatus eq 'N'}">
- 무
- </c:when>
- <c:otherwise>
- 유 (<c:out value="${info.pregnancyWeek}주차" />)
- </c:otherwise>
- </c:choose>
- </td>
- </tr>
- <tr>
- <th rowspan="2">기저질환 여부</th>
- <td colspan="3">
- <c:choose>
- <c:when test="${info.basalDiseaseYn eq 'Y'}">
- 유
- </c:when>
- <c:otherwise>
- 무
- </c:otherwise>
- </c:choose>
- </td>
- </tr>
- <tr>
- <td colspan="3">
- <%-- <c:if test="${info.highBloodPressureCheck eq 'Y'}">, 고혈압</c:if> --%>
- <%-- <c:if test="${info.lowBloodPressureCheck eq 'Y'}">, 저혈압</c:if> --%>
- <%-- <c:if test="${info.organTransplantCheck eq 'Y'}">, 장기이식(신장, 간 등)</c:if> --%>
- <%-- <c:if test="${info.diabetesCheck eq 'Y'}">, 당뇨</c:if> --%>
- <%-- <c:if test="${info.respiratoryDiseaseCheck eq 'Y'}">, 호흡기질환</c:if> --%>
- <%-- <c:if test="${info.immunologicalDiseaseCheck eq 'Y'}">, 면역질환(류마티스 등)</c:if> --%>
- <%-- <c:if test="${info.heartDisease eq 'Y'}">, 심장질환</c:if> --%>
- <%-- <c:if test="${info.liverDisease eq 'Y'}">, 간질환</c:if> --%>
- <%-- <c:if test="${info.operation eq 'Y'}">, 수술(<c:out value="${info.operationContent}" />)</c:if> --%>
- <%-- <c:if test="${info.allergyCheck eq 'Y'}">, 알레르기</c:if> --%>
- <%-- <c:if test="${info.kidneyDisease eq 'Y'}">, 신장질환</c:if> --%>
- <%-- <c:if test="${info.cancerCheck eq 'Y'}">, 암(<c:out value="${info.cancerName}" />)</c:if> --%>
- <%-- <c:if test="${info.ectCheckDisease eq 'Y'}">, 기타(<c:out value="${info.etcContentDisease}" />)</c:if> --%>
- <c:out value="${disease}" />
- </td>
- </tr>
- <tr>
- <th>현재 증상<br />(입소 당시)</th>
- <td colspan="3">
- <%-- <c:if test="${info.feverCheck eq 'Y'}">, 열감(열나는느낌)</c:if> --%>
- <%-- <c:if test="${info.coughCheck eq 'Y'}">, 기침</c:if> --%>
- <%-- <c:if test="${info.colic eq 'Y'}">, 복통(배아픔)</c:if> --%>
- <%-- <c:if test="${info.coldFitCheck eq 'Y'}">, 오한(추운 느낌)</c:if> --%>
- <%-- <c:if test="${info.sputumCheck eq 'Y'}">, 가래</c:if> --%>
- <%-- <c:if test="${info.ocinCheck eq 'Y'}">, 오심(구역질)</c:if> --%>
- <%-- <c:if test="${info.chestPain eq 'Y'}">, 흉통</c:if> --%>
- <%-- <c:if test="${info.noseCheck eq 'Y'}">, 콧물 또는 코 막힘</c:if> --%>
- <%-- <c:if test="${info.vomitingCheck eq 'Y'}">, 구토</c:if> --%>
- <%-- <c:if test="${info.musclePainCheck eq 'Y'}">, 근육통(몸살)</c:if> --%>
- <%-- <c:if test="${info.soreThroatCheck eq 'Y'}">, 인후통(목 아픔)</c:if> --%>
- <%-- <c:if test="${info.diarrheaCheck eq 'Y'}">, 설사</c:if> --%>
- <%-- <c:if test="${info.headacheCheck eq 'Y'}">, 두통(머리아픔)</c:if> --%>
- <%-- <c:if test="${info.dyspneaCheck eq 'Y'}">, 호흡곤란(숨가쁨)</c:if> --%>
- <%-- <c:if test="${info.fatigueCheck eq 'Y'}">, 권태감(피곤함)</c:if> --%>
- <%-- <c:if test="${info.ectCheckSymptom eq 'Y'}">, 기타(<c:out value="${info.etcContentSymptom}" />)</c:if> --%>
- <c:out value="${symptom}" />
- </td>
- </tr>
- <tr>
- <th>
- 체온
- </th>
- <td>
- <c:out value="우측 ${info.feverRight}℃ / 좌측 ${info.feverRight}℃" />
- </td>
- <th>
- 맥박수
- </th>
- <td>
- <c:out value="${info.pulseRate} 회/분" />
- </td>
- </tr>
- <tr>
- <th>
- 호흡수
- </th>
- <td>
- <c:out value="${info.respirationRate} 회/분" />
- </td>
- <th>
- 혈압
- </th>
- <td>
- <c:out value="수축기 ${info.bloodPressureLevelCon} mmHg / 이완기 ${info.bloodPressureLevelRel} mmHg" />
- </td>
- </tr>
- <tr>
- <th>
- 산소포화도
- </th>
- <td colspan="3">
- <c:out value="${info.oxygenSaturation} %" />
- </td>
- </tr>
- </table>
- <div class="row mt-3">
- <div class="col-12">
- <div class="text-right">
- <button class="btn btn-outline-success" onclick="nonFaceStart();">비대면 진료</button>
- <button class="btn btn-primary" onclick="gotoList()">목록</button>
- </div>
- </div>
- </div>
- </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>
- <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>
- </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="btn btn-primary ml-2" data-toggle="modal" data-target="#defaultModalPrimaryMemo">메모추가</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>
|