|
@@ -8,6 +8,7 @@ import com.diagbot.dto.IndexDTO;
|
|
|
import com.diagbot.dto.LisDetailDTO;
|
|
|
import com.diagbot.dto.NurseInfoDTO;
|
|
|
import com.diagbot.dto.OperationInfoDTO;
|
|
|
+import com.diagbot.dto.RetrievalConceptDTO;
|
|
|
import com.diagbot.dto.RetrievalDTO;
|
|
|
import com.diagbot.dto.ScaleInfoDTO;
|
|
|
import com.diagbot.dto.StaticKnowledgeIndexDTO;
|
|
@@ -30,7 +31,6 @@ import java.util.Arrays;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
-import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
|
* @Description:
|
|
@@ -69,7 +69,9 @@ public class MedRetrievalFacade {
|
|
|
medRetrievalVO.getTypeIds().add(LexiconEnum.LisName.getKey());
|
|
|
indexList = klConceptFacade.index(medRetrievalVO);
|
|
|
if (ListUtil.isNotEmpty(indexList)) {
|
|
|
- retrievalDTO.setLisNames(indexList.stream().map(i -> i.getName()).collect(Collectors.toList()));
|
|
|
+ List<RetrievalConceptDTO> lisNames = new ArrayList<>();
|
|
|
+ lisNames = BeanUtil.listCopyTo(indexList, RetrievalConceptDTO.class);
|
|
|
+ retrievalDTO.setLisNames(lisNames);
|
|
|
}
|
|
|
break;
|
|
|
case 2:
|
|
@@ -98,7 +100,9 @@ public class MedRetrievalFacade {
|
|
|
LexiconEnum.PacsSubName.getKey() }));
|
|
|
indexList = klConceptFacade.index(medRetrievalVO);
|
|
|
if (ListUtil.isNotEmpty(indexList)) {
|
|
|
- retrievalDTO.setPacsNames(indexList.stream().map(i -> i.getName()).collect(Collectors.toList()));
|
|
|
+ List<RetrievalConceptDTO> pacsNames = new ArrayList<>();
|
|
|
+ pacsNames = BeanUtil.listCopyTo(indexList, RetrievalConceptDTO.class);
|
|
|
+ retrievalDTO.setPacsNames(pacsNames);
|
|
|
}
|
|
|
break;
|
|
|
case 4:
|
|
@@ -130,7 +134,9 @@ public class MedRetrievalFacade {
|
|
|
medRetrievalVO.getTypeIds().add(LexiconEnum.Dept.getKey());
|
|
|
indexList = klConceptFacade.index(medRetrievalVO);
|
|
|
if (ListUtil.isNotEmpty(indexList)) {
|
|
|
- retrievalDTO.setDeptNames(indexList.stream().map(i -> i.getName()).collect(Collectors.toList()));
|
|
|
+ List<RetrievalConceptDTO> deptNames = new ArrayList<>();
|
|
|
+ deptNames = BeanUtil.listCopyTo(indexList, RetrievalConceptDTO.class);
|
|
|
+ retrievalDTO.setDeptNames(deptNames);
|
|
|
}
|
|
|
break;
|
|
|
case 8:
|
|
@@ -138,7 +144,9 @@ public class MedRetrievalFacade {
|
|
|
medRetrievalVO.getTypeIds().add(LexiconEnum.Transfusion.getKey());
|
|
|
indexList = klConceptFacade.index(medRetrievalVO);
|
|
|
if (ListUtil.isNotEmpty(indexList)) {
|
|
|
- retrievalDTO.setTransfusionNames(indexList.stream().map(i -> i.getName()).collect(Collectors.toList()));
|
|
|
+ List<RetrievalConceptDTO> transfusionNames = new ArrayList<>();
|
|
|
+ transfusionNames = BeanUtil.listCopyTo(indexList, RetrievalConceptDTO.class);
|
|
|
+ retrievalDTO.setTransfusionNames(transfusionNames);
|
|
|
}
|
|
|
break;
|
|
|
case 9:
|
|
@@ -146,7 +154,9 @@ public class MedRetrievalFacade {
|
|
|
medRetrievalVO.getTypeIds().add(LexiconEnum.Symptom.getKey());
|
|
|
indexList = klConceptFacade.index(medRetrievalVO);
|
|
|
if (ListUtil.isNotEmpty(indexList)) {
|
|
|
- retrievalDTO.setSymptomNames(indexList.stream().map(i -> i.getName()).collect(Collectors.toList()));
|
|
|
+ List<RetrievalConceptDTO> symptomNames = new ArrayList<>();
|
|
|
+ symptomNames = BeanUtil.listCopyTo(indexList, RetrievalConceptDTO.class);
|
|
|
+ retrievalDTO.setSymptomNames(symptomNames);
|
|
|
}
|
|
|
break;
|
|
|
case 10:
|
|
@@ -189,6 +199,14 @@ public class MedRetrievalFacade {
|
|
|
retrievalDTO.setAnesthesiaInfonames(BeanUtil.listCopyTo(indexList, AnesthesiaInfoDTO.class));
|
|
|
}
|
|
|
break;
|
|
|
+ case 15:
|
|
|
+ medRetrievalVO.setTypeId(LexiconEnum.Form.getKey());
|
|
|
+ medRetrievalVO.getTypeIds().add(LexiconEnum.Form.getKey());
|
|
|
+ indexList = klConceptFacade.index(medRetrievalVO);
|
|
|
+ if (ListUtil.isNotEmpty(indexList)) {
|
|
|
+ retrievalDTO.setDrugDosage(BeanUtil.listCopyTo(indexList, RetrievalConceptDTO.class));
|
|
|
+ }
|
|
|
+ break;
|
|
|
}
|
|
|
return retrievalDTO;
|
|
|
}
|