|
@@ -7,8 +7,6 @@ import com.lantone.qc.pub.util.StringUtil;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Map;
|
|
|
-import java.util.regex.Matcher;
|
|
|
-import java.util.regex.Pattern;
|
|
|
|
|
|
/**
|
|
|
* @ClassName : BEH03049
|
|
@@ -25,23 +23,22 @@ public class BEH03049 extends QCCatalogue {
|
|
|
return;
|
|
|
}
|
|
|
Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
|
|
|
- String souval = structureMap.get("脉搏");
|
|
|
- String tarval = null;
|
|
|
- String vitalLabelSpecial = structureMap.get("专科体格检查");
|
|
|
String initialDiag = structureMap.get("初步诊断");
|
|
|
- if (StringUtil.isNotBlank(vitalLabelSpecial)) {
|
|
|
- Pattern pattern = Pattern.compile("(心率)[^,;。,;体温|脉搏|呼吸|血压|疼痛]+");
|
|
|
- Matcher matcher = pattern.matcher(vitalLabelSpecial);
|
|
|
- if (matcher.find()) {
|
|
|
- pattern = Pattern.compile("[0-9]+[./]*[0-9]*");
|
|
|
- matcher = pattern.matcher(matcher.group());
|
|
|
- if (matcher.find()) {
|
|
|
- tarval = matcher.group();
|
|
|
- }
|
|
|
- }
|
|
|
+ if (StringUtil.isBlank(initialDiag)) {
|
|
|
+ return;
|
|
|
}
|
|
|
- if (StringUtil.isNotBlank(souval) && StringUtil.isNotBlank(tarval) && initialDiag.indexOf("心房颤动") == -1 && !souval.equals(tarval)) {
|
|
|
- status.set("-1");
|
|
|
+ String souval = structureMap.get("脉搏");
|
|
|
+ String tarval = structureMap.get("心率");
|
|
|
+ if (StringUtil.isNotBlank(souval)
|
|
|
+ && StringUtil.isNotBlank(tarval)
|
|
|
+ && initialDiag.indexOf("房颤") == -1
|
|
|
+ && initialDiag.indexOf("纤颤") == -1
|
|
|
+ && initialDiag.indexOf("房扑") == -1) {
|
|
|
+ souval = souval.replaceAll("[^0-9]*", "");
|
|
|
+ tarval = tarval.replaceAll("[^0-9]*", "");
|
|
|
+ if (StringUtil.isNotBlank(souval) && StringUtil.isNotBlank(tarval) && !souval.equals(tarval)) {
|
|
|
+ status.set("-1");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|