Browse Source

病案首页手术名称和手术记录的名称进行比较

kongwz 5 years atrás
parent
commit
00f19433fd

+ 12 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0412.java

@@ -2,6 +2,7 @@ package com.lantone.qc.kernel.catalogue.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 org.springframework.stereotype.Component;
@@ -19,6 +20,17 @@ import java.util.Map;
 public class BEH0412 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         status = "0";
+        Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        Map<String, String> firstStructMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
+        if(structureMap != null && firstStructMap != null){
+            String contactAddress_bh = structureMap.get("姓名");
+            String contactAddress_first = firstStructMap.get(Content.name);
+            if(!CatalogueUtil.isEmpty(contactAddress_bh) && !CatalogueUtil.isEmpty(contactAddress_first)){
+                if(!contactAddress_first.equals(contactAddress_bh)){
+                    status = "-1";
+                }
+            }
+        }
 
     }
 }

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

@@ -1,10 +1,14 @@
 package com.lantone.qc.kernel.catalogue.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 org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 
 /**
  * @ClassName : BEH0413
@@ -16,6 +20,16 @@ import org.springframework.stereotype.Component;
 public class BEH0413 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         status = "0";
-
+        Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        Map<String, String> firstStructMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
+        if(structureMap != null && firstStructMap != null){
+            String contactAddress_bh = structureMap.get("性别");
+            String contactAddress_first = firstStructMap.get(Content.gender);
+            if(!CatalogueUtil.isEmpty(contactAddress_bh) && !CatalogueUtil.isEmpty(contactAddress_first)){
+                if(!contactAddress_first.equals(contactAddress_bh)){
+                    status = "-1";
+                }
+            }
+        }
     }
 }

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

@@ -1,10 +1,14 @@
 package com.lantone.qc.kernel.catalogue.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 org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 
 /**
  * @ClassName : BEH0414
@@ -16,6 +20,16 @@ import org.springframework.stereotype.Component;
 public class BEH0414 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         status = "0";
-
+        Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        Map<String, String> firstStructMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
+        if(structureMap != null && firstStructMap != null){
+            String contactAddress_bh = structureMap.get("年龄");
+            String contactAddress_first = firstStructMap.get(Content.age);
+            if(!CatalogueUtil.isEmpty(contactAddress_bh) && !CatalogueUtil.isEmpty(contactAddress_first)){
+                if(!contactAddress_first.equals(contactAddress_bh)){
+                    status = "-1";
+                }
+            }
+        }
     }
 }

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

@@ -1,10 +1,14 @@
 package com.lantone.qc.kernel.catalogue.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 org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 
 /**
  * @ClassName : BEH0415
@@ -16,6 +20,16 @@ import org.springframework.stereotype.Component;
 public class BEH0415 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         status = "0";
-
+        Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        Map<String, String> firstStructMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
+        if(structureMap != null && firstStructMap != null){
+            String contactAddress_bh = structureMap.get("民族");
+            String contactAddress_first = firstStructMap.get(Content.nation);
+            if(!CatalogueUtil.isEmpty(contactAddress_bh) && !CatalogueUtil.isEmpty(contactAddress_first)){
+                if(!contactAddress_first.equals(contactAddress_bh)){
+                    status = "-1";
+                }
+            }
+        }
     }
 }

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

@@ -1,10 +1,14 @@
 package com.lantone.qc.kernel.catalogue.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 org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 
 /**
  * @ClassName : BEH0416
@@ -16,6 +20,16 @@ import org.springframework.stereotype.Component;
 public class BEH0416 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         status = "0";
-
+        Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        Map<String, String> firstStructMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
+        if(structureMap != null && firstStructMap != null){
+            String contactAddress_bh = structureMap.get("职业");
+            String contactAddress_first = firstStructMap.get(Content.job);
+            if(!CatalogueUtil.isEmpty(contactAddress_bh) && !CatalogueUtil.isEmpty(contactAddress_first)){
+                if(!contactAddress_first.equals(contactAddress_bh)){
+                    status = "-1";
+                }
+            }
+        }
     }
 }

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

@@ -1,10 +1,14 @@
 package com.lantone.qc.kernel.catalogue.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 org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 
 /**
  * @ClassName : BEH0417
@@ -16,6 +20,16 @@ import org.springframework.stereotype.Component;
 public class BEH0417 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         status = "0";
-
+        Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        Map<String, String> firstStructMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
+        if(structureMap != null && firstStructMap != null){
+            String contactAddress_bh = structureMap.get("出生地");
+            String contactAddress_first = firstStructMap.get(Content.birth_address);
+            if(!CatalogueUtil.isEmpty(contactAddress_bh) && !CatalogueUtil.isEmpty(contactAddress_first)){
+                if(!contactAddress_first.equals(contactAddress_bh)){
+                    status = "-1";
+                }
+            }
+        }
     }
 }

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

@@ -1,10 +1,14 @@
 package com.lantone.qc.kernel.catalogue.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 org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 
 /**
  * @ClassName : BEH0418
@@ -16,6 +20,16 @@ import org.springframework.stereotype.Component;
 public class BEH0418 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         status = "0";
-
+        Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        Map<String, String> firstStructMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
+        if(structureMap != null && firstStructMap != null){
+            String marry_bh = structureMap.get("婚姻");
+            String marry_first = firstStructMap.get(Content.marry);
+            if(!CatalogueUtil.isEmpty(marry_bh) && !CatalogueUtil.isEmpty(marry_first)){
+                if(!marry_bh.equals(marry_first)){
+                    status = "-1";
+                }
+            }
+        }
     }
 }

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

@@ -1,10 +1,14 @@
 package com.lantone.qc.kernel.catalogue.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 org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 
 /**
  * @ClassName : BEH0419
@@ -15,6 +19,16 @@ import org.springframework.stereotype.Component;
 public class BEH0419 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         status = "0";
-
+        Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        Map<String, String> firstStructMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
+        if(structureMap != null && firstStructMap != null){
+            String contactAddress_bh = structureMap.get("联系地址");
+            String contactAddress_first = firstStructMap.get(Content.contact_address);
+            if(!CatalogueUtil.isEmpty(contactAddress_bh) && !CatalogueUtil.isEmpty(contactAddress_first)){
+                if(!contactAddress_first.equals(contactAddress_bh)){
+                    status = "-1";
+                }
+            }
+        }
     }
 }

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

@@ -1,6 +1,7 @@
 package com.lantone.qc.kernel.catalogue.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 org.springframework.stereotype.Component;

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

@@ -1,10 +1,14 @@
 package com.lantone.qc.kernel.catalogue.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 org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 
 /**
  * @ClassName : BEH0421
@@ -15,6 +19,16 @@ import org.springframework.stereotype.Component;
 public class BEH0421 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         status = "0";
-
+        Map<String, String> structureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        Map<String, String> firstStructMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
+        if(structureMap != null && firstStructMap != null){
+            String admisDate_bh = structureMap.get("入院日期");
+            String admisDate_first = firstStructMap.get(Content.admisDate);
+            if(!CatalogueUtil.isEmpty(admisDate_bh) && !CatalogueUtil.isEmpty(admisDate_first)){
+                if(!admisDate_bh.equals(admisDate_first)){
+                    status = "-1";
+                }
+            }
+        }
     }
 }

+ 4 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/behospitalized/BEH0422.java

@@ -1,10 +1,14 @@
 package com.lantone.qc.kernel.catalogue.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 org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 
 /**
  * @ClassName : BEH0422

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

@@ -1,10 +1,14 @@
 package com.lantone.qc.kernel.catalogue.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 org.springframework.stereotype.Component;
 
+import java.util.Map;
+
 
 /**
  * @ClassName : BEH0423
@@ -15,6 +19,16 @@ import org.springframework.stereotype.Component;
 public class BEH0423 extends QCCatalogue {
     public void start(InputInfo inputInfo, OutputInfo outputInfo) {
         status = "0";
-
+        Map<String, String> bhStructureMap = inputInfo.getBeHospitalizedDoc().getStructureMap();
+        Map<String, String> firstStructMap = inputInfo.getFirstPageRecordDoc().getStructureMap();
+        if(bhStructureMap != null && firstStructMap != null){
+            String phone = bhStructureMap.get("电话");
+            String contactPhone = firstStructMap.get(Content.contact_phone);
+            if(!CatalogueUtil.isEmpty(phone) && !CatalogueUtil.isEmpty(contactPhone)){
+                if(!phone.equals(contactPhone)){
+                    status = "-1";
+                }
+            }
+        }
     }
 }

+ 0 - 20
kernel/src/main/java/com/lantone/qc/kernel/catalogue/dutyshiftsystem/DUT0280.java

@@ -1,20 +0,0 @@
-package com.lantone.qc.kernel.catalogue.dutyshiftsystem;
-
-import com.lantone.qc.kernel.catalogue.QCCatalogue;
-import com.lantone.qc.pub.model.InputInfo;
-import com.lantone.qc.pub.model.OutputInfo;
-import org.springframework.stereotype.Component;
-
-import java.util.Map;
-
-/**
- * @ClassName : CLI0001
- * @Description : 无输血/血制品病程记录
- * @Author : 楼辉荣
- * @Date: 2020-03-06 17:28
- */
-@Component
-public class DUT0280 extends QCCatalogue {
-    public void start(InputInfo inputInfo, OutputInfo outputInfo) {
-    }
-}

