Browse Source

病历质控(未完成)

zhangxc 5 years ago
parent
commit
109a95b9b2
2 changed files with 22 additions and 0 deletions
  1. 9 0
      src/store/async-actions/pushMessage.js
  2. 13 0
      src/utils/tools.js

+ 9 - 0
src/store/async-actions/pushMessage.js

@@ -13,6 +13,7 @@ const api={
   getTableList:'/scale/getList', //获取量表列表
   getTableInfo:'/scale/getContent', //获取量表明细
   getConceptDetail:'/conceptDetail/getConceptDetail', //获取静态提示信息
+  getMRAnalyse: '/mrqc/analyse' //病历质控
 }
 
 //获取右侧推送信息
@@ -288,4 +289,12 @@ export const getScaleInfo = (it)=>{
             console.log(e)
         })
     }
+}
+
+
+//病历质控
+export const getMRAnalyse = () => {
+  return (dispatch, getState) => {
+
+  }
 }

+ 13 - 0
src/utils/tools.js

@@ -676,6 +676,7 @@ function handleEnter(event){
 //   return {main,current,other,vital,lis,pacs,dis,advice,diseaeId,sex,age, patientId, hosCode};
 // };
 function getEMRParams(){
+  getMRInfo()
   const state = store.getState();
   const {message} = state.patInfo;
   const {mainSuit,currentIll,otherHistory,checkBody,inspect,assistCheck,diagnosticList} = state;
@@ -719,6 +720,17 @@ function getEMRParams(){
   }
   return obj;
 };
+function getMRInfo() {
+  const state = store.getState();
+  const {message} = state.patInfo;
+  const {mainSuit,currentIll,otherHistory,checkBody,inspect,assistCheck,diagnosticList} = state;
+  console.log('state', state)
+  let str = ""
+  str += `姓名: ${message.patientName}性别:${message.patientSex}年龄:${message.patientAge}主诉:${filterDataArr(mainSuit.saveText)}
+          现病史:${filterDataArr(currentIll.saveText)}其他史:${filterDataArr(otherHistory.saveText)}查体:${filterDataArr(checkBody.saveText)}
+          化验:${inspect.inspectStrPlus}辅检:${assistCheck.dataString}诊断:${diagnosticList.diagnosticStr}医师签名:${message.doctorName}`
+  console.log('strrr', str)
+}
 
 function didPushParamChange(){
   const emrData = getEMRParams();
@@ -1685,6 +1697,7 @@ module.exports = {
     handleEnter,
     didPushParamChange,
     getEMRParams,
+    getMRInfo,
     windowEventHandler,
     isAllClear,
     normalVal,