|
@@ -89,11 +89,15 @@ function getConf() {
|
|
|
}
|
|
|
|
|
|
function getPushInfo() {
|
|
|
- return post(config.pushInner,Object.assign({},msg,{featureType: '1,4,5,6,7,8,9',hospitalId:hospitalIdUrl||msg.hospitalId,ruleType:config.ruleTypeMap['22']}))
|
|
|
+ return post(config.pushInner,Object.assign({},msg,{featureType: '1,4,5,6,7,8,9,10',hospitalId:hospitalIdUrl||msg.hospitalId,ruleType:config.ruleTypeMap['22']}))
|
|
|
|
|
|
}
|
|
|
function getPusgWarning(){
|
|
|
- return post(config.indicationPush,Object.assign({},msg,{ruleType: '1,2,3',hospitalId:hospitalIdUrl||msg.hospitalId}))
|
|
|
+ return post(config.indicationPush,Object.assign({},msg,{ruleType: '1,2,3,4',hospitalId:hospitalIdUrl||msg.hospitalId}))
|
|
|
+}
|
|
|
+
|
|
|
+function getWriteStandardPush(){
|
|
|
+ return post(config.caseWritingPrompt,Object.assign({},msg,{hospitalId:hospitalIdUrl||msg.hospitalId}))
|
|
|
}
|
|
|
|
|
|
function getHosptDeptUsal(){
|
|
@@ -189,7 +193,9 @@ function getDisclaimer() {
|
|
|
}
|
|
|
|
|
|
function renderPage(pageSet){
|
|
|
- console.log("msg",msg)
|
|
|
+ if(!pageSet){
|
|
|
+ return
|
|
|
+ }
|
|
|
renderTab(pageSet.sysSetInfo)
|
|
|
const iframeHei = $(".bodyWrap").height()
|
|
|
const tabHei = $(".tabList").height()
|
|
@@ -204,6 +210,7 @@ function renderPage(pageSet){
|
|
|
renderModuleWrapper(hasAuxiliary.planDetails)
|
|
|
let needPush = isNeedPush(hasAuxiliary.planDetails)
|
|
|
let needPushWarning = isNeedPushWarning(hasAuxiliary.planDetails)
|
|
|
+ let needWriteStandardPush = isNeedwriteStandardPush(hasAuxiliary.planDetails)
|
|
|
if(needPush || needPushWarning){
|
|
|
renderPushData()
|
|
|
allInterface++
|
|
@@ -212,6 +219,10 @@ function renderPage(pageSet){
|
|
|
renderPushWarning()
|
|
|
allInterface++
|
|
|
}
|
|
|
+ if(needWriteStandardPush){
|
|
|
+ renderWriteStandard()
|
|
|
+ allInterface++
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -227,6 +238,7 @@ function renderPushData(){
|
|
|
let checkupPush = result.vital ||[]
|
|
|
let medicinesPush = result.medicines || []
|
|
|
let operationsPush = result.operations ||[]
|
|
|
+ let generaTreatPush = result.generaTreat ||[]
|
|
|
// let lisPush =[{name:"血常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null},{name:"尿常规",hisNameList:null}]
|
|
|
// let pacsPush = [{name:"胸部x射线",hisNameList:null},{name:"心电图",hisNameList:null}]
|
|
|
// let checkupPush = [{name:"神志表情",hisNameList:null},{name:"面部表情",hisNameList:null}]
|
|
@@ -236,6 +248,7 @@ function renderPushData(){
|
|
|
let symptomNum = $(".moduleItem.symptom").attr("data-num") || 5
|
|
|
let medicinesNum = $(".moduleItem.medicine").attr("data-num") || 5
|
|
|
let operationsNum = $(".moduleItem.operation").attr("data-num") || 5
|
|
|
+ let generaTreatNum = $(".moduleItem.generaTreat").attr("data-num") || 5
|
|
|
|
|
|
renderLis(lisPush,lisNum,3,true)
|
|
|
renderPacs(pacsPush,pacsNum,5,true)
|
|
@@ -244,6 +257,7 @@ function renderPushData(){
|
|
|
renderDiag(diagPush)
|
|
|
renderMedicinesPush(medicinesPush,medicinesNum,2,true)
|
|
|
renderOperationPush(operationsPush,operationsNum,6,true)
|
|
|
+ rendergeneraTreatPush(generaTreatPush,generaTreatNum,6,true)
|
|
|
if(hasCompleteTnterface === allInterface){
|
|
|
$('.loading').css("display","none")
|
|
|
if(moduleNum === 0){
|
|
@@ -257,10 +271,23 @@ function renderPushData(){
|
|
|
}
|
|
|
|
|
|
function isNeedPush(list){
|
|
|
- let pushCode = ["diag","lis","pacs","symptom","vital"]
|
|
|
+ let pushCode = ["diag","lis","pacs","symptom","vital","generaTreat","medicines"]
|
|
|
for(let i = 0; i < list.length; i++){
|
|
|
if(pushCode.indexOf(list[i].code)>-1){
|
|
|
- return true
|
|
|
+ if(list[i].status == "1"){
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return false
|
|
|
+}
|
|
|
+function isNeedwriteStandardPush(list){
|
|
|
+ let pushCode = ["casewriting"]
|
|
|
+ for(let i = 0; i < list.length; i++){
|
|
|
+ if(pushCode.indexOf(list[i].code)>-1){
|
|
|
+ if(list[i].status == "1"){
|
|
|
+ return true
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return false
|
|
@@ -269,7 +296,9 @@ function isNeedPushWarning(list){
|
|
|
let pushCode = ["tips"]
|
|
|
for(let i = 0; i < list.length; i++){
|
|
|
if(pushCode.indexOf(list[i].code)>-1){
|
|
|
- return true
|
|
|
+ if(list[i].status == "1"){
|
|
|
+ return true
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return false
|
|
@@ -285,11 +314,13 @@ function renderPushWarning(){
|
|
|
let criticalValList = result.criticalValList || [] //危急值提醒
|
|
|
let noteList = result.noteList || [] //检查内容注意事项
|
|
|
let dubugStr = result.dubugStr || [] //注意调试信息
|
|
|
+ let otherList = result.otherList || [] //其他提醒
|
|
|
$('.moduleItem.tips').append(titleStr('warning'))
|
|
|
renderBillingPush(billMsgList,'开单合理性提醒')
|
|
|
renderBillingPush(highRiskList,'高风险提示')
|
|
|
renderBillingPush(criticalValList,'危急值提醒')
|
|
|
renderBillingPush(noteList,'检查内容注意事项')
|
|
|
+ renderBillingPush(otherList,'其他提醒')
|
|
|
moreInfo()
|
|
|
// renderBillingPush(dubugStr,'注意调试信息')
|
|
|
|
|
@@ -303,7 +334,36 @@ function renderPushWarning(){
|
|
|
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+function renderWriteStandard(){
|
|
|
+ return getWriteStandardPush().then(res =>{
|
|
|
+ hasCompleteTnterface++
|
|
|
+ if(res.data.code == '0'){
|
|
|
+ const list = res.data.data || {}
|
|
|
+ renderwriteStandardPage(list)
|
|
|
+ }
|
|
|
+ if(hasCompleteTnterface === allInterface){
|
|
|
+ $('.loading').css("display","none")
|
|
|
+ if(moduleNum === 0){
|
|
|
+ empty()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
+function renderwriteStandardPage(list){
|
|
|
+ let arr = Object.keys(list)
|
|
|
+ if(arr.length > 0 && $(".moduleItem.casewriting").length > 0){
|
|
|
+ moduleNum++
|
|
|
+ $(".moduleItem.casewriting").append(titleStr("casewritingPush"))
|
|
|
+ let str = ``
|
|
|
+
|
|
|
+ for(let i = 0; i < arr.length; i++){
|
|
|
+ str += `<p>${arr[i]}</p>`
|
|
|
+ }
|
|
|
+ let allStr = `<div class="casewritingWrapper">${str}</div>`
|
|
|
+ $(".moduleItem.casewriting").append(allStr)
|
|
|
+ $('.moduleItem.casewriting').css("display","block")
|
|
|
+ }
|
|
|
+}
|
|
|
function renderBillingPush(list,name){
|
|
|
if(list.length === 0){
|
|
|
return
|
|
@@ -408,6 +468,17 @@ function renderSymptomPush(list,showNum,type,hasInfo){
|
|
|
$(".moduleItem.symptom").css("display","block")
|
|
|
}
|
|
|
|
|
|
+}
|
|
|
+function rendergeneraTreatPush(list,showNum,type,hasInfo){
|
|
|
+ $(".moduleItem.general").append(titleStr('generaTreatPush'))
|
|
|
+
|
|
|
+ if(list.length > 0 && $(".moduleItem.general").length > 0){
|
|
|
+ moduleNum++
|
|
|
+ let {shortStr, longStr} = renderItemWrapper(list,showNum,type,hasInfo)
|
|
|
+ $(".moduleItem.general").append(shortStr).append(longStr)
|
|
|
+ $(".moduleItem.general").css("display","block")
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
function renderMedicinesPush(list,showNum,type,hasInfo){
|
|
|
$(".moduleItem.medicine").append(titleStr('drugPush'))
|
|
@@ -489,10 +560,7 @@ function renderModuleWrapper(moduleList){
|
|
|
let moduleStr = ''
|
|
|
for(let i = 0; i < moduleList.length; i++){
|
|
|
if(moduleList[i].status !='0'){
|
|
|
- if(moduleList[i].code == 'treat'){
|
|
|
- moduleStr += `<div class="moduleItem medicine" data-num="${moduleList[i].number}" style="display:none"></div>`
|
|
|
- moduleStr += `<div class="moduleItem operation" data-num="${moduleList[i].number}" style="display:none"></div>`
|
|
|
- }else if(moduleList[i].code == 'tips'){
|
|
|
+ if(moduleList[i].code == 'tips'){
|
|
|
moduleStr += `<div class="moduleItem warning" data-num="${moduleList[i].number}" style="display:none"></div>`
|
|
|
moduleStr += `<div class="moduleItem tips" data-num="${moduleList[i].number}" style="display:none"></div>`
|
|
|
}else{
|