|
@@ -426,9 +426,9 @@ public class ExportFacade {
|
|
|
//高危手术
|
|
|
//optHighRisk(mapPath, map);
|
|
|
//危急值化验
|
|
|
- //lisCriticalValues(mapPath, map);
|
|
|
+ lisCriticalValues(mapPath, map);
|
|
|
//危急值辅检
|
|
|
- pacsCriticalValues(mapPath, map);
|
|
|
+ //pacsCriticalValues(mapPath, map);
|
|
|
return null;
|
|
|
}
|
|
|
|
|
@@ -450,16 +450,56 @@ public class ExportFacade {
|
|
|
klRule.setConceptId(map.get(importDataVO.getLisGBName().trim() + "_108").getId());
|
|
|
klRule.setDescription("危急值_化验_" + lisStr);
|
|
|
klRule.setRuleType(3);
|
|
|
- klRule.setHasSubCond(0);
|
|
|
+ klRule.setHasSubCond(1);
|
|
|
klRuleService.save(klRule);
|
|
|
KlRuleBase klRuleBase = new KlRuleBase();
|
|
|
- klRuleBase.setType(1);
|
|
|
+ klRuleBase.setConceptId(map.get(importDataVO.getLisGBName().trim() + "_108").getId());
|
|
|
+ klRuleBase.setDescription("比较条件:" + importDataVO.getLisGBName().trim());
|
|
|
+ if (null != importDataVO.getCriticalMin()) {
|
|
|
+ klRuleBase.setType(2);
|
|
|
+ klRuleBase.setMinOperator("<=");
|
|
|
+ klRuleBase.setMinValue(importDataVO.getCriticalMin().toString());
|
|
|
+ if (StringUtil.isNotBlank(importDataVO.getUnit())) {
|
|
|
+ klRuleBase.setMinUnit(importDataVO.getUnit().trim());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (null != importDataVO.getCriticalMax()) {
|
|
|
+ klRuleBase.setType(2);
|
|
|
+ klRuleBase.setMaxOperator(">=");
|
|
|
+ klRuleBase.setMaxValue(importDataVO.getCriticalMax().toString());
|
|
|
+ if (StringUtil.isNotBlank(importDataVO.getUnit())) {
|
|
|
+ klRuleBase.setMaxUnit(importDataVO.getUnit().trim());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (StringUtil.isNotBlank(importDataVO.getCriticalNegative())) {
|
|
|
+ klRuleBase.setType(2);
|
|
|
+ klRuleBase.setEqOperator("=");
|
|
|
+ klRuleBase.setEqValue(importDataVO.getCriticalNegative().trim());
|
|
|
+ if (StringUtil.isNotBlank(importDataVO.getUnit())) {
|
|
|
+ klRuleBase.setEqUnit(importDataVO.getUnit().trim());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
klRuleBaseService.save(klRuleBase);
|
|
|
KlRuleCondition klRuleCondition = new KlRuleCondition();
|
|
|
klRuleCondition.setGroupType(1);
|
|
|
klRuleCondition.setRuleId(klRule.getId());
|
|
|
klRuleCondition.setRuleBaseId(klRuleBase.getId());
|
|
|
klRuleConditionService.save(klRuleCondition);
|
|
|
+
|
|
|
+
|
|
|
+ if (StringUtil.isNotBlank(importDataVO.getCriticalAge())) {
|
|
|
+ KlRuleBase klRuleBase2 = new KlRuleBase();
|
|
|
+ klRuleBase2.setConceptId(map.get(importDataVO.getCriticalAge().trim() + "_117").getId());
|
|
|
+ klRuleBase2.setDescription("参考对象:" + importDataVO.getCriticalAge().trim());
|
|
|
+ klRuleBase2.setType(1);
|
|
|
+ klRuleBaseService.save(klRuleBase2);
|
|
|
+ KlRuleCondition klRuleCondition2 = new KlRuleCondition();
|
|
|
+ klRuleCondition2.setGroupType(1);
|
|
|
+ klRuleCondition2.setRuleId(klRule.getId());
|
|
|
+ klRuleCondition2.setRuleBaseId(klRuleBase2.getId());
|
|
|
+ klRuleConditionService.save(klRuleCondition2);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|