import React, { Component } from "react"; import style from "./index.less"; import possibleImg from "../../common/images/possible.png"; import doubtImg from "../../common/images/doubt.png"; import recommendImg from "../../common/images/recommend.png"; import tipsImg from "../../common/images/tips.png"; import vigilantImg from "../../common/images/vigilant.png"; import showImg from "../../common/images/show.png"; import hideImg from "../../common/images/close.png"; import infoPic from "../../common/images/info-pic.png"; import chronicPic from "../../common/images/chronic.png"; import level1 from "../../common/images/级别1.png"; import close from "../../common/images/close-icon.png"; import printIcon from '@common/images/team.png'; import DetailsModal from './DetailsModal'; import PushDiag from "./PushDiag"; import DiagnosticItem from "@containers/DiagnosticItem"; import store from "@store"; import { getWindowInnerHeight } from "@common/js/func"; import {addLabel} from '@store/actions/inspect'; import {addAssistLabel} from '@store/actions/assistCheck'; import {windowEventHandler} from '@utils/tools' import {ConfirmModal,ComplexModal} from '@commonComp'; import AssessResult from '../AssessResult'; import mocks from '../../mock/chronicTable.js' class PushItems extends Component { constructor(props) { super(props); this.state = { moreAssay: false, moreCheck: false, show:true, showInfo:false, showOption:false, showTable:false, showAssess:false //评估弹窗 }; this.showMore = this.showMore.bind(this); this.closeMore = this.closeMore.bind(this); this.billing = this.billing.bind(this); this.changeAssay = this.changeAssay.bind(this); this.changeCheck = this.changeCheck.bind(this); this.showTips = this.showTips.bind(this); this.hideTips = this.hideTips.bind(this); this.showTableList = this.showTableList.bind(this); this.confirm = this.confirm.bind(this); this.close = this.close.bind(this); this.showInfo = this.showInfo.bind(this); this.closeInfo = this.closeInfo.bind(this); this.showOption = this.showOption.bind(this); this.closeOption = this.closeOption.bind(this); this.showTable = this.showTable.bind(this);//显示量表弹窗 this.closeTable = this.closeTable.bind(this);//关闭量表弹窗 this.showAssessFn = this.showAssessFn.bind(this); //开关评估弹窗 this.$cont = React.createRef(); } showMore(type) { this.setState({ [type]: true }); } closeMore(type) { this.setState({ [type]: false }); } showAssessFn(){ this.setState({ showAssess:!this.state.showAssess }); } getCurrentDate(){ let myDate = new Date(); let year = myDate.getFullYear(); //获取完整的年份(4位,1970-????) let mon = myDate.getMonth()-0+1; //获取当前月份(0-11,0代表1月) let day = myDate.getDate(); //获取当前日(1-31) let date = year+'-'+(mon<10?'0'+mon:mon)+'-'+(day<10?'0'+day:day); return date; } billing() { const { assay, check } = this.props.pushMessage; const checkedAssay = assay.filter(item => item.checked); const checkedCheck = check.filter(item => item.checked); this.props.billing(checkedAssay, checkedCheck); // if(checkedAssay.length > 0 || checkedCheck.length > 0) { // const Height = $(".src-components-BodyContainer-2SgEx").height(); // const adviceHeight = $(".src-common-components-ItemBox-1Bpz3").height(); // const winHeight = window.innerHeight; // const scrollTop = Height; // $('#addScrollEvent').scrollTop(100000) // } let obj = { //添加化验 details: [], name: '', questionId: '', showType: 1, } let obj1 = { //添加辅检 name: '', questionId: '', showType: 1, time:this.getCurrentDate(), value:'' } if(checkedAssay.length > 0){ let assayArr = [],tmpDetail=[] for(let i = 0;i < checkedAssay.length;i++){ let tmpObj = JSON.parse(JSON.stringify(obj)); if (checkedAssay[i].controlType == 0) { tmpDetail = checkedAssay[i].questionMapping }else if(checkedAssay[i].controlType == 1 || checkedAssay[i].controlType == 6){ tmpDetail.push(checkedAssay[i]) } tmpObj.questionId = checkedAssay[i].id tmpObj.name = checkedAssay[i].name tmpObj.details = tmpDetail assayArr.push(tmpObj) } store.dispatch(addLabel(assayArr)) } if(checkedCheck.length > 0){ let checkArr = [] for(let i = 0;i < checkedCheck.length;i++){ let tmpObj = JSON.parse(JSON.stringify(obj1)); tmpObj.questionId = checkedCheck[i].id tmpObj.name = checkedCheck[i].name checkArr.push(tmpObj) } store.dispatch(addAssistLabel(checkArr)) } if(checkedAssay.length > 0){ document.getElementById("inspectResultData").scrollIntoView(true) }else{ if(checkedCheck.length > 0){ document.getElementById("assistResultData").scrollIntoView(true) }else{ return; } } } changeAssay(item) { this.props.changeAssay(item); } changeCheck(item) { this.props.changeCheck(item); } showTips(tips) { const { getTipsDetails, showTipsDetailsModal } = this.props; getTipsDetails && getTipsDetails(); showTipsDetailsModal && showTipsDetailsModal() } hideTips() { const { hideTipsDetailsModal } = this.props; hideTipsDetailsModal && hideTipsDetailsModal() } // 量表部分 showTableList(id){//量表 const {getTableList,questionId} = this.props; // getTableList(questionId&&questionId.id); if(id){ getTableList(id); } } confirm(){ const {hideList} = this.props; hideList&&hideList(); } close(){ const {hideList} = this.props; hideList&&hideList(); } showInfo(){//显示静态知识 this.setState({ showInfo:true }) } closeInfo(){//关闭静态知识 this.setState({ showInfo:false }) } showOption(){ this.setState({ showOption:true }) } closeOption(){ this.setState({ showOption:false }) } showTable(){ this.setState({ showTable:true }) } closeTable(){ this.setState({ showTable:false }) } getTableInfo(){//整个量表模块 const {chronicMagItem} = this.props; const {showInfo,showOption} = this.state; let info =
患者可能有糖尿病周围神经病变
:
【密西根糖尿病周围神经病筛查表】
结果:
轻度
{/**/}
静态知识
患者可能有脑血管疾病
:
加入病历记录
可能结果:
请选择
结果选择
MDNS可与MNSI联合应用以确定是否存在周围神经病变,在一段时间内对患者进行评分可以评估疾病的进展情况。
{v.name} | })}||||
{v.name} | {v.details.map((it,index)=>{ return | {it.detailName} | })}
1. 计算方法:
感觉损伤得分=左右两侧感觉检查项目的分数之和
肌力得分=左右两侧肌力检查项目的分数之和
反射得分=左右两侧反射检查项目的分数之和
体格检查得分=感觉损伤得分+肌力得分+反射得分
2. 临床体格检查部分:
最低得分0 最高得分46, 分数越高,周围神经病越重