From 707da3c8b08318b6a15ba91cccf99d21070b93f4 Mon Sep 17 00:00:00 2001 From: liu Date: Thu, 7 Mar 2024 10:26:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supervision/service/impl/GraphNebulaServiceImpl.java | 9 +++++++++ virtual-patient-graph/src/main/resources/application.yml | 5 ++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/virtual-patient-graph/src/main/java/com/supervision/service/impl/GraphNebulaServiceImpl.java b/virtual-patient-graph/src/main/java/com/supervision/service/impl/GraphNebulaServiceImpl.java index 7b531626..77da4a15 100644 --- a/virtual-patient-graph/src/main/java/com/supervision/service/impl/GraphNebulaServiceImpl.java +++ b/virtual-patient-graph/src/main/java/com/supervision/service/impl/GraphNebulaServiceImpl.java @@ -72,6 +72,9 @@ public class GraphNebulaServiceImpl implements GraphNebulaService { private PatientDao patientDao; @Resource private PhysicalDao physicalDao; + + @Resource + private PhysicalResultDao physicalResultDao; @Resource private AncillaryDao ancillaryDao; @Resource @@ -162,6 +165,7 @@ public class GraphNebulaServiceImpl implements GraphNebulaService { patientVertex.setNodeValue(medicalRec.getPatientName()); patientDao.insert(patientVertex); processMedicalDao.insertEdge(medicalRecVertex, new NoPropertyEdge(), patientVertex); + processMedicalDao.insertEdge(processMedicalVertex, new SinglePropertyEdge("问诊"), patientVertex); // 创建体格检查节点(physicalId不为空,即为只查配置了检查结果的结果) List physicalRecordList = diagnosisPhysicalRecordService.lambdaQuery() @@ -178,6 +182,11 @@ public class GraphNebulaServiceImpl implements GraphNebulaService { physicalVertex.setNodeValue(tool.getToolName() + (location != null ? ("-" + location.getLocationName()) : "")); physicalDao.insert(physicalVertex); processMedicalDao.insertEdge(medicalRecVertex, new NoPropertyEdge(), physicalVertex); + // 获取查询结果,增加到结果节点中 + PhysicalResultVertex physicalResultVertex = new PhysicalResultVertex(); + physicalResultVertex.setNodeValue(physicalRecord.getResult()); + physicalResultDao.insert(physicalResultVertex); + physicalResultDao.insertEdge(physicalVertex, new SinglePropertyEdge("结果"), physicalResultVertex); // 如果是证实诊断依据,添加到证实诊断依据里面去 if (NumberUtil.equals(1, physicalRecord.getBasisConfirmFlag())) { physicalConfirmMap.put(physicalRecord.getId(), physicalVertex); diff --git a/virtual-patient-graph/src/main/resources/application.yml b/virtual-patient-graph/src/main/resources/application.yml index e77fd98f..5d7bcee9 100644 --- a/virtual-patient-graph/src/main/resources/application.yml +++ b/virtual-patient-graph/src/main/resources/application.yml @@ -45,4 +45,7 @@ spring: mybatis-plus: mapper-locations: classpath*:mapper/**/*.xml configuration: - log-impl: org.apache.ibatis.logging.stdout.StdOutImpl \ No newline at end of file + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl +logging: + level: + org.nebula.contrib: DEBUG \ No newline at end of file