Browse Source

解析结果-

zhouna 3 years ago
parent
commit
1d872c1ef2
2 changed files with 90 additions and 7 deletions
  1. 89 6
      src/components/AnalysisResult/index.jsx
  2. 1 1
      src/components/InfoTitle/index.jsx

+ 89 - 6
src/components/AnalysisResult/index.jsx

@@ -18,6 +18,8 @@ class AnalysisResult extends Component {
 	const presentMedicines = (presentLabel||{}).medicines||[];
 	const clinicals=(presentLabel||{}).clinicals||[];
 	const {medicines,diags,allergyMedicines,operations}=pastLabel||{};
+      const vitalClinicals=(vitalLabel||{}).clinicals||[];
+      const vitals=(vitalLabel||{}).vitals||[];
 	const {res,pacsNumList}=pacsLabel||{};
 	const domNode = document.getElementById('root');
 	return ReactDom.createPortal(
@@ -98,12 +100,42 @@ class AnalysisResult extends Component {
 					<td>{(item.negative||{}).name}</td>
 				  </tr>;
 				})}
-				<tr>
-				  <td>既往史</td>
-				  <td>{data.age}</td>
-				  <td>年龄</td>
-				  <td>{data.ageNum}</td>
-				</tr>
+                {(medicines||[]).map((item)=>{
+                    return <tr>
+                        <td>既往史</td>
+                        <td>{item.name}</td>
+                        <td>药品</td>
+                        <td>{item.standName}</td>
+                        <td>{(item.negative||{}).name}</td>
+                    </tr>;
+                })}
+                  {(diags||[]).map((item)=>{
+                      return <tr>
+                          <td>既往史</td>
+                          <td>{item.name}</td>
+                          <td>诊断</td>
+                          <td>{item.standName}</td>
+                          <td>{(item.negative||{}).name}</td>
+                      </tr>;
+                  })}
+                  {(allergyMedicines||[]).map((item)=>{
+                      return <tr>
+                          <td>既往史</td>
+                          <td>{item.name}</td>
+                          <td>过敏药品</td>
+                          <td>{item.standName}</td>
+                          <td>{(item.negative||{}).name}</td>
+                      </tr>;
+                  })}
+                  {(operations||[]).map((item)=>{
+                      return <tr>
+                          <td>既往史</td>
+                          <td>{item.name}</td>
+                          <td>手术</td>
+                          <td>{item.standName}</td>
+                          <td>{(item.negative||{}).name}</td>
+                      </tr>;
+                  })}
 			  </table>
 			</div>
 			<div className="tableItem">
@@ -116,6 +148,15 @@ class AnalysisResult extends Component {
 				  <th>单位</th>
 				  <th>否定属性</th>
 				</tr>
+                  {[...vitalClinicals,...vitals].map((item)=>{
+                      return <tr>
+                          <td>{item.name}</td>
+                          <td>{item.standName}</td>
+                          <td>{(item.pds||{}).value}</td>
+                          <td>{(item.pds||{}).unit}</td>
+                          <td>{(item.negative||{}).name}</td>
+                      </tr>;
+                  })}
 			  </table>
 			</div>
 			<div className="tableItem">
@@ -129,6 +170,26 @@ class AnalysisResult extends Component {
 				  <th>值</th>
 				  <th>单位</th>
 				</tr>
+                  {(lis||[]).map((item)=>{
+                      return <tr>
+                          <td>是</td>
+                          <td>{item.name}</td>
+                          <td>{item.detailName}</td>
+                          <td>{item.uniqueName}</td>
+                          <td>{item.value||item.otherValue}</td>
+                          <td>{item.unit}</td>
+                      </tr>;
+                  })}
+                  {(lisOrder||[]).map((item)=>{
+                      return <tr>
+                          <td>否</td>
+                          <td>{item.name}</td>
+                          <td>{item.detailName}</td>
+                          <td>{item.uniqueName}</td>
+                          <td>{item.value||item.otherValue}</td>
+                          <td>{item.unit}</td>
+                      </tr>;
+                  })}
 			  </table>
 			</div>
 			<div className="tableItem">
@@ -139,6 +200,20 @@ class AnalysisResult extends Component {
 				  <th>原词</th>
 				  <th>转化为标准词</th>
 				</tr>
+                  {(pacs||[]).map((item)=>{
+                      return <tr>
+                          <td>是</td>
+                          <td>{item.name}</td>
+                          <td>{item.uniqueName}</td>
+                      </tr>;
+                  })}
+                  {(pacsOrder||[]).map((item)=>{
+                      return <tr>
+                          <td>否</td>
+                          <td>{item.name}</td>
+                          <td>{item.uniqueName}</td>
+                      </tr>;
+                  })}
 			  </table>
 			</div>
 			<div className="tableItem">
@@ -150,6 +225,14 @@ class AnalysisResult extends Component {
 				  <th>值</th>
 				  <th>单位</th>
 				</tr>
+                  {[...res,...pacsNumList].map((item)=>{
+                      return <tr>
+                          <td>{item.name}</td>
+                          <td>{item.uniqueName}</td>
+                          <td>{(item.pds||{}).value}</td>
+                          <td>{(item.pds||{}).unit}</td>
+                      </tr>;
+                  })}
 			  </table>
 			</div>
 			<div className="tableItem">

+ 1 - 1
src/components/InfoTitle/index.jsx

@@ -5,7 +5,7 @@ import style from "./index.less";
 import { connect } from 'react-redux';
 import AnalysisResult from '@components/AnalysisResult';
 import historyCase from '@common/images/history.png';
-import sysResult from '@common/images/result.png';
+import sysResult from '@common/images/history.png';
 import store from '@store';
 import { getEMRParams } from '@utils/tools';
 import { showHistory } from '@store/actions/historyTemplates';