|
@@ -15,10 +15,10 @@ import java.util.List;
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
import java.util.Set;
|
|
import java.util.Set;
|
|
|
|
|
|
-public class OperationNode {
|
|
|
|
|
|
+public class YiBaoOperationNameNode {
|
|
|
|
|
|
|
|
|
|
- public OperationBillNeoDTO OperationtoOperationDTO(Operation operation) {
|
|
|
|
|
|
+ public OperationBillNeoDTO YiBaoOperationtoOperationDTO(YiBaoOperationName operation) {
|
|
OperationBillNeoDTO opBillNeoDTO = new OperationBillNeoDTO();
|
|
OperationBillNeoDTO opBillNeoDTO = new OperationBillNeoDTO();
|
|
NodeInfo nodeInfo;
|
|
NodeInfo nodeInfo;
|
|
|
|
|
|
@@ -26,6 +26,7 @@ public class OperationNode {
|
|
if (null!=gender) {
|
|
if (null!=gender) {
|
|
nodeInfo = new NodeInfo();
|
|
nodeInfo = new NodeInfo();
|
|
nodeInfo.setName(gender.getName());
|
|
nodeInfo.setName(gender.getName());
|
|
|
|
+ nodeInfo.setTypeval(Constants.gender);
|
|
opBillNeoDTO.setGender(NeoUtil.updateNodeInfo(nodeInfo));
|
|
opBillNeoDTO.setGender(NeoUtil.updateNodeInfo(nodeInfo));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -37,6 +38,7 @@ public class OperationNode {
|
|
nodeInfo.setMaxval(NeoUtil.DoubletoBigDecimal(clinicalfinding.getMaxval()));
|
|
nodeInfo.setMaxval(NeoUtil.DoubletoBigDecimal(clinicalfinding.getMaxval()));
|
|
nodeInfo.setUnit(clinicalfinding.getUnit());
|
|
nodeInfo.setUnit(clinicalfinding.getUnit());
|
|
nodeInfo.setRange(clinicalfinding.getRange());
|
|
nodeInfo.setRange(clinicalfinding.getRange());
|
|
|
|
+ nodeInfo.setTypeval(Constants.clinicalfinding);
|
|
opBillNeoDTO.getClinicfindings().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
opBillNeoDTO.getClinicfindings().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -52,31 +54,35 @@ public class OperationNode {
|
|
nodeInfo.setMaxval(NeoUtil.DoubletoBigDecimal(vital.getMaxval()));
|
|
nodeInfo.setMaxval(NeoUtil.DoubletoBigDecimal(vital.getMaxval()));
|
|
nodeInfo.setUnit(vital.getUnit());
|
|
nodeInfo.setUnit(vital.getUnit());
|
|
nodeInfo.setRange(vital.getRange());
|
|
nodeInfo.setRange(vital.getRange());
|
|
|
|
+ nodeInfo.setTypeval(Constants.vital);
|
|
opBillNeoDTO.getVitals().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
opBillNeoDTO.getVitals().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
}
|
|
}
|
|
|
|
|
|
- Set<LIS> lisSet = operation.getConflict_lis();
|
|
|
|
- for (LIS lis : lisSet) {
|
|
|
|
|
|
+ Set<Lis> lisSet = operation.getLiss();
|
|
|
|
+ for (Lis lis : lisSet) {
|
|
nodeInfo = new NodeInfo();
|
|
nodeInfo = new NodeInfo();
|
|
nodeInfo.setName(lis.getName());
|
|
nodeInfo.setName(lis.getName());
|
|
nodeInfo.setMinval(NeoUtil.DoubletoBigDecimal(lis.getMinval()));
|
|
nodeInfo.setMinval(NeoUtil.DoubletoBigDecimal(lis.getMinval()));
|
|
nodeInfo.setMaxval(NeoUtil.DoubletoBigDecimal(lis.getMaxval()));
|
|
nodeInfo.setMaxval(NeoUtil.DoubletoBigDecimal(lis.getMaxval()));
|
|
nodeInfo.setUnit(lis.getUnit());
|
|
nodeInfo.setUnit(lis.getUnit());
|
|
nodeInfo.setRange(lis.getRange());
|
|
nodeInfo.setRange(lis.getRange());
|
|
|
|
+ nodeInfo.setTypeval(Constants.lis);
|
|
opBillNeoDTO.getLis().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
opBillNeoDTO.getLis().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
}
|
|
}
|
|
|
|
|
|
- Set<OralMedicine> conflict_oralmeds = operation.getOralMedicines();
|
|
|
|
|
|
+ Set<OralMedicine> conflict_oralmeds = operation.getOralmeds();
|
|
for (OralMedicine conflict_oralmed : conflict_oralmeds) {
|
|
for (OralMedicine conflict_oralmed : conflict_oralmeds) {
|
|
nodeInfo = new NodeInfo();
|
|
nodeInfo = new NodeInfo();
|
|
nodeInfo.setName(conflict_oralmed.getName());
|
|
nodeInfo.setName(conflict_oralmed.getName());
|
|
|
|
+ nodeInfo.setTypeval(Constants.oralmed);
|
|
opBillNeoDTO.getOralmeds().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
opBillNeoDTO.getOralmeds().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
}
|
|
}
|
|
|
|
|
|
- Set<Disease> conflict_disease = operation.getConflict_diseases();
|
|
|
|
|
|
+ Set<Disease> conflict_disease = operation.getDiseases();
|
|
for (Disease disease : conflict_disease) {
|
|
for (Disease disease : conflict_disease) {
|
|
nodeInfo = new NodeInfo();
|
|
nodeInfo = new NodeInfo();
|
|
nodeInfo.setName(disease.getName());
|
|
nodeInfo.setName(disease.getName());
|
|
|
|
+ nodeInfo.setTypeval(Constants.disease);
|
|
opBillNeoDTO.getDisease().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
opBillNeoDTO.getDisease().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
}
|
|
}
|
|
|
|
|
|
@@ -84,23 +90,41 @@ public class OperationNode {
|
|
for (Group group : conflict_group) {
|
|
for (Group group : conflict_group) {
|
|
nodeInfo = new NodeInfo();
|
|
nodeInfo = new NodeInfo();
|
|
nodeInfo.setName(group.getName());
|
|
nodeInfo.setName(group.getName());
|
|
|
|
+ nodeInfo.setTypeval(Constants.group);
|
|
opBillNeoDTO.getGroup().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
opBillNeoDTO.getGroup().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
}
|
|
}
|
|
|
|
|
|
- Set<PACSDescribe> conflict_pacsdesc = operation.getConflict_pacsdesc();
|
|
|
|
- for (PACSDescribe pacsdesc : conflict_pacsdesc) {
|
|
|
|
|
|
+ Set<PacsDescribe> conflict_pacsdesc = operation.getPacsdescs();
|
|
|
|
+ for (PacsDescribe pacsdesc : conflict_pacsdesc) {
|
|
nodeInfo = new NodeInfo();
|
|
nodeInfo = new NodeInfo();
|
|
nodeInfo.setName(pacsdesc.getName());
|
|
nodeInfo.setName(pacsdesc.getName());
|
|
|
|
+ nodeInfo.setTypeval(Constants.pacsdesc);
|
|
opBillNeoDTO.getPacsDesc().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
opBillNeoDTO.getPacsDesc().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ Set<MedAllergen> conflict_medallegen = operation.getMedallergens();
|
|
|
|
+ for (MedAllergen medAllergen : conflict_medallegen) {
|
|
|
|
+ nodeInfo = new NodeInfo();
|
|
|
|
+ nodeInfo.setName(medAllergen.getName());
|
|
|
|
+ nodeInfo.setTypeval(Constants.medallergen);
|
|
|
|
+ opBillNeoDTO.getMedallegen().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ Set<ConflictDevice> conflictDevices = operation.getConflictdevices();
|
|
|
|
+ for (ConflictDevice device : conflictDevices) {
|
|
|
|
+ nodeInfo = new NodeInfo();
|
|
|
|
+ nodeInfo.setName(device.getName());
|
|
|
|
+ nodeInfo.setTypeval(Constants.conflictdevice);
|
|
|
|
+ opBillNeoDTO.getMedallegen().add(NeoUtil.updateNodeInfo(nodeInfo));
|
|
|
|
+ }
|
|
|
|
+
|
|
return opBillNeoDTO;
|
|
return opBillNeoDTO;
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
* 处理手术开单合理性
|
|
* 处理手术开单合理性
|
|
*/
|
|
*/
|
|
- public List<BillNeoDTO> getOperationBill(Map<String, String> opterm, OperationRepository opRepository) {
|
|
|
|
|
|
+ public List<BillNeoDTO> getOperationBill(Map<String, String> opterm, YiBaoOperationNameRepository opRepository) {
|
|
List<BillNeoDTO> billNeoDTOs = new ArrayList<>();
|
|
List<BillNeoDTO> billNeoDTOs = new ArrayList<>();
|
|
BillNeoDTO billNeoDTO;
|
|
BillNeoDTO billNeoDTO;
|
|
|
|
|
|
@@ -113,10 +137,10 @@ public class OperationNode {
|
|
opname = opterm.get(term);
|
|
opname = opterm.get(term);
|
|
billNeoDTO.setName(opname);
|
|
billNeoDTO.setName(opname);
|
|
|
|
|
|
- List<Operation> operations = opRepository.findByNameIs(opname);
|
|
|
|
|
|
+ List<YiBaoOperationName> operations = opRepository.findByNameIs(opname);
|
|
|
|
|
|
if (null!=operations && operations.size()>0) {
|
|
if (null!=operations && operations.size()>0) {
|
|
- opBillNeoDTO = OperationtoOperationDTO(operations.get(0));
|
|
|
|
|
|
+ opBillNeoDTO = YiBaoOperationtoOperationDTO(operations.get(0));
|
|
billNeoDTO.setOperationBillNeoDTO(opBillNeoDTO);
|
|
billNeoDTO.setOperationBillNeoDTO(opBillNeoDTO);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -129,15 +153,15 @@ public class OperationNode {
|
|
/**
|
|
/**
|
|
* 获取手术操作名称列表
|
|
* 获取手术操作名称列表
|
|
*/
|
|
*/
|
|
- public List<OperationInfoDTO> getOperationList(String name, OperationRepository operationRepository) {
|
|
|
|
|
|
+ public List<OperationInfoDTO> getOperationList(String name, YiBaoOperationNameRepository operationRepository) {
|
|
String nodename;
|
|
String nodename;
|
|
|
|
|
|
List<OperationInfoDTO> opslist = new ArrayList<>();
|
|
List<OperationInfoDTO> opslist = new ArrayList<>();
|
|
OperationInfoDTO opInfoDTO;
|
|
OperationInfoDTO opInfoDTO;
|
|
|
|
|
|
- List<Operation> operations = operationRepository.findByNameLike("*"+name+"*");
|
|
|
|
|
|
+ List<YiBaoOperationName> operations = operationRepository.findByNameLike("*"+name+"*");
|
|
|
|
|
|
- for (Operation op : operations) {
|
|
|
|
|
|
+ for (YiBaoOperationName op : operations) {
|
|
opInfoDTO = new OperationInfoDTO();
|
|
opInfoDTO = new OperationInfoDTO();
|
|
nodename = op.getName();
|
|
nodename = op.getName();
|
|
|
|
|
|
@@ -154,11 +178,11 @@ public class OperationNode {
|
|
/**
|
|
/**
|
|
* 获取高危手术和操作数据
|
|
* 获取高危手术和操作数据
|
|
*/
|
|
*/
|
|
- public List<HighRiskNeoDTO> getHighRiskOperation(Map<String, String> opsterm, OperationRepository operationRepository) {
|
|
|
|
|
|
+ public List<HighRiskNeoDTO> getHighRiskOperation(Map<String, String> opsterm, YiBaoOperationNameRepository operationRepository) {
|
|
List<HighRiskNeoDTO> highRiskNeoDTOS = new ArrayList<>();
|
|
List<HighRiskNeoDTO> highRiskNeoDTOS = new ArrayList<>();
|
|
HighRiskNeoDTO highRiskNeoDTO;
|
|
HighRiskNeoDTO highRiskNeoDTO;
|
|
String opname;
|
|
String opname;
|
|
- Operation operation;
|
|
|
|
|
|
+ YiBaoOperationName operation;
|
|
|
|
|
|
for (String term : opsterm.keySet()) {
|
|
for (String term : opsterm.keySet()) {
|
|
highRiskNeoDTO = new HighRiskNeoDTO();
|
|
highRiskNeoDTO = new HighRiskNeoDTO();
|
|
@@ -167,8 +191,8 @@ public class OperationNode {
|
|
highRiskNeoDTO.setName(term);
|
|
highRiskNeoDTO.setName(term);
|
|
highRiskNeoDTO.setStandname(opname);
|
|
highRiskNeoDTO.setStandname(opname);
|
|
|
|
|
|
- List<Operation> operations = operationRepository.findByNameIs(opname);
|
|
|
|
-
|
|
|
|
|
|
+ List<YiBaoOperationName> operations = operationRepository.findByNameIs(opname);
|
|
|
|
+/*
|
|
if (null != operations) {
|
|
if (null != operations) {
|
|
operation = operations.get(0);
|
|
operation = operations.get(0);
|
|
if (null!=operation.getRisklevel() && operation.getRisklevel().trim().length()>0) {
|
|
if (null!=operation.getRisklevel() && operation.getRisklevel().trim().length()>0) {
|
|
@@ -177,6 +201,7 @@ public class OperationNode {
|
|
highRiskNeoDTOS.add(highRiskNeoDTO);
|
|
highRiskNeoDTOS.add(highRiskNeoDTO);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+*/
|
|
}
|
|
}
|
|
|
|
|
|
return highRiskNeoDTOS;
|
|
return highRiskNeoDTOS;
|