|
@@ -1,7 +1,6 @@
|
|
|
package com.diagbot.repository;
|
|
|
|
|
|
-import com.diagbot.dto.LisBillNeoDTO;
|
|
|
-import com.diagbot.dto.NodeNeoDTO;
|
|
|
+import com.diagbot.dto.*;
|
|
|
import com.diagbot.entity.node.*;
|
|
|
import com.diagbot.util.NeoUtil;
|
|
|
|
|
@@ -10,24 +9,24 @@ import java.util.Set;
|
|
|
|
|
|
public class DiseaseNode {
|
|
|
|
|
|
- public void DiseasetoDiseaseDTO(Disease disease) {
|
|
|
+ public PushDTO DiseasetoDiseaseDTO(Disease disease) {
|
|
|
|
|
|
+ PushDTO pushDTO = new PushDTO();
|
|
|
|
|
|
Age age = disease.getAge();
|
|
|
if (null!=age) {
|
|
|
- NodeNeoDTO ageNeoDTO = new NodeNeoDTO();
|
|
|
- ageNeoDTO.setMin(BigDecimal.valueOf(age.getMinval()));
|
|
|
- ageNeoDTO.setMax(BigDecimal.valueOf(age.getMaxval()));
|
|
|
+ PushBaseDTO ageNeoDTO = new PushBaseDTO();
|
|
|
ageNeoDTO.setName("年龄");
|
|
|
-// lisBillNeoDTO.setAgeNeoDTO(ageNeoDTO);
|
|
|
+ pushDTO.setAgeNeoDTO(ageNeoDTO);
|
|
|
}
|
|
|
|
|
|
Gender gender = disease.getGender();
|
|
|
if (null!=gender) {
|
|
|
- NeoUtil.updateNodeInfo(gender.getName(), null, null, null);
|
|
|
+ pushDTO.setGender(NeoUtil.updatePushInfo(gender.getName()));
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /*
|
|
|
CureRate curerate = disease.getCurerate();
|
|
|
if (null != curerate) {
|
|
|
NeoUtil.updateNodeInfo(curerate.getName(), null, null, null);
|
|
@@ -52,23 +51,27 @@ public class DiseaseNode {
|
|
|
for (Alias alias : aliass) {
|
|
|
NeoUtil.updateNodeInfo(alias.getName(), null, null, null);
|
|
|
}
|
|
|
+ */
|
|
|
|
|
|
Set<Vital> vitals = disease.getVitals();
|
|
|
for (Vital vital : vitals) {
|
|
|
String name = vital.getName();
|
|
|
- NeoUtil.updateNodeInfo(name, null, null, null);
|
|
|
+ pushDTO.getVital().add(NeoUtil.updatePushInfo(name));
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
Set<Dept> depts = disease.getDepts();
|
|
|
for (Dept dept : depts) {
|
|
|
NeoUtil.updateNodeInfo(dept.getName(), null, null, null);
|
|
|
}
|
|
|
+ */
|
|
|
|
|
|
Set<Symptom> symptoms = disease.getSymptoms();
|
|
|
for (Symptom symptom : symptoms) {
|
|
|
- NeoUtil.updateNodeInfo(symptom.getName(), null, null, null);
|
|
|
+ pushDTO.getSymptom().add(NeoUtil.updatePushInfo(symptom.getName()));
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
Set<Situation> situations = disease.getSituations();
|
|
|
for (Situation situation : situations) {
|
|
|
NeoUtil.updateNodeInfo(situation.getName(), null, null, null);
|
|
@@ -83,42 +86,42 @@ public class DiseaseNode {
|
|
|
for (Dept stddept : stddepts) {
|
|
|
NeoUtil.updateNodeInfo(stddept.getName(), null, null, null);
|
|
|
}
|
|
|
+ */
|
|
|
|
|
|
Set<Complication> complications = disease.getComplications();
|
|
|
for (Complication complication : complications) {
|
|
|
- String name = complication.getName();
|
|
|
- NeoUtil.updateNodeInfo(complication.getName(), null, null, null);
|
|
|
+ pushDTO.getComplications().add(NeoUtil.updatePushInfo(complication.getName()));
|
|
|
}
|
|
|
|
|
|
Set<PACS> pacss = disease.getPacs();
|
|
|
for (PACS pacs : pacss) {
|
|
|
String name = pacs.getName();
|
|
|
- String min = pacs.getMinval();
|
|
|
- String max = pacs.getMaxval();
|
|
|
- String unit = pacs.getUnit();
|
|
|
- NeoUtil.updateNodeInfo(name, min, max, unit);
|
|
|
+ pushDTO.getPacs().add(NeoUtil.updatePushInfo(name));
|
|
|
}
|
|
|
|
|
|
Set<Medicine> medicines = disease.getMedicines();
|
|
|
for (Medicine medicine : medicines) {
|
|
|
- NeoUtil.updateNodeInfo(medicine.getName(), null, null, null);
|
|
|
+ pushDTO.getMedicines().add(NeoUtil.updatePushInfo(medicine.getName()));
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
Set<Cause> causes = disease.getCauses();
|
|
|
for (Cause cause : causes) {
|
|
|
NeoUtil.updateNodeInfo(cause.getName(), null, null, null);
|
|
|
}
|
|
|
+ */
|
|
|
|
|
|
Set<Disease> diff_diseases = disease.getDiff_diseases();
|
|
|
for (Disease diff_disease : diff_diseases) {
|
|
|
- NeoUtil.updateNodeInfo(diff_disease.getName(), null, null, null);
|
|
|
+ pushDTO.getDiff_disease().add(NeoUtil.updatePushInfo(diff_disease.getName()));
|
|
|
}
|
|
|
|
|
|
Set<Operation> operations = disease.getOperations();
|
|
|
for (Operation operation : operations) {
|
|
|
- NeoUtil.updateNodeInfo(operation.getName(), null, null, null);
|
|
|
+ pushDTO.getOperations().add(NeoUtil.updatePushInfo(operation.getName()));
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
Set<Pathogen> pathogens = disease.getPathogens();
|
|
|
for (Pathogen pathogen : pathogens) {
|
|
|
NeoUtil.updateNodeInfo(pathogen.getName(), null, null, null);
|
|
@@ -148,16 +151,14 @@ public class DiseaseNode {
|
|
|
for (Complication generalcompl : generalcompls) {
|
|
|
NeoUtil.updateNodeInfo(generalcompl.getName(), null, null, null);
|
|
|
}
|
|
|
+ */
|
|
|
|
|
|
Set<LIS> liss = disease.getLiss();
|
|
|
for (LIS lis : liss) {
|
|
|
- String name = lis.getName();
|
|
|
- String min = lis.getMinval();
|
|
|
- String max = lis.getMaxval();
|
|
|
- String unit = lis.getUnit();
|
|
|
- NeoUtil.updateNodeInfo(name, min, max, unit);
|
|
|
+ pushDTO.getLis().add(NeoUtil.updatePushInfo(lis.getName()));
|
|
|
}
|
|
|
|
|
|
+ /*
|
|
|
Set<PACS> pacs_disease= disease.getPacs_disease();
|
|
|
for (PACS pacs : pacs_disease) {
|
|
|
String name = pacs.getName();
|
|
@@ -171,7 +172,9 @@ public class DiseaseNode {
|
|
|
if (null != medicine_code) {
|
|
|
NeoUtil.updateNodeInfo(medicine_code.getName(), null, null, null);
|
|
|
}
|
|
|
+ */
|
|
|
|
|
|
+ return pushDTO;
|
|
|
}
|
|
|
|
|
|
}
|