|
@@ -15,13 +15,113 @@ const api={
|
|
|
getTableList:'/scale/getList', //获取量表列表
|
|
|
getTableInfo:'/scale/getContent', //获取量表明细
|
|
|
getConceptDetail:'/conceptDetail/getConceptDetail', //获取静态提示信息
|
|
|
- getMRAnalyse: '/mrqc/analyse' //病历质控
|
|
|
+ getMRAnalyse: '/mrqc/analyse', //病历质控
|
|
|
+ setMrInfo:'http://192.168.2.241/api/data/mr/createMr', //存页面信息,供页面推送模式调取
|
|
|
}
|
|
|
import store from '@store';
|
|
|
+import {SET_MR_INFO} from "../types/print";
|
|
|
|
|
|
|
|
|
+export const billing = () => {
|
|
|
+ return (dispatch, getState) =>{
|
|
|
+ const state = getState();
|
|
|
+ /*const {hospitalCode,sex,patientAge} = state.patInfo.message;
|
|
|
+ const checkBody = state.checkBody.data;
|
|
|
+ let diagMain = state.diagnosticList.diagnosticList.length>0&&state.diagnosticList.diagnosticList[0];
|
|
|
+ //mdata为主诉无标签直接输入时的内容,symptom参数传主诉+现病史文本
|
|
|
+ const mainData = mdata?(emrData.current + mdata):(emrData.current + emrData.main);*/
|
|
|
+ const param = getEMRParams();
|
|
|
+ console.log(state)
|
|
|
+ /*const param={
|
|
|
+ "hosCode": hospitalCode,
|
|
|
+ "age": patientAge,
|
|
|
+ "sex": sex,
|
|
|
+ "disType": 0,
|
|
|
+ "chief": mainData,
|
|
|
+ "allergy": "",
|
|
|
+ "diag": [
|
|
|
+ {
|
|
|
+ "dateValue": "",
|
|
|
+ "name": "",
|
|
|
+ "uniqueName": ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "diagOrder": [],
|
|
|
+ "diagString": "",
|
|
|
+ "diseaseName": {
|
|
|
+ "dateValue": "",
|
|
|
+ "name": "",
|
|
|
+ "uniqueName": ""
|
|
|
+ },
|
|
|
+ "drug": [
|
|
|
+ {
|
|
|
+ "dateValue": "",
|
|
|
+ "name": "",
|
|
|
+ "uniqueName": ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "drugOrder": [],
|
|
|
+ "drugString": "",
|
|
|
+ "family": "",
|
|
|
+ "infectious": "",
|
|
|
+ "lis": [
|
|
|
+ {
|
|
|
+ "dateValue": "",
|
|
|
+ "detailName": "",
|
|
|
+ "maxValue": 0,
|
|
|
+ "minValue": 0,
|
|
|
+ "name": "",
|
|
|
+ "otherValue": "",
|
|
|
+ "result": "",
|
|
|
+ "source": 0,
|
|
|
+ "uniqueName": "",
|
|
|
+ "units": "",
|
|
|
+ "value": 0
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "lisOrder": [],
|
|
|
+ "lisString": "",
|
|
|
+ "marital": "",
|
|
|
+ "marriage": "",
|
|
|
+ "menstrual": "",
|
|
|
+ "operation": "",
|
|
|
+ "operationOrder": [],
|
|
|
+ "other": "",
|
|
|
+ "otherOrder": [],
|
|
|
+ "pacs": [
|
|
|
+ {
|
|
|
+ "dateValue": "",
|
|
|
+ "desc": "",
|
|
|
+ "name": "",
|
|
|
+ "result": "",
|
|
|
+ "uniqueName": ""
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ "pacsOrder": [],
|
|
|
+ "pacsString": "",
|
|
|
+ "pasts": "",
|
|
|
+ "personal": "",
|
|
|
+ "scaleName": "",
|
|
|
+ "symptom": "",
|
|
|
+ "unknown": "",
|
|
|
+ "vaccination": "",
|
|
|
+ "vital": ""
|
|
|
+ };*/
|
|
|
+ json(api.setMrInfo,param).then((res)=>{
|
|
|
+ const data = res.data;
|
|
|
+ if(data.code==='0'){
|
|
|
+ //存mrId
|
|
|
+ dispatch({
|
|
|
+ type:SET_MR_INFO,
|
|
|
+ data:data.data
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
//获取右侧推送信息
|
|
|
-export const billing = (mdata,boxMark) => {
|
|
|
+/*export const billing = (mdata,boxMark) => {
|
|
|
return (dispatch, getState) =>{
|
|
|
const state = getState();
|
|
|
const checkBody = state.checkBody.data;
|
|
@@ -93,10 +193,6 @@ export const billing = (mdata,boxMark) => {
|
|
|
setPushEmergency: setPushEmergency||[],
|
|
|
setPushEmergencyIdx:setPushEmergencyIdx
|
|
|
});
|
|
|
- /*dispatch({
|
|
|
- type:PRESET,
|
|
|
- data:moduleVital
|
|
|
- });*/
|
|
|
//查体高亮标签
|
|
|
dispatch({
|
|
|
type:SET_IMPORT_CHECKBODY_LABEL,
|
|
@@ -116,14 +212,8 @@ export const billing = (mdata,boxMark) => {
|
|
|
}).catch((e) =>{
|
|
|
console.log(e)
|
|
|
});
|
|
|
-
|
|
|
- //调查体,现病史触发推送且查体无数据时获取查体模板
|
|
|
- /*const checkBody = state.checkBody.data;
|
|
|
- if(boxMark==2&&!(checkBody&&checkBody.length>0&&!checkBody[0].full)){
|
|
|
- dispatch(pregetCheckbodyData());
|
|
|
- }*/
|
|
|
}
|
|
|
-};
|
|
|
+};*/
|
|
|
|
|
|
//获取提示信息(静态信息)
|
|
|
export const getConceptDetail = (item,noTips,noDetails,noNotify) => {
|