|
@@ -9,7 +9,6 @@ import com.lantone.qc.kernel.util.CatalogueUtil;
|
|
|
import com.lantone.qc.kernel.structure.ai.model.Relation;
|
|
|
import com.lantone.qc.kernel.util.KernelConstants;
|
|
|
import com.lantone.qc.kernel.util.RedisUtil;
|
|
|
-import com.lantone.qc.kernel.util.SpringContextUtil;
|
|
|
import com.lantone.qc.pub.model.entity.Diag;
|
|
|
import com.lantone.qc.pub.model.entity.DiagInfectious;
|
|
|
import com.lantone.qc.pub.model.entity.Negative;
|
|
@@ -31,7 +30,10 @@ import java.util.regex.Pattern;
|
|
|
* @Author: HUJING
|
|
|
* @Date: 2020/2/2 10:07
|
|
|
*/
|
|
|
+@Component
|
|
|
public class EntityProcess {
|
|
|
+ @Autowired
|
|
|
+ RedisUtil redisUtil;
|
|
|
/**
|
|
|
* 树形结构存储三元组关系,返回传入实体类型为节点的所有关联实体对象
|
|
|
* @param aiOut
|
|
@@ -221,18 +223,17 @@ public class EntityProcess {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * 疾病名称需要映射操作
|
|
|
- * @param lemma
|
|
|
- * @param diag
|
|
|
- */
|
|
|
- protected void setDiag(Lemma lemma, Diag diag) {
|
|
|
- RedisUtil redisUtil = SpringContextUtil.getBean("redisUtil");
|
|
|
- Map<String, String> diagRedisMap = (Map<String, String>)redisUtil.get(KernelConstants.CONCEPT_DIAG_HOSPITAL_REFLECT);
|
|
|
- diag.setHospitalDiagName(lemma.getText());
|
|
|
- diag.setName(lemma.getText());//存放医院原始疾病名称
|
|
|
- diag.setName(diagRedisMap.get(lemma.getText()) == null ? "" : diagRedisMap.get(lemma.getText()));//映射到我们的标准疾病名称
|
|
|
- }
|
|
|
+// /**
|
|
|
+// * 疾病名称需要映射操作
|
|
|
+// * @param lemma
|
|
|
+// * @param diag
|
|
|
+// */
|
|
|
+// protected void setDiag(Lemma lemma, Diag diag) {
|
|
|
+// Map<String, String> diagRedisMap = (Map<String, String>)redisUtil.get(KernelConstants.CONCEPT_DIAG_HOSPITAL_REFLECT);
|
|
|
+// diag.setHospitalDiagName(lemma.getText());
|
|
|
+// diag.setName(lemma.getText());//存放医院原始疾病名称
|
|
|
+// diag.setName(diagRedisMap.get(lemma.getText()) == null ? "" : diagRedisMap.get(lemma.getText()));//映射到我们的标准疾病名称
|
|
|
+// }
|
|
|
|
|
|
/**
|
|
|
* 查找时间
|