|
@@ -3,13 +3,13 @@ import { BILLING_ADVICE, SET_TIPS, SET_TIPS_DETAILS ,SET_CHRONIC_TABLELIST,SET_S
|
|
import { SET_DRUG_INFO, SHOW_DRUG_INFO } from '@store/types/treat';
|
|
import { SET_DRUG_INFO, SHOW_DRUG_INFO } from '@store/types/treat';
|
|
import { SET_CLICK_DIAG } from '../types/diagnosticList';
|
|
import { SET_CLICK_DIAG } from '../types/diagnosticList';
|
|
import {storageLocal,getEMRParams} from '@utils/tools';
|
|
import {storageLocal,getEMRParams} from '@utils/tools';
|
|
|
|
+import {getBigPush} from '@utils/utils';
|
|
import {SET_IMPORT_CHECKBODY_LABEL,PRESET} from "../types/checkBody";
|
|
import {SET_IMPORT_CHECKBODY_LABEL,PRESET} from "../types/checkBody";
|
|
import dataLis from '@components/EmergencyProcedure/emergency';
|
|
import dataLis from '@components/EmergencyProcedure/emergency';
|
|
import Notify from '@commonComp/Notify';
|
|
import Notify from '@commonComp/Notify';
|
|
import {pregetCheckbodyData} from '@store/async-actions/fetchModules';
|
|
import {pregetCheckbodyData} from '@store/async-actions/fetchModules';
|
|
import {tabChange} from '@store/actions/tabTemplate';
|
|
import {tabChange} from '@store/actions/tabTemplate';
|
|
const api={
|
|
const api={
|
|
- push:'/push/pushInner',
|
|
|
|
getTableList:'/scale/getList', //获取量表列表
|
|
getTableList:'/scale/getList', //获取量表列表
|
|
getTableInfo:'/scale/getContent', //获取量表明细
|
|
getTableInfo:'/scale/getContent', //获取量表明细
|
|
getConceptDetail:'/conceptDetail/getConceptDetail', //获取静态提示信息
|
|
getConceptDetail:'/conceptDetail/getConceptDetail', //获取静态提示信息
|
|
@@ -19,28 +19,14 @@ const api={
|
|
export const billing = (mdata,boxMark) => {
|
|
export const billing = (mdata,boxMark) => {
|
|
return (dispatch, getState) =>{
|
|
return (dispatch, getState) =>{
|
|
const state = getState();
|
|
const state = getState();
|
|
- let url = api.push;
|
|
|
|
const checkBody = state.checkBody.data;
|
|
const checkBody = state.checkBody.data;
|
|
let diagMain = state.diagnosticList.diagnosticList.length>0&&state.diagnosticList.diagnosticList[0]
|
|
let diagMain = state.diagnosticList.diagnosticList.length>0&&state.diagnosticList.diagnosticList[0]
|
|
let getCheck = boxMark==2&&!(checkBody&&checkBody.length>0&&!checkBody[0].full);
|
|
let getCheck = boxMark==2&&!(checkBody&&checkBody.length>0&&!checkBody[0].full);
|
|
const emrData = getEMRParams();
|
|
const emrData = getEMRParams();
|
|
- const params = {
|
|
|
|
- age: emrData.age,
|
|
|
|
- featureType: getCheck?"42,41,5,6,7":"42,5,6,7", //41只返回查体模板,4只返回查体高亮
|
|
|
|
- // featureType: "22",
|
|
|
|
- diag: emrData.dis,
|
|
|
|
- lis: emrData.lis,
|
|
|
|
- other: emrData.other,
|
|
|
|
- pacs: emrData.pacs,
|
|
|
|
- sex: emrData.sex,
|
|
|
|
- vital:emrData.vital,
|
|
|
|
- symptom: mdata?(emrData.current + mdata):(emrData.current + emrData.main),
|
|
|
|
- hosCode: emrData.hosCode
|
|
|
|
- };
|
|
|
|
- let savePm = Object.assign({},params);
|
|
|
|
- delete savePm.featureType;
|
|
|
|
- storageLocal.set('emrParam',savePm); //推送数据存储,用作推送前对比是否有变,有变才推送
|
|
|
|
- json(url, params).then((data) => {
|
|
|
|
|
|
+ //mdata为主诉无标签直接输入时的内容,symptom参数传主诉+现病史文本
|
|
|
|
+ const mainData = mdata?(emrData.current + mdata):(emrData.current + emrData.main);
|
|
|
|
+ const feaType = getCheck?"42,41,5,6,7":"42,5,6,7"; //41只返回查体模板,4只返回查体高亮
|
|
|
|
+ getBigPush(feaType,mainData,true).then((data) => {
|
|
let {dis, lab, pacs,vitalIds,moduleVital} = data.data.data||{};
|
|
let {dis, lab, pacs,vitalIds,moduleVital} = data.data.data||{};
|
|
lab = lab||[];
|
|
lab = lab||[];
|
|
pacs = pacs||[];
|
|
pacs = pacs||[];
|
|
@@ -115,10 +101,8 @@ export const billing = (mdata,boxMark) => {
|
|
console.log(e)
|
|
console.log(e)
|
|
});
|
|
});
|
|
//单独调指标
|
|
//单独调指标
|
|
- const ps = Object.assign({},params,{featureType:'22'});
|
|
|
|
- json(url, ps).then((data) => {
|
|
|
|
|
|
+ getBigPush('22',mainData).then((data) => {
|
|
let {medicalIndications} = data.data.data||{};
|
|
let {medicalIndications} = data.data.data||{};
|
|
-
|
|
|
|
//慢病推送模块数据
|
|
//慢病推送模块数据
|
|
dispatch({
|
|
dispatch({
|
|
type:SET_CHRONIC_PUSHS,
|
|
type:SET_CHRONIC_PUSHS,
|
|
@@ -286,7 +270,6 @@ export const getScaleInfo = (it)=>{
|
|
symptom: emrData.current + emrData.main,
|
|
symptom: emrData.current + emrData.main,
|
|
// indications:'' //指标结果
|
|
// indications:'' //指标结果
|
|
};
|
|
};
|
|
- // json(api.push, params)
|
|
|
|
json(api.getTableInfo, params)
|
|
json(api.getTableInfo, params)
|
|
.then((res)=>{
|
|
.then((res)=>{
|
|
const result = res.data;
|
|
const result = res.data;
|