Bläddra i källkod

出院小结规则条目更新

kongwz 5 år sedan
förälder
incheckning
a6f32b5708

+ 1 - 1
kernel/src/main/java/com/lantone/qc/kernel/catalogue/leavehospital/LEA0149.java

@@ -37,7 +37,7 @@ public class LEA0149 extends QCCatalogue {
                 Map<String, String> lhStructureMap = leaveHospitalDoc.getStructureMap();
                 ChiefLabel chiefLabel = beHospitalizedDoc.getChiefLabel();
                 if (lhStructureMap != null && chiefLabel != null) {
-                    String bhChief = chiefLabel.getText();
+                    String bhChief = chiefLabel.getText().replace("。","");
                     String bhThings = lhStructureMap.get("入院情况");
                     if (bhThings.indexOf(bhChief) < 0) {
                         status.set("-1");

+ 30 - 0
kernel/src/main/java/com/lantone/qc/kernel/catalogue/leavehospital/LEA0508.java

@@ -0,0 +1,30 @@
+package com.lantone.qc.kernel.catalogue.leavehospital;
+
+import com.lantone.qc.kernel.catalogue.QCCatalogue;
+import com.lantone.qc.pub.model.InputInfo;
+import com.lantone.qc.pub.model.OutputInfo;
+import org.apache.commons.lang3.StringUtils;
+import org.springframework.stereotype.Component;
+
+import java.text.ParseException;
+import java.util.Map;
+
+/**
+ * @author kwz
+ * 出院记录无副主任/主任医师签名
+ * @date 2020/4/7
+ * @time 21:42
+ */
+@Component
+public class LEA0508 extends QCCatalogue {
+    @Override
+    public void start(InputInfo inputInfo, OutputInfo outputInfo) throws ParseException {
+        status.set("0");
+        Map<String, String> structureMap = inputInfo.getLeaveHospitalDoc().getStructureMap();
+        if(structureMap != null){
+            if(StringUtils.isEmpty(structureMap.get("医师签名"))){
+                status.set("-1");
+            }
+        }
+    }
+}