Pārlūkot izejas kodu

主诉、现病史、既往史内容为空时,修正病历书写规范提示内容

wangsy 4 gadi atpakaļ
vecāks
revīzija
523030947e

+ 2 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0003.java

@@ -33,6 +33,8 @@ public class BEH0003 extends QCCatalogue {
             if (chiefTextLength <= 20) {
                 status.set("0");
             }
+        } else {
+            status.set("0");
         }
     }
 }

+ 1 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0006.java

@@ -30,7 +30,7 @@ public class BEH0006 extends QCCatalogue {
             return;
         }
         ChiefLabel chiefLabel = inputInfo.getBeHospitalizedDoc().getChiefLabel();
-        if (chiefLabel == null) {
+        if (chiefLabel == null || StringUtil.isBlank(chiefLabel.getText())) {
             status.set("0");
             return;
         }

+ 2 - 2
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0007.java

@@ -28,12 +28,12 @@ public class BEH0007 extends QCCatalogue {
             return;
         }
         ChiefLabel chiefLabel = inputInfo.getBeHospitalizedDoc().getChiefLabel();
-        if (chiefLabel == null) {
+        if (chiefLabel == null || StringUtil.isBlank(chiefLabel.getText())) {
             status.set("0");
             return;
         }
         String chiefText = chiefLabel.getText();
-        if (StringUtil.isNotBlank(chiefText) && (chiefText.contains("检查") || chiefText.contains("术后") || chiefText.contains("药物"))) {
+        if ((chiefText.contains("检查") || chiefText.contains("术后") || chiefText.contains("药物"))) {
             status.set("0");
         } else {
             List<Clinical> clinicals = chiefLabel.getClinicals();

+ 2 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0008.java

@@ -5,6 +5,7 @@ import com.lantone.qc.pub.model.InputInfo;
 import com.lantone.qc.pub.model.OutputInfo;
 import com.lantone.qc.pub.model.entity.Clinical;
 import com.lantone.qc.pub.model.label.ChiefLabel;
+import com.lantone.qc.pub.util.StringUtil;
 import org.springframework.stereotype.Component;
 
 import java.util.List;
@@ -24,7 +25,7 @@ public class BEH0008 extends QCCatalogue {
             return;
         }
         ChiefLabel chiefLabel = inputInfo.getBeHospitalizedDoc().getChiefLabel();
-        if (chiefLabel == null) {
+        if (chiefLabel == null || StringUtil.isBlank(chiefLabel.getText())) {
             status.set("0");
             return;
         }

+ 4 - 2
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0009.java

@@ -24,7 +24,7 @@ import java.util.Map;
 @Component
 public class BEH0009 extends QCCatalogue {
     private List<String> containList = Arrays.asList("检查", "术后", "药物", "发现", "误服", "确诊", "经", "异常", "诊断"
-            , "示", "超", "伤", "术", "复查", "体检", "血透" ,"血液透析");
+            , "示", "超", "伤", "术", "复查", "体检", "血透", "血液透析");
 
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         if (inputInfo.getBeHospitalizedDoc() == null) {
@@ -50,7 +50,7 @@ public class BEH0009 extends QCCatalogue {
                 return;
             }
             List<Diag> diags = chiefLabel.getDiags();
-            if(diags.size()>0){
+            if (diags.size() > 0) {
                 status.set("0");
                 return;
             }
@@ -64,6 +64,8 @@ public class BEH0009 extends QCCatalogue {
                     }
                 }
             }
+        } else {
+            status.set("0");
         }
     }
 }

+ 2 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0013.java

@@ -22,7 +22,8 @@ import java.util.List;
 public class BEH0013 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         status.set("0");
-        if (inputInfo.getBeHospitalizedDoc() == null) {
+        if (inputInfo.getBeHospitalizedDoc() == null
+                || StringUtil.isBlank(inputInfo.getBeHospitalizedDoc().getChiefLabel().getText())) {
             return;
         }
         PresentLabel presentLabel = inputInfo.getBeHospitalizedDoc().getPresentLabel();

+ 2 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0014.java

@@ -28,7 +28,8 @@ public class BEH0014 extends QCCatalogue {
             , "药物", "误服", "查", "撞", "伤", "月经", "暴力", "超", "术");
 
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
-        if (inputInfo.getBeHospitalizedDoc() == null) {
+        if (inputInfo.getBeHospitalizedDoc() == null
+                || StringUtil.isBlank(inputInfo.getBeHospitalizedDoc().getChiefLabel().getText())) {
             status.set("0");
             return;
         }

+ 2 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH02860.java

@@ -8,6 +8,7 @@ import com.lantone.qc.pub.model.entity.Clinical;
 import com.lantone.qc.pub.model.entity.PD;
 import com.lantone.qc.pub.model.label.ChiefLabel;
 import com.lantone.qc.pub.util.ListUtil;
+import com.lantone.qc.pub.util.StringUtil;
 import org.springframework.stereotype.Component;
 
 import java.util.List;
@@ -28,7 +29,7 @@ public class BEH02860 extends QCCatalogue {
             return;
         }
         ChiefLabel chiefLabel = inputInfo.getBeHospitalizedDoc().getChiefLabel();
-        if (chiefLabel == null) {
+        if (chiefLabel == null || StringUtil.isBlank(chiefLabel.getText())) {
             return;
         }
         String regex = "[零一二三四五六七八九十百千]";

+ 2 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0400.java

@@ -22,7 +22,8 @@ public class BEH0400 extends QCCatalogue {
 
     @Override
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
-        if (inputInfo.getBeHospitalizedDoc() == null) {
+        if (inputInfo.getBeHospitalizedDoc() == null
+                || StringUtil.isBlank(inputInfo.getBeHospitalizedDoc().getChiefLabel().getText())) {
             status.set("0");
             return;
         }

+ 2 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0449.java

@@ -10,6 +10,7 @@ import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
 import com.lantone.qc.pub.model.entity.Clinical;
 import com.lantone.qc.pub.model.entity.Diag;
 import com.lantone.qc.pub.util.ListUtil;
+import com.lantone.qc.pub.util.StringUtil;
 import org.apache.commons.lang3.StringUtils;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
@@ -39,7 +40,7 @@ public class BEH0449 extends QCCatalogue {
         String chief_text = beHospitalizedDoc.getChiefLabel().getText();
         if (chief_text.contains("检查") || chief_text.contains("术后") || chief_text.contains("药物")
                 || chief_text.contains("发现") || chief_text.contains("体检") || chief_text.contains("确诊")
-                || chief_text.contains("复查") || chief_text.contains("诊断")
+                || chief_text.contains("复查") || chief_text.contains("诊断") || StringUtil.isBlank(chief_text)
         ) {
             status.set("0");
             return;