|
@@ -1,5 +1,7 @@
|
|
|
package com.diagbot.facade;
|
|
|
|
|
|
+import com.diagbot.dto.DrugInfoDTO;
|
|
|
+import com.diagbot.dto.OperationInfoDTO;
|
|
|
import com.diagbot.dto.RetrievalDTO;
|
|
|
import com.diagbot.repository.*;
|
|
|
import com.diagbot.vo.RetrievalVO;
|
|
@@ -25,6 +27,12 @@ public class RetrievalFacade {
|
|
|
@Autowired
|
|
|
PacsRepository pacsRepository;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ MedicineRepository medicineRepository;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ OperationRepository operationRepository;
|
|
|
+
|
|
|
/**
|
|
|
* 检索
|
|
|
*
|
|
@@ -44,6 +52,12 @@ public class RetrievalFacade {
|
|
|
case 4:
|
|
|
retrievalDTO.setDiseaseNames(getDiseases(retrievalVO.getInputStr()));
|
|
|
break;
|
|
|
+ case 5:
|
|
|
+ retrievalDTO.setDrugNames(getMedicines(retrievalVO.getInputStr()));
|
|
|
+ break;
|
|
|
+ case 6:
|
|
|
+ retrievalDTO.setOperationNames(getOperations(retrievalVO.getInputStr()));
|
|
|
+ break;
|
|
|
}
|
|
|
|
|
|
return retrievalDTO;
|
|
@@ -62,6 +76,18 @@ public class RetrievalFacade {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /*
|
|
|
+ * 获取辅检名称列表
|
|
|
+ */
|
|
|
+ public List<String> getPACSs(String name) {
|
|
|
+
|
|
|
+ PACSNode pacsNode = new PACSNode();
|
|
|
+ List<String> pacslist = pacsNode.getPACSNameList(name,pacsRepository);
|
|
|
+
|
|
|
+ return pacslist;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/*
|
|
|
* 获取疾病名称列表
|
|
|
*/
|
|
@@ -75,13 +101,25 @@ public class RetrievalFacade {
|
|
|
|
|
|
|
|
|
/*
|
|
|
- * 获取辅检名称列表
|
|
|
+ * 获取药品商品名称列表
|
|
|
*/
|
|
|
- public List<String> getPACSs(String name) {
|
|
|
+ public List<DrugInfoDTO> getMedicines(String name) {
|
|
|
|
|
|
- PACSNode pacsNode = new PACSNode();
|
|
|
- List<String> pacslist = pacsNode.getPACSNameList(name,pacsRepository);
|
|
|
+ MedicineNode medicineNode = new MedicineNode();
|
|
|
+ List<DrugInfoDTO> medslist = medicineNode.getMedicineList(name,medicineRepository);
|
|
|
|
|
|
- return pacslist;
|
|
|
+ return medslist;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /*
|
|
|
+ * 获取手术和操作名称列表
|
|
|
+ */
|
|
|
+ public List<OperationInfoDTO> getOperations(String name) {
|
|
|
+
|
|
|
+ OperationNode operationNode = new OperationNode();
|
|
|
+ List<OperationInfoDTO> opslist = operationNode.getOperationList(name,operationRepository);
|
|
|
+
|
|
|
+ return opslist;
|
|
|
}
|
|
|
}
|