|
@@ -81,18 +81,16 @@ function handlePhrData() {
|
|
|
$("#defaultModalPrimary_1").modal("hide");
|
|
|
}
|
|
|
|
|
|
-function createPhrData(patientIdx, phrType, phrValue, phrValue2, needRetrieveData=true, recordedById="${data._SES_ID}", recordedByName="${data._SES_NAME}") {
|
|
|
+function createPhrData(patientIdx, phrType, phrValue, phrValue2) {
|
|
|
|
|
|
$.ajax({
|
|
|
url : "./api/phrData",
|
|
|
- data : {patientIdx: patientIdx, phrType: phrType, phrValue: phrValue, phrValue2: phrValue2, recordedById: recordedById, recordedByName: recordedByName},
|
|
|
+ data : {patientIdx: patientIdx, phrType: phrType, phrValue: phrValue, phrValue2: phrValue2, recordedById: "${data._SES_ID}", recordedByName: "${data._SES_NAME}"},
|
|
|
method : "POST",
|
|
|
dataType : "json",
|
|
|
success : function( datas ){
|
|
|
|
|
|
- if (needRetrieveData) {
|
|
|
- retrievePhrData();
|
|
|
- }
|
|
|
+ retrievePhrData();
|
|
|
},
|
|
|
error : function(error){
|
|
|
alert(error.message);
|
|
@@ -129,7 +127,7 @@ function retrievePhrData() {
|
|
|
var contents = "<tr><td colspan=3>데이터가 없습니다.</td></tr>" ;
|
|
|
if (datas.length > 0) {
|
|
|
contents = "";
|
|
|
- datas.forEach(d => {
|
|
|
+ datas.forEach(function(d) {
|
|
|
var danger = d.isWarning ? "text-danger" : "";
|
|
|
var row = "";
|
|
|
row += "<tr>";
|
|
@@ -171,7 +169,7 @@ function drawPhrChart(data, dataName) {
|
|
|
|
|
|
var xDatas = [];
|
|
|
var yDatas = [];
|
|
|
- data.forEach(d=> {
|
|
|
+ data.forEach(function(d) {
|
|
|
var t = dateFormatter(d.createDate);
|
|
|
xDatas.push(t);
|
|
|
yDatas.push(d.phrValue);
|
|
@@ -206,7 +204,7 @@ function drawBPChart(data) {
|
|
|
var xDatas = [];
|
|
|
var y1Datas = [];
|
|
|
var y2Datas = [];
|
|
|
- data.forEach(d=> {
|
|
|
+ data.forEach(function(d) {
|
|
|
var t = dateFormatter(d.createDate);
|
|
|
xDatas.push(t);
|
|
|
y1Datas.push(d.phrValue);
|
|
@@ -323,7 +321,7 @@ function retrieveSymptomData() {
|
|
|
var checkSymbol = '<i class="mdi mdi-check-bold"></i>';
|
|
|
if (datas.length > 0) {
|
|
|
html = "";
|
|
|
- contents = datas.forEach(d => {
|
|
|
+ contents = datas.forEach(function(d) {
|
|
|
html += "<tr>";
|
|
|
html += "<th>" + dateFormatter(d.createDate) + "</th>";
|
|
|
html += "<td>" + (d.coughCheck === "Y" ? checkSymbol : "-") + "</td>";
|
|
@@ -411,7 +409,7 @@ function retrieveMemoData() {
|
|
|
var html = "<tr><td colspan=3>데이터가 없습니다.</td></tr>" ;
|
|
|
if (datas.length > 0) {
|
|
|
html = "";
|
|
|
- contents = datas.forEach(d => {
|
|
|
+ contents = datas.forEach(function(d) {
|
|
|
html += "<tr>";
|
|
|
html += "<td>" + dateFormatter(d.createDate) + "</td>";
|
|
|
html += "<td><pre>" + d.contents + "</pre></td>";
|