|
@@ -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);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -304,10 +315,23 @@ public class LisRule {
|
|
|
Map map = null;
|
|
|
switch (LexiconEnum.getEnum(ruleBaseDTO.getBaseLibType())) {
|
|
|
case LisSubName: // 化验细项
|
|
|
- map = CoreUtil.compareLis(ruleBaseDTO, lisBean);
|
|
|
- if ((Boolean) map.get("flag") == true) {
|
|
|
- i++;
|
|
|
- msg = (String) map.get("msg");
|
|
|
+ if (ruleBaseDTO.getBaseLibName().equals(lisBean.getUniqueName())) {
|
|
|
+ // 化验自身 【第一个】
|
|
|
+ map = CoreUtil.compareLis(ruleBaseDTO, lisBean);
|
|
|
+ if (CoreUtil.getMapFlag(map)) {
|
|
|
+ i++;
|
|
|
+ msg = (String) map.get("msg");
|
|
|
+ } else {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // 其他化验
|
|
|
+ map = CoreUtil.compareLis(ruleBaseDTO, wordCrfDTO.getLis());
|
|
|
+ if (CoreUtil.getMapFlag(map)) {
|
|
|
+ i++;
|
|
|
+ } else {
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
break;
|
|
|
case Group: // 人群
|