|
@@ -141,32 +141,43 @@ public class LisRule {
|
|
|
// 条件全部符合
|
|
|
if (i == ruleBaseDTOList.size()) {
|
|
|
if (StringUtil.isNotBlank(lisOtherDTO.getName())) {
|
|
|
- // 诊断
|
|
|
- if (ListUtil.isNotEmpty(lisOtherDTO.getDiseaseMsg())) {
|
|
|
- for (String str : lisOtherDTO.getDiseaseMsg()) {
|
|
|
- BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(), str, TypeEnum.disease.getName(), lisBean);
|
|
|
- otherList.add(billMsg);
|
|
|
+ // 就化验本身一个条件符合
|
|
|
+ if (ListUtil.isEmpty(lisOtherDTO.getDiseaseMsg())
|
|
|
+ && ListUtil.isEmpty(lisOtherDTO.getGroupMsg())
|
|
|
+ && ListUtil.isEmpty(lisOtherDTO.getLisMsg())
|
|
|
+ && ListUtil.isEmpty(lisOtherDTO.getDrugMsg())
|
|
|
+ ) {
|
|
|
+ BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.lis.getName(),
|
|
|
+ lisOtherDTO.getName(), "", TypeEnum.lisSelf.getName(), lisBean);
|
|
|
+ otherList.add(billMsg);
|
|
|
+ } else { // 有其他条件符合
|
|
|
+ // 诊断
|
|
|
+ if (ListUtil.isNotEmpty(lisOtherDTO.getDiseaseMsg())) {
|
|
|
+ for (String str : lisOtherDTO.getDiseaseMsg()) {
|
|
|
+ BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(), str, TypeEnum.disease.getName(), lisBean);
|
|
|
+ otherList.add(billMsg);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- // 药品
|
|
|
- if (ListUtil.isNotEmpty(lisOtherDTO.getDrugMsg())) {
|
|
|
- for (String str : lisOtherDTO.getDrugMsg()) {
|
|
|
- BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(), str, TypeEnum.drug.getName(), lisBean);
|
|
|
- otherList.add(billMsg);
|
|
|
+ // 药品
|
|
|
+ if (ListUtil.isNotEmpty(lisOtherDTO.getDrugMsg())) {
|
|
|
+ for (String str : lisOtherDTO.getDrugMsg()) {
|
|
|
+ BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(), str, TypeEnum.drug.getName(), lisBean);
|
|
|
+ otherList.add(billMsg);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- // 人群
|
|
|
- if (ListUtil.isNotEmpty(lisOtherDTO.getGroupMsg())) {
|
|
|
- for (String str : lisOtherDTO.getGroupMsg()) {
|
|
|
- BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(), str, TypeEnum.group.getName(), lisBean);
|
|
|
- otherList.add(billMsg);
|
|
|
+ // 人群
|
|
|
+ if (ListUtil.isNotEmpty(lisOtherDTO.getGroupMsg())) {
|
|
|
+ for (String str : lisOtherDTO.getGroupMsg()) {
|
|
|
+ BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(), str, TypeEnum.group.getName(), lisBean);
|
|
|
+ otherList.add(billMsg);
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- // 化验
|
|
|
- if (ListUtil.isNotEmpty(lisOtherDTO.getLisMsg())) {
|
|
|
- for (String str : lisOtherDTO.getLisMsg()) {
|
|
|
- BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(), str, TypeEnum.lis.getName(), lisBean);
|
|
|
- otherList.add(billMsg);
|
|
|
+ // 化验
|
|
|
+ if (ListUtil.isNotEmpty(lisOtherDTO.getLisMsg())) {
|
|
|
+ for (String str : lisOtherDTO.getLisMsg()) {
|
|
|
+ BillMsg billMsg = MsgUtil.getCommonOtherMsg(TypeEnum.lis.getName(), lisOtherDTO.getName(), str, TypeEnum.lis.getName(), lisBean);
|
|
|
+ otherList.add(billMsg);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|