|
@@ -9,6 +9,7 @@ import com.lantone.qc.pub.model.doc.DeathRecordDoc;
|
|
|
import com.lantone.qc.pub.model.doc.LeaveHospitalDoc;
|
|
|
import com.lantone.qc.pub.model.label.ChiefLabel;
|
|
|
import com.lantone.qc.pub.util.StringUtil;
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Map;
|
|
@@ -66,18 +67,21 @@ public class LEA0149 extends QCCatalogue {
|
|
|
status.set("0");
|
|
|
return;
|
|
|
}
|
|
|
- Pattern compile = Pattern.compile("(?<=2.).*(?=3.体格检查)");
|
|
|
- Matcher matcher = compile.matcher(bhThings);
|
|
|
- while (matcher.find()) {
|
|
|
- String number = matcher.group(0);
|
|
|
- if (CatalogueUtil.isEmpty(number)) {
|
|
|
- status.set("-1");
|
|
|
+ if(StringUtils.isNotBlank(bhThings)){
|
|
|
+ Pattern compile = Pattern.compile("(?<=2.).*(?=3.体格检查)");
|
|
|
+ Matcher matcher = compile.matcher(bhThings);
|
|
|
+ while (matcher.find()) {
|
|
|
+ String number = matcher.group(0);
|
|
|
+ if (CatalogueUtil.isEmpty(number)) {
|
|
|
+ status.set("-1");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //处理台州的
|
|
|
+ if (bhThings.contains("患者因")) {
|
|
|
+ status.set("0");
|
|
|
}
|
|
|
}
|
|
|
- //处理台州的
|
|
|
- if (bhThings.contains("患者因")) {
|
|
|
- status.set("0");
|
|
|
- }
|
|
|
+
|
|
|
|
|
|
|
|
|
// bhThings = bhThings.replaceAll("[\\p{Punct}\\pP]", "");
|