|
|
@ -72,6 +72,9 @@ public class GraphNebulaServiceImpl implements GraphNebulaService {
|
|
|
|
private PatientDao patientDao;
|
|
|
|
private PatientDao patientDao;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private PhysicalDao physicalDao;
|
|
|
|
private PhysicalDao physicalDao;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private PhysicalResultDao physicalResultDao;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private AncillaryDao ancillaryDao;
|
|
|
|
private AncillaryDao ancillaryDao;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
@ -162,6 +165,7 @@ public class GraphNebulaServiceImpl implements GraphNebulaService {
|
|
|
|
patientVertex.setNodeValue(medicalRec.getPatientName());
|
|
|
|
patientVertex.setNodeValue(medicalRec.getPatientName());
|
|
|
|
patientDao.insert(patientVertex);
|
|
|
|
patientDao.insert(patientVertex);
|
|
|
|
processMedicalDao.insertEdge(medicalRecVertex, new NoPropertyEdge(), patientVertex);
|
|
|
|
processMedicalDao.insertEdge(medicalRecVertex, new NoPropertyEdge(), patientVertex);
|
|
|
|
|
|
|
|
processMedicalDao.insertEdge(processMedicalVertex, new SinglePropertyEdge("问诊"), patientVertex);
|
|
|
|
|
|
|
|
|
|
|
|
// 创建体格检查节点(physicalId不为空,即为只查配置了检查结果的结果)
|
|
|
|
// 创建体格检查节点(physicalId不为空,即为只查配置了检查结果的结果)
|
|
|
|
List<DiagnosisPhysicalRecord> physicalRecordList = diagnosisPhysicalRecordService.lambdaQuery()
|
|
|
|
List<DiagnosisPhysicalRecord> physicalRecordList = diagnosisPhysicalRecordService.lambdaQuery()
|
|
|
@ -178,6 +182,11 @@ public class GraphNebulaServiceImpl implements GraphNebulaService {
|
|
|
|
physicalVertex.setNodeValue(tool.getToolName() + (location != null ? ("-" + location.getLocationName()) : ""));
|
|
|
|
physicalVertex.setNodeValue(tool.getToolName() + (location != null ? ("-" + location.getLocationName()) : ""));
|
|
|
|
physicalDao.insert(physicalVertex);
|
|
|
|
physicalDao.insert(physicalVertex);
|
|
|
|
processMedicalDao.insertEdge(medicalRecVertex, new NoPropertyEdge(), 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())) {
|
|
|
|
if (NumberUtil.equals(1, physicalRecord.getBasisConfirmFlag())) {
|
|
|
|
physicalConfirmMap.put(physicalRecord.getId(), physicalVertex);
|
|
|
|
physicalConfirmMap.put(physicalRecord.getId(), physicalVertex);
|
|
|
|