|
@@ -2,9 +2,11 @@ package com.diagbot.facade;
|
|
|
|
|
|
import com.diagbot.client.CdssCoreClient;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.dto.RetrievalConceptDTO;
|
|
|
import com.diagbot.dto.RetrievalDTO;
|
|
|
import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
|
+import com.diagbot.util.BeanUtil;
|
|
|
import com.diagbot.util.RespDTOUtil;
|
|
|
import com.diagbot.util.StringUtil;
|
|
|
import com.diagbot.vo.HospitalCheckVO;
|
|
@@ -12,6 +14,9 @@ import com.diagbot.vo.RetrievalVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* @Description:
|
|
|
* @Author:zhaops
|
|
@@ -73,13 +78,27 @@ public class RetrievalFacade {
|
|
|
} else {
|
|
|
switch (retrievalVO.getType()) {
|
|
|
case 1:
|
|
|
- retrievalDTO.setLisNames(lisConfigFacade.getLisPacks(retrievalVO));
|
|
|
+ List<RetrievalConceptDTO> lisNames = new ArrayList<>();
|
|
|
+ List<String> lisPacks = lisConfigFacade.getLisPacks(retrievalVO);
|
|
|
+ for (String str : lisPacks) {
|
|
|
+ RetrievalConceptDTO data = new RetrievalConceptDTO();
|
|
|
+ data.setName(str);
|
|
|
+ lisNames.add(data);
|
|
|
+ }
|
|
|
+ retrievalDTO.setLisNames(lisNames);
|
|
|
break;
|
|
|
case 2:
|
|
|
retrievalDTO.setLisDetailNames(lisConfigFacade.getLis(retrievalVO));
|
|
|
break;
|
|
|
case 3:
|
|
|
- retrievalDTO.setPacsNames(pacsConfigFacade.getPACSs(retrievalVO));
|
|
|
+ List<RetrievalConceptDTO> Pacss = new ArrayList<>();
|
|
|
+ List<String> Pacsslist = pacsConfigFacade.getPACSs(retrievalVO);
|
|
|
+ for (String str : Pacsslist) {
|
|
|
+ RetrievalConceptDTO data = new RetrievalConceptDTO();
|
|
|
+ data.setName(str);
|
|
|
+ Pacss.add(data);
|
|
|
+ }
|
|
|
+ retrievalDTO.setPacsNames(Pacss);
|
|
|
break;
|
|
|
case 4:
|
|
|
retrievalDTO.setDiseaseNames(diseaseConfigFacade.getDiseases(retrievalVO));
|
|
@@ -91,10 +110,24 @@ public class RetrievalFacade {
|
|
|
retrievalDTO.setOperationNames(operationConfigFacade.getOperations(retrievalVO));
|
|
|
break;
|
|
|
case 7:
|
|
|
- retrievalDTO.setDeptNames(deptConfigFacade.getDepts(retrievalVO));
|
|
|
+ List<RetrievalConceptDTO> Depts = new ArrayList<>();
|
|
|
+ List<String> Deptslist = deptConfigFacade.getDepts(retrievalVO);
|
|
|
+ for (String str : Deptslist) {
|
|
|
+ RetrievalConceptDTO data = new RetrievalConceptDTO();
|
|
|
+ data.setName(str);
|
|
|
+ Depts.add(data);
|
|
|
+ }
|
|
|
+ retrievalDTO.setDeptNames(Depts);
|
|
|
break;
|
|
|
case 8:
|
|
|
- retrievalDTO.setTransfusionNames(transfusionConfigFacade.getTransfusion(retrievalVO));
|
|
|
+ List<RetrievalConceptDTO> Transfusion = new ArrayList<>();
|
|
|
+ List<String> Transfusions = transfusionConfigFacade.getTransfusion(retrievalVO);
|
|
|
+ for (String str : Transfusions) {
|
|
|
+ RetrievalConceptDTO data = new RetrievalConceptDTO();
|
|
|
+ data.setName(str);
|
|
|
+ Transfusion.add(data);
|
|
|
+ }
|
|
|
+ retrievalDTO.setTransfusionNames(Transfusion);
|
|
|
break;
|
|
|
case 10:
|
|
|
retrievalDTO.setScalenames(scaleConfigFacade.getScales(retrievalVO));
|