|
@@ -59,38 +59,29 @@ public class ModuleFacade extends ModuleInfoServiceImpl {
|
|
|
List<Long> pacsConceptIds = new ArrayList<>();//辅检名称列表
|
|
|
List<Long> pacModuleIds = new ArrayList<>();//模板中辅检id
|
|
|
Boolean isDefault = false;
|
|
|
+ Boolean isPacs = false;
|
|
|
if (moduleVO.getMouduleType().intValue() == 1) {
|
|
|
//根据科室筛选如果没有,返回通用模板
|
|
|
list = getModuleInfoByDisType(moduleVO.getMouduleType(), moduleVO.getRelationId());
|
|
|
if (ListUtil.isNotEmpty(list)) {
|
|
|
- for (ModuleInfo moduleInfo : list) {
|
|
|
- if (Integer.parseInt(moduleInfo.getType()) == QuestionTypeEnum.Pacs.getKey()){
|
|
|
- pacModuleIds.add(moduleInfo.getId());
|
|
|
- }else {
|
|
|
- ids.add(moduleInfo.getId());
|
|
|
- }
|
|
|
- }
|
|
|
+ isPacs = true;
|
|
|
} else {
|
|
|
isDefault = true;
|
|
|
}
|
|
|
} else if (moduleVO.getMouduleType().intValue() == 2) {
|
|
|
//根据慢病筛选
|
|
|
list = getModuleInfoByDisType(moduleVO.getMouduleType(), moduleVO.getRelationId());
|
|
|
- for (ModuleInfo moduleInfo : list) {
|
|
|
- if (Integer.parseInt(moduleInfo.getType()) == QuestionTypeEnum.Pacs.getKey()){
|
|
|
- pacModuleIds.add(moduleInfo.getId());
|
|
|
- }else {
|
|
|
- ids.add(moduleInfo.getId());
|
|
|
- }
|
|
|
- }
|
|
|
+ isPacs = true;
|
|
|
} else {
|
|
|
isDefault = true;
|
|
|
}
|
|
|
-
|
|
|
//科室没有内容,或者默认情况下,需要推测出默认模板
|
|
|
if (isDefault) {
|
|
|
//默认
|
|
|
list = getModuleInfoByDisType(0, 0L);
|
|
|
+ isPacs = true;
|
|
|
+ }
|
|
|
+ if(isPacs){
|
|
|
for (ModuleInfo moduleInfo : list) {
|
|
|
if (Integer.parseInt(moduleInfo.getType()) == QuestionTypeEnum.Pacs.getKey()){
|
|
|
pacModuleIds.add(moduleInfo.getId());
|
|
@@ -110,7 +101,7 @@ public class ModuleFacade extends ModuleInfoServiceImpl {
|
|
|
paramMap.put("sexType", moduleVO.getSexType());
|
|
|
paramMap.put("age", moduleVO.getAge());
|
|
|
List<ModuleDetail> moduleDetailList = moduleDetailFacade.getDetailByModuleFac(paramMap);
|
|
|
- if(ListUtil.isNotEmpty(pacModuleIds)){
|
|
|
+ if(ListUtil.isNotEmpty(pacModuleIds)){//获取类型是化验的标签id
|
|
|
QueryWrapper<ModuleDetail> moduleDetailQueryWrapper = new QueryWrapper<>();
|
|
|
moduleDetailQueryWrapper.eq("is_deleted",IsDeleteEnum.N.getKey())
|
|
|
.in("module_id",pacModuleIds);
|