Browse Source

七院规则调整修改

zhanghang 4 years atrás
parent
commit
f943dcf40b

+ 5 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hangzhoudiqi/behospitalized/BEH0009.java

@@ -35,7 +35,11 @@ public class BEH0009 extends QCCatalogue {
         //修改该规则只适用于神经内科
         MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
         Map<String, String> structureMap = medicalRecordInfoDoc.getStructureMap();
-        if(!Content.neurology.equals(structureMap.get("behDeptName"))){
+        String behDeptName = structureMap.get("behDeptName");
+        if(StringUtil.isEmpty(behDeptName)){
+            return;
+        }
+        if(!Content.neurology.equals(behDeptName)){
             return;
         }
         ChiefLabel chiefLabel = inputInfo.getBeHospitalizedDoc().getChiefLabel();

+ 6 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hangzhoudiqi/behospitalized/BEH0015.java

@@ -9,6 +9,7 @@ import com.lantone.qc.pub.model.OutputInfo;
 import com.lantone.qc.pub.model.doc.MedicalRecordInfoDoc;
 import com.lantone.qc.pub.model.entity.BodyPart;
 import com.lantone.qc.pub.model.entity.Clinical;
+import com.lantone.qc.pub.util.StringUtil;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
@@ -34,7 +35,11 @@ public class BEH0015 extends QCCatalogue {
         //修改该规则只适用于神经内科
         MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
         Map<String, String> structureMap = medicalRecordInfoDoc.getStructureMap();
-        if(!Content.neurology.equals(structureMap.get("behDeptName"))){
+        String behDeptName = structureMap.get("behDeptName");
+        if(StringUtil.isEmpty(behDeptName)){
+            return;
+        }
+        if(!Content.neurology.equals(behDeptName)){
             return;
         }
         List<String> clinicalList = (List<String>) specialStorageUtil.getJsonStringValue(KernelConstants.CONCEPT_CLINIC_BODYPART_PROPERTIES_LIST);

+ 6 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hangzhoudiqi/behospitalized/BEH0016.java

@@ -7,6 +7,7 @@ import com.lantone.qc.pub.model.OutputInfo;
 import com.lantone.qc.pub.model.doc.MedicalRecordInfoDoc;
 import com.lantone.qc.pub.model.entity.Clinical;
 import com.lantone.qc.pub.model.entity.Property;
+import com.lantone.qc.pub.util.StringUtil;
 import org.springframework.stereotype.Component;
 
 import java.util.List;
@@ -30,7 +31,11 @@ public class BEH0016 extends QCCatalogue {
         //修改该规则只适用于神经内科
         MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
         Map<String, String> structureMap = medicalRecordInfoDoc.getStructureMap();
-        if(!Content.neurology.equals(structureMap.get("behDeptName"))){
+        String behDeptName = structureMap.get("behDeptName");
+        if(StringUtil.isEmpty(behDeptName)){
+            return;
+        }
+        if(!Content.neurology.equals(behDeptName)){
             return;
         }
         List<Clinical> clinicals = inputInfo.getBeHospitalizedDoc().getPresentLabel().getClinicals();

+ 5 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hangzhoudiqi/behospitalized/BEH0017.java

@@ -32,7 +32,11 @@ public class BEH0017 extends QCCatalogue {
         //修改该规则只适用于神经内科
         MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
         Map<String, String> structureMap = medicalRecordInfoDoc.getStructureMap();
-        if(!Content.neurology.equals(structureMap.get("behDeptName"))){
+        String behDeptName = structureMap.get("behDeptName");
+        if(StringUtil.isEmpty(behDeptName)){
+            return;
+        }
+        if(!Content.neurology.equals(behDeptName)){
             return;
         }
         PresentLabel presentLabel = inputInfo.getBeHospitalizedDoc().getPresentLabel();

+ 6 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hangzhoudiqi/behospitalized/BEH0019.java

@@ -8,6 +8,7 @@ import com.lantone.qc.pub.model.OutputInfo;
 import com.lantone.qc.pub.model.doc.MedicalRecordInfoDoc;
 import com.lantone.qc.pub.model.entity.Clinical;
 import com.lantone.qc.pub.model.entity.Degree;
+import com.lantone.qc.pub.util.StringUtil;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
@@ -34,7 +35,11 @@ public class BEH0019 extends QCCatalogue {
         //修改该规则只适用于神经内科
         MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
         Map<String, String> structureMap = medicalRecordInfoDoc.getStructureMap();
-        if(!Content.neurology.equals(structureMap.get("behDeptName"))){
+        String behDeptName = structureMap.get("behDeptName");
+        if(StringUtil.isEmpty(behDeptName)){
+            return;
+        }
+        if(!Content.neurology.equals(behDeptName)){
             return;
         }
         List<Clinical> clinicals = inputInfo.getBeHospitalizedDoc().getPresentLabel().getClinicals();

+ 6 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hangzhoudiqi/behospitalized/BEH0020.java

@@ -7,6 +7,7 @@ import com.lantone.qc.pub.model.OutputInfo;
 import com.lantone.qc.pub.model.doc.MedicalRecordInfoDoc;
 import com.lantone.qc.pub.model.entity.Clinical;
 import com.lantone.qc.pub.model.entity.Modification;
+import com.lantone.qc.pub.util.StringUtil;
 import org.springframework.stereotype.Component;
 
 import java.util.List;
@@ -30,7 +31,11 @@ public class BEH0020 extends QCCatalogue {
         //修改该规则只适用于神经内科
         MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
         Map<String, String> structureMap = medicalRecordInfoDoc.getStructureMap();
-        if(!Content.neurology.equals(structureMap.get("behDeptName"))){
+        String behDeptName = structureMap.get("behDeptName");
+        if(StringUtil.isEmpty(behDeptName)){
+            return;
+        }
+        if(!Content.neurology.equals(behDeptName)){
             return;
         }
         List<Clinical> clinicals = inputInfo.getBeHospitalizedDoc().getPresentLabel().getClinicals();

+ 6 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hangzhoudiqi/behospitalized/BEH0021.java

@@ -9,6 +9,7 @@ import com.lantone.qc.pub.model.entity.Clinical;
 import com.lantone.qc.pub.model.entity.General;
 import com.lantone.qc.pub.model.entity.GeneralDesc;
 import com.lantone.qc.pub.model.entity.Modification;
+import com.lantone.qc.pub.util.StringUtil;
 import org.springframework.stereotype.Component;
 
 import java.util.List;
@@ -32,7 +33,11 @@ public class BEH0021 extends QCCatalogue {
         //修改该规则只适用于神经内科
         MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
         Map<String, String> structureMap = medicalRecordInfoDoc.getStructureMap();
-        if(!Content.neurology.equals(structureMap.get("behDeptName"))){
+        String behDeptName = structureMap.get("behDeptName");
+        if(StringUtil.isEmpty(behDeptName)){
+            return;
+        }
+        if(!Content.neurology.equals(behDeptName)){
             return;
         }
         List<General> gens = inputInfo.getBeHospitalizedDoc().getPresentLabel().getGens();

+ 15 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hangzhoudiqi/behospitalized/BEH0079.java

@@ -2,10 +2,15 @@ package com.lantone.qc.kernel.catalogue.hangzhoudiqi.behospitalized;
 
 import com.lantone.qc.kernel.catalogue.QCCatalogue;
 import com.lantone.qc.kernel.util.CatalogueUtil;
+import com.lantone.qc.pub.Content;
 import com.lantone.qc.pub.model.InputInfo;
 import com.lantone.qc.pub.model.OutputInfo;
+import com.lantone.qc.pub.model.doc.MedicalRecordInfoDoc;
+import com.lantone.qc.pub.util.StringUtil;
 import org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 /**
  * @ClassName : BEH0079
  * @Description : 专科检查未填写
@@ -20,6 +25,16 @@ public class BEH0079 extends QCCatalogue {
             status.set("0");
             return;
         }
+        //修改该规则只适用于神经内科
+        MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
+        Map<String, String> structureMap = medicalRecordInfoDoc.getStructureMap();
+        String behDeptName = structureMap.get("behDeptName");
+        if(StringUtil.isEmpty(behDeptName)){
+            return;
+        }
+        if(!Content.neurology.equals(behDeptName)){
+            return;
+        }
         if (inputInfo.getBeHospitalizedDoc().getVitalLabelSpecial() != null) {
             if (!CatalogueUtil.isEmpty(inputInfo.getBeHospitalizedDoc().getVitalLabelSpecial().getText())) {
                 status.set("0");

+ 6 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hangzhoudiqi/behospitalized/BEH0448.java

@@ -7,6 +7,7 @@ import com.lantone.qc.pub.model.OutputInfo;
 import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
 import com.lantone.qc.pub.model.doc.MedicalRecordInfoDoc;
 import com.lantone.qc.pub.model.entity.Clinical;
+import com.lantone.qc.pub.util.StringUtil;
 import org.springframework.stereotype.Component;
 
 import java.util.List;
@@ -29,7 +30,11 @@ public class BEH0448 extends QCCatalogue {
         //修改该规则只适用于神经内科
         MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
         Map<String, String> structureMap = medicalRecordInfoDoc.getStructureMap();
-        if(!Content.neurology.equals(structureMap.get("behDeptName"))){
+        String behDeptName = structureMap.get("behDeptName");
+        if(StringUtil.isEmpty(behDeptName)){
+            return;
+        }
+        if(!Content.neurology.equals(behDeptName)){
             return;
         }
         BeHospitalizedDoc beHospitalizedDoc = inputInfo.getBeHospitalizedDoc();

+ 14 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hangzhoudiqi/behospitalized/BEH0560.java

@@ -1,14 +1,18 @@
 package com.lantone.qc.kernel.catalogue.hangzhoudiqi.behospitalized;
 
 import com.lantone.qc.kernel.catalogue.QCCatalogue;
+import com.lantone.qc.pub.Content;
 import com.lantone.qc.pub.model.InputInfo;
 import com.lantone.qc.pub.model.OutputInfo;
 import com.lantone.qc.pub.model.doc.BeHospitalizedDoc;
+import com.lantone.qc.pub.model.doc.MedicalRecordInfoDoc;
 import com.lantone.qc.pub.model.entity.Clinical;
+import com.lantone.qc.pub.util.StringUtil;
 import org.springframework.stereotype.Component;
 
 import java.util.ArrayList;
 import java.util.List;
+import java.util.Map;
 
 
 /**
@@ -25,6 +29,16 @@ public class BEH0560 extends QCCatalogue {
         if (beHospitalizedDoc == null || beHospitalizedDoc.getChiefLabel() == null) {
             return;
         }
+        //修改该规则只适用于神经内科
+        MedicalRecordInfoDoc medicalRecordInfoDoc = inputInfo.getMedicalRecordInfoDoc();
+        Map<String, String> structureMap = medicalRecordInfoDoc.getStructureMap();
+        String behDeptName = structureMap.get("behDeptName");
+        if(StringUtil.isEmpty(behDeptName)){
+            return;
+        }
+        if(!Content.neurology.equals(behDeptName)){
+            return;
+        }
         String chiefTxt = beHospitalizedDoc.getChiefLabel().getText();
         if (chiefTxt.contains("检查") || chiefTxt.contains("术后") || chiefTxt.contains("药物") || chiefTxt.contains("发现")) {
             status.set("0");

+ 5 - 5
kernel/src/main/java/com/lantone/qc/kernel/catalogue/hangzhoudiqi/threelevelward/THR0601.java

@@ -41,12 +41,12 @@ public class THR0601 extends QCCatalogue {
             if (!CatalogueUtil.compareTime(
                     StringUtil.parseDateTime(admisTime),
                     StringUtil.parseDateTime(DateUtil.nowString()),
-                    Long.valueOf(48 * 60))) {//如果入院未超过48小时,规则不判断
+                    Long.valueOf(24 * 60))) {//如果入院未超过24小时,规则不判断
                 return;
             }
-            //如果住院天数小于2天则不判断该条规则
+            //如果住院天数小于1天则不判断该条规则
             if (DateUtil.parseDate(dischargeTime) != null &&
-                    !CatalogueUtil.compareTime(StringUtil.parseDateTime(admisTime), StringUtil.parseDateTime(dischargeTime), (long) (48 * 60))) {
+                    !CatalogueUtil.compareTime(StringUtil.parseDateTime(admisTime), StringUtil.parseDateTime(dischargeTime), (long) (24 * 60))) {
                 return;
             } else {
                 if (inputInfo.getThreeLevelWardDocs().size() == 0) {
@@ -60,8 +60,8 @@ public class THR0601 extends QCCatalogue {
             Map<String, String> leaveHospitalStructureMap = inputInfo.getLeaveHospitalDoc().getStructureMap();
             String lengthOfStay = leaveHospitalStructureMap.get("住院天数");
             if (StringUtil.isNotBlank(lengthOfStay) && CatalogueUtil.numbersOnly(lengthOfStay)) {
-                //如果住院天数小于2天则不判断该条规则
-                if (Integer.parseInt(lengthOfStay) <= 2) {
+                //如果住院天数小于1天则不判断该条规则
+                if (Integer.parseInt(lengthOfStay) <= 1) {
                     return;
                 }
             }