|
@@ -123,7 +123,9 @@ function searchPatients() {
|
|
|
var filterValue = 0;
|
|
|
$('input:checkbox[name="filter"]').each(function() {
|
|
|
if(this.checked) {
|
|
|
+ console.log( filterValue );
|
|
|
filterValue = filterValue | this.value
|
|
|
+ console.log( filterValue );
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -140,7 +142,6 @@ function searchPatients() {
|
|
|
url += (index === 0 ? "?" : "&");
|
|
|
url += param;
|
|
|
})
|
|
|
-
|
|
|
location.href = url;
|
|
|
}
|
|
|
|
|
@@ -163,9 +164,12 @@ function retrieveStateData(page, needInitPagination) {
|
|
|
if (result.items.length > 0) {
|
|
|
html = "";
|
|
|
result.items.forEach(function(d) {
|
|
|
- console.log( d.patientName, d );
|
|
|
+ // console.log( d.patientName, JSON.stringify(d) );
|
|
|
+ d.needMentalCheck = d.needMentalCheck == null ? true : d.needMentalCheck;
|
|
|
+ d.isMentalWarning = d.needMentalCheck ? false : d.isMentalWarning;
|
|
|
+
|
|
|
var danger = (d.isTemperatureWarning || d.isBloodPressureWarning || d.isPulseRateWarning || d.isOxygenSaturationeWarning || d.isBloodSugarWarning || d.isMentalWarning) ? "danger" : "";
|
|
|
-
|
|
|
+
|
|
|
var temperatureStep = d.isTemperatureWarning ? "step_two" : "step_one";
|
|
|
var bloodPressureStep = d.isBloodPressureWarning ? "step_two" : "step_one";
|
|
|
var pulseRateStep = d.isPulseRateWarning ? "step_two" : "step_one";
|
|
@@ -174,9 +178,12 @@ function retrieveStateData(page, needInitPagination) {
|
|
|
var mentalStep = d.isMentalWarning ? "step_two" : "step_one";
|
|
|
|
|
|
var agreeYn = d.agreeYn == 'Y' ? "(동의)" : "(비동의)";
|
|
|
- d.needMentalCheck = d.needMentalCheck == null ? true : false;
|
|
|
+
|
|
|
var mentalWarning = d.needMentalCheck ? "-- " : ( d.isMentalWarning ? "상담" + agreeYn : "정상" );
|
|
|
var mentalWarning1 = d.needMentalCheck ? "timeover" : "";
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
var temperatureCheck = d.needTemperatureCheck ? "timeover" : "";
|
|
|
var bloodPressureCheck = d.needBloodPressCheck ? "timeover" : "";
|
|
@@ -592,6 +599,7 @@ $(document).ready(function() {
|
|
|
<label class="filterItem"><input type="checkbox" id= "filter32" name="filter" value="32" /><span>산소포화도 미입력</span></label>
|
|
|
<label class="filterItem"><input type="checkbox" id= "filter64" name="filter" value="64" /><span>혈당 미입력</span></label>
|
|
|
<label class="filterItem"><input type="checkbox" id= "filter128" name="filter" value="128" /><span>임상증상 미입력</span></label>
|
|
|
+ <label class="filterItem"><input type="checkbox" id= "filter256" name="filter" value="256" /><span>정신건강 미입력</span></label>
|
|
|
</span>
|
|
|
<span class="filterApply"
|
|
|
><button id="filterApply" class="btn btn-primary" onclick="searchPatients()"><i class="mdi mdi-filter-outline"></i> 적용</button></span
|