|
@@ -3,9 +3,7 @@ package com.diagbot.repository;
|
|
|
import com.diagbot.dto.BillNeoDTO;
|
|
|
import com.diagbot.dto.PacsBillNeoDTO;
|
|
|
import com.diagbot.entity.BaseNodeInfo;
|
|
|
-import com.diagbot.entity.node.BillConflictItem;
|
|
|
-import com.diagbot.entity.node.ClinicalFinding;
|
|
|
-import com.diagbot.entity.node.PacsName;
|
|
|
+import com.diagbot.entity.node.*;
|
|
|
import com.diagbot.entity.relationship.*;
|
|
|
import com.diagbot.entity.relationship.base.BaseRelation;
|
|
|
import com.diagbot.util.ListUtil;
|
|
@@ -51,16 +49,17 @@ public class PacsNameNode {
|
|
|
|
|
|
|
|
|
Set<PacsNameVital> pacsNamevitals = pacs.getPacsNameVitals();
|
|
|
- for (PacsNameVital vital : pacsNamevitals) {
|
|
|
- if (NeoUtil.isExist(vital)) {
|
|
|
- if (NeoUtil.isExist(vital.getVital())) {
|
|
|
+ for (PacsNameVital PNvital : pacsNamevitals) {
|
|
|
+ if (NeoUtil.isExist(PNvital)) {
|
|
|
+ if (NeoUtil.isExist(PNvital.getVital())) {
|
|
|
nodeInfo = new NodeInfo();
|
|
|
- String name = vital.getVital().getName();
|
|
|
+ Vital vital = PNvital.getVital();
|
|
|
+ String name = (vital.getVitalidx()==null)?vital.getName():vital.getVitalidx();
|
|
|
nodeInfo.setName(name);
|
|
|
- nodeInfo.setMinval(NeoUtil.DoubletoBigDecimal(vital.getVital().getMinval()));
|
|
|
- nodeInfo.setMaxval(NeoUtil.DoubletoBigDecimal(vital.getVital().getMaxval()));
|
|
|
- nodeInfo.setUnit(vital.getVital().getUnit());
|
|
|
- nodeInfo.setRange(vital.getVital().getRange());
|
|
|
+ nodeInfo.setMinval(NeoUtil.DoubletoBigDecimal(vital.getMinval()));
|
|
|
+ nodeInfo.setMaxval(NeoUtil.DoubletoBigDecimal(vital.getMaxval()));
|
|
|
+ nodeInfo.setUnit(vital.getUnit());
|
|
|
+ nodeInfo.setRange(vital.getRange());
|
|
|
nodeInfo.setTypeval(Constants.vital);
|
|
|
pacsBillNeoDTO.getVitals().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
|
}
|
|
@@ -73,7 +72,7 @@ public class PacsNameNode {
|
|
|
if (NeoUtil.isExist(lis)) {
|
|
|
if (NeoUtil.isExist(lis.getLis())) {
|
|
|
nodeInfo = new NodeInfo();
|
|
|
- nodeInfo.setName(lis.getLis().getName());
|
|
|
+ nodeInfo.setName(lis.getLis().getLisidx());
|
|
|
nodeInfo.setMinval(NeoUtil.DoubletoBigDecimal(lis.getLis().getMinval()));
|
|
|
nodeInfo.setMaxval(NeoUtil.DoubletoBigDecimal(lis.getLis().getMaxval()));
|
|
|
nodeInfo.setUnit(lis.getLis().getUnit());
|
|
@@ -99,11 +98,13 @@ public class PacsNameNode {
|
|
|
|
|
|
|
|
|
Set<PacsNameGroup> pacsNamegroups = pacs.getPacsNameGroups();
|
|
|
- for (PacsNameGroup group : pacsNamegroups) {
|
|
|
- if (NeoUtil.isExist(group)) {
|
|
|
- if (NeoUtil.isExist(group.getGroup())) {
|
|
|
+ for (PacsNameGroup PNgroup : pacsNamegroups) {
|
|
|
+ if (NeoUtil.isExist(PNgroup)) {
|
|
|
+ if (NeoUtil.isExist(PNgroup.getGroup())) {
|
|
|
nodeInfo = new NodeInfo();
|
|
|
- nodeInfo.setName(group.getGroup().getName());
|
|
|
+ Group group = PNgroup.getGroup();
|
|
|
+ String name = (group.getGroupidx()==null)?group.getName():group.getGroupidx();
|
|
|
+ nodeInfo.setName(name);
|
|
|
nodeInfo.setTypeval(Constants.group);
|
|
|
pacsBillNeoDTO.getGroup().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
|
}
|