+ 52 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/dutyshiftsystem/DUT0296.java

@@ -0,0 +1,52 @@
+package com.lantone.qc.kernel.catalogue.dutyshiftsystem;
+
+import com.lantone.qc.kernel.catalogue.QCCatalogue;
+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.LeaveHospitalDoc;
+import org.springframework.stereotype.Component;
+
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.Calendar;
+import java.util.Date;
+import java.util.Map;
+
+/**
+ * @ClassName : DUT0296
+ * @Description : 无阶段小结
+ * 住院时间超过1个月需要阶段小结, 出院时间和入院时间做比较,超过一个月查找阶段小结
+ * @Author : 楼辉荣
+ * @Date: 2020-03-06 17:28
+ */
+@Component
+public class DUT0296 extends QCCatalogue {
+    public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm";
+    public void start(InputInfo inputInfo, OutputInfo outputInfo) {
+        status = "0";
+        LeaveHospitalDoc leaveHospitalDoc = inputInfo.getLeaveHospitalDoc();
+        if(leaveHospitalDoc != null){
+            Map<String, String> structureMap_leave = leaveHospitalDoc.getStructureMap();
+            String be_date = structureMap_leave.get("入院日期"); //2019-12-07 08:48
+            String leave_date = structureMap_leave.get("出院时间");//2019-12-10 10:49
+            try {
+                Date date_in = new SimpleDateFormat(DATE_TIME_FORMAT).parse(be_date);
+                Date date_out = new SimpleDateFormat(DATE_TIME_FORMAT).parse(leave_date);
+                Calendar from  =  Calendar.getInstance();
+                from.setTime(date_in);
+                Calendar  to  =  Calendar.getInstance();
+                to.setTime(date_out);
+                int fromMonth = from.get(Calendar.DAY_OF_YEAR);
+                int toMonth = to.get(Calendar.DAY_OF_YEAR);
+                int day = toMonth - fromMonth;
+                if(day>30){
+                    status = "-1";
+                }
+
+            } catch (Exception e) {
+                e.printStackTrace();
+            }
+        }
+    }
+}