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