فهرست منبع

CRF解析现病史添加查体

1178232204@qq.com 3 سال پیش
والد
کامیت
25a4029120
1فایلهای تغییر یافته به همراه52 افزوده شده و 0 حذف شده
  1. 52 0
      src/components/AnalysisResult/index.jsx

+ 52 - 0
src/components/AnalysisResult/index.jsx

@@ -17,6 +17,7 @@ class AnalysisResult extends Component {
 		const presentOperations = (presentLabel || {}).operations || [];
 		const presentMedicines = (presentLabel || {}).medicines || [];
 		const clinicals = (presentLabel || {}).clinicals || [];
+		const previtals = (presentLabel || {}).vitals || [];
 		const { medicines, diags, allergyMedicines, operations } = pastLabel || {};
 		const vitalClinicals = (vitalLabel || {}).clinicals || [];
 		const vitals = (vitalLabel || {}).vitals || [];
@@ -37,6 +38,8 @@ class AnalysisResult extends Component {
 									<th>类型</th>
 									<th>原词</th>
 									<th>转化为标准词</th>
+									<th>值</th>
+									<th>单位</th>
 									<th>否定属性</th>
 								</tr>
 								<tr>
@@ -44,6 +47,8 @@ class AnalysisResult extends Component {
 									<td>年龄</td>
 									<td>{data.age}</td>
 									<td>{data.ageNum}</td>
+									<td></td>
+									<td></td>
 									<td>{data.negative}</td>
 								</tr>
 
@@ -53,6 +58,8 @@ class AnalysisResult extends Component {
 										<td>临床表现</td>
 										<td>{item.name}</td>
 										<td>{item.standName}</td>
+										<td></td>
+										<td></td>
 										<td>{(item.negative || {}).name}</td>
 									</tr>;
 								})}
@@ -62,6 +69,8 @@ class AnalysisResult extends Component {
 										<td>诊断</td>
 										<td>{item.name}</td>
 										<td>{item.standName}</td>
+										<td></td>
+										<td></td>
 										<td>{(item.negative || {}).name}</td>
 									</tr>;
 								})}
@@ -71,6 +80,32 @@ class AnalysisResult extends Component {
 										<td>临床表现</td>
 										<td>{item.name}</td>
 										<td>{item.standName}</td>
+										<td></td>
+										<td></td>
+										<td>{(item.negative || {}).name}</td>
+									</tr>;
+								})}
+								{previtals.map((item) => {
+									if ((item.usualList || []).length) {
+										return (item.usualList || []).map((it) => {
+											return <tr>
+												<td>现病史</td>
+												<td>查体</td>
+												<td>{it.name}</td>
+												<td>{it.standName}</td>
+												<td>{it.value}</td>
+												<td>{(item.pd || {}).unit}</td>
+												<td>{(item.negative || {}).name}</td>
+											</tr>;
+										})
+									}
+									return <tr>
+										<td>现病史</td>
+										<td>查体</td>
+										<td>{item.name}</td>
+										<td>{item.standName}</td>
+										<td>{(item.pd || {}).value}</td>
+										<td>{(item.pd || {}).unit}</td>
 										<td>{(item.negative || {}).name}</td>
 									</tr>;
 								})}
@@ -80,6 +115,8 @@ class AnalysisResult extends Component {
 										<td>诊断</td>
 										<td>{item.name}</td>
 										<td>{item.standName}</td>
+										<td></td>
+										<td></td>
 										<td>{(item.negative || {}).name}</td>
 									</tr>;
 								})}
@@ -89,6 +126,8 @@ class AnalysisResult extends Component {
 										<td>手术</td>
 										<td>{item.name}</td>
 										<td>{item.standName}</td>
+										<td></td>
+										<td></td>
 										<td>{(item.negative || {}).name}</td>
 									</tr>;
 								})}
@@ -98,15 +137,22 @@ class AnalysisResult extends Component {
 										<td>药品</td>
 										<td>{item.name}</td>
 										<td>{item.standName}</td>
+										<td></td>
+										<td></td>
 										<td>{(item.negative || {}).name}</td>
 									</tr>;
 								})}
+
+
+
 								{(medicines || []).map((item) => {
 									return <tr>
 										<td>既往史</td>
 										<td>药品</td>
 										<td>{item.name}</td>
 										<td>{item.standName}</td>
+										<td></td>
+										<td></td>
 										<td>{(item.negative || {}).name}</td>
 									</tr>;
 								})}
@@ -116,6 +162,8 @@ class AnalysisResult extends Component {
 										<td>诊断</td>
 										<td>{item.name}</td>
 										<td>{item.standName}</td>
+										<td></td>
+										<td></td>
 										<td>{(item.negative || {}).name}</td>
 									</tr>;
 								})}
@@ -125,6 +173,8 @@ class AnalysisResult extends Component {
 										<td>过敏药品</td>
 										<td>{item.name}</td>
 										<td>{item.standName}</td>
+										<td></td>
+										<td></td>
 										<td>{(item.negative || {}).name}</td>
 									</tr>;
 								})}
@@ -134,6 +184,8 @@ class AnalysisResult extends Component {
 										<td>手术</td>
 										<td>{item.name}</td>
 										<td>{item.standName}</td>
+										<td></td>
+										<td></td>
 										<td>{(item.negative || {}).name}</td>
 									</tr>;
 								})}