|
@@ -3,6 +3,8 @@ package com.diagbot.facade;
|
|
|
import com.diagbot.dto.RetrievalDTO;
|
|
|
import com.diagbot.repository.ICDDiseaseNode;
|
|
|
import com.diagbot.repository.ICDDiseaseRepository;
|
|
|
+import com.diagbot.repository.PACSNode;
|
|
|
+import com.diagbot.repository.PacsRepository;
|
|
|
import com.diagbot.vo.RetrievalVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
@@ -20,6 +22,9 @@ public class RetrievalFacade {
|
|
|
@Autowired
|
|
|
ICDDiseaseRepository icdDiseaseRepository;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ PacsRepository pacsRepository;
|
|
|
+
|
|
|
/**
|
|
|
* 检索
|
|
|
*
|
|
@@ -29,8 +34,13 @@ public class RetrievalFacade {
|
|
|
public RetrievalDTO index(RetrievalVO retrievalVO) {
|
|
|
RetrievalDTO retrievalDTO = new RetrievalDTO();
|
|
|
|
|
|
- if (retrievalVO.getType()==4) {
|
|
|
- retrievalDTO.setDiseaseNames(getDiseases(retrievalVO.getInputStr()));
|
|
|
+ switch (retrievalVO.getType()) {
|
|
|
+ case 3:
|
|
|
+ retrievalDTO.setPacsNames(getPACSs(retrievalVO.getInputStr()));
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ retrievalDTO.setDiseaseNames(getDiseases(retrievalVO.getInputStr()));
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
return retrievalDTO;
|
|
@@ -48,4 +58,15 @@ public class RetrievalFacade {
|
|
|
return diseaselist;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /*
|
|
|
+ * 获取辅检名称列表
|
|
|
+ */
|
|
|
+ public List<String> getPACSs(String name) {
|
|
|
+
|
|
|
+ PACSNode pacsNode = new PACSNode();
|
|
|
+ List<String> pacslist = pacsNode.getPACSNameList(name,pacsRepository);
|
|
|
+
|
|
|
+ return pacslist;
|
|
|
+ }
|
|
|
}
|