|
@@ -20,10 +20,12 @@ import { REMARRIAGETEXTDATA, CLEARMARRIAGETEXTDATA } from '@store/types/marriage
|
|
|
import { REMENSTRUATIONTEXTDATA, CLEARMENSTRUATIONTEXTDATA, } from '@store/types/menstruationHistory';
|
|
|
import { REINSPECTDATA, CLEARINSPECTDATA } from '@store/types/inspect';
|
|
|
import { REASSISTCHECKDATA, CLEARASSISTCHECKDATA } from '@store/types/assistCheck';
|
|
|
+import { REGUAGECHECKDATA, CLEARGUAGECHECKDATA } from '@store/types/guage';
|
|
|
import { RENEWADVICEDATA, CLEARNEWADVICEDATA } from '@store/types/newAdvice';
|
|
|
import { CLEAROTHERHISTORY, OTHERHIS_CLEAR } from '@store/types/otherHistory';
|
|
|
import { CLEARCHECKBODY, SET, CHECKBODY_CLEAR, RECHECKBODYTEXTDATA, CLEARCHECKBODYTEXTDATA } from '@store/types/checkBody';
|
|
|
import { clearAssistData, addAssistLabel } from '@store/actions/assistCheck';
|
|
|
+import { clearGuageData, addguageLabel } from '@store/actions/guage';
|
|
|
import { clearAllLabel, addLabel } from '@store/actions/inspect';
|
|
|
import { CLEAR_ALL_DIAG, REDIAGDATA, CLEARDIAGDATA } from '@store/types/diagnosticList';
|
|
|
import { CLEAR_ALL_PUSH_MESSAGE, SET_TIPS, BILLING_ADVICE, PUSHCHANGE, SET_MR_ANALYSE } from '@store/types/pushMessage';
|
|
@@ -109,6 +111,7 @@ const getUrlArgObject = (parm) => {
|
|
|
|
|
|
// 转换jsonData 数据 转为json
|
|
|
const getAllDataList = (baseList) => { //获取所有模块结构化的数据
|
|
|
+ console.log(baseList, 445);
|
|
|
let jsonData = {};
|
|
|
jsonData.lis = {};
|
|
|
jsonData.chief = baseList.mainSuit.saveText && baseList.mainSuit.saveText[0]; // 主诉
|
|
@@ -124,7 +127,7 @@ const getAllDataList = (baseList) => { //获取所有模块结构化
|
|
|
jsonData.pacs = baseList.assistCheck.assistLabel; //辅检
|
|
|
jsonData.diag = baseList.diagnosticList.diagnosticList; //诊断
|
|
|
jsonData.advice = baseList.newAdvice.labelListSmall; //医嘱
|
|
|
-
|
|
|
+ jsonData.scale = baseList.guage.guageLabel;
|
|
|
|
|
|
//月经史公式
|
|
|
// const other = baseList.otherHistory;
|
|
@@ -188,6 +191,7 @@ const getAllDataStringList = (baseList) => { //获取所有模块文
|
|
|
'vital': JSON.stringify(vitalData),
|
|
|
'lis': baseList.inspect.inspectStrPlus,
|
|
|
'pacs': baseList.assistCheck.dataString,
|
|
|
+ 'scale': baseList.guage.dataString,
|
|
|
'diag': baseList.diagnosticList.diagnosticStr,
|
|
|
'advice': baseList.pushMessage.AdviceStr
|
|
|
}
|
|
@@ -219,7 +223,10 @@ const formatTextInfo = (baseList) => {
|
|
|
dataString: baseList.assistCheck.dataString,
|
|
|
assistLabel: baseList.assistCheck.assistLabel,
|
|
|
};
|
|
|
-
|
|
|
+ let guageLabelList = {
|
|
|
+ dataString: baseList.guage.dataString,
|
|
|
+ guageLabel: baseList.guage.guageLabel,
|
|
|
+ };
|
|
|
let diagnosticList = {
|
|
|
diagnosticList: baseList.diagnosticList.diagnosticList,
|
|
|
diagnosticStrNoType: baseList.diagnosticList.diagnosticStrNoType,
|
|
@@ -249,6 +256,7 @@ const formatTextInfo = (baseList) => {
|
|
|
vital: JSON.stringify(baseList.checkBody.saveText),
|
|
|
lis: labelList, //化验
|
|
|
pacs: assistLabelList,
|
|
|
+ scale:guageLabelList,
|
|
|
diag: diagnosticList,
|
|
|
tcmDiag: diagnosticTcmList,
|
|
|
advice: newAdviceLabelList,
|
|
@@ -314,6 +322,10 @@ const pushHistoryDataList = (reData) => {
|
|
|
type: REASSISTCHECKDATA,
|
|
|
params: dataJson,
|
|
|
});
|
|
|
+ store.dispatch({
|
|
|
+ type: REGUAGECHECKDATA,
|
|
|
+ params: dataJson,
|
|
|
+ });
|
|
|
store.dispatch({
|
|
|
type: REDIAGDATA,
|
|
|
params: dataJson,
|
|
@@ -361,6 +373,9 @@ const delHistoryDataList = () => {
|
|
|
store.dispatch({
|
|
|
type: CLEARASSISTCHECKDATA,
|
|
|
});
|
|
|
+ store.dispatch({
|
|
|
+ type: CLEARGUAGECHECKDATA,
|
|
|
+ });
|
|
|
store.dispatch({
|
|
|
type: CLEARDIAGDATA,
|
|
|
});
|
|
@@ -416,6 +431,8 @@ const pushAllDataList = (whichSign, action, reData, type) => { //回
|
|
|
store.dispatch({ type: CLEARCHECKBODY, data: [block], isEmpty: true, saveText: [] });
|
|
|
//store.dispatch({type:SETREADDITEMS}); //清空已存的血压加号项
|
|
|
store.dispatch(clearAssistData([], '', []));
|
|
|
+ store.dispatch(clearGuageData([], '', []));
|
|
|
+
|
|
|
store.dispatch(clearAllLabel([], [], ''));
|
|
|
store.dispatch(embedPush({ mode: 1 })); //刷新右侧推送
|
|
|
//右侧搜索条件清空
|
|
@@ -461,6 +478,7 @@ const pushAllDataList = (whichSign, action, reData, type) => { //回
|
|
|
likely: [],
|
|
|
lab: [],
|
|
|
pacs: [],
|
|
|
+ scale:[],
|
|
|
setPushEmergency: {},
|
|
|
setPushEmergencyIdx: ''
|
|
|
});
|
|
@@ -500,6 +518,8 @@ const pushAllDataList = (whichSign, action, reData, type) => { //回
|
|
|
});
|
|
|
store.dispatch({ type: SETREADDITEMS }); //清空已存的血压加号项
|
|
|
store.dispatch(clearAssistData([], '', []));
|
|
|
+ store.dispatch(clearGuageData([], '', []));
|
|
|
+
|
|
|
store.dispatch(clearAllLabel([], [], ''));
|
|
|
store.dispatch({
|
|
|
type: SET_TIPS,
|
|
@@ -537,11 +557,13 @@ const pushAllDataList = (whichSign, action, reData, type) => { //回
|
|
|
likely: [],
|
|
|
lab: [],
|
|
|
pacs: [],
|
|
|
+ scale:[],
|
|
|
setPushEmergency: {},
|
|
|
setPushEmergencyIdx: ''
|
|
|
});
|
|
|
storageLocal.remove('emrParam');
|
|
|
} else {
|
|
|
+ console.log(11,55);
|
|
|
let dataJson = JSON.parse(reData.dataJson);
|
|
|
const docConfig = dataJson.docConfigs;
|
|
|
//回读/引用设置回读模式值(主诉-其他史使用)
|
|
@@ -940,6 +962,7 @@ function getEMRParams() {
|
|
|
checkBody,
|
|
|
inspect,
|
|
|
assistCheck,
|
|
|
+ guage,
|
|
|
diagnosticList,
|
|
|
marriageHistory,
|
|
|
pastHistory,
|
|
@@ -991,6 +1014,13 @@ function getEMRParams() {
|
|
|
// item.finishDateValue = ""
|
|
|
// }
|
|
|
})
|
|
|
+ let tempscale = guage.guageLabel
|
|
|
+ tempscale = tempscale.filter((item) => {
|
|
|
+ if (curHos.hosId != -1) {
|
|
|
+ item.uniqueName = ''
|
|
|
+ }
|
|
|
+ return item
|
|
|
+ })
|
|
|
let tempPacOrder = JSON.parse(JSON.stringify(assistCheck.totalOrder))
|
|
|
tempPacOrder = tempPacOrder.filter((item) => {
|
|
|
delete item.finishDateValue
|
|
@@ -1043,19 +1073,19 @@ function getEMRParams() {
|
|
|
}
|
|
|
return item
|
|
|
})
|
|
|
- let tempOperationName = newAdvice.operationName ? newAdvice.operationName:[]
|
|
|
+ let tempOperationName = newAdvice.operationName ? newAdvice.operationName : []
|
|
|
if (curHos.hosId != -1 && tempOperationName.name) {
|
|
|
tempOperationName.uniqueName = ''
|
|
|
}
|
|
|
let tempblood = newAdvice.labelListBlood || [];
|
|
|
tempblood = tempblood.filter((item) => {
|
|
|
if (!item.check) {
|
|
|
- item.finishDateValue = item.finishDateValue?item.finishDateValue:item.dateValue;
|
|
|
+ item.finishDateValue = item.finishDateValue ? item.finishDateValue : item.dateValue;
|
|
|
if (curHos.hosId != -1) {
|
|
|
item.uniqueName = ''
|
|
|
}
|
|
|
return item
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
delete item.finishDateValue;
|
|
|
}
|
|
|
})
|
|
@@ -1084,7 +1114,7 @@ function getEMRParams() {
|
|
|
"menstrual": menstruationHistory.saveText[0] || '', //月经史
|
|
|
"diseaseName": diagnosticList.diseaseName,
|
|
|
"otherIndex": diagnosticList.otherIndex,
|
|
|
- "operationName": (tempOperationName&&Object.keys(tempOperationName).length===0)?null:tempOperationName,
|
|
|
+ "operationName": (tempOperationName && Object.keys(tempOperationName).length === 0) ? null : tempOperationName,
|
|
|
"infectious": "",
|
|
|
"operation": tempoperation,
|
|
|
"allergy": "",
|
|
@@ -1096,6 +1126,7 @@ function getEMRParams() {
|
|
|
"drugString": "",
|
|
|
"lis": templis,
|
|
|
"pacs": temppacs || [],
|
|
|
+ "scale":tempscale,
|
|
|
"diag": diag,
|
|
|
"lisOrder": tempLisOrder,
|
|
|
"pacsOrder": tempPacOrder,
|
|
@@ -1315,7 +1346,7 @@ function inspectAndAssist() {
|
|
|
let tmpAll = state.homePage.allModules;
|
|
|
let tmpInspected = state.inspect.labelList;
|
|
|
let tmpAssisted = state.assistCheck.assistLabel;
|
|
|
- let tmpInspect = [], tmpAssist = [], assayArr = [], tmpDetail = [], checkArr = [];
|
|
|
+ let tmpInspect = [], tmpAssist = [], assayArr = [], tmpDetail = [], checkArr = [], scalekArr = [];
|
|
|
for (let i = 0; i < tmpAll.length; i++) {
|
|
|
let tmpItem = tmpAll[i];
|
|
|
if (tmpItem.type == 5) {
|
|
@@ -1355,12 +1386,17 @@ function inspectAndAssist() {
|
|
|
tmpObj.name = tmpAssist[i].name
|
|
|
checkArr.push(tmpObj)
|
|
|
}
|
|
|
+ console.log(1111,555);
|
|
|
if (assayArr.length > 0 && tmpInspected.length == 0) {//化验
|
|
|
store.dispatch(addLabel(assayArr))
|
|
|
}
|
|
|
if (checkArr.length > 0 && tmpAssisted.length == 0) {//辅检
|
|
|
store.dispatch(addAssistLabel(checkArr))
|
|
|
}
|
|
|
+ if (checkArr.length > 0 && tmpAssisted.length == 0) {//辅检
|
|
|
+ store.dispatch(addguageLabel(checkArr))
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
function readyKeepHistory() {
|
|
|
let baseList = store.getState();
|
|
@@ -1934,7 +1970,7 @@ function getAllString(checkedListImport, assistLabel, flg) {
|
|
|
+ `<div style="display:flex;justify-content: space-between;">`
|
|
|
+ `<span style="font-size:12px">` + tempArr[i].name + `</span>`
|
|
|
+ `<div style="display:flex;font-size:12px"><img style='margin:0 3px;width:16px;height:18px' title="开单时间" src='${billing}'/>`
|
|
|
- + (tempArr[i].time ? tempArr[i].time : '') + (tempArr[i].check ? '<span style="width:140px"></span>' : !tempArr[i].check && tempArr[i].finishDateValue == '' ? `<img style="margin:0 3px;width:16px;height:18px" title="报告时间" src='${report}'/><span style="width:118px"></span>` : `<img style="margin:0 3px;width:16px;height:18px" title="报告时间" src='${report}'/>`)
|
|
|
+ + (tempArr[i].time ? tempArr[i].time : '') + (tempArr[i].check ? '<span style="width:140px"></span>' : !tempArr[i].check && tempArr[i].finishDateValue == '' ? `<img style="margin:0 3px;width:16px;height:18px" title="报告时间" src='${report}'/><span style="width:118px"></span>` : `<img style="margin:0 3px;width:16px;height:18px" title="报告时间" src='${report}'/>`)
|
|
|
+ (tempArr[i].check ? '' : tempArr[i].finishDateValue)
|
|
|
+ '</div>'
|
|
|
+ `</div>`
|
|
@@ -2212,6 +2248,7 @@ function checkDeptContent(jsonStr, tmpLis) {
|
|
|
filterDataArr(JSON.parse(jsonStr.vital)) == filterDataArr(eval('(' + JSON.parse(dataStr).vital + ')')) &&
|
|
|
jsonStr.lis == JSON.parse(dataStr).lis &&
|
|
|
jsonStr.pacs == JSON.parse(dataStr).pacs &&
|
|
|
+ jsonStr.scale == JSON.parse(dataStr).scale &&
|
|
|
jsonStr.diag == JSON.parse(dataStr).diag &&
|
|
|
jsonStr.advice == JSON.parse(dataStr).advice
|
|
|
) {
|