|
@@ -1,28 +1,14 @@
|
|
|
package com.diagbot.process;
|
|
|
|
|
|
-import com.diagbot.dto.BillMsg;
|
|
|
-import com.diagbot.dto.BillNeoDTO;
|
|
|
-import com.diagbot.dto.BillNeoMaxDTO;
|
|
|
-import com.diagbot.dto.IndicationDTO;
|
|
|
-import com.diagbot.dto.NodeNeoDTO;
|
|
|
-import com.diagbot.dto.WordCrfDTO;
|
|
|
+import com.diagbot.dto.*;
|
|
|
import com.diagbot.enums.NeoEnum;
|
|
|
import com.diagbot.facade.NeoFacade;
|
|
|
-import com.diagbot.model.entity.Clinical;
|
|
|
-import com.diagbot.model.entity.Diag;
|
|
|
-import com.diagbot.model.entity.GeneralDesc;
|
|
|
-import com.diagbot.model.entity.Medicine;
|
|
|
-import com.diagbot.model.entity.Operation;
|
|
|
+import com.diagbot.model.entity.*;
|
|
|
import com.diagbot.model.label.ChiefLabel;
|
|
|
import com.diagbot.model.label.DiagLabel;
|
|
|
import com.diagbot.model.label.PastLabel;
|
|
|
import com.diagbot.model.label.PresentLabel;
|
|
|
-import com.diagbot.rule.AgeRule;
|
|
|
-import com.diagbot.rule.CommonRule;
|
|
|
-import com.diagbot.rule.DrugRule;
|
|
|
-import com.diagbot.rule.LisRule;
|
|
|
-import com.diagbot.rule.PacsRule;
|
|
|
-import com.diagbot.rule.SexRule;
|
|
|
+import com.diagbot.rule.*;
|
|
|
import com.diagbot.util.BeanUtil;
|
|
|
import com.diagbot.util.ListUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -84,6 +70,12 @@ public class BillProcess {
|
|
|
drug3.setName("泰舒达类");
|
|
|
billNeoDTO.getPacsBillNeoDTO().getOralmeds().add(drug3);
|
|
|
|
|
|
+// NodeNeoDTO vital = new NodeNeoDTO();
|
|
|
+// vital.setName("体温");
|
|
|
+// vital.setMax(new BigDecimal(39.1));
|
|
|
+// vital.setMin(new BigDecimal(37.1));
|
|
|
+// billNeoDTO.getVitals().add(vital);
|
|
|
+
|
|
|
}
|
|
|
// 测试数据结束
|
|
|
|
|
@@ -102,6 +94,9 @@ public class BillProcess {
|
|
|
PresentLabel presentLabel = wordCrfDTO.getPresentLabel();
|
|
|
PastLabel pastLabel = wordCrfDTO.getPastLabel();
|
|
|
|
|
|
+ // 体征
|
|
|
+ List<Vital> vitals = wordCrfDTO.getVitalLabel().getVitals();
|
|
|
+
|
|
|
// 诊断数据
|
|
|
List<Diag> diags = diagLabel.getDiags();
|
|
|
|
|
@@ -134,6 +129,9 @@ public class BillProcess {
|
|
|
// 化验
|
|
|
LisRule.compareLisWithBill(wordCrfDTO.getLis(), bill, billMsgList, NeoEnum.lis.getName());
|
|
|
|
|
|
+ //体征
|
|
|
+ VitalRule.compareVitalWithBill(vitals, bill, billMsgList, NeoEnum.vitals.getName());
|
|
|
+
|
|
|
// 辅检
|
|
|
PacsRule.comparePacsWithBill(bill.getPacs(), wordCrfDTO.getPacs(), bill, billMsgList, NeoEnum.pacs.getName());
|
|
|
|