|
@@ -423,7 +423,14 @@ function renderpushByMayDisease(name, i, inx) {
|
|
let medicinesPush = result.medicines || {}
|
|
let medicinesPush = result.medicines || {}
|
|
let operationsPush = result.operations || {}
|
|
let operationsPush = result.operations || {}
|
|
let nursePush = result.nurse || {}
|
|
let nursePush = result.nurse || {}
|
|
- if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && treatPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0) {
|
|
|
|
|
|
+ let isShow = false
|
|
|
|
+ for (let i = 0; i < treatPush.length; i++) {
|
|
|
|
+ const it = treatPush[i];
|
|
|
|
+ if (it.generaTreat) {
|
|
|
|
+ isShow = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0 && !isShow) {
|
|
$.toast('toast3', '', 3000, '.maydiagnose', i);
|
|
$.toast('toast3', '', 3000, '.maydiagnose', i);
|
|
$(".maydiagnose .item").css("display", "none")
|
|
$(".maydiagnose .item").css("display", "none")
|
|
} else if (maydiagnoseType) {
|
|
} else if (maydiagnoseType) {
|
|
@@ -461,7 +468,14 @@ function renderpushByHasDisease(name, i, inx) {
|
|
let medicinesPush = result.medicines || {}
|
|
let medicinesPush = result.medicines || {}
|
|
let operationsPush = result.operations || {}
|
|
let operationsPush = result.operations || {}
|
|
let nursePush = result.nurse || {}
|
|
let nursePush = result.nurse || {}
|
|
- if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && treatPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0) {
|
|
|
|
|
|
+ let isShow = false
|
|
|
|
+ for (let i = 0; i < treatPush.length; i++) {
|
|
|
|
+ const it = treatPush[i];
|
|
|
|
+ if (it.generaTreat) {
|
|
|
|
+ isShow = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0 && !isShow) {
|
|
$.toast('toast3', '', 3000, '.hasdiagnose', i);
|
|
$.toast('toast3', '', 3000, '.hasdiagnose', i);
|
|
$(".hasdiagnose .item").css("display", "none")
|
|
$(".hasdiagnose .item").css("display", "none")
|
|
} else if (hasdiagnoseType) {
|
|
} else if (hasdiagnoseType) {
|
|
@@ -797,7 +811,7 @@ function renderHasDisPush(list, inx) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx) {
|
|
function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx) {
|
|
- let generalstate, medicinestate, operationstate, nursestate
|
|
|
|
|
|
+ let generalstate, medicinestate, operationstate, nursestate, isShow = false
|
|
for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
const item = maydiagnoseList[i];
|
|
const item = maydiagnoseList[i];
|
|
if (item.code == 'maygeneral') {
|
|
if (item.code == 'maygeneral') {
|
|
@@ -810,15 +824,21 @@ function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
|
|
nursestate = item.status
|
|
nursestate = item.status
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ for (let i = 0; i < treatPush.length; i++) {
|
|
|
|
+ const it = treatPush[i];
|
|
|
|
+ if (it.generaTreat) {
|
|
|
|
+ isShow = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
$(".maydiagnose .item[data-index=" + inx + "]").append("<div class='centerBox'></div>")
|
|
$(".maydiagnose .item[data-index=" + inx + "]").append("<div class='centerBox'></div>")
|
|
let str = `<ul>
|
|
let str = `<ul>
|
|
- ${treatPush.length > 0 && generalstate != 0 ? `<li class="general" data-index="0">一般治疗</li>` : ''}
|
|
|
|
|
|
+ ${treatPush.length > 0 && isShow && generalstate != 0 ? `<li class="general" data-index="0">一般治疗</li>` : ''}
|
|
${medicinesPush.length > 0 && medicinestate != 0 ? `<li class="medicine" data-index="1">推荐用药</li>` : ''}
|
|
${medicinesPush.length > 0 && medicinestate != 0 ? `<li class="medicine" data-index="1">推荐用药</li>` : ''}
|
|
${operationsPush.length > 0 && operationstate != 0 ? `<li class="operation" data-index="2">推荐手术/操作</li>` : ''}
|
|
${operationsPush.length > 0 && operationstate != 0 ? `<li class="operation" data-index="2">推荐手术/操作</li>` : ''}
|
|
${nursePush.length > 0 && nursestate != 0 ? `<li class="nurse" data-index="3">推荐护理</li>` : ''}
|
|
${nursePush.length > 0 && nursestate != 0 ? `<li class="nurse" data-index="3">推荐护理</li>` : ''}
|
|
</ul>
|
|
</ul>
|
|
<div class="centerBoxItem">
|
|
<div class="centerBoxItem">
|
|
- ${treatPush.length > 0 && generalstate != 0 ? `<div class="checkBox generalItem maygeneral" data-index="0"></div>` : ''}
|
|
|
|
|
|
+ ${treatPush.length > 0 && isShow && generalstate != 0 ? `<div class="checkBox generalItem maygeneral" data-index="0"></div>` : ''}
|
|
${medicinesPush.length > 0 && medicinestate != 0 ? `<div class="checkBox medicineItem maymedicine" data-index="1"></div>` : ''}
|
|
${medicinesPush.length > 0 && medicinestate != 0 ? `<div class="checkBox medicineItem maymedicine" data-index="1"></div>` : ''}
|
|
${operationsPush.length > 0 && operationstate != 0 ? `<div class="checkBox operationItem mayoperation" data-index="2"></div>` : ''}
|
|
${operationsPush.length > 0 && operationstate != 0 ? `<div class="checkBox operationItem mayoperation" data-index="2"></div>` : ''}
|
|
${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem maynurse" data-index="3"></div>` : ''}
|
|
${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem maynurse" data-index="3"></div>` : ''}
|
|
@@ -841,7 +861,7 @@ function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
|
|
});
|
|
});
|
|
}
|
|
}
|
|
function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush, inx) {
|
|
function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush, inx) {
|
|
- let generalstate, medicinestate, operationstate, nursestate
|
|
|
|
|
|
+ let generalstate, medicinestate, operationstate, nursestate, isShow = false
|
|
for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
const item = maydiagnoseList[i];
|
|
const item = maydiagnoseList[i];
|
|
if (item.code == 'maygeneral') {
|
|
if (item.code == 'maygeneral') {
|
|
@@ -854,15 +874,21 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
|
|
nursestate = item.status
|
|
nursestate = item.status
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ for (let i = 0; i < treatPush.length; i++) {
|
|
|
|
+ const it = treatPush[i];
|
|
|
|
+ if (it.generaTreat) {
|
|
|
|
+ isShow = true
|
|
|
|
+ }
|
|
|
|
+ }
|
|
$(".hasdiagnose .item[data-index=" + inx + "]").append("<div class='centerBox'></div>")
|
|
$(".hasdiagnose .item[data-index=" + inx + "]").append("<div class='centerBox'></div>")
|
|
let str = `<ul>
|
|
let str = `<ul>
|
|
- ${treatPush.length > 0 && generalstate != 0 ? `<li class="general" data-index="0">一般治疗</li>` : ''}
|
|
|
|
|
|
+ ${treatPush.length > 0 && isShow && generalstate != 0 ? `<li class="general" data-index="0">一般治疗</li>` : ''}
|
|
${medicinesPush.length > 0 && medicinestate != 0 ? `<li class="medicine" data-index="1">推荐用药</li>` : ''}
|
|
${medicinesPush.length > 0 && medicinestate != 0 ? `<li class="medicine" data-index="1">推荐用药</li>` : ''}
|
|
${operationsPush.length > 0 && operationstate != 0 ? `<li class="operation" data-index="2">推荐手术/操作</li>` : ''}
|
|
${operationsPush.length > 0 && operationstate != 0 ? `<li class="operation" data-index="2">推荐手术/操作</li>` : ''}
|
|
${nursePush.length > 0 && nursestate != 0 ? `<li class="nurse" data-index="3">推荐护理</li>` : ''}
|
|
${nursePush.length > 0 && nursestate != 0 ? `<li class="nurse" data-index="3">推荐护理</li>` : ''}
|
|
</ul>
|
|
</ul>
|
|
<div class="centerBoxItem">
|
|
<div class="centerBoxItem">
|
|
- ${treatPush.length > 0 && generalstate != 0 ? `<div class="checkBox generalItem hasgeneral" data-index="0"></div>` : ''}
|
|
|
|
|
|
+ ${treatPush.length > 0 && isShow && generalstate != 0 ? `<div class="checkBox generalItem hasgeneral" data-index="0"></div>` : ''}
|
|
${medicinesPush.length > 0 && medicinestate != 0 ? `<div class="checkBox medicineItem hasmedicine" data-index="1"></div>` : ''}
|
|
${medicinesPush.length > 0 && medicinestate != 0 ? `<div class="checkBox medicineItem hasmedicine" data-index="1"></div>` : ''}
|
|
${operationsPush.length > 0 && operationstate != 0 ? `<div class="checkBox operationItem hasoperation" data-index="2"></div>` : ''}
|
|
${operationsPush.length > 0 && operationstate != 0 ? `<div class="checkBox operationItem hasoperation" data-index="2"></div>` : ''}
|
|
${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem hasnurse" data-index="3"></div>` : ''}
|
|
${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem hasnurse" data-index="3"></div>` : ''}
|
|
@@ -1144,7 +1170,7 @@ function renderPushWarning() {
|
|
let dubugStr = result.dubugStr || [] //注意调试信息
|
|
let dubugStr = result.dubugStr || [] //注意调试信息
|
|
let otherList = result.otherList || [] //其他提醒
|
|
let otherList = result.otherList || [] //其他提醒
|
|
let nurseList = result.nurseList || [] //推荐护理
|
|
let nurseList = result.nurseList || [] //推荐护理
|
|
- localStorage.setItem('nurseList',JSON.stringify(nurseList))
|
|
|
|
|
|
+ localStorage.setItem('nurseList', JSON.stringify(nurseList))
|
|
renderBillingPush(billMsgList, '开单合理性', 'rationali')
|
|
renderBillingPush(billMsgList, '开单合理性', 'rationali')
|
|
renderBillingPush(highRiskList, '高风险提示', 'highrisk')
|
|
renderBillingPush(highRiskList, '高风险提示', 'highrisk')
|
|
renderBillingPush(criticalValList, '危急值提醒', 'crivalue')
|
|
renderBillingPush(criticalValList, '危急值提醒', 'crivalue')
|
|
@@ -1195,7 +1221,7 @@ function renderBillingPush(list, name, code) {
|
|
$("." + code).append(boxStr)
|
|
$("." + code).append(boxStr)
|
|
$('.moduleItem.' + code).addClass("tips").attr("code", code).css("display", "block")
|
|
$('.moduleItem.' + code).addClass("tips").attr("code", code).css("display", "block")
|
|
}
|
|
}
|
|
-function renderNursePush(list){
|
|
|
|
|
|
+function renderNursePush(list) {
|
|
let str = ``
|
|
let str = ``
|
|
for (let i = 0; i < list.length; i++) {
|
|
for (let i = 0; i < list.length; i++) {
|
|
const item = list[i];
|
|
const item = list[i];
|
|
@@ -1228,9 +1254,9 @@ function renderBillingNursePush(list) {
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-function showMoreNewNurse(){
|
|
|
|
|
|
+function showMoreNewNurse() {
|
|
$(".showMoreNewPage").on("click", function () {
|
|
$(".showMoreNewPage").on("click", function () {
|
|
- openNewWin(`nurseAlert.html?mrId=${mrId}&hospitalId=${hospitalIdUrl}` );
|
|
|
|
|
|
+ openNewWin(`nurseAlert.html?mrId=${mrId}&hospitalId=${hospitalIdUrl}`);
|
|
})
|
|
})
|
|
}
|
|
}
|
|
function renderLongStr(name, longStr, location) {
|
|
function renderLongStr(name, longStr, location) {
|