|
@@ -575,7 +575,7 @@ public class PushProcess {
|
|
* @param key
|
|
* @param key
|
|
* @param filteString
|
|
* @param filteString
|
|
*/
|
|
*/
|
|
- public void dealFilter(Map<String, List<String>> map, String key, List<String> filteString) {
|
|
|
|
|
|
+ public void dealFilter(Map<String, List<String>> map, String key, List<String> filteString) {
|
|
if (ListUtil.isEmpty(filteString)) {
|
|
if (ListUtil.isEmpty(filteString)) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -602,7 +602,7 @@ public class PushProcess {
|
|
if (map.get(LexiconEnum.Symptom.getKey()) != null) {
|
|
if (map.get(LexiconEnum.Symptom.getKey()) != null) {
|
|
List<String> list = map.get(LexiconEnum.Symptom.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
List<String> list = map.get(LexiconEnum.Symptom.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.symptom.toString())); // 过滤界面已有
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.symptom.toString())); // 过滤界面已有
|
|
- pushDTO.setSymptom(getPushBaseDTO(list, length)); // 放入对象返回
|
|
|
|
|
|
+ pushDTO.setSymptom(generatePushBaseDTO(list, length)); // 放入对象返回
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 查体结果
|
|
// 查体结果
|
|
@@ -610,7 +610,7 @@ public class PushProcess {
|
|
if (map.get(LexiconEnum.VitalResult.getKey()) != null) {
|
|
if (map.get(LexiconEnum.VitalResult.getKey()) != null) {
|
|
List<String> list = map.get(LexiconEnum.VitalResult.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
List<String> list = map.get(LexiconEnum.VitalResult.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.vital.toString())); // 过滤界面已有
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.vital.toString())); // 过滤界面已有
|
|
- pushDTO.setVital(getPushBaseDTO(list, length)); // 放入对象返回
|
|
|
|
|
|
+ pushDTO.setVital(generatePushBaseDTO(list, length)); // 放入对象返回
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 化验套餐
|
|
// 化验套餐
|
|
@@ -618,7 +618,7 @@ public class PushProcess {
|
|
if (map.get(LexiconEnum.LisName.getKey()) != null) {
|
|
if (map.get(LexiconEnum.LisName.getKey()) != null) {
|
|
List<String> list = map.get(LexiconEnum.LisName.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
List<String> list = map.get(LexiconEnum.LisName.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.lis.toString())); // 过滤界面已有
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.lis.toString())); // 过滤界面已有
|
|
- pushDTO.setLis(getPushBaseDTO(list, length)); // 放入对象返回
|
|
|
|
|
|
+ pushDTO.setLis(generatePushBaseDTO(list, length)); // 放入对象返回
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 辅检项目
|
|
// 辅检项目
|
|
@@ -626,7 +626,7 @@ public class PushProcess {
|
|
if (map.get(LexiconEnum.PacsName.getKey()) != null) {
|
|
if (map.get(LexiconEnum.PacsName.getKey()) != null) {
|
|
List<String> list = map.get(LexiconEnum.PacsName.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
List<String> list = map.get(LexiconEnum.PacsName.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.pacs.toString())); // 过滤界面已有
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.pacs.toString())); // 过滤界面已有
|
|
- pushDTO.setPacs(getPushBaseDTO(list, length)); // 放入对象返回
|
|
|
|
|
|
+ pushDTO.setPacs(generatePushBaseDTO(list, length)); // 放入对象返回
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 鉴别诊断, 注意这个类型与其他类型不一样
|
|
// 鉴别诊断, 注意这个类型与其他类型不一样
|
|
@@ -634,7 +634,7 @@ public class PushProcess {
|
|
if (map.get(LexiconEnum.Disease.getKey()) != null) {
|
|
if (map.get(LexiconEnum.Disease.getKey()) != null) {
|
|
List<String> list = map.get(LexiconEnum.Disease.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
List<String> list = map.get(LexiconEnum.Disease.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.disease.toString())); // 过滤界面已有
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.disease.toString())); // 过滤界面已有
|
|
- List<PushBaseDTO> pushBaseDTO = getPushBaseDTO(list, length);
|
|
|
|
|
|
+ List<PushBaseDTO> pushBaseDTO = generatePushBaseDTO(list, length);
|
|
if (ListUtil.isNotEmpty(pushBaseDTO)) {
|
|
if (ListUtil.isNotEmpty(pushBaseDTO)) {
|
|
dis.put(DiseaseTypeEnum.identify.getName(), pushBaseDTO);
|
|
dis.put(DiseaseTypeEnum.identify.getName(), pushBaseDTO);
|
|
}
|
|
}
|
|
@@ -645,7 +645,7 @@ public class PushProcess {
|
|
if (map.get(LexiconEnum.Medicine.getKey()) != null) {
|
|
if (map.get(LexiconEnum.Medicine.getKey()) != null) {
|
|
List<String> list = map.get(LexiconEnum.Medicine.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
List<String> list = map.get(LexiconEnum.Medicine.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.drug.toString())); // 过滤界面已有
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.drug.toString())); // 过滤界面已有
|
|
- pushDTO.setMedicines(getPushBaseDTO(list, length)); // 放入对象返回
|
|
|
|
|
|
+ pushDTO.setMedicines(generatePushBaseDTO(list, length)); // 放入对象返回
|
|
}
|
|
}
|
|
}
|
|
}
|
|
// 手术
|
|
// 手术
|
|
@@ -653,7 +653,7 @@ public class PushProcess {
|
|
if (map.get(LexiconEnum.Operation.getKey()) != null) {
|
|
if (map.get(LexiconEnum.Operation.getKey()) != null) {
|
|
List<String> list = map.get(LexiconEnum.Operation.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
List<String> list = map.get(LexiconEnum.Operation.getKey()).stream().map(r -> r.getSonName()).collect(Collectors.toList());
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.operation.toString())); // 过滤界面已有
|
|
CoreUtil.removeRepeat(list, filterMap.get(StandConvertEnum.operation.toString())); // 过滤界面已有
|
|
- pushDTO.setOperations(getPushBaseDTO(list, length)); // 放入对象返回
|
|
|
|
|
|
+ pushDTO.setOperations(generatePushBaseDTO(list, length)); // 放入对象返回
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -662,14 +662,14 @@ public class PushProcess {
|
|
* 将名称列表生成推送返回类型
|
|
* 将名称列表生成推送返回类型
|
|
*
|
|
*
|
|
* @param nameList
|
|
* @param nameList
|
|
- * @param length 最长个数
|
|
|
|
|
|
+ * @param length 最长个数, -1:无限制
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public List<PushBaseDTO> getPushBaseDTO(List<String> nameList, int length) {
|
|
|
|
|
|
+ public List<PushBaseDTO> generatePushBaseDTO(List<String> nameList, int length) {
|
|
List<PushBaseDTO> pushBaseDTOList = Lists.newArrayList();
|
|
List<PushBaseDTO> pushBaseDTOList = Lists.newArrayList();
|
|
if (ListUtil.isNotEmpty(nameList)) {
|
|
if (ListUtil.isNotEmpty(nameList)) {
|
|
for (int i = 0; i < nameList.size(); i++) {
|
|
for (int i = 0; i < nameList.size(); i++) {
|
|
- if (pushBaseDTOList.size() >= length) {
|
|
|
|
|
|
+ if (length != -1 && pushBaseDTOList.size() >= length) {
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
PushBaseDTO pushBaseDTO = new PushBaseDTO();
|
|
PushBaseDTO pushBaseDTO = new PushBaseDTO();
|